24 produces<CSCWireDigiCollection>(
"MuonCSCWireDigi");
25 produces<CSCStripDigiCollection>(
"MuonCSCStripDigi");
26 produces<CSCComparatorDigiCollection>(
"MuonCSCComparatorDigi");
27 produces<DigiSimLinks>(
"MuonCSCWireDigiSimLinks");
28 produces<DigiSimLinks>(
"MuonCSCStripDigiSimLinks");
29 std::string stripConditions( ps.
getParameter<std::string>(
"stripConditions") );
32 if( stripConditions ==
"Configurable" )
36 else if ( stripConditions ==
"Database" )
43 <<
"Bad option for strip conditions: "
51 <<
"CSCDigitizer requires the RandomNumberGeneratorService\n"
52 "which is not present in the configuration file. You must add the service\n"
53 "in the configuration file or remove the modules that require it.";
56 CLHEP::HepRandomEngine& engine = rng->
getEngine();
78 std::auto_ptr<MixCollection<PSimHit> >
86 std::auto_ptr<DigiSimLinks> pWireDigiSimLinks(
new DigiSimLinks() );
87 std::auto_ptr<DigiSimLinks> pStripDigiSimLinks(
new DigiSimLinks() );
115 *pWireDigiSimLinks, *pStripDigiSimLinks);
120 e.
put(pWireDigis,
"MuonCSCWireDigi");
121 e.
put(pStripDigis,
"MuonCSCStripDigi");
122 e.
put(pComparatorDigis,
"MuonCSCComparatorDigi");
123 e.
put(pWireDigiSimLinks,
"MuonCSCWireDigiSimLinks");
124 e.
put(pStripDigiSimLinks,
"MuonCSCStripDigiSimLinks");
T getParameter(std::string const &) const
CSCDigiProducer(const edm::ParameterSet &ps)
CSCDigitizer::DigiSimLinks DigiSimLinks
CSCDigitizer theDigitizer
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.
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...
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
MuonDigiCollection< CSCDetId, CSCWireDigi > CSCWireDigiCollection
void setParticleDataTable(const ParticleDataTable *pdt)
T const * product() const
virtual void produce(edm::Event &e, const edm::EventSetup &c)
std::string collection_for_XF
void setGeometry(const CSCGeometry *geom)
sets geometry
virtual ~CSCDigiProducer()
void setMagneticField(const MagneticField *field)
sets the magnetic field