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::PHGCalValidInfo ( )
inline

Definition at line 14 of file PHGCalValidInfo.h.

14 : edepEETot(0.0), edepHEFTot(0.0), edepHEBTot(0.0) {}

◆ ~PHGCalValidInfo()

virtual PHGCalValidInfo::~PHGCalValidInfo ( )
inlinevirtual

Definition at line 15 of file PHGCalValidInfo.h.

15 {}

Member Function Documentation

◆ eehgcEdep()

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

Definition at line 21 of file PHGCalValidInfo.h.

21 { return hgcEEedep; }

References hgcEEedep.

Referenced by HGCGeometryValidation::analyze().

◆ eeTotEdep()

float PHGCalValidInfo::eeTotEdep ( ) const
inline

Definition at line 17 of file PHGCalValidInfo.h.

17 { return edepEETot; }

References edepEETot.

Referenced by HGCGeometryValidation::analyze().

◆ fillhgcHits()

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.

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 }

References hgcHitDets, hgcHitIndex, hgcHitVtxX, hgcHitVtxY, hgcHitVtxZ, hitvtxX(), hitvtxY(), hitvtxZ(), and mps_fire::i.

Referenced by SimG4HGCalValidation::layerAnalysis().

◆ fillhgcLayers()

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.

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 }

References edepEETot, edepHEBTot, edepHEFTot, dqmMemoryStats::float, hgcEEedep, hgcHEBedep, hgcHEFedep, and mps_fire::i.

Referenced by SimG4HGCalValidation::layerAnalysis().

◆ hebhgcEdep()

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

Definition at line 23 of file PHGCalValidInfo.h.

23 { return hgcHEBedep; }

References hgcHEBedep.

Referenced by HGCGeometryValidation::analyze().

◆ hebTotEdep()

float PHGCalValidInfo::hebTotEdep ( ) const
inline

Definition at line 19 of file PHGCalValidInfo.h.

19 { return edepHEBTot; }

References edepHEBTot.

Referenced by HGCGeometryValidation::analyze().

◆ hefhgcEdep()

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

Definition at line 22 of file PHGCalValidInfo.h.

22 { return hgcHEFedep; }

References hgcHEFedep.

Referenced by HGCGeometryValidation::analyze().

◆ hefTotEdep()

float PHGCalValidInfo::hefTotEdep ( ) const
inline

Definition at line 18 of file PHGCalValidInfo.h.

18 { return edepHEFTot; }

References edepHEFTot.

Referenced by HGCGeometryValidation::analyze().

◆ hitDets()

std::vector<unsigned int> PHGCalValidInfo::hitDets ( ) const
inline

Definition at line 24 of file PHGCalValidInfo.h.

24 { return hgcHitDets; }

References hgcHitDets.

Referenced by HGCGeometryValidation::analyze().

◆ hitIndex()

std::vector<unsigned int> PHGCalValidInfo::hitIndex ( ) const
inline

Definition at line 25 of file PHGCalValidInfo.h.

25 { return hgcHitIndex; }

References hgcHitIndex.

Referenced by HGCGeometryValidation::analyze().

◆ hitvtxX()

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

Definition at line 26 of file PHGCalValidInfo.h.

26 { return hgcHitVtxX; }

References hgcHitVtxX.

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

◆ hitvtxY()

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

Definition at line 27 of file PHGCalValidInfo.h.

27 { return hgcHitVtxY; }

References hgcHitVtxY.

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

◆ hitvtxZ()

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

Definition at line 28 of file PHGCalValidInfo.h.

28 { return hgcHitVtxZ; }

References hgcHitVtxZ.

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

Member Data Documentation

◆ edepEETot

float PHGCalValidInfo::edepEETot
private

Definition at line 44 of file PHGCalValidInfo.h.

Referenced by eeTotEdep(), and fillhgcLayers().

◆ edepHEBTot

float PHGCalValidInfo::edepHEBTot
private

Definition at line 44 of file PHGCalValidInfo.h.

Referenced by fillhgcLayers(), and hebTotEdep().

◆ edepHEFTot

float PHGCalValidInfo::edepHEFTot
private

Definition at line 44 of file PHGCalValidInfo.h.

Referenced by fillhgcLayers(), and hefTotEdep().

◆ hgcEEedep

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

Definition at line 45 of file PHGCalValidInfo.h.

Referenced by eehgcEdep(), and fillhgcLayers().

◆ hgcHEBedep

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

Definition at line 45 of file PHGCalValidInfo.h.

Referenced by fillhgcLayers(), and hebhgcEdep().

◆ hgcHEFedep

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

Definition at line 45 of file PHGCalValidInfo.h.

Referenced by fillhgcLayers(), and hefhgcEdep().

◆ hgcHitDets

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

Definition at line 47 of file PHGCalValidInfo.h.

Referenced by fillhgcHits(), and hitDets().

◆ hgcHitIndex

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

Definition at line 47 of file PHGCalValidInfo.h.

Referenced by fillhgcHits(), and hitIndex().

◆ hgcHitVtxX

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

Definition at line 46 of file PHGCalValidInfo.h.

Referenced by fillhgcHits(), and hitvtxX().

◆ hgcHitVtxY

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

Definition at line 46 of file PHGCalValidInfo.h.

Referenced by fillhgcHits(), and hitvtxY().

◆ hgcHitVtxZ

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

Definition at line 46 of file PHGCalValidInfo.h.

Referenced by fillhgcHits(), and hitvtxZ().

mps_fire.i
i
Definition: mps_fire.py:428
dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
PHGCalValidInfo::hgcHitVtxZ
std::vector< float > hgcHitVtxZ
Definition: PHGCalValidInfo.h:46
PHGCalValidInfo::hgcEEedep
std::vector< float > hgcEEedep
Definition: PHGCalValidInfo.h:45
PHGCalValidInfo::hgcHitVtxX
std::vector< float > hgcHitVtxX
Definition: PHGCalValidInfo.h:46
PHGCalValidInfo::edepEETot
float edepEETot
Definition: PHGCalValidInfo.h:44
PHGCalValidInfo::hgcHEFedep
std::vector< float > hgcHEFedep
Definition: PHGCalValidInfo.h:45
PHGCalValidInfo::hgcHEBedep
std::vector< float > hgcHEBedep
Definition: PHGCalValidInfo.h:45
PHGCalValidInfo::edepHEFTot
float edepHEFTot
Definition: PHGCalValidInfo.h:44
PHGCalValidInfo::hgcHitVtxY
std::vector< float > hgcHitVtxY
Definition: PHGCalValidInfo.h:46
PHGCalValidInfo::hgcHitIndex
std::vector< unsigned int > hgcHitIndex
Definition: PHGCalValidInfo.h:47
PHGCalValidInfo::hitvtxY
std::vector< float > hitvtxY() const
Definition: PHGCalValidInfo.h:27
PHGCalValidInfo::hitvtxX
std::vector< float > hitvtxX() const
Definition: PHGCalValidInfo.h:26
PHGCalValidInfo::hitvtxZ
std::vector< float > hitvtxZ() const
Definition: PHGCalValidInfo.h:28
PHGCalValidInfo::hgcHitDets
std::vector< unsigned int > hgcHitDets
Definition: PHGCalValidInfo.h:47
PHGCalValidInfo::edepHEBTot
float edepHEBTot
Definition: PHGCalValidInfo.h:44