171 <<
"This class requires the RandomNumberGeneratorService\n" 172 "which is not present in the configuration file. You must add the service\n" 173 "in the configuration file or remove the modules that require it.";
188 edm::LogInfo(
"PPS") <<
"PixelDigiProducer \n\n=================== Starting SimHit access" 189 <<
" ===================";
194 for (cfi =
col.begin(); cfi !=
col.end(); cfi++) {
196 <<
" Hit " <<
count <<
" has tof " << cfi->timeOfFlight() <<
" trackid " << cfi->trackId()
198 <<
", from EncodedEventId: " << cfi->eventId().bunchCrossing() <<
" " 199 << cfi->eventId().event() <<
" bcr from MixCol " << cfi.
bunch();
200 edm::LogInfo(
"PPS") <<
" PixelDigiProducer Hit: " << (*cfi) <<
" " << cfi->exitPoint();
208 edm::LogInfo(
"PPS") <<
"PixelDigiProducer Input MixCollection size = " << allRPixHits.size();
215 for (isim = allRPixHits.begin(); isim != allRPixHits.end(); ++isim) {
216 SimHitMap[(*isim).detUnitId()].push_back((*isim));
220 std::vector<edm::DetSet<CTPPSPixelDigi>> theDigiVector;
221 theDigiVector.reserve(400);
222 theDigiVector.clear();
228 theAlgoMap[it->first] = std::make_unique<RPixDetDigitizer>(
232 std::vector<int> input_links;
233 std::vector<std::vector<std::pair<int, double>>> output_digi_links;
236 SimHitMap[it->first], input_links, digi_collector.data, output_digi_links, &gainCalibration, &thePixelTopology);
238 if (!digi_collector.data.empty()) {
239 theDigiVector.push_back(digi_collector);
246 edm::LogInfo(
"PPS") <<
"PixelDigiProducer digi_output->size()=" << digi_output->size();
simhit_map::iterator simhit_map_iterator
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
T const * product() const
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
edm::EDGetTokenT< CrossingFrame< PSimHit > > tokenCrossingFramePPSPixel
CLHEP::HepRandomEngine * rndEngine_
std::map< unsigned int, std::vector< PSimHit > > simhit_map
Log< level::Info, false > LogInfo
edm::ESGetToken< CTPPSPixelGainCalibrations, CTPPSPixelGainCalibrationsRcd > gainCalibESToken_
std::map< uint32_t, std::unique_ptr< RPixDetDigitizer > > theAlgoMap
edm::ESGetToken< PPSPixelTopology, PPSPixelTopologyRcd > thePixelTopologyToken_