CMS 3D CMS Logo

HGCalRadiationMap.h
Go to the documentation of this file.
1 #ifndef simcalorimetry_hgcalsimalgos_hgcalradiationmap
2 #define simcalorimetry_hgcalsimalgos_hgcalradiationmap
3 
7 #include "vdt/vdtMath.h"
8 #include <string>
9 
15 public:
16  struct DoseParameters {
18  : a_(0.), b_(0.), c_(0.), d_(0.), e_(0.), doff_(0.), f_(0.), g_(0.), h_(0.), i_(0.), j_(0.), foff_(0.) {}
19  double a_, b_, c_, d_, e_, doff_, f_, g_, h_, i_, j_, foff_;
20  };
21 
24 
25  typedef std::map<std::pair<int, int>, DoseParameters> doseParametersMap;
26 
28  void setDoseMap(const std::string &, const unsigned int);
29 
30  double computeRadius(const HGCScintillatorDetId &);
31 
32  double getDoseValue(const int, const int, const double, bool logVal = false);
33  double getFluenceValue(const int, const int, const double, bool logVal = false);
34 
35  const unsigned int &algo() { return algo_; }
36  const HGCalGeometry *geom() { return hgcalGeom_; }
37  const HGCalTopology *topo() { return hgcalTopology_; }
38  const HGCalDDDConstants *ddd() { return hgcalDDD_; }
39 
40  inline const doseParametersMap &getDoseMap() { return doseMap_; }
41  inline void setFluenceScaleFactor(double val) { fluenceSFlog10_ = log10(val); }
42 
43 private:
45 
46  unsigned int algo_;
51  //conversion from grey to krad
52  const double grayToKrad_ = 0.1;
54 };
55 
56 #endif
HGCalRadiationMap::HGCalRadiationMap
HGCalRadiationMap()
Definition: HGCalRadiationMap.cc:6
HGCalRadiationMap::DoseParameters::doff_
double doff_
Definition: HGCalRadiationMap.h:19
HGCalRadiationMap::readDosePars
doseParametersMap readDosePars(const std::string &)
Definition: HGCalRadiationMap.cc:59
HGCalRadiationMap::~HGCalRadiationMap
~HGCalRadiationMap()
Definition: HGCalRadiationMap.h:23
HGCScintillatorDetId.h
HGCalRadiationMap::doseMap_
doseParametersMap doseMap_
Definition: HGCalRadiationMap.h:50
HGCalRadiationMap::DoseParameters::a_
double a_
Definition: HGCalRadiationMap.h:19
HGCalRadiationMap
parses a txt file with dose/fluence parameters and provides functions for noise, etc.
Definition: HGCalRadiationMap.h:14
HGCalRadiationMap::doseParametersMap
std::map< std::pair< int, int >, DoseParameters > doseParametersMap
Definition: HGCalRadiationMap.h:23
HGCalRadiationMap::algo
const unsigned int & algo()
Definition: HGCalRadiationMap.h:35
HGCalRadiationMap::geom
const HGCalGeometry * geom()
Definition: HGCalRadiationMap.h:36
HGCalRadiationMap::getDoseValue
double getDoseValue(const int, const int, const double, bool logVal=false)
Definition: HGCalRadiationMap.cc:28
HGCalRadiationMap::DoseParameters::d_
double d_
Definition: HGCalRadiationMap.h:19
HGCalRadiationMap::hgcalGeom_
const HGCalGeometry * hgcalGeom_
Definition: HGCalRadiationMap.h:47
HGCalRadiationMap::setGeometry
void setGeometry(const CaloSubdetectorGeometry *)
Definition: HGCalRadiationMap.cc:15
HGCalRadiationMap::DoseParameters::DoseParameters
DoseParameters()
Definition: HGCalRadiationMap.h:17
HGCalRadiationMap::DoseParameters::h_
double h_
Definition: HGCalRadiationMap.h:19
HcalGeometry.h
HGCalDDDConstants
Definition: HGCalDDDConstants.h:26
HGCalRadiationMap::DoseParameters::e_
double e_
Definition: HGCalRadiationMap.h:19
HGCalRadiationMap::hgcalDDD_
const HGCalDDDConstants * hgcalDDD_
Definition: HGCalRadiationMap.h:49
HGCalRadiationMap::DoseParameters::g_
double g_
Definition: HGCalRadiationMap.h:19
HGCalRadiationMap::DoseParameters::c_
double c_
Definition: HGCalRadiationMap.h:19
HGCalRadiationMap::fluenceSFlog10_
double fluenceSFlog10_
Definition: HGCalRadiationMap.h:53
HGCalRadiationMap::DoseParameters::f_
double f_
Definition: HGCalRadiationMap.h:19
HGCalGeometry
Definition: HGCalGeometry.h:29
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HGCalGeometry.h
HGCalRadiationMap::grayToKrad_
const double grayToKrad_
Definition: HGCalRadiationMap.h:52
HGCalRadiationMap::setDoseMap
void setDoseMap(const std::string &, const unsigned int)
Definition: HGCalRadiationMap.cc:9
HGCalRadiationMap::DoseParameters::j_
double j_
Definition: HGCalRadiationMap.h:19
HGCalRadiationMap::DoseParameters::i_
double i_
Definition: HGCalRadiationMap.h:19
HGCalRadiationMap::DoseParameters::foff_
double foff_
Definition: HGCalRadiationMap.h:19
HGCalTopology
Definition: HGCalTopology.h:12
HGCalRadiationMap::setFluenceScaleFactor
void setFluenceScaleFactor(double val)
Definition: HGCalRadiationMap.h:41
HGCalRadiationMap::getFluenceValue
double getFluenceValue(const int, const int, const double, bool logVal=false)
Definition: HGCalRadiationMap.cc:43
heppy_batch.val
val
Definition: heppy_batch.py:351
HGCalRadiationMap::algo_
unsigned int algo_
Definition: HGCalRadiationMap.h:46
HGCScintillatorDetId
Definition: HGCScintillatorDetId.h:23
HGCalRadiationMap::DoseParameters
Definition: HGCalRadiationMap.h:16
HGCalRadiationMap::getDoseMap
const doseParametersMap & getDoseMap()
Definition: HGCalRadiationMap.h:40
HGCalRadiationMap::hgcalTopology_
const HGCalTopology * hgcalTopology_
Definition: HGCalRadiationMap.h:48
HGCalRadiationMap::computeRadius
double computeRadius(const HGCScintillatorDetId &)
Definition: HGCalRadiationMap.cc:22
CaloSubdetectorGeometry
Definition: CaloSubdetectorGeometry.h:22
HGCalRadiationMap::ddd
const HGCalDDDConstants * ddd()
Definition: HGCalRadiationMap.h:38
HGCalRadiationMap::DoseParameters::b_
double b_
Definition: HGCalRadiationMap.h:19
HGCalRadiationMap::topo
const HGCalTopology * topo()
Definition: HGCalRadiationMap.h:37