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::auto_ptr<MixCollection<PSimHit> >
93 std::auto_ptr<DigiSimLinks> pWireDigiSimLinks(
new DigiSimLinks() );
94 std::auto_ptr<DigiSimLinks> pStripDigiSimLinks(
new DigiSimLinks() );
122 *pWireDigiSimLinks, *pStripDigiSimLinks, engine);
127 ev.
put(pWireDigis,
"MuonCSCWireDigi");
128 ev.
put(pStripDigis,
"MuonCSCStripDigi");
129 ev.
put(pComparatorDigis,
"MuonCSCComparatorDigi");
130 ev.
put(pWireDigiSimLinks,
"MuonCSCWireDigiSimLinks");
131 ev.
put(pStripDigiSimLinks,
"MuonCSCStripDigiSimLinks");
T getParameter(std::string const &) const
EventNumber_t event() const
CSCDigiProducer(const edm::ParameterSet &ps)
CSCDigitizer::DigiSimLinks DigiSimLinks
CSCDigitizer theDigitizer
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MuonDigiCollection< CSCDetId, CSCStripDigi > CSCStripDigiCollection
CSCStripConditions * theStripConditions
virtual void initializeEvent(const edm::EventSetup &es)
void getData(T &iHolder) const
MuonDigiCollection< CSCDetId, CSCComparatorDigi > CSCComparatorDigiCollection
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< CrossingFrame< PSimHit > > cf_token
void setStripConditions(CSCStripConditions *cond)
MuonDigiCollection< CSCDetId, CSCWireDigi > CSCWireDigiCollection
T const * product() const
void setParticleDataTable(const ParticleDataTable *pdt)
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &) const =0
Use this engine in event methods.
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