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

Flat encoding of StandardRecord. More...

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

Public Member Functions

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

Protected Attributes

FlatHeader hdr
 
FlatSpill spill
 
FlatSlice slc
 
FlatTrackBranch trk
 
FlatVertexBranch vtx
 
FlatMichelE me
 
FlatEnergyBranch energy
 
FlatIDBranch sel
 
FlatTruthBranch mc
 
FlatParentBranch parent
 
FlatTrainingBranch training
 

Detailed Description

Flat encoding of StandardRecord.

Definition at line 31 of file FlatRecord.h.

Constructor & Destructor Documentation

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

Definition at line 13 of file FlatRecord.cxx.

14  : hdr(prefix+"hdr.", tr, policy),
15  spill(prefix+"spill.", tr, policy),
16  slc(prefix+"slc.", tr, policy),
17  trk(prefix+"trk.", tr, policy),
18  vtx(prefix+"vtx.", tr, policy),
19  me(prefix+"me.", tr, policy),
20  energy(prefix+"energy.", tr, policy),
21  sel(prefix+"sel.", tr, policy),
22  mc(prefix+"mc.", tr, policy),
23  parent(prefix+"parent.", tr, policy),
24  training(prefix+"training.", tr, policy)
25 {
26 }
FlatParentBranch parent
Definition: FlatRecord.h:49
FlatTrainingBranch training
Definition: FlatRecord.h:50
FlatTruthBranch mc
Definition: FlatRecord.h:48
FlatEnergyBranch energy
Definition: FlatRecord.h:46
FlatMichelE me
Definition: FlatRecord.h:45
FlatIDBranch sel
Definition: FlatRecord.h:47
FlatSpill spill
Definition: FlatRecord.h:41
FlatVertexBranch vtx
Definition: FlatRecord.h:44
const XML_Char * prefix
Definition: expat.h:380
FlatSlice slc
Definition: FlatRecord.h:42
FlatTrackBranch trk
Definition: FlatRecord.h:43
FlatHeader hdr
Definition: FlatRecord.h:40
flat::FlatRecord::~FlatRecord ( )

Definition at line 28 of file FlatRecord.cxx.

29 {
30 }

Member Function Documentation

void flat::FlatRecord::Fill ( const caf::StandardRecord sr)

Definition at line 32 of file FlatRecord.cxx.

References energy, caf::StandardRecord::energy, flat::FlatHeader::Fill(), flat::FlatSpill::Fill(), flat::FlatSlice::Fill(), flat::FlatParentBranch::Fill(), flat::FlatEnergyBranch::Fill(), flat::FlatTruthBranch::Fill(), flat::FlatVertexBranch::Fill(), flat::FlatTrainingBranch::Fill(), flat::FlatIDBranch::Fill(), hdr, caf::StandardRecord::hdr, mc, caf::StandardRecord::mc, caf::StandardRecord::me, parent, caf::StandardRecord::parent, sel, caf::StandardRecord::sel, caf::StandardRecord::slc, slc, spill, caf::StandardRecord::spill, training, caf::StandardRecord::training, caf::StandardRecord::trk, vtx, and caf::StandardRecord::vtx.

Referenced by flat::FlatMaker::produce().

33 {
34  hdr.Fill(sr.hdr);
35  spill.Fill(sr.spill);
36  slc.Fill(sr.slc);
37  trk.Fill(sr.trk);
38  vtx.Fill(sr.vtx);
39  me.Fill(sr.me);
40  energy.Fill(sr.energy);
41  sel.Fill(sr.sel);
42  mc.Fill(sr.mc);
43  parent.Fill(sr.parent);
45 }
FlatParentBranch parent
Definition: FlatRecord.h:49
FlatTrainingBranch training
Definition: FlatRecord.h:50
void Fill(const caf::SREnergyBranch &sr)
SRHeader hdr
Header branch: run, subrun, etc.
FlatTruthBranch mc
Definition: FlatRecord.h:48
void Fill(const caf::SRSlice &sr)
SRMichelE me
Michel electron branch.
void Fill(const caf::SRHeader &sr)
FlatEnergyBranch energy
Definition: FlatRecord.h:46
SRTrainingBranch training
Extra training information for prototyping PIDs etc.
void Fill(const caf::SRTruthBranch &sr)
Definition: FlatRecord.cxx:937
void Fill(const caf::SRVertexBranch &sr)
Track finder for cosmic rays.
void Fill(const caf::SRSpill &sr)
Definition: NueSkimmer.h:24
FlatIDBranch sel
Definition: FlatRecord.h:47
FlatSpill spill
Definition: FlatRecord.h:41
FlatVertexBranch vtx
Definition: FlatRecord.h:44
SRSpill spill
Beam spill branch: pot, beam current, etc.
void Fill(const caf::SRParentBranch &sr)
Definition: FlatRecord.cxx:325
SRIDBranch sel
Selector (PID) branch.
SRSlice slc
Slice branch: nhit, extents, time, etc.
SRTruthBranch mc
Truth branch for MC: energy, flavor, etc.
SRParentBranch parent
True parent branch for matching, e.g. MRCC.
SRTrackBranch trk
Track branch: nhit, len, etc.
void Fill(const caf::SRTrainingBranch &sr)
Definition: FlatRecord.cxx:86
SREnergyBranch energy
Energy estimator branch.
void Fill(const caf::SRIDBranch &sr)
FlatSlice slc
Definition: FlatRecord.h:42
SRVertexBranch vtx
Vertex branch: location, time, etc.
FlatHeader hdr
Definition: FlatRecord.h:40

Member Data Documentation

FlatEnergyBranch flat::FlatRecord::energy
protected

Definition at line 46 of file FlatRecord.h.

Referenced by Fill().

FlatHeader flat::FlatRecord::hdr
protected

Definition at line 40 of file FlatRecord.h.

Referenced by Fill().

FlatTruthBranch flat::FlatRecord::mc
protected

Definition at line 48 of file FlatRecord.h.

Referenced by Fill().

FlatMichelE flat::FlatRecord::me
protected

Definition at line 45 of file FlatRecord.h.

FlatParentBranch flat::FlatRecord::parent
protected

Definition at line 49 of file FlatRecord.h.

Referenced by Fill().

FlatIDBranch flat::FlatRecord::sel
protected

Definition at line 47 of file FlatRecord.h.

Referenced by Fill().

FlatSlice flat::FlatRecord::slc
protected

Definition at line 42 of file FlatRecord.h.

Referenced by Fill().

FlatSpill flat::FlatRecord::spill
protected

Definition at line 41 of file FlatRecord.h.

Referenced by Fill().

FlatTrainingBranch flat::FlatRecord::training
protected

Definition at line 50 of file FlatRecord.h.

Referenced by Fill().

FlatTrackBranch flat::FlatRecord::trk
protected

Definition at line 43 of file FlatRecord.h.

FlatVertexBranch flat::FlatRecord::vtx
protected

Definition at line 44 of file FlatRecord.h.

Referenced by Fill().


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