#include <EcalPreshowerRecHitsMaker.h>
Public Member Functions | |
EcalPreshowerRecHitsMaker (edm::ParameterSet const &p) | |
void | init (const edm::EventSetup &es) |
void | loadEcalPreshowerRecHits (edm::Event &iEvent, ESRecHitCollection &esRecHits, RandomEngineAndDistribution const *) |
~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, RandomEngineAndDistribution const *, bool signal=true) |
void | loadPCaloHits (const edm::Event &iEvent, RandomEngineAndDistribution const *) |
void | noisify (RandomEngineAndDistribution const *) |
void | noisifySignal (std::map< uint32_t, std::pair< float, bool > > &theMap, RandomEngineAndDistribution const *) |
void | noisifySubdet (std::map< uint32_t, std::pair< float, bool > > &theMap, const std::vector< uint32_t > &thecells, unsigned ncells, RandomEngineAndDistribution const *) |
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_ |
double | threshold_ |
Definition at line 21 of file EcalPreshowerRecHitsMaker.h.
EcalPreshowerRecHitsMaker::EcalPreshowerRecHitsMaker | ( | edm::ParameterSet const & | p | ) |
Definition at line 19 of file EcalPreshowerRecHitsMaker.cc.
References edm::ParameterSet::getParameter(), initialized_, inputCol_, myGaussianTailGenerator_, noise_, preshowerHotFraction_, mathSSE::sqrt(), and threshold_.
EcalPreshowerRecHitsMaker::~EcalPreshowerRecHitsMaker | ( | ) |
Definition at line 41 of file EcalPreshowerRecHitsMaker.cc.
References initialized_, and myGaussianTailGenerator_.
|
private |
Definition at line 47 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 170 of file EcalPreshowerRecHitsMaker.cc.
References relval_parameters_module::energy, RandomEngineAndDistribution::gaussShoot(), and noise_.
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, | ||
RandomEngineAndDistribution const * | random | ||
) |
Definition at line 54 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 80 of file EcalPreshowerRecHitsMaker.cc.
References clean(), ecalsRecHits_, Fill(), edm::Event::getByLabel(), inputCol_, edm::Handle< T >::product(), and random.
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 RandomEngineAndDistribution::flatShoot(), timingPdfMaker::mean, myGaussianTailGenerator_, RandomEngineAndDistribution::poissonShoot(), preshowerHotFraction_, and GaussianTail::shoot().
Referenced by noisify().
|
private |
Definition at line 55 of file EcalPreshowerRecHitsMaker.h.
Referenced by clean(), loadEcalPreshowerRecHits(), loadPCaloHits(), and noisify().
|
private |
Definition at line 56 of file EcalPreshowerRecHitsMaker.h.
Referenced by createVectorsOfCells(), and noisify().
|
private |
Definition at line 53 of file EcalPreshowerRecHitsMaker.h.
Referenced by EcalPreshowerRecHitsMaker(), init(), and ~EcalPreshowerRecHitsMaker().
|
private |
Definition at line 49 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 54 of file EcalPreshowerRecHitsMaker.h.
Referenced by init(), loadEcalPreshowerRecHits(), and noisify().
|
private |
Definition at line 51 of file EcalPreshowerRecHitsMaker.h.
Referenced by EcalPreshowerRecHitsMaker(), and Fill().
|
private |
Definition at line 52 of file EcalPreshowerRecHitsMaker.h.
Referenced by EcalPreshowerRecHitsMaker(), and noisifySubdet().
|
private |
Definition at line 50 of file EcalPreshowerRecHitsMaker.h.
Referenced by EcalPreshowerRecHitsMaker(), and loadEcalPreshowerRecHits().