#include <ME0DigiPreRecoProducer.h>
Definition at line 17 of file ME0DigiPreRecoProducer.h.
ME0DigiPreRecoProducer::~ME0DigiPreRecoProducer |
( |
| ) |
|
|
overridedefault |
Definition at line 59 of file ME0DigiPreRecoProducer.cc.
References cf_token, edm::Event::getByToken(), edm::RandomNumberGenerator::getEngine(), hfClusterShapes_cfi::hits, LogDebug, me0DigiPreRecoModel_, eostools::move(), edm::Handle< T >::product(), edm::Event::put(), trackerHits::simHits, and edm::Event::streamID().
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_
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 |