4 #include "CLHEP/Units/GlobalSystemOfUnits.h"
19 <<
" from file " <<
fName;
52 edm::LogVerbatim(
"CaloSim") <<
"CaloMeanResponse::getWeight PID " << genPID <<
" uses pion list and gets weight "
53 << weight <<
" for momentum " << genP /
GeV <<
" GeV/c";
81 edm::LogVerbatim(
"CaloSim") <<
"CaloMeanResponse::getWeight PID " << genPID <<
" uses proton list and gets "
82 <<
"weight " << weight <<
" for momentum " << genP /
GeV <<
" GeV/c";
86 edm::LogVerbatim(
"CaloSim") <<
"CaloMeanResponse::getWeight PID " << genPID <<
" is not in either lists and "
100 double ene, responseData, responseMC, ratio;
103 infile >> nene >>
npart;
108 for (
int i = 0;
i < nene;
i++) {
109 infile >> ene >> responseData >> responseMC;
111 ratio = responseData / responseMC;
119 infile >> nene >>
npart;
124 for (
int i = 0;
i < nene;
i++) {
125 infile >> ene >> responseData >> responseMC;
127 ratio = responseData / responseMC;
140 <<
" particles to use pion "
141 <<
"response map with a table of " <<
pionTable.size() <<
" data points " <<
piLast;
147 <<
"proton response map with a table of " <<
protonTable.size() <<
" data points "
Log< level::Info, true > LogVerbatim
void readResponse(std::string fName)
std::vector< int > protonTypes
virtual ~CaloMeanResponse()
double getWeight(int genPID, double genP)
std::vector< double > protonMomentum
std::vector< double > pionTable
std::vector< int > pionTypes
T getParameter(std::string const &) const
CaloMeanResponse(edm::ParameterSet const &p)
std::vector< double > protonTable
std::vector< double > pionMomentum