#include <EcalPreshowerRecHitsMaker.h>
Public Member Functions | |
EcalPreshowerRecHitsMaker (edm::ParameterSet const &p, const RandomEngine *random) | |
void | init (const edm::EventSetup &es) |
void | loadEcalPreshowerRecHits (edm::Event &iEvent, ESRecHitCollection &esRecHits) |
~EcalPreshowerRecHitsMaker () | |
Private Member Functions | |
void | clean () |
unsigned | createVectorsOfCells (const edm::EventSetup &es) |
void | Fill (uint32_t id, float energy, std::map< uint32_t, std::pair< float, bool > > &myHits, bool signal=true) |
void | loadPCaloHits (const edm::Event &iEvent) |
void | noisify () |
void | noisifySignal (std::map< uint32_t, std::pair< float, bool > > &theMap) |
void | noisifySubdet (std::map< uint32_t, std::pair< float, bool > > &theMap, const std::vector< uint32_t > &thecells, unsigned ncells) |
Private Attributes | |
std::map< uint32_t, std::pair < float, bool > > | ecalsRecHits_ |
std::vector< uint32_t > | escells_ |
bool | initialized_ |
edm::InputTag | inputCol_ |
const GaussianTail * | myGaussianTailGenerator_ |
unsigned | ncells_ |
double | noise_ |
double | preshowerHotFraction_ |
const RandomEngine * | random_ |
double | threshold_ |
Definition at line 21 of file EcalPreshowerRecHitsMaker.h.
EcalPreshowerRecHitsMaker::EcalPreshowerRecHitsMaker | ( | edm::ParameterSet const & | p, |
const RandomEngine * | random | ||
) |
Definition at line 19 of file EcalPreshowerRecHitsMaker.cc.
References edm::ParameterSet::getParameter(), initialized_, inputCol_, myGaussianTailGenerator_, noise_, preshowerHotFraction_, random_, mathSSE::sqrt(), and threshold_.
EcalPreshowerRecHitsMaker::~EcalPreshowerRecHitsMaker | ( | ) |
Definition at line 43 of file EcalPreshowerRecHitsMaker.cc.
References initialized_, and myGaussianTailGenerator_.
|
private |
Definition at line 49 of file EcalPreshowerRecHitsMaker.cc.
References ecalsRecHits_.
Referenced by loadPCaloHits().
|
private |
Definition at line 107 of file EcalPreshowerRecHitsMaker.cc.
References DetId::Ecal, EcalPreshower, escells_, relativeConstraints::geom, edm::EventSetup::get(), CaloSubdetectorGeometry::getValidDetIds(), i, and pileupDistInMC::total.
Referenced by init().
|
private |
Definition at line 169 of file EcalPreshowerRecHitsMaker.cc.
References relval_parameters_module::energy, RandomEngine::gaussShoot(), noise_, and random_.
Referenced by loadPCaloHits().
void EcalPreshowerRecHitsMaker::init | ( | const edm::EventSetup & | es | ) |
Definition at line 99 of file EcalPreshowerRecHitsMaker.cc.
References createVectorsOfCells(), initialized_, and ncells_.
Referenced by CaloRecHitsProducer::beginRun().
void EcalPreshowerRecHitsMaker::loadEcalPreshowerRecHits | ( | edm::Event & | iEvent, |
ESRecHitCollection & | esRecHits | ||
) |
Definition at line 56 of file EcalPreshowerRecHitsMaker.cc.
References cond::rpcobgas::detid, ecalsRecHits_, loadPCaloHits(), myGaussianTailGenerator_, ncells_, noisify(), edm::SortedCollection< T, SORT >::push_back(), and threshold_.
Referenced by CaloRecHitsProducer::produce().
|
private |
Definition at line 81 of file EcalPreshowerRecHitsMaker.cc.
References clean(), ecalsRecHits_, Fill(), edm::Event::getByLabel(), inputCol_, and edm::Handle< T >::product().
Referenced by loadEcalPreshowerRecHits().
|
private |
Definition at line 126 of file EcalPreshowerRecHitsMaker.cc.
References ecalsRecHits_, escells_, ncells_, and noisifySubdet().
Referenced by loadEcalPreshowerRecHits().
|
private |
|
private |
Definition at line 139 of file EcalPreshowerRecHitsMaker.cc.
References RandomEngine::flatShoot(), timingPdfMaker::mean, myGaussianTailGenerator_, RandomEngine::poissonShoot(), preshowerHotFraction_, random_, and GaussianTail::shoot().
Referenced by noisify().
|
private |
Definition at line 54 of file EcalPreshowerRecHitsMaker.h.
Referenced by clean(), loadEcalPreshowerRecHits(), loadPCaloHits(), and noisify().
|
private |
Definition at line 55 of file EcalPreshowerRecHitsMaker.h.
Referenced by createVectorsOfCells(), and noisify().
|
private |
Definition at line 52 of file EcalPreshowerRecHitsMaker.h.
Referenced by EcalPreshowerRecHitsMaker(), init(), and ~EcalPreshowerRecHitsMaker().
|
private |
Definition at line 48 of file EcalPreshowerRecHitsMaker.h.
Referenced by EcalPreshowerRecHitsMaker(), and loadPCaloHits().
|
private |
Definition at line 57 of file EcalPreshowerRecHitsMaker.h.
Referenced by EcalPreshowerRecHitsMaker(), loadEcalPreshowerRecHits(), noisifySubdet(), and ~EcalPreshowerRecHitsMaker().
|
private |
Definition at line 53 of file EcalPreshowerRecHitsMaker.h.
Referenced by init(), loadEcalPreshowerRecHits(), and noisify().
|
private |
Definition at line 50 of file EcalPreshowerRecHitsMaker.h.
Referenced by EcalPreshowerRecHitsMaker(), and Fill().
|
private |
Definition at line 51 of file EcalPreshowerRecHitsMaker.h.
Referenced by EcalPreshowerRecHitsMaker(), and noisifySubdet().
|
private |
Definition at line 56 of file EcalPreshowerRecHitsMaker.h.
Referenced by EcalPreshowerRecHitsMaker(), Fill(), and noisifySubdet().
|
private |
Definition at line 49 of file EcalPreshowerRecHitsMaker.h.
Referenced by EcalPreshowerRecHitsMaker(), and loadEcalPreshowerRecHits().