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

Flat encoding of SRHadClust. More...

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

Public Member Functions

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

Protected Attributes

unsigned int nhit
 
unsigned int ncalhit
 
unsigned int nmiphit
 
unsigned int ncontplanes
 
unsigned int firstplane
 
unsigned int lastplane
 
unsigned int firstcell
 
unsigned int lastcell
 
unsigned int ncellsfromedge
 
float calE
 
FlatVector3D boxmin
 
FlatVector3D boxmax
 
FlatVector3D meanpos
 

Detailed Description

Flat encoding of SRHadClust.

Definition at line 21 of file FlatHadClust.h.

Constructor & Destructor Documentation

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

Definition at line 2735 of file FlatRecord.cxx.

References compare_h5_caf::branch, calE, firstcell, firstplane, lastcell, lastplane, ncalhit, ncellsfromedge, ncontplanes, nhit, and nmiphit.

2736  : boxmin(prefix+"boxmin.", tr, policy),
2737  boxmax(prefix+"boxmax.", tr, policy),
2738  meanpos(prefix+"meanpos.", tr, policy)
2739 {
2740  branch(tr, prefix+"nhit", &nhit, policy);
2741  branch(tr, prefix+"ncalhit", &ncalhit, policy);
2742  branch(tr, prefix+"nmiphit", &nmiphit, policy);
2743  branch(tr, prefix+"ncontplanes", &ncontplanes, policy);
2744  branch(tr, prefix+"firstplane", &firstplane, policy);
2745  branch(tr, prefix+"lastplane", &lastplane, policy);
2746  branch(tr, prefix+"firstcell", &firstcell, policy);
2747  branch(tr, prefix+"lastcell", &lastcell, policy);
2748  branch(tr, prefix+"ncellsfromedge", &ncellsfromedge, policy);
2749  branch(tr, prefix+"calE", &calE, policy);
2750 }
unsigned int ncontplanes
Definition: FlatHadClust.h:33
FlatVector3D boxmin
Definition: FlatHadClust.h:41
unsigned int ncalhit
Definition: FlatHadClust.h:31
unsigned int lastplane
Definition: FlatHadClust.h:35
unsigned int nmiphit
Definition: FlatHadClust.h:32
unsigned int firstplane
Definition: FlatHadClust.h:34
FlatVector3D meanpos
Definition: FlatHadClust.h:43
const XML_Char * prefix
Definition: expat.h:380
unsigned int firstcell
Definition: FlatHadClust.h:36
unsigned int ncellsfromedge
Definition: FlatHadClust.h:38
FlatVector3D boxmax
Definition: FlatHadClust.h:42
unsigned int nhit
Definition: FlatHadClust.h:30
unsigned int lastcell
Definition: FlatHadClust.h:37
flat::FlatHadClust::~FlatHadClust ( )

Definition at line 2752 of file FlatRecord.cxx.

2753 {
2754 }

Member Function Documentation

void flat::FlatHadClust::Fill ( const caf::SRHadClust sr)

Definition at line 2756 of file FlatRecord.cxx.

References caf::SRHadClust::boxmax, boxmax, caf::SRHadClust::boxmin, boxmin, caf::SRHadClust::calE, calE, flat::FlatVector3D::Fill(), caf::SRHadClust::firstcell, firstcell, caf::SRHadClust::firstplane, firstplane, caf::SRHadClust::lastcell, lastcell, caf::SRHadClust::lastplane, lastplane, caf::SRHadClust::meanpos, meanpos, caf::SRHadClust::ncalhit, ncalhit, caf::SRHadClust::ncellsfromedge, ncellsfromedge, caf::SRHadClust::ncontplanes, ncontplanes, caf::SRHadClust::nhit, nhit, caf::SRHadClust::nmiphit, and nmiphit.

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

