31 produces<CSCWireDigiCollection>(
"MuonCSCWireDigi");
32 produces<CSCStripDigiCollection>(
"MuonCSCStripDigi");
33 produces<CSCComparatorDigiCollection>(
"MuonCSCComparatorDigi");
34 produces<DigiSimLinks>(
"MuonCSCWireDigiSimLinks");
35 produces<DigiSimLinks>(
"MuonCSCStripDigiSimLinks");
39 if( stripConditions ==
"Configurable" )
43 else if ( stripConditions ==
"Database" )
50 <<
"Bad option for strip conditions: " 58 <<
"CSCDigitizer requires the RandomNumberGeneratorService\n" 59 "which is not present in the configuration file. You must add the service\n" 60 "in the configuration file or remove the modules that require it.";
77 edm::LogVerbatim(
"CSCDigitizer") <<
"[CSCDigiProducer::produce] starting event " <<
85 std::unique_ptr<MixCollection<PSimHit> >
93 std::unique_ptr<DigiSimLinks> pWireDigiSimLinks(
new DigiSimLinks() );
94 std::unique_ptr<DigiSimLinks> pStripDigiSimLinks(
new DigiSimLinks() );
122 *pWireDigiSimLinks, *pStripDigiSimLinks, engine);
129 ev.
put(
std::move(pComparatorDigis),
"MuonCSCComparatorDigi");
130 ev.
put(
std::move(pWireDigiSimLinks),
"MuonCSCWireDigiSimLinks");
131 ev.
put(
std::move(pStripDigiSimLinks),
"MuonCSCStripDigiSimLinks");
T getParameter(std::string const &) const
EventNumber_t event() const
CSCDigiProducer(const edm::ParameterSet &ps)
CSCDigitizer::DigiSimLinks DigiSimLinks
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
CSCDigitizer theDigitizer
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MuonDigiCollection< CSCDetId, CSCStripDigi > CSCStripDigiCollection
CSCStripConditions * theStripConditions
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
virtual void initializeEvent(const edm::EventSetup &es)
void getData(T &iHolder) const
MuonDigiCollection< CSCDetId, CSCComparatorDigi > CSCComparatorDigiCollection
edm::EDGetTokenT< CrossingFrame< PSimHit > > cf_token
void setStripConditions(CSCStripConditions *cond)
MuonDigiCollection< CSCDetId, CSCWireDigi > CSCWireDigiCollection
T const * product() const
void setParticleDataTable(const ParticleDataTable *pdt)
void doAction(MixCollection< PSimHit > &simHits, CSCWireDigiCollection &wireDigis, CSCStripDigiCollection &stripDigis, CSCComparatorDigiCollection &comparators, DigiSimLinks &wireDigiSimLinks, DigiSimLinks &stripDigiSimLinks, CLHEP::HepRandomEngine *)
virtual void produce(edm::Event &e, const edm::EventSetup &c)
StreamID streamID() const
void setGeometry(const CSCGeometry *geom)
sets geometry
virtual ~CSCDigiProducer()
void setMagneticField(const MagneticField *field)
sets the magnetic field