CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
PHGCalValidInfo Class Reference

#include <PHGCalValidInfo.h>

Public Member Functions

std::vector< float > eehgcEdep () const
 
float eeTotEdep () const
 
void fillhgcHits (const std::vector< unsigned int > &hitdets, const std::vector< unsigned int > &hitindex, const std::vector< double > &hitvtxX, const std::vector< double > &hitvtxY, const std::vector< double > &hitvtxZ)
 
void fillhgcLayers (const double edepEE, const double edepHEF, const double edepHEB, const std::vector< double > &eedep, const std::vector< double > &hefdep, const std::vector< double > &hebdep)
 
std::vector< float > hebhgcEdep () const
 
float hebTotEdep () const
 
std::vector< float > hefhgcEdep () const
 
float hefTotEdep () const
 
std::vector< unsigned int > hitDets () const
 
std::vector< unsigned int > hitIndex () const
 
std::vector< float > hitvtxX () const
 
std::vector< float > hitvtxY () const
 
std::vector< float > hitvtxZ () const
 
 PHGCalValidInfo ()
 
virtual ~PHGCalValidInfo ()
 

Private Attributes

float edepEETot
 
float edepHEBTot
 
float edepHEFTot
 
std::vector< float > hgcEEedep
 
std::vector< float > hgcHEBedep
 
std::vector< float > hgcHEFedep
 
std::vector< unsigned int > hgcHitDets
 
std::vector< unsigned int > hgcHitIndex
 
std::vector< float > hgcHitVtxX
 
std::vector< float > hgcHitVtxY
 
std::vector< float > hgcHitVtxZ
 

Detailed Description

Definition at line 12 of file PHGCalValidInfo.h.

Constructor & Destructor Documentation

PHGCalValidInfo::PHGCalValidInfo ( )
inline

Definition at line 16 of file PHGCalValidInfo.h.

16 : edepEETot(0.0), edepHEFTot(0.0), edepHEBTot(0.0) {}
virtual PHGCalValidInfo::~PHGCalValidInfo ( )
inlinevirtual

Definition at line 17 of file PHGCalValidInfo.h.

17 {}

Member Function Documentation

std::vector<float> PHGCalValidInfo::eehgcEdep ( ) const
inline

Definition at line 23 of file PHGCalValidInfo.h.

References hgcEEedep.

Referenced by HGCGeometryValidation::analyze().

23 {return hgcEEedep;}
std::vector< float > hgcEEedep
float PHGCalValidInfo::eeTotEdep ( ) const
inline

Definition at line 19 of file PHGCalValidInfo.h.

References edepEETot.

Referenced by HGCGeometryValidation::analyze().

19 {return edepEETot;}
void PHGCalValidInfo::fillhgcHits ( const std::vector< unsigned int > &  hitdets,
const std::vector< unsigned int > &  hitindex,
const std::vector< double > &  hitvtxX,
const std::vector< double > &  hitvtxY,
const std::vector< double > &  hitvtxZ 
)

Definition at line 7 of file PHGCalValidInfo.cc.

References hgcHitDets, hgcHitIndex, hgcHitVtxX, hgcHitVtxY, hgcHitVtxZ, and i.

Referenced by hitvtxZ(), and SimG4HGCalValidation::layerAnalysis().

11  {
12  for (unsigned int i=0; i<hitvtxX.size(); i++) {
13  hgcHitVtxX.push_back((float)hitvtxX.at(i));
14  hgcHitVtxY.push_back((float)hitvtxY.at(i));
15  hgcHitVtxZ.push_back((float)hitvtxZ.at(i));
16  hgcHitDets.push_back(hitdets.at(i));
17  hgcHitIndex.push_back(hitindex.at(i));
18  }
19 }
std::vector< float > hgcHitVtxY
int i
Definition: DBlmapReader.cc:9
std::vector< float > hgcHitVtxX
std::vector< float > hitvtxZ() const
std::vector< unsigned int > hgcHitDets
std::vector< float > hgcHitVtxZ
std::vector< unsigned int > hgcHitIndex
std::vector< float > hitvtxX() const
std::vector< float > hitvtxY() const
void PHGCalValidInfo::fillhgcLayers ( const double  edepEE,
const double  edepHEF,
const double  edepHEB,
const std::vector< double > &  eedep,
const std::vector< double > &  hefdep,
const std::vector< double > &  hebdep 
)

Definition at line 21 of file PHGCalValidInfo.cc.

References edepEETot, edepHEBTot, edepHEFTot, objects.autophobj::float, hgcEEedep, hgcHEBedep, hgcHEFedep, and i.

Referenced by hitvtxZ(), and SimG4HGCalValidation::layerAnalysis().

25  {
26  edepEETot = (float)edepEE;
27  edepHEFTot = (float)edepHEF;
28  edepHEBTot = (float)edepHEB;
29 
30  for (unsigned int i=0; i<eedep.size(); i++) {
31  double en = 0.001*eedep[i]; //GeV
32  hgcEEedep.push_back((float)en);
33  }
34 
35  for (unsigned int i=0; i<hefdep.size(); i++) {
36  double en = 0.001*hefdep[i]; //GeV
37  hgcHEFedep.push_back((float)en);
38  }
39 
40  for (unsigned int i=0; i<hebdep.size(); i++) {
41  double en = 0.001*hebdep[i]; //GeV
42  hgcHEBedep.push_back((float)en);
43  }
44 
45 }
int i
Definition: DBlmapReader.cc:9
std::vector< float > hgcHEBedep
std::vector< float > hgcEEedep
std::vector< float > hgcHEFedep
std::vector<float> PHGCalValidInfo::hebhgcEdep ( ) const
inline

