29 produces<CSCWireDigiCollection>(
"MuonCSCWireDigi");
30 produces<CSCStripDigiCollection>(
"MuonCSCStripDigi");
31 produces<CSCComparatorDigiCollection>(
"MuonCSCComparatorDigi");
32 produces<DigiSimLinks>(
"MuonCSCWireDigiSimLinks");
33 produces<DigiSimLinks>(
"MuonCSCStripDigiSimLinks");
37 if( stripConditions ==
"Configurable" )
41 else if ( stripConditions ==
"Database" )
48 <<
"Bad option for strip conditions: "
56 <<
"CSCDigitizer requires the RandomNumberGeneratorService\n"
57 "which is not present in the configuration file. You must add the service\n"
58 "in the configuration file or remove the modules that require it.";
61 CLHEP::HepRandomEngine& engine = rng->
getEngine();
83 std::auto_ptr<MixCollection<PSimHit> >
91 std::auto_ptr<DigiSimLinks> pWireDigiSimLinks(
new DigiSimLinks() );
92 std::auto_ptr<DigiSimLinks> pStripDigiSimLinks(
new DigiSimLinks() );
120 *pWireDigiSimLinks, *pStripDigiSimLinks);
125 e.
put(pWireDigis,
"MuonCSCWireDigi");
126 e.
put(pStripDigis,
"MuonCSCStripDigi");
127 e.
put(pComparatorDigis,
"MuonCSCComparatorDigi");
128 e.
put(pWireDigiSimLinks,
"MuonCSCWireDigiSimLinks");
129 e.
put(pStripDigiSimLinks,
"MuonCSCStripDigiSimLinks");
T getParameter(std::string const &) const
CSCDigiProducer(const edm::ParameterSet &ps)
CSCDigitizer::DigiSimLinks DigiSimLinks
CSCDigitizer theDigitizer
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void setRandomEngine(CLHEP::HepRandomEngine &engine)
MuonDigiCollection< CSCDetId, CSCStripDigi > CSCStripDigiCollection
CSCStripConditions * theStripConditions
void setRandomEngine(CLHEP::HepRandomEngine &engine)
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 doAction(MixCollection< PSimHit > &simHits, CSCWireDigiCollection &wireDigis, CSCStripDigiCollection &stripDigis, CSCComparatorDigiCollection &comparators, DigiSimLinks &wireDigiSimLinks, DigiSimLinks &stripDigiSimLinks)
void setStripConditions(CSCStripConditions *cond)
virtual CLHEP::HepRandomEngine & getEngine() const =0
Use this to get the random number engine, this is the only function most users should call...
MuonDigiCollection< CSCDetId, CSCWireDigi > CSCWireDigiCollection
void setParticleDataTable(const ParticleDataTable *pdt)
T const * product() const
virtual void produce(edm::Event &e, const edm::EventSetup &c)
void setGeometry(const CSCGeometry *geom)
sets geometry
virtual ~CSCDigiProducer()
void setMagneticField(const MagneticField *field)
sets the magnetic field