23 class HepRandomEngine;
27 : digiPreRecoModelString_(ps.getParameter<
std::
string>(
"digiPreRecoModelString"))
30 produces<ME0DigiPreRecoCollection>();
33 if (!rng.isAvailable()){
35 <<
"ME0DigiPreRecoProducer::ME0PreRecoDigiProducer() - RandomNumberGeneratorService is not present in configuration file.\n" 36 <<
"Add the service in the configuration file or remove the modules that require it.";
70 auto digis = std::make_unique<ME0DigiPreRecoCollection>();
73 std::map<uint32_t, edm::PSimHitContainer> hitMap;
75 hitMap[
hit.detUnitId()].push_back(
hit);
81 for (
const auto& roll: etaPartitions){
83 const uint32_t rawId(detId.rawId());
84 const auto &
simHits(hitMap[rawId]);
87 <<
"ME0DigiPreRecoProducer: found " << simHits.size() <<
" hit(s) in eta partition" << rawId;
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::unique_ptr< ME0DigiPreRecoModel > me0DigiPreRecoModel_
void beginRun(const edm::Run &, const edm::EventSetup &) override
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
ME0DigiPreRecoProducer(const edm::ParameterSet &ps)
~ME0DigiPreRecoProducer() override
void produce(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< CrossingFrame< PSimHit > > cf_token
T const * product() const
std::string digiPreRecoModelString_
StreamID streamID() const
T get(const Candidate &c)