CMS 3D CMS Logo

PHGCalValidInfo.cc
Go to the documentation of this file.
2 
6 
7 void PHGCalValidInfo::fillhgcHits(const std::vector<unsigned int>& hitdets,
8  const std::vector<unsigned int>& hitindex,
9  const std::vector<double>& hitvtxX,
10  const std::vector<double>& hitvtxY,
11  const std::vector<double>& hitvtxZ) {
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 }
20 
21 void PHGCalValidInfo::fillhgcLayers(const double edepEE,
22  const double edepHEF,
23  const double edepHEB,
24  const std::vector<double>& eedep,
25  const std::vector<double>& hefdep,
26  const std::vector<double>& hebdep) {
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 }
mps_fire.i
i
Definition: mps_fire.py:355
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::fillhgcLayers
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)
Definition: PHGCalValidInfo.cc:21
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::fillhgcHits
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)
Definition: PHGCalValidInfo.cc:7
PHGCalValidInfo.h
PHGCalValidInfo::hgcHitDets
std::vector< unsigned int > hgcHitDets
Definition: PHGCalValidInfo.h:47
PHGCalValidInfo::edepHEBTot
float edepHEBTot
Definition: PHGCalValidInfo.h:44