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 
10 typedef std::array<double, 8> radiiVec;
11 
17 public:
18  struct DoseParameters {
19  DoseParameters() : a_(0.), b_(0.), c_(0.), d_(0.), e_(0.), f_(0.), g_(0.), h_(0.), i_(0.), j_(0.) {}
20  double a_, b_, c_, d_, e_, f_, g_, h_, i_, j_;
21  };
22 
25 
26  typedef std::map<std::pair<int, int>, DoseParameters> doseParametersMap;
27 
29  void setDoseMap(const std::string &, const unsigned int);
30 
31  double getDoseValue(const int, const int, const radiiVec &, bool logVal = false);
32  double getFluenceValue(const int, const int, const radiiVec &, bool logVal = false);
33 
34  const unsigned int &algo() { return algo_; }
35  const HGCalGeometry *geom() { return hgcalGeom_; }
36  const HGCalTopology *topo() { return hgcalTopology_; }
37  const HGCalDDDConstants *ddd() { return hgcalDDD_; }
38 
39  inline const doseParametersMap &getDoseMap() { return doseMap_; }
40 
41 private:
43 
44  unsigned int algo_;
49  //conversion from grey to krad
50  const double grayToKrad_ = 0.1;
51 };
52 
53 #endif
radiiVec
std::array< double, 8 > radiiVec
Definition: HGCalRadiationMap.h:10
HGCalRadiationMap::HGCalRadiationMap
HGCalRadiationMap()
Definition: HGCalRadiationMap.h:23
HGCalRadiationMap::readDosePars
doseParametersMap readDosePars(const std::string &)
Definition: HGCalRadiationMap.cc:35
HGCalRadiationMap::~HGCalRadiationMap
~HGCalRadiationMap()
Definition: HGCalRadiationMap.h:24
HGCScintillatorDetId.h
HGCalRadiationMap::doseMap_
doseParametersMap doseMap_
Definition: HGCalRadiationMap.h:48
HGCalRadiationMap::getFluenceValue
double getFluenceValue(const int, const int, const radiiVec &, bool logVal=false)
Definition: HGCalRadiationMap.cc:27
HGCalRadiationMap::DoseParameters::a_
double a_
Definition: HGCalRadiationMap.h:20
HGCalRadiationMap
parses a txt file with dose/fluence parameters and provides functions for noise, etc.
Definition: HGCalRadiationMap.h:16
HGCalRadiationMap::doseParametersMap
std::map< std::pair< int, int >, DoseParameters > doseParametersMap
Definition: HGCalRadiationMap.h:24
HGCalRadiationMap::algo
const unsigned int & algo()
Definition: HGCalRadiationMap.h:34
HGCalRadiationMap::geom
const HGCalGeometry * geom()
Definition: HGCalRadiationMap.h:35
HGCalRadiationMap::DoseParameters::d_
double d_
Definition: HGCalRadiationMap.h:20
HGCalRadiationMap::hgcalGeom_
const HGCalGeometry * hgcalGeom_
Definition: HGCalRadiationMap.h:45
HGCalRadiationMap::setGeometry
void setGeometry(const CaloSubdetectorGeometry *)
Definition: HGCalRadiationMap.cc:12
HGCalRadiationMap::DoseParameters::DoseParameters
DoseParameters()
Definition: HGCalRadiationMap.h:19
HGCalRadiationMap::DoseParameters::h_
double h_
Definition: HGCalRadiationMap.h:20
HcalGeometry.h
HGCalDDDConstants
Definition: HGCalDDDConstants.h:25
HGCalRadiationMap::DoseParameters::e_
double e_
Definition: HGCalRadiationMap.h:20
HGCalRadiationMap::hgcalDDD_
const HGCalDDDConstants * hgcalDDD_
Definition: HGCalRadiationMap.h:47
HGCalRadiationMap::DoseParameters::g_
double g_
Definition: HGCalRadiationMap.h:20
HGCalRadiationMap::DoseParameters::c_
double c_
Definition: HGCalRadiationMap.h:20
HGCalRadiationMap::DoseParameters::f_
double f_
Definition: HGCalRadiationMap.h:20
HGCalGeometry
Definition: HGCalGeometry.h:30
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HGCalGeometry.h
HGCalRadiationMap::grayToKrad_
const double grayToKrad_
Definition: HGCalRadiationMap.h:50
HGCalRadiationMap::setDoseMap
void setDoseMap(const std::string &, const unsigned int)
Definition: HGCalRadiationMap.cc:6
HGCalRadiationMap::DoseParameters::j_
double j_
Definition: HGCalRadiationMap.h:20
HGCalRadiationMap::DoseParameters::i_
double i_
Definition: HGCalRadiationMap.h:20
HGCalRadiationMap::getDoseValue
double getDoseValue(const int, const int, const radiiVec &, bool logVal=false)
Definition: HGCalRadiationMap.cc:19
HGCalTopology
Definition: HGCalTopology.h:12
HGCalRadiationMap::algo_
unsigned int algo_
Definition: HGCalRadiationMap.h:44
HGCalRadiationMap::DoseParameters
Definition: HGCalRadiationMap.h:18
HGCalRadiationMap::getDoseMap
const doseParametersMap & getDoseMap()
Definition: HGCalRadiationMap.h:39
HGCalRadiationMap::hgcalTopology_
const HGCalTopology * hgcalTopology_
Definition: HGCalRadiationMap.h:46
CaloSubdetectorGeometry
Definition: CaloSubdetectorGeometry.h:22
HGCalRadiationMap::ddd
const HGCalDDDConstants * ddd()
Definition: HGCalRadiationMap.h:37
HGCalRadiationMap::DoseParameters::b_
double b_
Definition: HGCalRadiationMap.h:20
HGCalRadiationMap::topo
const HGCalTopology * topo()
Definition: HGCalRadiationMap.h:36