Public Member Functions | Protected Attributes | List of all members
flat::FlatSliceMap Class Reference

Flat encoding of SRSliceMap. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-28/FlatMaker/FlatSliceMap.h"

Public Member Functions

 FlatSliceMap (const std::string &prefix, TTree *tr, const IBranchPolicy *policy)
 
 ~FlatSliceMap ()
 
void Fill (const caf::SRSliceMap &sr)
 

Protected Attributes

TTree * slicemap_tree
 
unsigned char slicemap
 
long slicemap_idx
 
int slicemap_length
 

Detailed Description

Flat encoding of SRSliceMap.

Definition at line 20 of file FlatSliceMap.h.

Constructor & Destructor Documentation

flat::FlatSliceMap::FlatSliceMap ( const std::string prefix,
TTree *  tr,
const IBranchPolicy policy 
)

Definition at line 150 of file FlatRecord.cxx.

References compare_h5_caf::branch, slicemap, slicemap_idx, slicemap_length, and slicemap_tree.

151  : slicemap_tree(make_tree(prefix+"slicemap", "slicemap", tr)),
152  slicemap(0),
154 {
155  branch(slicemap_tree, prefix+"slicemap", &slicemap, policy);
156  if(slicemap_tree->GetNbranches() > 0){
157  branch(tr, prefix+"slicemap_idx", &slicemap_idx, 0);
158  branch(tr, prefix+"slicemap_length", &slicemap_length, 0);
159  }
160 }
unsigned char slicemap
Definition: FlatSliceMap.h:31
const XML_Char * prefix
Definition: expat.h:380
unsigned char slicemap[344064]
store 1D array the size of the detector for exploration in CVN training of different sized pixel maps...
Definition: SRSliceMap.h:20
flat::FlatSliceMap::~FlatSliceMap ( )

Definition at line 162 of file FlatRecord.cxx.

References slicemap_tree.

163 {
164  if(slicemap_tree->GetNbranches() > 0) slicemap_tree->Write();
165  delete slicemap_tree;
166 }

Member Function Documentation

void flat::FlatSliceMap::Fill ( const caf::SRSliceMap sr)

Definition at line 168 of file FlatRecord.cxx.

References caf::SRSliceMap::slicemap, slicemap, slicemap_idx, slicemap_length, slicemap_tree, and submit_syst::x.

Referenced by flat::FlatTrainingBranch::Fill().

169 {
170 
171  slicemap_idx += slicemap_length; // increment taken by previous record
172  for(const auto& x: sr.slicemap){
173  slicemap = x;
174  slicemap_tree->Fill();
175  }
176 }
unsigned char slicemap
Definition: FlatSliceMap.h:31
unsigned char slicemap[344064]
store 1D array the size of the detector for exploration in CVN training of different sized pixel maps...
Definition: SRSliceMap.h:20

Member Data Documentation

unsigned char flat::FlatSliceMap::slicemap
protected

Definition at line 31 of file FlatSliceMap.h.

Referenced by Fill(), and FlatSliceMap().

long flat::FlatSliceMap::slicemap_idx
protected

Definition at line 32 of file FlatSliceMap.h.

Referenced by Fill(), and FlatSliceMap().

int flat::FlatSliceMap::slicemap_length
protected

Definition at line 33 of file FlatSliceMap.h.

Referenced by Fill(), and FlatSliceMap().

TTree* flat::FlatSliceMap::slicemap_tree
protected

Definition at line 30 of file FlatSliceMap.h.

Referenced by Fill(), FlatSliceMap(), and ~FlatSliceMap().


The documentation for this class was generated from the following files: