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

Flat encoding of SRJMShower. More...

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

Public Member Functions

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

Protected Attributes

short unsigned int nhit
 
short unsigned int nhitx
 
short unsigned int nhity
 
short unsigned int nplane
 
short unsigned int maxplanecont
 
short unsigned int maxplanegap
 
float calE
 
float len
 
short unsigned int view
 
float width
 
short unsigned int nplanex
 
short unsigned int nplaney
 
float gap
 
float shwE
 
float vtxE
 
FlatVector3D start
 
FlatVector3D dir
 
FlatVector3D stop
 

Detailed Description

Flat encoding of SRJMShower.

Definition at line 21 of file FlatJMShower.h.

Constructor & Destructor Documentation

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

Definition at line 706 of file FlatRecord.cxx.

References compare_h5_caf::branch, calE, gap, maxplanecont, maxplanegap, nhit, nhitx, nhity, nplane, nplanex, nplaney, shwE, view, vtxE, and width.

707  : start(prefix+"start.", tr, policy),
708  dir(prefix+"dir.", tr, policy),
709  stop(prefix+"stop.", tr, policy)
710 {
711  branch(tr, prefix+"nhit", &nhit, policy);
712  branch(tr, prefix+"nhitx", &nhitx, policy);
713  branch(tr, prefix+"nhity", &nhity, policy);
714  branch(tr, prefix+"nplane", &nplane, policy);
715  branch(tr, prefix+"maxplanecont", &maxplanecont, policy);
716  branch(tr, prefix+"maxplanegap", &maxplanegap, policy);
717  branch(tr, prefix+"calE", &calE, policy);
718  branch(tr, prefix+"len", &len, policy);
719  branch(tr, prefix+"view", &view, policy);
720  branch(tr, prefix+"width", &width, policy);
721  branch(tr, prefix+"nplanex", &nplanex, policy);
722  branch(tr, prefix+"nplaney", &nplaney, policy);
723  branch(tr, prefix+"gap", &gap, policy);
724  branch(tr, prefix+"shwE", &shwE, policy);
725  branch(tr, prefix+"vtxE", &vtxE, policy);
726 }
const XML_Char int len
Definition: expat.h:262
short unsigned int view
Definition: FlatJMShower.h:38
short unsigned int nhit
Definition: FlatJMShower.h:30
short unsigned int maxplanecont
Definition: FlatJMShower.h:34
FlatVector3D stop
Definition: FlatJMShower.h:48
short unsigned int nplane
Definition: FlatJMShower.h:33
short unsigned int nplanex
Definition: FlatJMShower.h:40
short unsigned int nhity
Definition: FlatJMShower.h:32
short unsigned int nhitx
Definition: FlatJMShower.h:31
short unsigned int maxplanegap
Definition: FlatJMShower.h:35
FlatVector3D start
Definition: FlatJMShower.h:46
short unsigned int nplaney
Definition: FlatJMShower.h:41
const XML_Char * prefix
Definition: expat.h:380
FlatVector3D dir
Definition: FlatJMShower.h:47
flat::FlatJMShower::~FlatJMShower ( )

Definition at line 728 of file FlatRecord.cxx.

729 {
730 }

Member Function Documentation

void flat::FlatJMShower::Fill ( const caf::SRJMShower sr)

Definition at line 732 of file FlatRecord.cxx.

References caf::SRJMShower::calE, calE, caf::SRJMShower::dir, dir, flat::FlatVector3D::Fill(), caf::SRJMShower::gap, gap, caf::SRJMShower::len, caf::SRJMShower::maxplanecont, maxplanecont, caf::SRJMShower::maxplanegap, maxplanegap, caf::SRJMShower::nhit, nhit, caf::SRJMShower::nhitx, nhitx, caf::SRJMShower::nhity, nhity, caf::SRJMShower::nplane, nplane, caf::SRJMShower::nplanex, nplanex, caf::SRJMShower::nplaney, nplaney, caf::SRJMShower::shwE, shwE, caf::SRJMShower::start, start, caf::SRJMShower::stop, stop, caf::SRJMShower::view, view, caf::SRJMShower::vtxE, vtxE, caf::SRJMShower::width, and width.

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

