4 #include <CLHEP/Units/SystemOfUnits.h> 20 <<
" from file " <<
fName;
53 edm::LogVerbatim(
"CaloSim") <<
"CaloMeanResponse::getWeight PID " << genPID <<
" uses pion list and gets weight " 54 <<
weight <<
" for momentum " << genP / GeV <<
" GeV/c";
82 edm::LogVerbatim(
"CaloSim") <<
"CaloMeanResponse::getWeight PID " << genPID <<
" uses proton list and gets " 83 <<
"weight " <<
weight <<
" for momentum " << genP / GeV <<
" GeV/c";
87 edm::LogVerbatim(
"CaloSim") <<
"CaloMeanResponse::getWeight PID " << genPID <<
" is not in either lists and " 100 int nene,
npart, pid;
101 double ene, responseData, responseMC, ratio;
109 for (
int i = 0;
i < nene;
i++) {
110 infile >> ene >> responseData >> responseMC;
112 ratio = responseData / responseMC;
125 for (
int i = 0;
i < nene;
i++) {
126 infile >> ene >> responseData >> responseMC;
128 ratio = responseData / responseMC;
141 <<
" particles to use pion " 142 <<
"response map with a table of " <<
pionTable.size() <<
" data points " <<
piLast;
148 <<
"proton response map with a table of " <<
protonTable.size() <<
" data points " Log< level::Info, true > LogVerbatim
T getParameter(std::string const &) const
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
CaloMeanResponse(edm::ParameterSet const &p)
std::vector< double > protonTable
std::vector< double > pionMomentum