#include <HcalRecHitsMaker.h>
Public Member Functions | |
HcalRecHitsMaker (edm::ParameterSet const &p, int) | |
void | init (const edm::EventSetup &es, bool dodigis, bool domiscalib) |
void | loadHcalRecHits (edm::Event &iEvent, const HcalTopology &, HBHERecHitCollection &hbheHits, HBHEDigiCollection &hbheDigis, RandomEngineAndDistribution const *) |
void | loadHcalRecHits (edm::Event &iEvent, const HcalTopology &, HORecHitCollection &ho, HODigiCollection &hoDigis, RandomEngineAndDistribution const *) |
void | loadHcalRecHits (edm::Event &iEvent, const HcalTopology &, HFRecHitCollection &hfHits, HFDigiCollection &hfDigis, RandomEngineAndDistribution const *) |
~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, RandomEngineAndDistribution const *) |
double | fractionOOT (int time_slice) |
void | loadPCaloHits (const edm::Event &iEvent, const HcalTopology &, RandomEngineAndDistribution const *) |
double | noiseInfCfromDB (const HcalDbService *conditions, const HcalDetId &detId) |
void | noisify (RandomEngineAndDistribution const *) |
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, RandomEngineAndDistribution const *) |
Private Attributes | |
std::vector< double > | corrfac_ |
unsigned | det_ |
bool | doDigis_ |
bool | doMiscalib_ |
bool | doSaturation_ |
std::vector< int > | fctoadc_ |
std::vector< int > | firedCells_ |
std::vector< float > | gains_ |
std::vector< int > | hbhi_ |
std::string | hcalfileinpath_ |
std::vector< double > | hcalHotFraction_ |
std::vector< float > | hcalRecHits_ |
std::vector< int > | hehi_ |
std::vector< int > | hfhi_ |
std::vector< int > | hohi_ |
bool | initialized_ |
bool | initializedHB_ |
bool | initializedHE_ |
bool | initializedHF_ |
bool | initializedHO_ |
edm::InputTag | inputCol_ |
unsigned | maxIndex_ |
std::vector< float > | miscalib_ |
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_ |
std::vector< float > | noisesigma_ |
std::vector< float > | peds_ |
double | refactor_ |
double | refactor_mean_ |
std::vector< float > | sat_ |
std::vector< HcalDetId > | theDetIds_ |
std::vector< double > | threshold_ |
std::vector< float > | TPGFactor_ |
Definition at line 24 of file HcalRecHitsMaker.h.
HcalRecHitsMaker::HcalRecHitsMaker | ( | edm::ParameterSet const & | p, |
int | det | ||
) |
Definition at line 34 of file HcalRecHitsMaker.cc.
References corrfac_, det_, doSaturation_, edm::ParameterSet::getParameter(), hbhi_, hcalfileinpath_, hcalHotFraction_, hehi_, hfhi_, hohi_, initialized_, initializedHB_, initializedHE_, initializedHF_, initializedHO_, inputCol_, maxIndex_, myGaussianTailGenerators_, nhbcells_, nhecells_, nhfcells_, nhocells_, nnoise_, noise_, noiseFromDb_, refactor_, refactor_mean_, mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, and threshold_.
HcalRecHitsMaker::~HcalRecHitsMaker | ( | ) |
Definition at line 101 of file HcalRecHitsMaker.cc.
References clean(), hbhi_, hehi_, hfhi_, hohi_, myGaussianTailGenerators_, and theDetIds_.
|
private |
Definition at line 685 of file HcalRecHitsMaker.cc.
References cleanSubDet(), firedCells_, and hcalRecHits_.
Referenced by loadPCaloHits(), and ~HcalRecHitsMaker().
|
private |
Definition at line 690 of file HcalRecHitsMaker.cc.
References findQualityFiles::size.
Referenced by clean().
|
private |
Definition at line 547 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 531 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 703 of file HcalRecHitsMaker.cc.
References fctoadc_.
Referenced by loadHcalRecHits().
|
private |
Definition at line 570 of file HcalRecHitsMaker.cc.
References doMiscalib_, relval_parameters_module::energy, RandomEngineAndDistribution::gaussShoot(), hcalRecHits_, miscalib_, and noisesigma_.
Referenced by loadPCaloHits().
|
private |
void HcalRecHitsMaker::init | ( | const edm::EventSetup & | es, |
bool | dodigis, | ||
bool | domiscalib | ||
) |
Definition at line 118 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, | ||
RandomEngineAndDistribution const * | random | ||
) |
Definition at line 397 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, | ||
RandomEngineAndDistribution const * | random | ||
) |
Definition at line 447 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, | ||
RandomEngineAndDistribution const * | random | ||
) |
Definition at line 486 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 339 of file HcalRecHitsMaker.cc.
References clean(), corrfac_, counter, det_, cond::rpcobgas::detid, HcalTopology::detId2denseId(), Fill(), firedCells_, fractionOOT(), edm::Event::getByLabel(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, inputCol_, noise_, edm::Handle< T >::product(), and random.
Referenced by loadHcalRecHits().
|
private |
Definition at line 710 of file HcalRecHitsMaker.cc.
References funct::abs(), alpha, beta, f, HcalPedestalWidth::getSigma(), HcalDetId::ieta(), mathSSE::sqrt(), and HcalDetId::subdet().
Referenced by init().
|
private |
Definition at line 590 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 629 of file HcalRecHitsMaker.cc.
References RandomEngineAndDistribution::flatShoot(), RandomEngineAndDistribution::gaussShoot(), hcalRecHits_, timingPdfMaker::mean, noise_, noisesigma_, RandomEngineAndDistribution::poissonShoot(), and GaussianTail::shoot().
Referenced by noisify().
|
private |
Definition at line 60 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), loadPCaloHits(), and noisify().
|
private |
Definition at line 57 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), init(), loadPCaloHits(), and noisify().
|
private |
Definition at line 71 of file HcalRecHitsMaker.h.
Referenced by init(), and loadHcalRecHits().
|
private |
Definition at line 72 of file HcalRecHitsMaker.h.
|
private |
Definition at line 73 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), and init().
|
private |
Definition at line 87 of file HcalRecHitsMaker.h.
|
private |
Definition at line 81 of file HcalRecHitsMaker.h.
Referenced by clean(), loadHcalRecHits(), loadPCaloHits(), and noisify().
|
private |
Definition at line 90 of file HcalRecHitsMaker.h.
Referenced by init(), and loadHcalRecHits().
|
private |
Definition at line 97 of file HcalRecHitsMaker.h.
Referenced by createVectorsOfCells(), HcalRecHitsMaker(), init(), noisify(), and ~HcalRecHitsMaker().
|
private |
Definition at line 77 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), and init().
|
private |
Definition at line 61 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), and noisify().
|
private |
Definition at line 79 of file HcalRecHitsMaker.h.
Referenced by clean(), Fill(), init(), loadHcalRecHits(), noisify(), and noisifySubdet().
|
private |
Definition at line 98 of file HcalRecHitsMaker.h.
Referenced by createVectorsOfCells(), HcalRecHitsMaker(), init(), noisify(), and ~HcalRecHitsMaker().
|
private |
Definition at line 100 of file HcalRecHitsMaker.h.
Referenced by createVectorsOfCells(), HcalRecHitsMaker(), init(), noisify(), and ~HcalRecHitsMaker().
|
private |
Definition at line 99 of file HcalRecHitsMaker.h.
Referenced by createVectorsOfCells(), HcalRecHitsMaker(), init(), noisify(), and ~HcalRecHitsMaker().
|
private |
Definition at line 66 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), and init().
|
private |
Definition at line 67 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), and init().
|
private |
Definition at line 68 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), and init().
|
private |
Definition at line 70 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), and init().
|
private |
Definition at line 69 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), and init().
|
private |
Definition at line 65 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), and loadPCaloHits().
|
private |
Definition at line 96 of file HcalRecHitsMaker.h.
Referenced by createVectorOfSubdetectorCells(), HcalRecHitsMaker(), and init().
|
private |
Definition at line 84 of file HcalRecHitsMaker.h.
|
private |
Definition at line 103 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), noisify(), and ~HcalRecHitsMaker().
|
private |
Definition at line 109 of file HcalRecHitsMaker.h.
Referenced by init(), and loadHcalRecHits().
|
private |
Definition at line 101 of file HcalRecHitsMaker.h.
Referenced by createVectorsOfCells(), HcalRecHitsMaker(), init(), and noisify().
|
private |
Definition at line 101 of file HcalRecHitsMaker.h.
Referenced by createVectorsOfCells(), HcalRecHitsMaker(), init(), and noisify().
|
private |
Definition at line 101 of file HcalRecHitsMaker.h.
Referenced by createVectorsOfCells(), HcalRecHitsMaker(), init(), and noisify().
|
private |
Definition at line 101 of file HcalRecHitsMaker.h.
Referenced by createVectorsOfCells(), HcalRecHitsMaker(), init(), and noisify().
|
private |
Definition at line 62 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker().
|
private |
Definition at line 59 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), loadPCaloHits(), noisify(), and noisifySubdet().
|
private |
Definition at line 74 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), and init().
|
private |
Definition at line 92 of file HcalRecHitsMaker.h.
Referenced by Fill(), init(), and noisifySubdet().
|
private |
Definition at line 89 of file HcalRecHitsMaker.h.
Referenced by init(), and loadHcalRecHits().
|
private |
Definition at line 75 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), and init().
|
private |
Definition at line 76 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), and init().
|
private |
Definition at line 91 of file HcalRecHitsMaker.h.
Referenced by init(), and loadHcalRecHits().
|
private |
Definition at line 83 of file HcalRecHitsMaker.h.
Referenced by createVectorOfSubdetectorCells(), init(), loadHcalRecHits(), and ~HcalRecHitsMaker().
|
private |
Definition at line 58 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), loadHcalRecHits(), and noisify().
|
private |
Definition at line 93 of file HcalRecHitsMaker.h.
Referenced by init().