#include <CastorDigiProducer.h>
Public Member Functions | |
virtual void | accumulate (edm::Event const &e, edm::EventSetup const &c) override |
virtual void | accumulate (PileUpEventPrincipal const &e, edm::EventSetup const &c, edm::StreamID const &) override |
CastorDigiProducer (const edm::ParameterSet &ps, edm::one::EDProducerBase &mixMod, edm::ConsumesCollector &iC) | |
virtual void | finalizeEvent (edm::Event &e, edm::EventSetup const &c) override |
virtual void | initializeEvent (edm::Event const &e, edm::EventSetup const &c) override |
virtual | ~CastorDigiProducer () |
Public Member Functions inherited from DigiAccumulatorMixMod | |
virtual void | beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) |
virtual void | beginRun (edm::Run const &run, edm::EventSetup const &setup) |
DigiAccumulatorMixMod () | |
virtual void | endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) |
virtual void | endRun (edm::Run const &run, edm::EventSetup const &setup) |
virtual void | finalizeBunchCrossing (edm::Event &event, edm::EventSetup const &setup, int bunchCrossing) |
virtual PileupMixingContent * | getEventPileupInfo () |
virtual void | initializeBunchCrossing (edm::Event const &event, edm::EventSetup const &setup, int bunchCrossing) |
virtual void | StorePileupInformation (std::vector< int > &numInteractionList, std::vector< int > &bunchCrossingList, std::vector< float > &TrueInteractionList, std::vector< edm::EventID > &eventList, int bunchSpace) |
virtual | ~DigiAccumulatorMixMod () |
Private Types | |
typedef CaloTDigitizer < CastorDigitizerTraits > | CastorDigitizer |
Private Member Functions | |
void | accumulateCaloHits (std::vector< PCaloHit > const &, int bunchCrossing, CLHEP::HepRandomEngine *) |
void | checkGeometry (const edm::EventSetup &eventSetup) |
void | fillFakeHits () |
some hits in each subdetector, just for testing purposes More... | |
CLHEP::HepRandomEngine * | randomEngine (edm::StreamID const &streamID) |
void | sortHits (const edm::PCaloHitContainer &hits) |
fills the vectors for each subdetector More... | |
Private Attributes | |
std::vector < CLHEP::HepRandomEngine * > | randomEngines_ |
CastorAmplifier * | theAmplifier |
CastorDigitizer * | theCastorDigitizer |
CastorHitFilter | theCastorHitFilter |
std::vector< PCaloHit > | theCastorHits |
CaloVShape * | theCastorIntegratedShape |
CaloHitResponse * | theCastorResponse |
CaloVShape * | theCastorShape |
CastorCoderFactory * | theCoderFactory |
CastorElectronicsSim * | theElectronicsSim |
CastorHitCorrection * | theHitCorrection |
edm::InputTag | theHitsProducerTag |
CastorSimParameterMap * | theParameterMap |
Definition at line 34 of file CastorDigiProducer.h.
|
private |
Reconstruction algorithm
Definition at line 63 of file CastorDigiProducer.h.
|
explicit |
Definition at line 22 of file CastorDigiProducer.cc.
References edm::ConsumesCollector::consumes(), CastorCoderFactory::DB, edm::hlt::Exception, edm::ParameterSet::getParameter(), edm::Service< T >::isAvailable(), CaloHitResponse::setHitCorrection(), CaloHitResponse::setHitFilter(), theAmplifier, theCastorDigitizer, theCastorHitFilter, theCastorResponse, theCoderFactory, theElectronicsSim, theHitCorrection, theHitsProducerTag, and theParameterMap.
|
virtual |
Definition at line 64 of file CastorDigiProducer.cc.
References theAmplifier, theCastorDigitizer, theCastorIntegratedShape, theCastorResponse, theCastorShape, theCoderFactory, theElectronicsSim, theHitCorrection, and theParameterMap.
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 103 of file CastorDigiProducer.cc.
References accumulateCaloHits(), edm::Event::getByLabel(), edm::Handle< T >::product(), randomEngine(), edm::Event::streamID(), and theHitsProducerTag.
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 111 of file CastorDigiProducer.cc.
References accumulateCaloHits(), PileUpEventPrincipal::bunchCrossing(), PileUpEventPrincipal::getByLabel(), edm::Handle< T >::product(), randomEngine(), and theHitsProducerTag.
|
private |
Definition at line 94 of file CastorDigiProducer.cc.
References CaloTDigitizer< Traits >::add(), CastorHitCorrection::fillChargeSums(), theCastorDigitizer, and theHitCorrection.
Referenced by accumulate().
|
private |
make sure the digitizer has the correct list of all cells that exist in the geometry
Definition at line 154 of file CastorDigiProducer.cc.
References DetId::Calo, geometry, edm::EventSetup::get(), CaloTDigitizer< Traits >::setDetIds(), CaloHitResponse::setGeometry(), HcalCastorDetId::SubdetectorId, theCastorDigitizer, and theCastorResponse.
Referenced by initializeEvent().
|
private |
some hits in each subdetector, just for testing purposes
Definition at line 147 of file CastorDigiProducer.cc.
References DetId::rawId(), and theCastorHits.
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 119 of file CastorDigiProducer.cc.
References edm::Event::put(), randomEngine(), CaloTDigitizer< Traits >::run(), edm::Event::streamID(), and theCastorDigitizer.
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 76 of file CastorDigiProducer.cc.
References checkGeometry(), edm::EventSetup::get(), CaloTDigitizer< Traits >::initializeHits(), edm::ESHandle< class >::product(), CastorCoderFactory::setDbService(), CastorAmplifier::setDbService(), CastorSimParameterMap::setDbService(), theAmplifier, theCastorDigitizer, theCastorHits, theCoderFactory, and theParameterMap.
|
private |
Definition at line 166 of file CastorDigiProducer.cc.
References edm::RandomNumberGenerator::getEngine(), cmsHarvester::index, randomEngines_, and edm::StreamID::value().
Referenced by accumulate(), and finalizeEvent().
|
private |
fills the vectors for each subdetector
Definition at line 134 of file CastorDigiProducer.cc.
References DetId::Calo, DetId::det(), HcalCastorDetId::SubdetectorId, DetId::subdetId(), and theCastorHits.
|
private |
Definition at line 83 of file CastorDigiProducer.h.
Referenced by randomEngine().
|
private |
Definition at line 71 of file CastorDigiProducer.h.
Referenced by CastorDigiProducer(), initializeEvent(), and ~CastorDigiProducer().
|
private |
Definition at line 79 of file CastorDigiProducer.h.
Referenced by accumulateCaloHits(), CastorDigiProducer(), checkGeometry(), finalizeEvent(), initializeEvent(), and ~CastorDigiProducer().
|
private |
Definition at line 75 of file CastorDigiProducer.h.
Referenced by CastorDigiProducer().
|
private |
Definition at line 81 of file CastorDigiProducer.h.
Referenced by fillFakeHits(), initializeEvent(), and sortHits().
|
private |
Definition at line 67 of file CastorDigiProducer.h.
Referenced by ~CastorDigiProducer().
|
private |
Definition at line 69 of file CastorDigiProducer.h.
Referenced by CastorDigiProducer(), checkGeometry(), and ~CastorDigiProducer().
|
private |
Definition at line 66 of file CastorDigiProducer.h.
Referenced by ~CastorDigiProducer().
|
private |
Definition at line 72 of file CastorDigiProducer.h.
Referenced by CastorDigiProducer(), initializeEvent(), and ~CastorDigiProducer().
|
private |
Definition at line 73 of file CastorDigiProducer.h.
Referenced by CastorDigiProducer(), and ~CastorDigiProducer().
|
private |
Definition at line 77 of file CastorDigiProducer.h.
Referenced by accumulateCaloHits(), CastorDigiProducer(), and ~CastorDigiProducer().
|
private |
Definition at line 58 of file CastorDigiProducer.h.
Referenced by accumulate(), and CastorDigiProducer().
|
private |
Definition at line 65 of file CastorDigiProducer.h.
Referenced by CastorDigiProducer(), initializeEvent(), and ~CastorDigiProducer().