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

Flat encoding of SRFuzzyK. More...

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

Public Member Functions

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

Protected Attributes

unsigned int longestidx
 
unsigned int nshwlid
 
size_t npng
 
size_t npng2d
 
size_t ntot
 
float orphCalE
 
TTree * png_tree
 
FlatFuzzyKProng png
 
long png_idx
 
int png_length
 
TTree * png2d_tree
 
FlatProng png2d
 
long png2d_idx
 
int png2d_length
 

Detailed Description

Flat encoding of SRFuzzyK.

Definition at line 22 of file FlatFuzzyK.h.

Constructor & Destructor Documentation

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

Definition at line 3099 of file FlatRecord.cxx.

References compare_h5_caf::branch, longestidx, npng, npng2d, nshwlid, ntot, orphCalE, png2d_idx, png2d_length, png2d_tree, png_idx, png_length, and png_tree.

3100  : png_tree(make_tree(prefix+"png", "png", tr)),
3101  png((prefix+"png."), png_tree, policy),
3102  png_idx(0), png_length(0),
3103  png2d_tree(make_tree(prefix+"png2d", "png2d", tr)),
3104  png2d((prefix+"png2d."), png2d_tree, policy),
3105  png2d_idx(0), png2d_length(0)
3106 {
3107  branch(tr, prefix+"longestidx", &longestidx, policy);
3108  branch(tr, prefix+"nshwlid", &nshwlid, policy);
3109  branch(tr, prefix+"npng", &npng, policy);
3110  branch(tr, prefix+"npng2d", &npng2d, policy);
3111  branch(tr, prefix+"ntot", &ntot, policy);
3112  branch(tr, prefix+"orphCalE", &orphCalE, policy);
3113  if(png_tree->GetNbranches() > 0){
3114  branch(tr, prefix+"png_idx", &png_idx, 0);
3115  branch(tr, prefix+"png_length", &png_length, 0);
3116  }
3117  if(png2d_tree->GetNbranches() > 0){
3118  branch(tr, prefix+"png2d_idx", &png2d_idx, 0);
3119  branch(tr, prefix+"png2d_length", &png2d_length, 0);
3120  }
3121 }
TTree * png_tree
Definition: FlatFuzzyK.h:38
FlatFuzzyKProng png
Definition: FlatFuzzyK.h:39
unsigned int longestidx
Definition: FlatFuzzyK.h:31
TTree * png2d_tree
Definition: FlatFuzzyK.h:43
const XML_Char * prefix
Definition: expat.h:380
FlatProng png2d
Definition: FlatFuzzyK.h:44
unsigned int nshwlid
Definition: FlatFuzzyK.h:32
flat::FlatFuzzyK::~FlatFuzzyK ( )

Definition at line 3123 of file FlatRecord.cxx.

References png2d_tree, and png_tree.

3124 {
3125  if(png_tree->GetNbranches() > 0) png_tree->Write();
3126  delete png_tree;
3127  if(png2d_tree->GetNbranches() > 0) png2d_tree->Write();
3128  delete png2d_tree;
3129 }
TTree * png_tree
Definition: FlatFuzzyK.h:38
TTree * png2d_tree
Definition: FlatFuzzyK.h:43

Member Function Documentation

void flat::FlatFuzzyK::Fill ( const caf::SRFuzzyK sr)

Definition at line 3131 of file FlatRecord.cxx.

References flat::FlatProng::Fill(), flat::FlatFuzzyKProng::Fill(), caf::SRFuzzyK::longestidx, longestidx, caf::SRFuzzyK::npng, npng, caf::SRFuzzyK::npng2d, npng2d, caf::SRFuzzyK::nshwlid, nshwlid, caf::SRFuzzyK::ntot, ntot, caf::SRFuzzyK::orphCalE, orphCalE, caf::SRFuzzyK::png, png, caf::SRFuzzyK::png2d, png2d, png2d_idx, png2d_length, png2d_tree, png_idx, png_length, png_tree, and submit_syst::x.

Referenced by flat::FlatHoughVertex::Fill(), and flat::FlatElastic::Fill().

