29 theHBHEResponse(new
CaloHitResponse(theParameterMap, theHcalIntegratedShape)),
30 theHOResponse(new
CaloHitResponse(theParameterMap, theHcalIntegratedShape)),
74 edm::LogInfo(
"HcalSim") <<
"HcalTBDigiProducer initialized with doNoise = " << doNoise
75 <<
", doTimeSlew = " << doTimeSlew <<
" and doPhaseShift = " <<
doPhaseShift 146 LogDebug(
"HcalSim") <<
"HcalTBDigiProducer::accumulate trying to get SimHit";
148 if (hcalHandle.isValid()) {
149 std::vector<PCaloHit>
hits = *hcalHandle.product();
150 LogDebug(
"HcalSim") <<
"HcalTBDigiProducer::accumulate Hits corrected";
182 LogDebug(
"HcalSim") <<
"HcalTBDigiProducer::produce Empty collection created";
185 edm::LogInfo(
"HcalSim") <<
"HcalTBDigiProducer: HBHE digis : " << hbheResult->size();
187 edm::LogInfo(
"HcalSim") <<
"HcalTBDigiProducer: HO digis : " << hoResult->size();
198 for (edm::PCaloHitContainer::const_iterator hitItr = hits.begin(); hitItr != hits.end(); ++hitItr) {
205 edm::LogError(
"HcalSim") <<
"Bad HcalHit subdetector " << subdet;
239 edm::LogInfo(
"HcalSim") <<
"HcalTBDigiProducer update Geometry with " <<
hbheCells.size() <<
" cells in HB/HE and " 240 <<
hoCells.size() <<
" cells in HO";
243 LogDebug(
"HcalSim") <<
"HcalTBDigiProducer: Set DetID's for HB/HE";
245 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
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
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
CaloHitResponse * theHBHEResponse
void add(const std::vector< PCaloHit > &hits, int bunchCrossing, CLHEP::HepRandomEngine *engine)
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
static PFTauRenderPlugin instance
HBHEHitFilter theHBHEHitFilter
HcalSimParameterMap * paraMap
HODigitizer * theHODigitizer
HcalElectronicsSim * theElectronicsSim
HOHitFilter theHOHitFilter
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
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)
Creates electronics signals from hits.
HBHEDigitizer * theHBHEDigitizer
void setTimeSlew(const HcalTimeSlew *timeSlew)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
void checkGeometry(const edm::EventSetup &eventSetup)
shaper for Hcal (not for HF)
HcalTBDigiProducer(const edm::ParameterSet &ps, edm::ProducesCollector, edm::ConsumesCollector &iC)
std::vector< DetId > hbheCells
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void accumulate(edm::Event const &e, edm::EventSetup const &c) override
std::vector< PCaloHit > theHOHits
CaloHitResponse * theHOResponse
const CaloSimParameters & simParameters(const DetId &id) const override
void setTimeSlewSim(HcalTimeSlewSim *timeSlewSim)
~HcalTBDigiProducer() override
void setDbService(const HcalDbService *service)
void run(MixCollection< PCaloHit > &, DigiCollection &)
turns hits into digis
HcalAmplifier * theAmplifier
std::string ecalTBInfoLabel
std::vector< DetId > getValidDetIds() const
Get the list of all valid detector ids.
CLHEP::HepRandomEngine * randomEngine_
HcalCoderFactory * theCoderFactory
double phaseShift() const
ESHandle< TrackerGeometry > geometry
CaloVShape * theHcalShape
void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override
bool getByLabel(edm::InputTag const &tag, edm::Handle< T > &result) const
StreamID streamID() const
T const * product() const
const HcalTimeSlew * hcalTimeSlew_delay_
void accumulateCaloHits(edm::Handle< std::vector< PCaloHit >> const &hits, int bunchCrossing)
void setDetIds(const std::vector< DetId > &detIds)
edm::SortedCollection< HBHEDataFrame > HBHEDigiCollection
HcalTimeSlewSim * theTimeSlewSim