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 }
std::vector< float > hgcHitVtxY
std::vector< float > hgcHitVtxX
std::vector< float > hgcHEBedep
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< unsigned int > hgcHitDets
std::vector< float > hgcHitVtxZ
std::vector< unsigned int > hgcHitIndex
std::vector< float > hgcEEedep
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)
std::vector< float > hgcHEFedep