21 theHBHEResponse(new
CaloHitResponse(theParameterMap, theHcalIntegratedShape)),
22 theHOResponse(new
CaloHitResponse(theParameterMap, theHcalIntegratedShape)),
23 theAmplifier(0), theCoderFactory(0), theElectronicsSim(0),
24 theHitCorrection(0), theHBHEDigitizer(0), theHODigitizer(0), theHBHEHits(),
25 theHOHits(), thisPhaseShift(0) {
58 edm::LogInfo(
"HcalSim") <<
"HcalTBDigiProducer initialized with doNoise = "
59 << doNoise <<
", doTimeSlew = " << doTimeSlew
114 LogDebug(
"HcalSim") <<
"HcalTBDigiProducer::accumulate trying to get SimHit";
116 if(hcalHandle.isValid()) {
117 std::vector<PCaloHit> hits = *hcalHandle.product();
121 LogDebug(
"HcalSim") <<
"HcalTBDigiProducer::accumulate Hits corrected";
151 LogDebug(
"HcalSim") <<
"HcalTBDigiProducer::produce Empty collection created";
154 edm::LogInfo(
"HcalSim") <<
"HcalTBDigiProducer: HBHE digis : " << hbheResult->size();
156 edm::LogInfo(
"HcalSim") <<
"HcalTBDigiProducer: HO digis : " << hoResult->size();
160 e.
put(hbheResult, instance);
161 e.
put(hoResult, instance);
167 for (edm::PCaloHitContainer::const_iterator hitItr = hits.begin();
168 hitItr != hits.end(); ++hitItr) {
175 edm::LogError(
"HcalSim") <<
"Bad HcalHit subdetector " << subdet;
211 edm::LogInfo(
"HcalSim") <<
"HcalTBDigiProducer update Geometry with "
212 <<
hbheCells.size() <<
" cells in HB/HE and "
213 <<
hoCells.size() <<
" cells in HO";
216 LogDebug(
"HcalSim") <<
"HcalTBDigiProducer: Set DetID's for HB/HE";
218 LogDebug(
"HcalSim") <<
"HcalTBDigiProducer: Set DetID's for HO";
void setPhaseShift(const DetId &detId)
int bunchCrossing() const
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
void setGeometry(const CaloGeometry *geometry)
geometry needed for time-of-flight
void setDbService(const HcalDbService *service)
the Producer will probably update this every event
T getUntrackedParameter(std::string const &, T const &) const
virtual void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
void sortHits(const edm::PCaloHitContainer &hits)
fills the vectors for each subdetector
std::vector< PCaloHit > PCaloHitContainer
std::vector< DetId > hoCells
virtual const CaloSimParameters & simParameters(const DetId &id) const
CaloHitResponse * theHBHEResponse
HcalTBDigiProducer(const edm::ParameterSet &ps, edm::one::EDProducerBase &mixMod, edm::ConsumesCollector &iC)
static PFTauRenderPlugin instance
HBHEHitFilter theHBHEHitFilter
HODigitizer * theHODigitizer
void add(const std::vector< PCaloHit > &hits, int bunchCrossing)
HcalElectronicsSim * theElectronicsSim
HOHitFilter theHOHitFilter
HcalTBSimParameterMap * theParameterMap
Main class for Parameters in different subdetectors.
const CaloGeometry * theGeometry
void setPhaseShift(const double &thePhaseShift)
setting the phase shift for asynchronous trigger (e.g. test beams)
CaloTDigitizer< HBHEDigitizerTraits > HBHEDigitizer
std::vector< PCaloHit > theHBHEHits
CaloTDigitizer< HODigitizerTraits > HODigitizer
edm::SortedCollection< HODataFrame > HODigiCollection
CaloVShape * theHcalIntegratedShape
void setHitFilter(const CaloVHitFilter *filter)
if you want to reject hits, for example, from a certain subdetector, set this
Creates electronics signals from hits.
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
HBHEDigitizer * theHBHEDigitizer
void fillChargeSums(MixCollection< PCaloHit > &hits)
void accumulateCaloHits(edm::Handle< std::vector< PCaloHit > > const &hits, int bunchCrossing)
void checkGeometry(const edm::EventSetup &eventSetup)
shaper for Hcal (not for HF)
std::vector< DetId > hbheCells
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual void accumulate(edm::Event const &e, edm::EventSetup const &c) override
std::vector< PCaloHit > theHOHits
CaloHitResponse * theHOResponse
void run(MixCollection< PCaloHit > &, DigiCollection &)
turns hits into digis
HcalHitCorrection * theHitCorrection
void setDbService(const HcalDbService *service)
T const * product() const
HcalAmplifier * theAmplifier
std::string ecalTBInfoLabel
std::vector< DetId > getValidDetIds() const
Get the list of all valid detector ids.
HcalCoderFactory * theCoderFactory
ESHandle< TrackerGeometry > geometry
CaloVShape * theHcalShape
virtual void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override
void setHitCorrection(const CaloVHitCorrection *hitCorrection)
If you want to correct hits, for attenuation or delay, set this.
bool getByLabel(edm::InputTag const &tag, edm::Handle< T > &result) const
void setDetIds(const std::vector< DetId > &detIds)
virtual ~HcalTBDigiProducer()
edm::SortedCollection< HBHEDataFrame > HBHEDigiCollection
bool syncPhase() const
choice of the ADC time alignment (synchronous for LHC, asynchronous for test beams) ...