Definition at line 25 of file PHGCalValidInfo.h.

References hgcHEBedep.

Referenced by HGCGeometryValidation::analyze().

25 {return hgcHEBedep;}
std::vector< float > hgcHEBedep
float PHGCalValidInfo::hebTotEdep ( ) const
inline

Definition at line 21 of file PHGCalValidInfo.h.

References edepHEBTot.

Referenced by HGCGeometryValidation::analyze().

21 {return edepHEBTot;}
std::vector<float> PHGCalValidInfo::hefhgcEdep ( ) const
inline

Definition at line 24 of file PHGCalValidInfo.h.

References hgcHEFedep.

Referenced by HGCGeometryValidation::analyze().

24 {return hgcHEFedep;}
std::vector< float > hgcHEFedep
float PHGCalValidInfo::hefTotEdep ( ) const
inline

Definition at line 20 of file PHGCalValidInfo.h.

References edepHEFTot.

Referenced by HGCGeometryValidation::analyze().

20 {return edepHEFTot;}
std::vector<unsigned int> PHGCalValidInfo::hitDets ( ) const
inline

Definition at line 26 of file PHGCalValidInfo.h.

References hgcHitDets.

Referenced by HGCGeometryValidation::analyze().

26 {return hgcHitDets;}
std::vector< unsigned int > hgcHitDets
std::vector<unsigned int> PHGCalValidInfo::hitIndex ( ) const
inline

Definition at line 27 of file PHGCalValidInfo.h.

References hgcHitIndex.

Referenced by HGCGeometryValidation::analyze().

27 {return hgcHitIndex;}
std::vector< unsigned int > hgcHitIndex
std::vector<float> PHGCalValidInfo::hitvtxX ( ) const
inline

Definition at line 28 of file PHGCalValidInfo.h.

References hgcHitVtxX.

Referenced by HGCGeometryValidation::analyze(), and hitvtxZ().

28 {return hgcHitVtxX;}
std::vector< float > hgcHitVtxX
std::vector<float> PHGCalValidInfo::hitvtxY ( ) const
inline

Definition at line 29 of file PHGCalValidInfo.h.

References hgcHitVtxY.

Referenced by HGCGeometryValidation::analyze(), and hitvtxZ().

29 {return hgcHitVtxY;}
std::vector< float > hgcHitVtxY
std::vector<float> PHGCalValidInfo::hitvtxZ ( ) const
inline

Definition at line 30 of file PHGCalValidInfo.h.

References fillhgcHits(), fillhgcLayers(), hgcHitVtxZ, hitvtxX(), and hitvtxY().

Referenced by HGCGeometryValidation::analyze().

30 {return hgcHitVtxZ;}
std::vector< float > hgcHitVtxZ

Member Data Documentation

float PHGCalValidInfo::edepEETot
private

Definition at line 45 of file PHGCalValidInfo.h.

Referenced by eeTotEdep(), and fillhgcLayers().

float PHGCalValidInfo::edepHEBTot
private

Definition at line 45 of file PHGCalValidInfo.h.

Referenced by fillhgcLayers(), and hebTotEdep().

float PHGCalValidInfo::edepHEFTot
private

Definition at line 45 of file PHGCalValidInfo.h.

Referenced by fillhgcLayers(), and hefTotEdep().

std::vector<float> PHGCalValidInfo::hgcEEedep
private

Definition at line 46 of file PHGCalValidInfo.h.

Referenced by eehgcEdep(), and fillhgcLayers().

std::vector<float> PHGCalValidInfo::hgcHEBedep
private

Definition at line 46 of file PHGCalValidInfo.h.

Referenced by fillhgcLayers(), and hebhgcEdep().

std::vector<float> PHGCalValidInfo::hgcHEFedep
private

Definition at line 46 of file PHGCalValidInfo.h.

Referenced by fillhgcLayers(), and hefhgcEdep().

std::vector<unsigned int> PHGCalValidInfo::hgcHitDets
private

Definition at line 48 of file PHGCalValidInfo.h.

Referenced by fillhgcHits(), and hitDets().

std::vector<unsigned int> PHGCalValidInfo::hgcHitIndex
private

Definition at line 48 of file PHGCalValidInfo.h.

Referenced by fillhgcHits(), and hitIndex().

std::vector<float> PHGCalValidInfo::hgcHitVtxX
private

Definition at line 47 of file PHGCalValidInfo.h.

Referenced by fillhgcHits(), and hitvtxX().

std::vector<float> PHGCalValidInfo::hgcHitVtxY
private

Definition at line 47 of file PHGCalValidInfo.h.

Referenced by fillhgcHits(), and hitvtxY().

std::vector<float> PHGCalValidInfo::hgcHitVtxZ
private

Definition at line 47 of file PHGCalValidInfo.h.

Referenced by fillhgcHits(), and hitvtxZ().