2757 {
2758  nhit = sr.nhit;
2759  ncalhit = sr.ncalhit;
2760  nmiphit = sr.nmiphit;
2761  ncontplanes = sr.ncontplanes;
2762  firstplane = sr.firstplane;
2763  lastplane = sr.lastplane;
2764  firstcell = sr.firstcell;
2765  lastcell = sr.lastcell;
2767  calE = sr.calE;
2768 
2769  boxmin.Fill(sr.boxmin);
2770  boxmax.Fill(sr.boxmax);
2771  meanpos.Fill(sr.meanpos);
2772 }
unsigned int ncellsfromedge
minimum number of cells to edge of detector
Definition: SRHadClust.h:30
void Fill(const caf::SRVector3D &sr)
unsigned int ncontplanes
Definition: FlatHadClust.h:33
FlatVector3D boxmin
Definition: FlatHadClust.h:41
unsigned int ncalhit
Definition: FlatHadClust.h:31
unsigned int ncontplanes
number of continuous planes
Definition: SRHadClust.h:25
SRVector3D meanpos
Mean position of hits in cluster, weighted by charge [cm].
Definition: SRHadClust.h:34
unsigned int nhit
number of hits
Definition: SRHadClust.h:22
unsigned int lastplane
Definition: FlatHadClust.h:35
unsigned int nmiphit
Definition: FlatHadClust.h:32
unsigned int firstplane
Definition: FlatHadClust.h:34
FlatVector3D meanpos
Definition: FlatHadClust.h:43
unsigned int nmiphit
number of minimum ionizing hits
Definition: SRHadClust.h:24
float calE
Calorimetric energy of the cluster [GeV].
Definition: SRHadClust.h:31
unsigned int firstcell
Definition: FlatHadClust.h:36
unsigned int ncellsfromedge
Definition: FlatHadClust.h:38
unsigned int lastcell
last cell
Definition: SRHadClust.h:29
unsigned int ncalhit
number of hits with calibration
Definition: SRHadClust.h:23
FlatVector3D boxmax
Definition: FlatHadClust.h:42
unsigned int nhit
Definition: FlatHadClust.h:30
SRVector3D boxmin
Minimum coordinates box containing all the hits [cm].
Definition: SRHadClust.h:32
unsigned int firstcell
first cell
Definition: SRHadClust.h:28
unsigned int lastcell
Definition: FlatHadClust.h:37
unsigned int firstplane
first plane
Definition: SRHadClust.h:26
unsigned int lastplane
last plane
Definition: SRHadClust.h:27
SRVector3D boxmax
Maximum coordinates box containing all the hits [cm].
Definition: SRHadClust.h:33

Member Data Documentation

FlatVector3D flat::FlatHadClust::boxmax
protected

Definition at line 42 of file FlatHadClust.h.

Referenced by Fill().

FlatVector3D flat::FlatHadClust::boxmin
protected

Definition at line 41 of file FlatHadClust.h.

Referenced by Fill().

float flat::FlatHadClust::calE
protected

Definition at line 39 of file FlatHadClust.h.

Referenced by Fill(), and FlatHadClust().

unsigned int flat::FlatHadClust::firstcell
protected

Definition at line 36 of file FlatHadClust.h.

Referenced by Fill(), and FlatHadClust().

unsigned int flat::FlatHadClust::firstplane
protected

Definition at line 34 of file FlatHadClust.h.

Referenced by Fill(), and FlatHadClust().

unsigned int flat::FlatHadClust::lastcell
protected

Definition at line 37 of file FlatHadClust.h.

Referenced by Fill(), and FlatHadClust().

unsigned int flat::FlatHadClust::lastplane
protected

Definition at line 35 of file FlatHadClust.h.

Referenced by Fill(), and FlatHadClust().

FlatVector3D flat::FlatHadClust::meanpos
protected

Definition at line 43 of file FlatHadClust.h.

Referenced by Fill().

unsigned int flat::FlatHadClust::ncalhit
protected

Definition at line 31 of file FlatHadClust.h.

Referenced by Fill(), and FlatHadClust().

unsigned int flat::FlatHadClust::ncellsfromedge
protected

Definition at line 38 of file FlatHadClust.h.

Referenced by Fill(), and FlatHadClust().

unsigned int flat::FlatHadClust::ncontplanes
protected

Definition at line 33 of file FlatHadClust.h.

Referenced by Fill(), and FlatHadClust().

unsigned int flat::FlatHadClust::nhit
protected

Definition at line 30 of file FlatHadClust.h.

Referenced by Fill(), and FlatHadClust().

unsigned int flat::FlatHadClust::nmiphit
protected

Definition at line 32 of file FlatHadClust.h.

Referenced by Fill(), and FlatHadClust().


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