123 if (!gotTracks)
outputFile<<
" Could not read SimTracks!!!!" 124 <<
" Please, check if the object SimTracks has been declared in the" 125 <<
" MixingModule configuration file."<<std::endl;
128 outputFile<<
"\n=================== Starting SimTrack access ==================="<<std::endl;
133 std::cout <<
" \nWe got "<<col1->sizeSignal()<<
" signal tracks and "<<col1->sizePileup()<<
" pileup tracks, total: "<<col1->size()<<std::endl;
134 for (cfi1=col1->begin(); cfi1!=col1->end();cfi1++) {
147 outputFile<<
" SimTrack "<<count1<<
" has genpart index "<<cfi1->genpartIndex()<<
" vertex Index "<<cfi1->vertIndex() <<
" bunchcr "<<cfi1.
bunch()<<
" trigger "<<cfi1.
getTrigger()<<
", from EncodedEventId: "<<cfi1->eventId().bunchCrossing() <<
" "<<cfi1->eventId().event() <<std::endl;
158 if (!gotSimVertex)
outputFile<<
" Could not read Simvertices !!!!"<<std::endl;
160 outputFile<<
"\n=================== Starting SimVertex access ==================="<<std::endl;
164 outputFile <<
" \nWe got "<<col2->sizeSignal()<<
" signal vertices and "<<col2->sizePileup()<<
" pileup vertices, total: "<<col2->size()<<std::endl;
165 for (cfi2=col2->begin(); cfi2!=col2->end();cfi2++) {
168 if (count2 == 0 || b==3){
182 if (!gotHepMCP)
std::cout<<
" Could not read HepMCProducts!!!!"<<std::endl;
184 outputFile<<
"\n=================== Starting HepMCProduct access ==================="<<std::endl;
189 outputFile <<
" \nWe got "<<colhepmc->sizeSignal()<<
" signal hepmc products and "<<colhepmc->sizePileup()<<
" pileup hepmcs, total: "<<colhepmc->size()<<std::endl;
190 for (cfihepmc=colhepmc->begin(); cfihepmc!=colhepmc->end();cfihepmc++) {
193 if (count3==0 || c==3){
205 const std::string subdetcalo(
"g4SimHitsEcalHitsEB");
208 if (!gotPCaloHit)
outputFile<<
" Could not read CaloHits with label "<<subdetcalo<<
"!!!!"<<std::endl;
210 outputFile<<
"\n\n=================== Starting CaloHit access, subdet "<<subdetcalo<<
" ==================="<<std::endl;
215 for (cficalo=colcalo->begin(); cficalo!=colcalo->end();cficalo++) {
218 if (count4==0 || d==3){
230 const std::string subdet(
"g4SimHitsTrackerHitsTECHighTof");
233 if (!gotPSimHit)
outputFile<<
" Could not read SimHits with label "<<subdet<<
"!!!!"<<std::endl;
235 outputFile<<
"\n\n=================== Starting SimHit access, subdet "<<subdet<<
" ==================="<<std::endl;
241 for (cfi=
col->begin(); cfi!=
col->end();cfi++) {
252 std::cout <<
" cfi->timeOfFlight() = " << cfi->timeOfFlight() << std::endl;
253 tofhist_->Fill(cfi->timeOfFlight());
258 outputFile<<
" Hit "<<count5<<
" has tof "<<cfi->timeOfFlight()<<
" trackid "<<cfi->trackId() <<
" bunchcr "<<cfi.
bunch()<<
" trigger "<<cfi.
getTrigger()<<
", from EncodedEventId: "<<cfi->eventId().bunchCrossing()<<
" " <<cfi->eventId().event() <<
" bcr from MixCol "<<cfi.
bunch()<<std::endl;
267 if (!gotPSimHit1)
outputFile<<
" Could not read SimHits with label "<<subdet1<<
"!!!!"<<std::endl;
269 outputFile<<
"\n\n=================== Starting SimHit access, subdet "<<subdet1<<
" ==================="<<std::endl;
275 for (cfi=
col->begin(); cfi!=
col->end();cfi++) {
283 outputFile<<
" Hit "<<count5<<
" has tof "<<cfi->timeOfFlight()<<
" trackid "<<cfi->trackId() <<
" bunchcr "<<cfi.
bunch()<<
" trigger "<<cfi.
getTrigger()<<
", from EncodedEventId: "<<cfi->eventId().bunchCrossing()<<
" " <<cfi->eventId().event() <<
" bcr from MixCol "<<cfi.
bunch()<<std::endl;
TH1I * histTrack_bunchSignal_
TH1I * histPSimHit_bunchPileups_TrackerHitsTECHighTof_
TH1I * histPSimHit_bunchSignal_MuonCSCHits_
TH1I * histPSimHit_bunchPileups_MuonCSCHits_
edm::EDGetTokenT< CrossingFrame< PSimHit > > TrackerToken0_
edm::EDGetTokenT< CrossingFrame< SimTrack > > SimTrackToken_
TH1I * histPSimHit_bunchSignal_TrackerHitsTECHighTof_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
TH1I * histTrack_bunchPileups_
TH1I * histHepMCProduct_bunch_
edm::EDGetTokenT< CrossingFrame< PSimHit > > MuonToken_
TH1I * histPCaloHit_bunch_
edm::EDGetTokenT< CrossingFrame< PCaloHit > > CaloToken1_
edm::EDGetTokenT< CrossingFrame< SimVertex > > SimVertexToken_
T const * product() const
edm::EDGetTokenT< CrossingFrame< edm::HepMCProduct > > HepMCToken_