26 class HepRandomEngine;
30 : digiPreRecoModelString_(ps.getParameter<std::
string>(
"digiPreRecoModelString"))
32 produces<ME0DigiPreRecoCollection>();
35 if (!rng.isAvailable()){
37 <<
"ME0DigiPreRecoProducer::ME0PreRecoDigiProducer() - RandomNumberGeneratorService is not present in configuration file.\n"
38 <<
"Add the service in the configuration file or remove the modules that require it.";
80 std::map<uint32_t, edm::PSimHitContainer> hitMap;
81 for(
auto &
hit: *hits){
82 hitMap[
hit.detUnitId()].push_back(
hit);
88 for(
auto &roll: etaPartitions){
90 const uint32_t rawId(detId.rawId());
91 const auto &
simHits(hitMap[rawId]);
94 <<
"ME0DigiPreRecoProducer: found " << simHits.size() <<
" hit(s) in eta partition" << rawId;
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override
void fillDigis(int rollDetId, ME0DigiPreRecoCollection &)
ME0DigiPreRecoModel * me0DigiPreRecoModel_
ME0DigiPreRecoProducer(const edm::ParameterSet &ps)
void setGeometry(const ME0Geometry *geom)
MuonDigiCollection< ME0DetId, ME0DigiPreReco > ME0DigiPreRecoCollection
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual void simulateNoise(const ME0EtaPartition *, CLHEP::HepRandomEngine *engine)=0
const ME0Geometry * getGeometry()
virtual void simulateSignal(const ME0EtaPartition *, const edm::PSimHitContainer &, CLHEP::HepRandomEngine *engine)=0
virtual void produce(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< CrossingFrame< PSimHit > > cf_token
const std::vector< ME0EtaPartition const * > & etaPartitions() const
Return a vector of all ME0 eta partitions.
T const * product() const
std::string digiPreRecoModelString_
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &) const =0
Use this engine in event methods.
StreamID streamID() const
virtual ~ME0DigiPreRecoProducer()
T get(const Candidate &c)