Definition at line 37 of file ME0DigiPreRecoProducer.cc.
Definition at line 56 of file ME0DigiPreRecoProducer.cc.
References digiPreRecoModelString_, and get.
59 produces<ME0DigiPreRecoCollection>();
62 if (!rng.isAvailable()) {
64 <<
"ME0DigiPreRecoProducer::ME0PreRecoDigiProducer() - RandomNumberGeneratorService is not present in "
65 "configuration file.\n"
66 <<
"Add the service in the configuration file or remove the modules that require it.";
74 geom_token_ = esConsumes<ME0Geometry, MuonGeometryRecord, edm::Transition::BeginRun>();
std::unique_ptr< ME0DigiPreRecoModel > me0DigiPreRecoModel_
edm::EDGetTokenT< CrossingFrame< PSimHit > > cf_token
std::string digiPreRecoModelString_
T getParameter(std::string const &) const
edm::ESGetToken< ME0Geometry, MuonGeometryRecord > geom_token_
ME0DigiPreRecoProducer::~ME0DigiPreRecoProducer |
( |
| ) |
|
|
overridedefault |
Definition at line 86 of file ME0DigiPreRecoProducer.cc.
References cf_token, edm::Event::getByToken(), edm::RandomNumberGenerator::getEngine(), LogDebug, me0DigiPreRecoModel_, eostools::move(), edm::Handle< T >::product(), edm::Event::put(), trackerHits::simHits, and edm::Event::streamID().
96 auto digis = std::make_unique<ME0DigiPreRecoCollection>();
99 std::map<uint32_t, edm::PSimHitContainer> hitMap;
100 for (
const auto&
hit : hits) {
101 hitMap[
hit.detUnitId()].push_back(
hit);
107 for (
const auto& roll : etaPartitions) {
109 const uint32_t rawId(detId.rawId());
110 const auto&
simHits(hitMap[rawId]);
112 LogDebug(
"ME0DigiPreRecoProducer") <<
"ME0DigiPreRecoProducer: found " <<
simHits.size()
113 <<
" 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_
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
edm::EDGetTokenT< CrossingFrame< PSimHit > > cf_token
T const * product() const
StreamID streamID() const
std::string ME0DigiPreRecoProducer::digiPreRecoModelString_ |
|
private |