#include <HcalRecHitsMaker.h>
Public Member Functions | |
HcalRecHitsMaker (edm::ParameterSet const &p, int, const RandomEngine *random) | |
void | init (const edm::EventSetup &es, bool dodigis, bool domiscalib) |
void | loadHcalRecHits (edm::Event &iEvent, const HcalTopology &, HBHERecHitCollection &hbheHits, HBHEDigiCollection &hbheDigis) |
void | loadHcalRecHits (edm::Event &iEvent, const HcalTopology &, HORecHitCollection &ho, HODigiCollection &hoDigis) |
void | loadHcalRecHits (edm::Event &iEvent, const HcalTopology &, HFRecHitCollection &hfHits, HFDigiCollection &hfDigis) |
~HcalRecHitsMaker () | |
Private Member Functions | |
void | clean () |
void | cleanSubDet (std::vector< float > &hits, std::vector< int > &cells) |
unsigned | createVectorOfSubdetectorCells (const CaloGeometry &, const HcalTopology &, int subdetn, std::vector< int > &) |
unsigned | createVectorsOfCells (const edm::EventSetup &es) |
int | fCtoAdc (double fc) const |
void | Fill (int id, float energy, std::vector< int > &myHits, float noise, float correctionfactor) |
double | fractionOOT (int time_slice) |
void | loadPCaloHits (const edm::Event &iEvent, const HcalTopology &) |
double | noiseInfCfromDB (const HcalDbService *conditions, const HcalDetId &detId) |
void | noisify () |
unsigned | noisifySubdet (std::vector< float > &theMap, std::vector< int > &theHits, const std::vector< int > &thecells, unsigned ncells, double hcalHotFraction_, const GaussianTail *, double sigma, double threshold, double correctionfactor) |
Private Attributes | |
std::vector< double > | corrfac_ |
unsigned | det_ |
bool | doDigis_ |
bool | doMiscalib_ |
bool | doSaturation_ |
std::vector< int > | firedCells_ |
std::string | hcalfileinpath_ |
std::vector< double > | hcalHotFraction_ |
std::vector< float > | hcalRecHits_ |
edm::InputTag | inputCol_ |
std::vector< GaussianTail * > | myGaussianTailGenerators_ |
const HcalRespCorrs * | myRespCorr |
unsigned | nhbcells_ |
unsigned | nhecells_ |
unsigned | nhfcells_ |
unsigned | nhocells_ |
unsigned | nnoise_ |
std::vector< double > | noise_ |
std::vector< bool > | noiseFromDb_ |
const RandomEngine * | random_ |
double | refactor_ |
double | refactor_mean_ |
std::vector< double > | threshold_ |
Static Private Attributes | |
static std::vector< int > | fctoadc_ |
static std::vector< float > | gains_ |
static std::vector< int > | hbhi_ |
static std::vector< int > | hehi_ |
static std::vector< int > | hfhi_ |
static std::vector< int > | hohi_ |
static bool | initialized_ = false |
static bool | initializedHB_ = false |
static bool | initializedHE_ = false |
static bool | initializedHF_ = false |
static bool | initializedHO_ = false |
static unsigned | maxIndex_ = 0 |
static std::vector< float > | miscalib_ |
static std::vector< float > | noisesigma_ |
static std::vector< float > | peds_ |
static std::vector< float > | sat_ |
static std::vector< HcalDetId > | theDetIds_ |
static std::vector< float > | TPGFactor_ |
Definition at line 24 of file HcalRecHitsMaker.h.
HcalRecHitsMaker::HcalRecHitsMaker | ( | edm::ParameterSet const & | p, |
int | det, | ||
const RandomEngine * | random | ||
) |
Definition at line 55 of file HcalRecHitsMaker.cc.
References corrfac_, det_, doSaturation_, edm::ParameterSet::getParameter(), hbhi_, hcalfileinpath_, hcalHotFraction_, hehi_, hfhi_, hohi_, inputCol_, myGaussianTailGenerators_, nhbcells_, nhecells_, nhfcells_, nhocells_, nnoise_, noise_, noiseFromDb_, random_, refactor_, refactor_mean_, mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, and threshold_.
HcalRecHitsMaker::~HcalRecHitsMaker | ( | ) |
Definition at line 117 of file HcalRecHitsMaker.cc.
References clean(), hbhi_, hehi_, hfhi_, hohi_, myGaussianTailGenerators_, and theDetIds_.
|
private |
Definition at line 695 of file HcalRecHitsMaker.cc.
References cleanSubDet(), firedCells_, and hcalRecHits_.
Referenced by loadPCaloHits(), and ~HcalRecHitsMaker().
|
private |
Definition at line 700 of file HcalRecHitsMaker.cc.
References findQualityFiles::size.
Referenced by clean().
|
private |
Definition at line 559 of file HcalRecHitsMaker.cc.
References HcalTopology::detId2denseId(), relativeConstraints::geom, CaloGeometry::getSubdetectorGeometry(), CaloSubdetectorGeometry::getValidDetIds(), DetId::Hcal, i, maxIndex_, and theDetIds_.
Referenced by createVectorsOfCells().
|
private |
Definition at line 543 of file HcalRecHitsMaker.cc.
References createVectorOfSubdetectorCells(), edm::EventSetup::get(), hbhi_, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, hehi_, hfhi_, hohi_, nhbcells_, nhecells_, nhfcells_, and nhocells_.
Referenced by init().
|
private |
Definition at line 713 of file HcalRecHitsMaker.cc.
References fctoadc_.
Referenced by loadHcalRecHits().
|
private |
Definition at line 582 of file HcalRecHitsMaker.cc.
References doMiscalib_, relval_parameters_module::energy, RandomEngine::gaussShoot(), hcalRecHits_, miscalib_, noisesigma_, and random_.
Referenced by loadPCaloHits().
|
private |
void HcalRecHitsMaker::init | ( | const edm::EventSetup & | es, |
bool | dodigis, | ||
bool | domiscalib | ||
) |
Definition at line 134 of file HcalRecHitsMaker.cc.
References gather_cfg::cout, createVectorsOfCells(), det_, doDigis_, doMiscalib_, doSaturation_, fctoadc_, edm::FileInPath::fullPath(), gains_, edm::EventSetup::get(), CaloMiscalibMapHcal::get(), HcalDbService::getGain(), HcalDbService::getPedestal(), HcalPedestal::getValue(), HcalGain::getValue(), hbhi_, hcalfileinpath_, hcalRecHits_, hehi_, hfhi_, hohi_, i, HcalDetId::ieta(), recoMuon::in, getHLTprescales::index, initialized_, initializedHB_, initializedHE_, initializedHF_, initializedHO_, maxIndex_, miscalib_, myRespCorr, nhbcells_, nhecells_, nhfcells_, nhocells_, noiseFromDb_, noiseInfCfromDB(), noisesigma_, MiscalibReaderFromXML::parseXMLMiscalibFile(), peds_, CaloMiscalibMapHcal::prefillMap(), edm::ESHandle< class >::product(), refactor_, refactor_mean_, sat_, findQualityFiles::size, AlCaHLTBitMon_QueryRunRegistry::string, theDetIds_, TPGFactor_, x, and detailsBasic3DVector::y.
Referenced by CaloRecHitsProducer::beginRun().
void HcalRecHitsMaker::loadHcalRecHits | ( | edm::Event & | iEvent, |
const HcalTopology & | topo, | ||
HBHERecHitCollection & | hbheHits, | ||
HBHEDigiCollection & | hbheDigis | ||
) |
Definition at line 412 of file HcalRecHitsMaker.cc.
References cond::rpcobgas::detid, doDigis_, relval_parameters_module::energy, fCtoAdc(), firedCells_, gains_, HcalRespCorr::getValue(), HcalCondObjectContainer< Item >::getValues(), HcalBarrel, hcalRecHits_, loadPCaloHits(), myRespCorr, noisify(), peds_, edm::SortedCollection< T, SORT >::push_back(), edm::SortedCollection< T, SORT >::reserve(), sat_, HBHEDataFrame::setSample(), HBHEDataFrame::setSize(), HcalDetId::subdet(), theDetIds_, and threshold_.
Referenced by CaloRecHitsProducer::produce().
void HcalRecHitsMaker::loadHcalRecHits | ( | edm::Event & | iEvent, |
const HcalTopology & | topo, | ||
HORecHitCollection & | ho, | ||
HODigiCollection & | hoDigis | ||
) |
Definition at line 461 of file HcalRecHitsMaker.cc.
References cond::rpcobgas::detid, doDigis_, relval_parameters_module::energy, firedCells_, HcalRespCorr::getValue(), HcalCondObjectContainer< Item >::getValues(), hcalRecHits_, HcalDetId::ieta(), loadPCaloHits(), myRespCorr, noisify(), edm::SortedCollection< T, SORT >::push_back(), edm::SortedCollection< T, SORT >::reserve(), sat_, theDetIds_, and threshold_.
void HcalRecHitsMaker::loadHcalRecHits | ( | edm::Event & | iEvent, |
const HcalTopology & | topo, | ||
HFRecHitCollection & | hfHits, | ||
HFDigiCollection & | hfDigis | ||
) |
Definition at line 499 of file HcalRecHitsMaker.cc.
References cond::rpcobgas::detid, doDigis_, relval_parameters_module::energy, fCtoAdc(), firedCells_, gains_, HcalRespCorr::getValue(), HcalCondObjectContainer< Item >::getValues(), hcalRecHits_, loadPCaloHits(), myRespCorr, noisify(), peds_, edm::SortedCollection< T, SORT >::push_back(), edm::SortedCollection< T, SORT >::reserve(), sat_, HFDataFrame::setSample(), HFDataFrame::setSize(), theDetIds_, and threshold_.
|
private |
Definition at line 355 of file HcalRecHitsMaker.cc.
References clean(), corrfac_, det_, cond::rpcobgas::detid, HcalTopology::detId2denseId(), Fill(), firedCells_, fractionOOT(), edm::Event::getByLabel(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, inputCol_, noise_, and edm::Handle< T >::product().
Referenced by loadHcalRecHits().
|
private |
Definition at line 720 of file HcalRecHitsMaker.cc.
References abs, alpha, beta, f, HcalPedestalWidth::getSigma(), HcalDetId::ieta(), mathSSE::sqrt(), and HcalDetId::subdet().
Referenced by init().
|
private |
Definition at line 601 of file HcalRecHitsMaker.cc.
References corrfac_, det_, firedCells_, hbhi_, hcalHotFraction_, hcalRecHits_, hehi_, hfhi_, hohi_, myGaussianTailGenerators_, nhbcells_, nhecells_, nhfcells_, nhocells_, noise_, noisifySubdet(), threshold_, and pileupDistInMC::total.
Referenced by loadHcalRecHits().
|
private |
Definition at line 640 of file HcalRecHitsMaker.cc.
References RandomEngine::flatShoot(), RandomEngine::gaussShoot(), hcalRecHits_, timingPdfMaker::mean, noise_, noisesigma_, RandomEngine::poissonShoot(), random_, and GaussianTail::shoot().
Referenced by noisify().
|
private |
Definition at line 56 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), loadPCaloHits(), and noisify().
|
private |
Definition at line 53 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), init(), loadPCaloHits(), and noisify().
|
private |
Definition at line 67 of file HcalRecHitsMaker.h.
Referenced by init(), and loadHcalRecHits().
|
private |
Definition at line 68 of file HcalRecHitsMaker.h.
|
private |
Definition at line 69 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), and init().
|
staticprivate |
Definition at line 83 of file HcalRecHitsMaker.h.
|
private |
Definition at line 77 of file HcalRecHitsMaker.h.
Referenced by clean(), loadHcalRecHits(), loadPCaloHits(), and noisify().
|
staticprivate |
Definition at line 86 of file HcalRecHitsMaker.h.
Referenced by init(), and loadHcalRecHits().
|
staticprivate |
Definition at line 93 of file HcalRecHitsMaker.h.
Referenced by createVectorsOfCells(), HcalRecHitsMaker(), init(), noisify(), and ~HcalRecHitsMaker().
|
private |
Definition at line 73 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), and init().
|
private |
Definition at line 57 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), and noisify().
|
private |
Definition at line 75 of file HcalRecHitsMaker.h.
Referenced by clean(), Fill(), init(), loadHcalRecHits(), noisify(), and noisifySubdet().
|
staticprivate |
Definition at line 94 of file HcalRecHitsMaker.h.
Referenced by createVectorsOfCells(), HcalRecHitsMaker(), init(), noisify(), and ~HcalRecHitsMaker().
|
staticprivate |
Definition at line 96 of file HcalRecHitsMaker.h.
Referenced by createVectorsOfCells(), HcalRecHitsMaker(), init(), noisify(), and ~HcalRecHitsMaker().
|
staticprivate |
Definition at line 95 of file HcalRecHitsMaker.h.
Referenced by createVectorsOfCells(), HcalRecHitsMaker(), init(), noisify(), and ~HcalRecHitsMaker().
|
staticprivate |
Definition at line 62 of file HcalRecHitsMaker.h.
Referenced by init().
|
staticprivate |
Definition at line 63 of file HcalRecHitsMaker.h.
Referenced by init().
|
staticprivate |
Definition at line 64 of file HcalRecHitsMaker.h.
Referenced by init().
|
staticprivate |
Definition at line 66 of file HcalRecHitsMaker.h.
Referenced by init().
|
staticprivate |
Definition at line 65 of file HcalRecHitsMaker.h.
Referenced by init().
|
private |
Definition at line 61 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), and loadPCaloHits().
|
staticprivate |
Definition at line 92 of file HcalRecHitsMaker.h.
Referenced by createVectorOfSubdetectorCells(), and init().
|
staticprivate |
Definition at line 80 of file HcalRecHitsMaker.h.
|
private |
Definition at line 100 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), noisify(), and ~HcalRecHitsMaker().
|
private |
Definition at line 106 of file HcalRecHitsMaker.h.
Referenced by init(), and loadHcalRecHits().
|
private |
Definition at line 97 of file HcalRecHitsMaker.h.
Referenced by createVectorsOfCells(), HcalRecHitsMaker(), init(), and noisify().
|
private |
Definition at line 97 of file HcalRecHitsMaker.h.
Referenced by createVectorsOfCells(), HcalRecHitsMaker(), init(), and noisify().
|
private |
Definition at line 97 of file HcalRecHitsMaker.h.
Referenced by createVectorsOfCells(), HcalRecHitsMaker(), init(), and noisify().
|
private |
Definition at line 97 of file HcalRecHitsMaker.h.
Referenced by createVectorsOfCells(), HcalRecHitsMaker(), init(), and noisify().
|
private |
Definition at line 58 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker().
|
private |
Definition at line 55 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), loadPCaloHits(), noisify(), and noisifySubdet().
|
private |
Definition at line 70 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), and init().
|
staticprivate |
Definition at line 88 of file HcalRecHitsMaker.h.
Referenced by Fill(), init(), and noisifySubdet().
|
staticprivate |
Definition at line 85 of file HcalRecHitsMaker.h.
Referenced by init(), and loadHcalRecHits().
|
private |
Definition at line 99 of file HcalRecHitsMaker.h.
Referenced by Fill(), HcalRecHitsMaker(), and noisifySubdet().
|
private |
Definition at line 71 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), and init().
|
private |
Definition at line 72 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), and init().
|
staticprivate |
Definition at line 87 of file HcalRecHitsMaker.h.
Referenced by init(), and loadHcalRecHits().
|
staticprivate |
Definition at line 79 of file HcalRecHitsMaker.h.
Referenced by createVectorOfSubdetectorCells(), init(), loadHcalRecHits(), and ~HcalRecHitsMaker().
|
private |
Definition at line 54 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), loadHcalRecHits(), and noisify().
|
staticprivate |
Definition at line 89 of file HcalRecHitsMaker.h.
Referenced by init().