29 std::pair<int, int>
key(subdet, layer);
32 return logVal ? -10. : 0.;
40 double cellDoseLog10 =
48 std::pair<int, int>
key(subdet, layer);
55 double cellFluenceLog10 =
59 return logVal ? cellFluenceLog10 * M_LN10 :
std::pow(10, cellFluenceLog10);
74 throw cms::Exception(
"FileNotFound") <<
"Unable to open '" << fullpath <<
"'" << std::endl;
77 while (getline(
infile, line)) {
83 std::stringstream linestream(line);
84 linestream >> subdet >> layer >> dosePars.
a_ >> dosePars.
b_ >> dosePars.
c_ >> dosePars.
d_ >> dosePars.
e_ >>
85 dosePars.
doff_ >> dosePars.
f_ >> dosePars.
g_ >> dosePars.
h_ >> dosePars.
i_ >> dosePars.
j_ >> dosePars.
foff_;
87 std::pair<int, int>
key(subdet, layer);
88 result[
key] = dosePars;
doseParametersMap readDosePars(const std::string &)
const HGCalGeometry * hgcalGeom_
static std::vector< std::string > checklist log
std::map< std::pair< int, int >, DoseParameters > doseParametersMap
const unsigned int & algo()
double getDoseValue(const int, const int, const double, bool logVal=false)
void setGeometry(const CaloSubdetectorGeometry *)
GlobalPoint getPosition(const DetId &id) const
constexpr std::array< uint8_t, layerIndexSize > layer
const HGCalTopology & topology() const
const HGCalDDDConstants * hgcalDDD_
tuple key
prepare the HTCondor submission files and eventually submit them
double getFluenceValue(const int, const int, const double, bool logVal=false)
const HGCalDDDConstants & dddConstants() const
void setDoseMap(const std::string &, const unsigned int)
double computeRadius(const HGCScintillatorDetId &)
std::string fullPath() const
const HGCalTopology * hgcalTopology_
doseParametersMap doseMap_
Power< A, B >::type pow(const A &a, const B &b)
const HGCalGeometry * geom()