parses a txt file with dose/fluence parameters and provides functions for noise, etc. More...
#include <HGCalRadiationMap.h>
Classes | |
struct | DoseParameters |
Public Types | |
typedef std::map< std::pair< int, int >, DoseParameters > | doseParametersMap |
Public Member Functions | |
const unsigned int & | algo () |
double | computeRadius (const HGCScintillatorDetId &) |
const HGCalDDDConstants * | ddd () |
const HGCalGeometry * | geom () |
const doseParametersMap & | getDoseMap () |
double | getDoseValue (const int, const int, const double, bool logVal=false) |
double | getFluenceValue (const int, const int, const double, bool logVal=false) |
HGCalRadiationMap () | |
void | setDoseMap (const std::string &, const unsigned int) |
void | setFluenceScaleFactor (double val) |
void | setGeometry (const CaloSubdetectorGeometry *) |
const HGCalTopology * | topo () |
~HGCalRadiationMap () | |
Private Member Functions | |
doseParametersMap | readDosePars (const std::string &) |
Private Attributes | |
unsigned int | algo_ |
doseParametersMap | doseMap_ |
double | fluenceSFlog10_ |
const double | grayToKrad_ = 0.1 |
const HGCalDDDConstants * | hgcalDDD_ |
const HGCalGeometry * | hgcalGeom_ |
const HGCalTopology * | hgcalTopology_ |
parses a txt file with dose/fluence parameters and provides functions for noise, etc.
Definition at line 14 of file HGCalRadiationMap.h.
typedef std::map<std::pair<int, int>, DoseParameters> HGCalRadiationMap::doseParametersMap |
Definition at line 23 of file HGCalRadiationMap.h.
HGCalRadiationMap::HGCalRadiationMap | ( | ) |
Definition at line 6 of file HGCalRadiationMap.cc.
|
inline |
Definition at line 23 of file HGCalRadiationMap.h.
|
inline |
Definition at line 35 of file HGCalRadiationMap.h.
References algo_.
Referenced by setDoseMap(), and HGCalSciNoiseMap::setDoseMap().
double HGCalRadiationMap::computeRadius | ( | const HGCScintillatorDetId & | cellId | ) |
Definition at line 22 of file HGCalRadiationMap.cc.
References geom(), HGCalGeometry::getPosition(), funct::pow(), mathSSE::sqrt(), PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
Referenced by HGCHEbackDigitizer::runRealisticDigitizer().
|
inline |
|
inline |
Definition at line 36 of file HGCalRadiationMap.h.
References hgcalGeom_.
Referenced by computeRadius(), and setGeometry().
|
inline |
Definition at line 40 of file HGCalRadiationMap.h.
References doseMap_.
Referenced by HGCalSciNoiseMap::scaleByDose().
double HGCalRadiationMap::getDoseValue | ( | const int | subdet, |
const int | layer, | ||
const double | radius, | ||
bool | logVal = false |
||
) |
Definition at line 28 of file HGCalRadiationMap.cc.
References doseMap_, grayToKrad_, crabWrapper::key, phase1PixelTopology::layer, dqm-mbProfile::log, funct::pow(), alignCSCRings::r, diffTwoXMLs::r2, and CosmicsPD_Skims::radius.
Referenced by HGCalSciNoiseMap::scaleByDose().
double HGCalRadiationMap::getFluenceValue | ( | const int | subdet, |
const int | layer, | ||
const double | radius, | ||
bool | logVal = false |
||
) |
Definition at line 47 of file HGCalRadiationMap.cc.
References doseMap_, fluenceSFlog10_, crabWrapper::key, phase1PixelTopology::layer, funct::pow(), alignCSCRings::r, diffTwoXMLs::r2, and CosmicsPD_Skims::radius.
Referenced by HGCalSciNoiseMap::scaleByDose().
|
private |
Definition at line 63 of file HGCalRadiationMap.cc.
References HGCalRadiationMap::DoseParameters::a_, HGCalRadiationMap::DoseParameters::b_, HGCalRadiationMap::DoseParameters::c_, HGCalRadiationMap::DoseParameters::d_, HGCalRadiationMap::DoseParameters::doff_, HGCalRadiationMap::DoseParameters::e_, Exception, HGCalRadiationMap::DoseParameters::f_, HGCalRadiationMap::DoseParameters::foff_, personalPlayback::fp, reco_skim_cfg_mod::fullpath, HGCalRadiationMap::DoseParameters::g_, HGCalRadiationMap::DoseParameters::h_, HGCalRadiationMap::DoseParameters::i_, timingPdfMaker::infile, HGCalRadiationMap::DoseParameters::j_, crabWrapper::key, phase1PixelTopology::layer, mps_splice::line, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by setDoseMap().
void HGCalRadiationMap::setDoseMap | ( | const std::string & | fullpath, |
const unsigned int | algo | ||
) |
Definition at line 9 of file HGCalRadiationMap.cc.
References algo(), algo_, doseMap_, reco_skim_cfg_mod::fullpath, and readDosePars().
Referenced by HGCalSciNoiseMap::setDoseMap().
|
inline |
Definition at line 41 of file HGCalRadiationMap.h.
References fluenceSFlog10_, and heppy_batch::val.
Referenced by HGCDigitizerBase::HGCDigitizerBase(), and HGCHEbackDigitizer::HGCHEbackDigitizer().
void HGCalRadiationMap::setGeometry | ( | const CaloSubdetectorGeometry * | geom | ) |
Definition at line 15 of file HGCalRadiationMap.cc.
References HGCalTopology::dddConstants(), geom(), hgcalDDD_, hgcalGeom_, hgcalTopology_, and HGCalGeometry::topology().
Referenced by HGCHEbackDigitizer::runRealisticDigitizer().
|
inline |
Definition at line 37 of file HGCalRadiationMap.h.
References hgcalTopology_.
|
private |
Definition at line 46 of file HGCalRadiationMap.h.
Referenced by algo(), and setDoseMap().
|
private |
Definition at line 50 of file HGCalRadiationMap.h.
Referenced by getDoseMap(), getDoseValue(), getFluenceValue(), and setDoseMap().
|
private |
Definition at line 53 of file HGCalRadiationMap.h.
Referenced by getFluenceValue(), and setFluenceScaleFactor().
|
private |
Definition at line 52 of file HGCalRadiationMap.h.
Referenced by getDoseValue().
|
private |
Definition at line 49 of file HGCalRadiationMap.h.
Referenced by ddd(), and setGeometry().
|
private |
Definition at line 47 of file HGCalRadiationMap.h.
Referenced by geom(), and setGeometry().
|
private |
Definition at line 48 of file HGCalRadiationMap.h.
Referenced by setGeometry(), and topo().