3132 {
3133  longestidx = sr.longestidx;
3134  nshwlid = sr.nshwlid;
3135  npng = sr.npng;
3136  npng2d = sr.npng2d;
3137  ntot = sr.ntot;
3138  orphCalE = sr.orphCalE;
3139 
3140  png_idx += png_length; // increment taken by previous record
3141  png_length = sr.png.size();
3142  for(const auto& x: sr.png){
3143  png.Fill(x);
3144  png_tree->Fill();
3145  }
3146 
3147  png2d_idx += png2d_length; // increment taken by previous record
3148  png2d_length = sr.png2d.size();
3149  for(const auto& x: sr.png2d){
3150  png2d.Fill(x);
3151  png2d_tree->Fill();
3152  }
3153 }
float orphCalE
calorimetric energy of hits that don't appear in any FuzzyK prongs
Definition: SRFuzzyK.h:30
std::vector< SRProng > png2d
Vector of 2D prong objects.
Definition: SRFuzzyK.h:20
TTree * png_tree
Definition: FlatFuzzyK.h:38
std::vector< SRFuzzyKProng > png
Vector of 3D prong objects.
Definition: SRFuzzyK.h:19
FlatFuzzyKProng png
Definition: FlatFuzzyK.h:39
unsigned int longestidx
index of longest prong
Definition: SRFuzzyK.h:23
unsigned int longestidx
Definition: FlatFuzzyK.h:31
TTree * png2d_tree
Definition: FlatFuzzyK.h:43
unsigned int nshwlid
number of shwlid showers - either 0 or number of 3d prongs
Definition: SRFuzzyK.h:24
size_t npng
Definition: SRFuzzyK.h:26
size_t npng2d
Definition: SRFuzzyK.h:27
void Fill(const caf::SRFuzzyKProng &sr)
void Fill(const caf::SRProng &sr)
FlatProng png2d
Definition: FlatFuzzyK.h:44
size_t ntot
Definition: SRFuzzyK.h:28
unsigned int nshwlid
Definition: FlatFuzzyK.h:32

Member Data Documentation

unsigned int flat::FlatFuzzyK::longestidx
protected

Definition at line 31 of file FlatFuzzyK.h.

Referenced by Fill(), and FlatFuzzyK().

size_t flat::FlatFuzzyK::npng
protected

Definition at line 33 of file FlatFuzzyK.h.

Referenced by Fill(), and FlatFuzzyK().

size_t flat::FlatFuzzyK::npng2d
protected

Definition at line 34 of file FlatFuzzyK.h.

Referenced by Fill(), and FlatFuzzyK().

unsigned int flat::FlatFuzzyK::nshwlid
protected

Definition at line 32 of file FlatFuzzyK.h.

Referenced by Fill(), and FlatFuzzyK().

size_t flat::FlatFuzzyK::ntot
protected

Definition at line 35 of file FlatFuzzyK.h.

Referenced by Fill(), and FlatFuzzyK().

float flat::FlatFuzzyK::orphCalE
protected

Definition at line 36 of file FlatFuzzyK.h.

Referenced by Fill(), and FlatFuzzyK().

FlatFuzzyKProng flat::FlatFuzzyK::png
protected

Definition at line 39 of file FlatFuzzyK.h.

Referenced by Fill().

FlatProng flat::FlatFuzzyK::png2d
protected

Definition at line 44 of file FlatFuzzyK.h.

Referenced by Fill().

long flat::FlatFuzzyK::png2d_idx
protected

Definition at line 45 of file FlatFuzzyK.h.

Referenced by Fill(), and FlatFuzzyK().

int flat::FlatFuzzyK::png2d_length
protected

Definition at line 46 of file FlatFuzzyK.h.

Referenced by Fill(), and FlatFuzzyK().

TTree* flat::FlatFuzzyK::png2d_tree
protected

Definition at line 43 of file FlatFuzzyK.h.

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

long flat::FlatFuzzyK::png_idx
protected

Definition at line 40 of file FlatFuzzyK.h.

Referenced by Fill(), and FlatFuzzyK().

int flat::FlatFuzzyK::png_length
protected

Definition at line 41 of file FlatFuzzyK.h.

Referenced by Fill(), and FlatFuzzyK().

TTree* flat::FlatFuzzyK::png_tree
protected

Definition at line 38 of file FlatFuzzyK.h.

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


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