733 {
734  nhit = sr.nhit;
735  nhitx = sr.nhitx;
736  nhity = sr.nhity;
737  nplane = sr.nplane;
740  calE = sr.calE;
741  len = sr.len;
742  view = sr.view;
743  width = sr.width;
744  nplanex = sr.nplanex;
745  nplaney = sr.nplaney;
746  gap = sr.gap;
747  shwE = sr.shwE;
748  vtxE = sr.vtxE;
749 
750  start.Fill(sr.start);
751  dir.Fill(sr.dir);
752  stop.Fill(sr.stop);
753 }
const XML_Char int len
Definition: expat.h:262
float shwE
reconstructed shower energy [GeV]
Definition: SRJMShower.h:41
float gap
gap from shower start to ElasticArms vertex [cm]
Definition: SRJMShower.h:38
short unsigned int view
Definition: FlatJMShower.h:38
short unsigned int nhit
Definition: FlatJMShower.h:30
short unsigned int maxplanecont
Definition: FlatJMShower.h:34
void Fill(const caf::SRVector3D &sr)
FlatVector3D stop
Definition: FlatJMShower.h:48
short unsigned int nplane
Definition: FlatJMShower.h:33
float width
Shower width [cm].
Definition: SRJMShower.h:35
float calE
energy based on summed calibrated deposited charge [GeV]
Definition: SRJMShower.h:29
float vtxE
calorimetric energy of [GeV]
Definition: SRJMShower.h:42
short unsigned int nplanex
Definition: FlatJMShower.h:40
short unsigned int nhity
Definition: FlatJMShower.h:32
SRVector3D dir
Shower direction at start point [unit vector recommended].
Definition: SRJMShower.h:31
short unsigned int nhitx
Definition: FlatJMShower.h:31
unsigned short maxplanegap
maximum number of gapped planes in prong
Definition: SRJMShower.h:28
short unsigned int maxplanegap
Definition: FlatJMShower.h:35
unsigned short nhity
number of hits in y-view
Definition: SRJMShower.h:25
unsigned short nplane
number of planes spanned
Definition: SRJMShower.h:26
FlatVector3D start
Definition: FlatJMShower.h:46
short unsigned int nplaney
Definition: FlatJMShower.h:41
float len
track length [cm]
Definition: SRJMShower.h:32
SRVector3D stop
shower stop point
Definition: SRJMShower.h:39
unsigned short nplaney
number of planes spanned in y view
Definition: SRJMShower.h:37
SRVector3D start
Shower start point in detector coordinates. [cm].
Definition: SRJMShower.h:30
View_t view
Prong view caf::kX = 0, caf::kY = 1 or caf::kXorY = 2.
Definition: SRJMShower.h:33
FlatVector3D dir
Definition: FlatJMShower.h:47
unsigned short maxplanecont
maximum number of contiguous planes in prong
Definition: SRJMShower.h:27
unsigned short nplanex
number of planes spanned in x view
Definition: SRJMShower.h:36
unsigned short nhitx
number of hits in x-view
Definition: SRJMShower.h:24
unsigned short nhit
number of hits
Definition: SRJMShower.h:23

Member Data Documentation

float flat::FlatJMShower::calE
protected

Definition at line 36 of file FlatJMShower.h.

Referenced by Fill(), and FlatJMShower().

FlatVector3D flat::FlatJMShower::dir
protected

Definition at line 47 of file FlatJMShower.h.

Referenced by Fill().

float flat::FlatJMShower::gap
protected
float flat::FlatJMShower::len
protected

Definition at line 37 of file FlatJMShower.h.

short unsigned int flat::FlatJMShower::maxplanecont
protected

Definition at line 34 of file FlatJMShower.h.

Referenced by Fill(), and FlatJMShower().

short unsigned int flat::FlatJMShower::maxplanegap
protected

Definition at line 35 of file FlatJMShower.h.

Referenced by Fill(), and FlatJMShower().

short unsigned int flat::FlatJMShower::nhit
protected

Definition at line 30 of file FlatJMShower.h.

Referenced by Fill(), and FlatJMShower().

short unsigned int flat::FlatJMShower::nhitx
protected

Definition at line 31 of file FlatJMShower.h.

Referenced by Fill(), and FlatJMShower().

short unsigned int flat::FlatJMShower::nhity
protected

Definition at line 32 of file FlatJMShower.h.

Referenced by Fill(), and FlatJMShower().

short unsigned int flat::FlatJMShower::nplane
protected

Definition at line 33 of file FlatJMShower.h.

Referenced by Fill(), and FlatJMShower().

short unsigned int flat::FlatJMShower::nplanex
protected

Definition at line 40 of file FlatJMShower.h.

Referenced by Fill(), and FlatJMShower().

short unsigned int flat::FlatJMShower::nplaney
protected

Definition at line 41 of file FlatJMShower.h.

Referenced by Fill(), and FlatJMShower().

float flat::FlatJMShower::shwE
protected

Definition at line 43 of file FlatJMShower.h.

Referenced by Fill(), and FlatJMShower().

FlatVector3D flat::FlatJMShower::start
protected

Definition at line 46 of file FlatJMShower.h.

Referenced by Fill(), progbar.ProgressBar::Start(), and progbar.ProgressBar::Update().

FlatVector3D flat::FlatJMShower::stop
protected

Definition at line 48 of file FlatJMShower.h.

Referenced by Fill().

short unsigned int flat::FlatJMShower::view
protected

Definition at line 38 of file FlatJMShower.h.

Referenced by Fill(), and FlatJMShower().

float flat::FlatJMShower::vtxE
protected

Definition at line 44 of file FlatJMShower.h.

Referenced by Fill(), and FlatJMShower().

float flat::FlatJMShower::width
protected

Definition at line 39 of file FlatJMShower.h.

Referenced by Fill(), and FlatJMShower().


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