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 14 of file PHGCalValidInfo.h.

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

Definition at line 15 of file PHGCalValidInfo.h.

15 {}

Member Function Documentation

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

Definition at line 21 of file PHGCalValidInfo.h.

References hgcEEedep.

Referenced by HGCGeometryValidation::analyze().

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

Definition at line 17 of file PHGCalValidInfo.h.

References edepEETot.

Referenced by HGCGeometryValidation::analyze().

17 { 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 mps_fire::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
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, dqmMemoryStats::float, hgcEEedep, hgcHEBedep, hgcHEFedep, and mps_fire::i.

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

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

Definition at line 23 of file PHGCalValidInfo.h.

References hgcHEBedep.

Referenced by HGCGeometryValidation::analyze().

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

Definition at line 19 of file PHGCalValidInfo.h.

References edepHEBTot.

Referenced by HGCGeometryValidation::analyze().

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

Definition at line 22 of file PHGCalValidInfo.h.

References hgcHEFedep.

Referenced by HGCGeometryValidation::analyze().

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

Definition at line 18 of file PHGCalValidInfo.h.

References edepHEFTot.

Referenced by HGCGeometryValidation::analyze().

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

Definition at line 24 of file PHGCalValidInfo.h.

References hgcHitDets.

Referenced by HGCGeometryValidation::analyze().

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

Definition at line 25 of file PHGCalValidInfo.h.

References hgcHitIndex.

Referenced by HGCGeometryValidation::analyze().

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

Definition at line 26 of file PHGCalValidInfo.h.

References hgcHitVtxX.

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

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

Definition at line 27 of file PHGCalValidInfo.h.

References hgcHitVtxY.

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

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

Definition at line 28 of file PHGCalValidInfo.h.

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

Referenced by HGCGeometryValidation::analyze().

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

Member Data Documentation

float PHGCalValidInfo::edepEETot
private

Definition at line 44 of file PHGCalValidInfo.h.

Referenced by eeTotEdep(), and fillhgcLayers().

float PHGCalValidInfo::edepHEBTot
private

Definition at line 44 of file PHGCalValidInfo.h.

Referenced by fillhgcLayers(), and hebTotEdep().

float PHGCalValidInfo::edepHEFTot
private

Definition at line 44 of file PHGCalValidInfo.h.

Referenced by fillhgcLayers(), and hefTotEdep().

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

Definition at line 45 of file PHGCalValidInfo.h.

Referenced by eehgcEdep(), and fillhgcLayers().

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

Definition at line 45 of file PHGCalValidInfo.h.

Referenced by fillhgcLayers(), and hebhgcEdep().

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

Definition at line 45 of file PHGCalValidInfo.h.

Referenced by fillhgcLayers(), and hefhgcEdep().

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

Definition at line 47 of file PHGCalValidInfo.h.

Referenced by fillhgcHits(), and hitDets().

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

Definition at line 47 of file PHGCalValidInfo.h.

Referenced by fillhgcHits(), and hitIndex().

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

Definition at line 46 of file PHGCalValidInfo.h.

Referenced by fillhgcHits(), and hitvtxX().

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

Definition at line 46 of file PHGCalValidInfo.h.

Referenced by fillhgcHits(), and hitvtxY().

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

Definition at line 46 of file PHGCalValidInfo.h.

Referenced by fillhgcHits(), and hitvtxZ().