#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, HBHERecHitCollection &hbheHits, HBHEDigiCollection &hbheDigis) |
void | loadHcalRecHits (edm::Event &iEvent, HORecHitCollection &ho, HODigiCollection &hoDigis) |
void | loadHcalRecHits (edm::Event &iEvent, HFRecHitCollection &hfHits, HFDigiCollection &hfDigis) |
~HcalRecHitsMaker () | |
Private Member Functions | |
void | clean () |
void | cleanSubDet (std::vector< float > &hits, std::vector< int > &cells) |
unsigned | createVectorOfSubdetectorCells (const CaloGeometry &, 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) |
void | loadPCaloHits (const edm::Event &iEvent) |
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) |
Private Attributes | |
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_ |
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 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 26 of file HcalRecHitsMaker.h.
HcalRecHitsMaker::HcalRecHitsMaker | ( | edm::ParameterSet const & | p, |
int | det, | ||
const RandomEngine * | random | ||
) |
Definition at line 49 of file HcalRecHitsMaker.cc.
References 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(), 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 665 of file HcalRecHitsMaker.cc.
References cleanSubDet(), firedCells_, and hcalRecHits_.
Referenced by loadPCaloHits(), and ~HcalRecHitsMaker().
|
private |
Definition at line 670 of file HcalRecHitsMaker.cc.
References findQualityFiles::size.
Referenced by clean().
|
private |
Definition at line 530 of file HcalRecHitsMaker.cc.
References relativeConstraints::geom, CaloGeometry::getSubdetectorGeometry(), CaloSubdetectorGeometry::getValidDetIds(), HcalDetId::hashed_index(), DetId::Hcal, i, maxIndex_, and theDetIds_.
Referenced by createVectorsOfCells().
|
private |
Definition at line 517 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 683 of file HcalRecHitsMaker.cc.
References fctoadc_.
Referenced by loadHcalRecHits().
|
private |
Definition at line 553 of file HcalRecHitsMaker.cc.
References doMiscalib_, relval_parameters_module::energy, RandomEngine::gaussShoot(), hcalRecHits_, miscalib_, noiseFromDb_, noisesigma_, and random_.
Referenced by loadPCaloHits().
void HcalRecHitsMaker::init | ( | const edm::EventSetup & | es, |
bool | dodigis, | ||
bool | domiscalib | ||
) |
Definition at line 134 of file HcalRecHitsMaker.cc.
References gather_cfg::cout, createVectorsOfCells(), doDigis_, doMiscalib_, doSaturation_, fctoadc_, edm::FileInPath::fullPath(), gains_, edm::EventSetup::get(), CaloMiscalibMapHcal::get(), HcalDbService::getGain(), HcalDbService::getPedestal(), HcalPedestal::getValue(), HcalGain::getValue(), HcalDetId::hashed_index(), hbhi_, hcalfileinpath_, hcalRecHits_, hehi_, hfhi_, hohi_, i, HcalDetId::ieta(), recoMuon::in, getHLTprescales::index, initialized_, 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, theDetIds_, TPGFactor_, x, and detailsBasic3DVector::y.
Referenced by CaloRecHitsProducer::beginRun().
void HcalRecHitsMaker::loadHcalRecHits | ( | edm::Event & | iEvent, |
HBHERecHitCollection & | hbheHits, | ||
HBHEDigiCollection & | hbheDigis | ||
) |
Definition at line 386 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, |
HORecHitCollection & | ho, | ||
HODigiCollection & | hoDigis | ||
) |
Definition at line 435 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, |
HFRecHitCollection & | hfHits, | ||
HFDigiCollection & | hfDigis | ||
) |
Definition at line 473 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 336 of file HcalRecHitsMaker.cc.
References clean(), cmsDriverOptions::counter, det_, cond::rpcobgas::detid, Fill(), firedCells_, edm::Event::getByLabel(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, inputCol_, noise_, and edm::Handle< T >::product().
Referenced by loadHcalRecHits().
|
private |
Definition at line 690 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 572 of file HcalRecHitsMaker.cc.
References 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 611 of file HcalRecHitsMaker.cc.
References RandomEngine::flatShoot(), RandomEngine::gaussShoot(), hcalRecHits_, plotscripts::mean(), noiseFromDb_, noisesigma_, RandomEngine::poissonShoot(), random_, and GaussianTail::shoot().
Referenced by noisify().
|
private |
Definition at line 54 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), loadPCaloHits(), and noisify().
|
private |
Definition at line 63 of file HcalRecHitsMaker.h.
Referenced by init(), and loadHcalRecHits().
|
private |
Definition at line 64 of file HcalRecHitsMaker.h.
|
private |
Definition at line 65 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), and init().
|
staticprivate |
Definition at line 79 of file HcalRecHitsMaker.h.
|
private |
Definition at line 73 of file HcalRecHitsMaker.h.
Referenced by clean(), loadHcalRecHits(), loadPCaloHits(), and noisify().
|
staticprivate |
Definition at line 82 of file HcalRecHitsMaker.h.
Referenced by init(), and loadHcalRecHits().
|
staticprivate |
Definition at line 89 of file HcalRecHitsMaker.h.
Referenced by createVectorsOfCells(), HcalRecHitsMaker(), init(), noisify(), and ~HcalRecHitsMaker().
|
private |
Definition at line 69 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 71 of file HcalRecHitsMaker.h.
Referenced by clean(), Fill(), init(), loadHcalRecHits(), noisify(), and noisifySubdet().
|
staticprivate |
Definition at line 90 of file HcalRecHitsMaker.h.
Referenced by createVectorsOfCells(), HcalRecHitsMaker(), init(), noisify(), and ~HcalRecHitsMaker().
|
staticprivate |
Definition at line 92 of file HcalRecHitsMaker.h.
Referenced by createVectorsOfCells(), HcalRecHitsMaker(), init(), noisify(), and ~HcalRecHitsMaker().
|
staticprivate |
Definition at line 91 of file HcalRecHitsMaker.h.
Referenced by createVectorsOfCells(), HcalRecHitsMaker(), init(), noisify(), and ~HcalRecHitsMaker().
|
staticprivate |
Definition at line 62 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 88 of file HcalRecHitsMaker.h.
Referenced by createVectorOfSubdetectorCells(), and init().
|
staticprivate |
Definition at line 76 of file HcalRecHitsMaker.h.
|
private |
Definition at line 96 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), noisify(), and ~HcalRecHitsMaker().
|
private |
Definition at line 102 of file HcalRecHitsMaker.h.
Referenced by init(), and loadHcalRecHits().
|
private |
Definition at line 93 of file HcalRecHitsMaker.h.
Referenced by createVectorsOfCells(), HcalRecHitsMaker(), init(), and noisify().
|
private |
Definition at line 93 of file HcalRecHitsMaker.h.
Referenced by createVectorsOfCells(), HcalRecHitsMaker(), init(), and noisify().
|
private |
Definition at line 93 of file HcalRecHitsMaker.h.
Referenced by createVectorsOfCells(), HcalRecHitsMaker(), init(), and noisify().
|
private |
Definition at line 93 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 56 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), loadPCaloHits(), and noisify().
|
private |
Definition at line 66 of file HcalRecHitsMaker.h.
Referenced by Fill(), HcalRecHitsMaker(), init(), and noisifySubdet().
|
staticprivate |
Definition at line 84 of file HcalRecHitsMaker.h.
Referenced by Fill(), init(), and noisifySubdet().
|
staticprivate |
Definition at line 81 of file HcalRecHitsMaker.h.
Referenced by init(), and loadHcalRecHits().
|
private |
Definition at line 95 of file HcalRecHitsMaker.h.
Referenced by Fill(), HcalRecHitsMaker(), and noisifySubdet().
|
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().
|
staticprivate |
Definition at line 83 of file HcalRecHitsMaker.h.
Referenced by init(), and loadHcalRecHits().
|
staticprivate |
Definition at line 75 of file HcalRecHitsMaker.h.
Referenced by createVectorOfSubdetectorCells(), init(), loadHcalRecHits(), and ~HcalRecHitsMaker().
|
private |
Definition at line 55 of file HcalRecHitsMaker.h.
Referenced by HcalRecHitsMaker(), loadHcalRecHits(), and noisify().
|
staticprivate |
Definition at line 85 of file HcalRecHitsMaker.h.
Referenced by init().