|
|
Go to the documentation of this file.
28 produces<CSCWireDigiCollection>(
"MuonCSCWireDigi");
29 produces<CSCStripDigiCollection>(
"MuonCSCStripDigi");
30 produces<CSCComparatorDigiCollection>(
"MuonCSCComparatorDigi");
31 produces<DigiSimLinks>(
"MuonCSCWireDigiSimLinks");
32 produces<DigiSimLinks>(
"MuonCSCStripDigiSimLinks");
47 throw cms::Exception(
"Configuration") <<
"CSCDigitizer requires the RandomNumberGeneratorService\n"
48 "which is not present in the configuration file. You must add the "
50 "in the configuration file or remove the modules that require it.";
61 edm::LogVerbatim(
"CSCDigitizer") <<
"[CSCDigiProducer::produce] starting event " <<
ev.id().event() <<
" of run "
64 CLHEP::HepRandomEngine *engine = &rng->
getEngine(
ev.streamID());
76 std::unique_ptr<DigiSimLinks> pWireDigiSimLinks(
new DigiSimLinks());
77 std::unique_ptr<DigiSimLinks> pStripDigiSimLinks(
new DigiSimLinks());
80 if (
hits->size() > 0) {
103 *
hits, *pWireDigis, *pStripDigis, *pComparatorDigis, *pWireDigiSimLinks, *pStripDigiSimLinks, engine);
108 ev.put(
std::move(pStripDigis),
"MuonCSCStripDigi");
109 ev.put(
std::move(pComparatorDigis),
"MuonCSCComparatorDigi");
110 ev.put(
std::move(pWireDigiSimLinks),
"MuonCSCWireDigiSimLinks");
111 ev.put(
std::move(pStripDigiSimLinks),
"MuonCSCStripDigiSimLinks");
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
T const * product() const
void setMagneticField(const MagneticField *field)
sets the magnetic field
~CSCDigiProducer() override
void doAction(MixCollection< PSimHit > &simHits, CSCWireDigiCollection &wireDigis, CSCStripDigiCollection &stripDigis, CSCComparatorDigiCollection &comparators, DigiSimLinks &wireDigiSimLinks, DigiSimLinks &stripDigiSimLinks, CLHEP::HepRandomEngine *)
void setGeometry(const CSCGeometry *geom)
sets geometry
MuonDigiCollection< CSCDetId, CSCStripDigi > CSCStripDigiCollection
void setStripConditions(CSCStripConditions *cond)
MuonDigiCollection< CSCDetId, CSCComparatorDigi > CSCComparatorDigiCollection
CSCStripConditions * theStripConditions
bool getData(T &iHolder) const
virtual void initializeEvent(const edm::EventSetup &es)
T getParameter(std::string const &) const
MuonDigiCollection< CSCDetId, CSCWireDigi > CSCWireDigiCollection
void produce(edm::Event &e, const edm::EventSetup &c) override
CSCDigiProducer(const edm::ParameterSet &ps)
edm::EDGetTokenT< CrossingFrame< PSimHit > > cf_token
CSCDigitizer::DigiSimLinks DigiSimLinks
CSCDigitizer theDigitizer
void setParticleDataTable(const ParticleDataTable *pdt)