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, const double edepHEF,
22  const double edepHEB,
23  const std::vector<double> & eedep,
24  const std::vector<double> & hefdep,
25  const std::vector<double> & hebdep) {
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 }
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