Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:28:54

0001 #include "SimDataFormats/ValidationFormats/interface/PHGCalValidInfo.h"
0002 
0003 ///////////////////////////////////////////////////////////////////////////////
0004 //// PHGCalValidInfo
0005 ///////////////////////////////////////////////////////////////////////////////
0006 
0007 void PHGCalValidInfo::fillhgcHits(const std::vector<unsigned int>& hitdets,
0008                                   const std::vector<unsigned int>& hitindex,
0009                                   const std::vector<double>& hitvtxX,
0010                                   const std::vector<double>& hitvtxY,
0011                                   const std::vector<double>& hitvtxZ) {
0012   for (unsigned int i = 0; i < hitvtxX.size(); i++) {
0013     hgcHitVtxX.push_back((float)hitvtxX.at(i));
0014     hgcHitVtxY.push_back((float)hitvtxY.at(i));
0015     hgcHitVtxZ.push_back((float)hitvtxZ.at(i));
0016     hgcHitDets.push_back(hitdets.at(i));
0017     hgcHitIndex.push_back(hitindex.at(i));
0018   }
0019 }
0020 
0021 void PHGCalValidInfo::fillhgcLayers(const double edepEE,
0022                                     const double edepHEF,
0023                                     const double edepHEB,
0024                                     const std::vector<double>& eedep,
0025                                     const std::vector<double>& hefdep,
0026                                     const std::vector<double>& hebdep) {
0027   edepEETot = (float)edepEE;
0028   edepHEFTot = (float)edepHEF;
0029   edepHEBTot = (float)edepHEB;
0030 
0031   for (unsigned int i = 0; i < eedep.size(); i++) {
0032     double en = 0.001 * eedep[i];  //GeV
0033     hgcEEedep.push_back((float)en);
0034   }
0035 
0036   for (unsigned int i = 0; i < hefdep.size(); i++) {
0037     double en = 0.001 * hefdep[i];  //GeV
0038     hgcHEFedep.push_back((float)en);
0039   }
0040 
0041   for (unsigned int i = 0; i < hebdep.size(); i++) {
0042     double en = 0.001 * hebdep[i];  //GeV
0043     hgcHEBedep.push_back((float)en);
0044   }
0045 }