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

Flat encoding of SRShower. More...

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

Public Member Functions

 FlatShower (const std::string &prefix, TTree *tr, const IBranchPolicy *policy)
 
 ~FlatShower ()
 
void Fill (const caf::SRShower &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
 
FlatVector3D start
 
FlatVector3D dir
 
FlatVector3D stop
 
FlatParticleTruth truth
 
FlatParticleTruth truthXView
 
FlatParticleTruth truthYView
 

Detailed Description

Flat encoding of SRShower.

Definition at line 22 of file FlatShower.h.

Constructor & Destructor Documentation

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

Definition at line 4312 of file FlatRecord.cxx.

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

4313  : start(prefix+"start.", tr, policy),
4314  dir(prefix+"dir.", tr, policy),
4315  stop(prefix+"stop.", tr, policy),
4316  truth(prefix+"truth.", tr, policy),
4317  truthXView(prefix+"truthXView.", tr, policy),
4318  truthYView(prefix+"truthYView.", tr, policy)
4319 {
4320  branch(tr, prefix+"nhit", &nhit, policy);
4321  branch(tr, prefix+"nhitx", &nhitx, policy);
4322  branch(tr, prefix+"nhity", &nhity, policy);
4323  branch(tr, prefix+"nplane", &nplane, policy);
4324  branch(tr, prefix+"maxplanecont", &maxplanecont, policy);
4325  branch(tr, prefix+"maxplanegap", &maxplanegap, policy);
4326  branch(tr, prefix+"calE", &calE, policy);
4327  branch(tr, prefix+"len", &len, policy);
4328  branch(tr, prefix+"view", &view, policy);
4329  branch(tr, prefix+"width", &width, policy);
4330  branch(tr, prefix+"nplanex", &nplanex, policy);
4331  branch(tr, prefix+"nplaney", &nplaney, policy);
4332  branch(tr, prefix+"gap", &gap, policy);
4333 }
const XML_Char int len
Definition: expat.h:262
short unsigned int nhit
Definition: FlatShower.h:31
short unsigned int nplanex
Definition: FlatShower.h:41
FlatVector3D stop
Definition: FlatShower.h:47
short unsigned int view
Definition: FlatShower.h:39
FlatVector3D dir
Definition: FlatShower.h:46
short unsigned int nhitx
Definition: FlatShower.h:32
FlatParticleTruth truth
Definition: FlatShower.h:48
short unsigned int nhity
Definition: FlatShower.h:33
short unsigned int nplane
Definition: FlatShower.h:34
FlatParticleTruth truthXView
Definition: FlatShower.h:49
const XML_Char * prefix
Definition: expat.h:380
short unsigned int maxplanecont
Definition: FlatShower.h:35
FlatParticleTruth truthYView
Definition: FlatShower.h:50
short unsigned int nplaney
Definition: FlatShower.h:42
FlatVector3D start
Definition: FlatShower.h:45
short unsigned int maxplanegap
Definition: FlatShower.h:36
flat::FlatShower::~FlatShower ( )

Definition at line 4335 of file FlatRecord.cxx.

4336 {
4337 }

Member Function Documentation

void flat::FlatShower::Fill ( const caf::SRShower sr)

Definition at line 4339 of file FlatRecord.cxx.

References caf::SRShower::calE, calE, caf::SRShower::dir, dir, flat::FlatVector3D::Fill(), flat::FlatParticleTruth::Fill(), caf::SRShower::gap, gap, caf::SRShower::len, caf::SRShower::maxplanecont, maxplanecont, caf::SRShower::maxplanegap, maxplanegap, caf::SRShower::nhit, nhit, caf::SRShower::nhitx, nhitx, caf::SRShower::nhity, nhity, caf::SRShower::nplane, nplane, caf::SRShower::nplanex, nplanex, caf::SRShower::nplaney, nplaney, caf::SRShower::start, start, caf::SRShower::stop, stop, caf::SRShower::truth, truth, caf::SRShower::truthXView, truthXView, caf::SRShower::truthYView, truthYView, caf::SRShower::view, view, caf::SRShower::width, and width.

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

4340 {
4341  nhit = sr.nhit;
4342  nhitx = sr.nhitx;
4343  nhity = sr.nhity;
4344  nplane = sr.nplane;
4346  maxplanegap = sr.maxplanegap;
4347  calE = sr.calE;
4348  len = sr.len;
4349  view = sr.view;
4350  width = sr.width;
4351  nplanex = sr.nplanex;
4352  nplaney = sr.nplaney;
4353  gap = sr.gap;
4354 
4355  start.Fill(sr.start);
4356  dir.Fill(sr.dir);
4357  stop.Fill(sr.stop);
4358  truth.Fill(sr.truth);
4361 }
const XML_Char int len
Definition: expat.h:262
unsigned short maxplanecont
maximum number of contiguous planes in prong
Definition: SRShower.h:29
SRVector3D dir
Shower direction at start point [unit vector recommended].
Definition: SRShower.h:33
void Fill(const caf::SRVector3D &sr)
unsigned short nplaney
number of planes spanned in y view
Definition: SRShower.h:39
float gap
gap from shower start to ElasticArms vertex [cm]
Definition: SRShower.h:40
unsigned short nhit
number of hits
Definition: SRShower.h:25
short unsigned int nhit
Definition: FlatShower.h:31
unsigned short nhitx
number of hits in x-view
Definition: SRShower.h:26
SRParticleTruth truth
Truth information for the prong.
Definition: SRShower.h:42
float calE
energy based on summed calibrated deposited charge [GeV]
Definition: SRShower.h:31
short unsigned int nplanex
Definition: FlatShower.h:41
FlatVector3D stop
Definition: FlatShower.h:47
short unsigned int view
Definition: FlatShower.h:39
FlatVector3D dir
Definition: FlatShower.h:46
short unsigned int nhitx
Definition: FlatShower.h:32
FlatParticleTruth truth
Definition: FlatShower.h:48
void Fill(const caf::SRParticleTruth &sr)
short unsigned int nhity
Definition: FlatShower.h:33
short unsigned int nplane
Definition: FlatShower.h:34
unsigned short nplanex
number of planes spanned in x view
Definition: SRShower.h:38
FlatParticleTruth truthXView
Definition: FlatShower.h:49
SRVector3D start
Shower start point in detector coordinates. [cm].
Definition: SRShower.h:32
SRParticleTruth truthYView
Truth information for the prong.
Definition: SRShower.h:44
unsigned short nplane
number of planes spanned
Definition: SRShower.h:28
unsigned short nhity
number of hits in y-view
Definition: SRShower.h:27
SRVector3D stop
shower stop point
Definition: SRShower.h:41
short unsigned int maxplanecont
Definition: FlatShower.h:35
FlatParticleTruth truthYView
Definition: FlatShower.h:50
float len
track length [cm]
Definition: SRShower.h:34
unsigned short maxplanegap
maximum number of gapped planes in prong
Definition: SRShower.h:30
short unsigned int nplaney
Definition: FlatShower.h:42
float width
Shower width [cm].
Definition: SRShower.h:37
View_t view
Prong view caf::kX = 0, caf::kY = 1 or caf::kXorY = 2.
Definition: SRShower.h:35
FlatVector3D start
Definition: FlatShower.h:45
SRParticleTruth truthXView
Truth information for the prong.
Definition: SRShower.h:43
short unsigned int maxplanegap
Definition: FlatShower.h:36

Member Data Documentation

float flat::FlatShower::calE
protected

Definition at line 37 of file FlatShower.h.

Referenced by Fill(), and FlatShower().

FlatVector3D flat::FlatShower::dir
protected

Definition at line 46 of file FlatShower.h.

Referenced by Fill().

float flat::FlatShower::gap
protected

Definition at line 43 of file FlatShower.h.

Referenced by Fill(), and FlatShower().

float flat::FlatShower::len
protected

Definition at line 38 of file FlatShower.h.

short unsigned int flat::FlatShower::maxplanecont
protected

Definition at line 35 of file FlatShower.h.

Referenced by Fill(), and FlatShower().

short unsigned int flat::FlatShower::maxplanegap
protected

Definition at line 36 of file FlatShower.h.

Referenced by Fill(), and FlatShower().

short unsigned int flat::FlatShower::nhit
protected

Definition at line 31 of file FlatShower.h.

Referenced by Fill(), and FlatShower().

short unsigned int flat::FlatShower::nhitx
protected

Definition at line 32 of file FlatShower.h.

Referenced by Fill(), and FlatShower().

short unsigned int flat::FlatShower::nhity
protected

Definition at line 33 of file FlatShower.h.

Referenced by Fill(), and FlatShower().

short unsigned int flat::FlatShower::nplane
protected

Definition at line 34 of file FlatShower.h.

Referenced by Fill(), and FlatShower().

short unsigned int flat::FlatShower::nplanex
protected

Definition at line 41 of file FlatShower.h.

Referenced by Fill(), and FlatShower().

short unsigned int flat::FlatShower::nplaney
protected

Definition at line 42 of file FlatShower.h.

Referenced by Fill(), and FlatShower().

FlatVector3D flat::FlatShower::start
protected

Definition at line 45 of file FlatShower.h.

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

FlatVector3D flat::FlatShower::stop
protected

Definition at line 47 of file FlatShower.h.

Referenced by Fill().

FlatParticleTruth flat::FlatShower::truth
protected

Definition at line 48 of file FlatShower.h.

Referenced by Fill().

FlatParticleTruth flat::FlatShower::truthXView
protected

Definition at line 49 of file FlatShower.h.

Referenced by Fill().

FlatParticleTruth flat::FlatShower::truthYView
protected

Definition at line 50 of file FlatShower.h.

Referenced by Fill().

short unsigned int flat::FlatShower::view
protected

Definition at line 39 of file FlatShower.h.

Referenced by Fill(), and FlatShower().

float flat::FlatShower::width
protected

Definition at line 40 of file FlatShower.h.

Referenced by Fill(), and FlatShower().


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