26 getAllProvenances(
false),
27 printProvenanceInfo(
false),
41 std::string MsgLoggerCat =
"GlobalHitsAnalyzer_GlobalHitsAnalyzer";
133 <<
"\n===============================\n" 134 <<
"Initialized as EDAnalyzer with parameter values:\n" 135 <<
" Name = " <<
fName <<
"\n" 138 <<
" VtxUnit = " <<
vtxunit <<
"\n" 161 <<
" validHepMCevt = " 163 <<
" validG4VtxContainer = " 165 <<
" validG4trkContainer = " 167 <<
" validPxlBrlLow = " 169 <<
" validPxlBrlHigh = " 171 <<
" validPxlFwdLow = " 173 <<
" validPxlFwdHigh = " 175 <<
" validSiTIBLow = " 177 <<
" validSiTIBHigh = " 179 <<
" validSiTOBLow = " 181 <<
" validSiTOBHigh = " 183 <<
" validSiTIDLow = " 185 <<
" validSiTIDHigh = " 187 <<
" validSiTECLow = " 189 <<
" validSiTECHigh = " 191 <<
" validMuonCSC = " 195 <<
" validMuonRPC = " 205 <<
"===============================\n";
209 for (Int_t
i = 0;
i < 2; ++
i) {
274 sprintf(hname,
"hMCRGP1");
275 sprintf(htitle,
"RawGenParticles");
277 sprintf(hname,
"hMCRGP2");
279 for (Int_t
i = 0;
i < 2; ++
i) {
284 sprintf(hname,
"hMCG4Vtx1");
285 sprintf(htitle,
"G4 Vertices");
287 sprintf(hname,
"hMCG4Vtx2");
289 for (Int_t
i = 0;
i < 2; ++
i) {
294 sprintf(hname,
"hMCG4Trk1");
295 sprintf(htitle,
"G4 Tracks");
297 sprintf(hname,
"hMCG4Trk2");
299 for (Int_t
i = 0;
i < 2; ++
i) {
304 sprintf(hname,
"hGeantVtxX1");
305 sprintf(htitle,
"Geant vertex x/micrometer");
307 sprintf(hname,
"hGeantVtxX2");
309 for (Int_t
i = 0;
i < 2; ++
i) {
314 sprintf(hname,
"hGeantVtxY1");
315 sprintf(htitle,
"Geant vertex y/micrometer");
317 sprintf(hname,
"hGeantVtxY2");
319 for (Int_t
i = 0;
i < 2; ++
i) {
324 sprintf(hname,
"hGeantVtxZ1");
325 sprintf(htitle,
"Geant vertex z/millimeter");
327 sprintf(hname,
"hGeantVtxZ2");
330 for (Int_t
i = 0;
i < 2; ++
i) {
335 sprintf(hname,
"hGeantTrkPt");
336 sprintf(htitle,
"Log10 Geant track pt/GeV");
341 sprintf(hname,
"hGeantTrkE");
342 sprintf(htitle,
"Log10 Geant track E/GeV");
347 sprintf(hname,
"hGeantVtxEta");
348 sprintf(htitle,
"Geant vertices eta");
353 sprintf(hname,
"hGeantVtxPhi");
354 sprintf(htitle,
"Geant vertices phi/rad");
359 sprintf(hname,
"hGeantVtxRad1");
360 sprintf(htitle,
"Geant vertices radius/cm");
362 sprintf(hname,
"hGeantVtxRad2");
364 for (Int_t
i = 0;
i < 2; ++
i) {
369 sprintf(hname,
"hGeantVtxMulti");
370 sprintf(htitle,
"Geant vertices outgoing multiplicity");
377 sprintf(hname,
"hCaloEcal1");
378 sprintf(htitle,
"Ecal hits");
380 sprintf(hname,
"hCaloEcal2");
383 sprintf(hname,
"hCaloEcalE1");
384 sprintf(htitle,
"Ecal hits, energy/GeV");
386 sprintf(hname,
"hCaloEcalE2");
388 sprintf(hname,
"hCaloEcalToF1");
389 sprintf(htitle,
"Ecal hits, ToF/ns");
391 sprintf(hname,
"hCaloEcalToF2");
394 for (Int_t
i = 0;
i < 2; ++
i) {
403 sprintf(hname,
"hCaloEcalPhi");
404 sprintf(htitle,
"Ecal hits, phi/rad");
409 sprintf(hname,
"hCaloEcalEta");
410 sprintf(htitle,
"Ecal hits, eta");
415 sprintf(hname,
"hCaloPreSh1");
416 sprintf(htitle,
"PreSh hits");
418 sprintf(hname,
"hCaloPreSh2");
421 sprintf(hname,
"hCaloPreShE1");
422 sprintf(htitle,
"PreSh hits, energy/GeV");
424 sprintf(hname,
"hCaloPreShE2");
427 sprintf(hname,
"hCaloPreShToF1");
428 sprintf(htitle,
"PreSh hits, ToF/ns");
430 sprintf(hname,
"hCaloPreShToF2");
433 for (Int_t
i = 0;
i < 2; ++
i) {
442 sprintf(hname,
"hCaloPreShPhi");
443 sprintf(htitle,
"PreSh hits, phi/rad");
448 sprintf(hname,
"hCaloPreShEta");
449 sprintf(htitle,
"PreSh hits, eta");
456 sprintf(hname,
"hCaloHcal1");
457 sprintf(htitle,
"Hcal hits");
459 sprintf(hname,
"hCaloHcal2");
462 sprintf(hname,
"hCaloHcalE1");
463 sprintf(htitle,
"Hcal hits, energy/GeV");
465 sprintf(hname,
"hCaloHcalE2");
468 sprintf(hname,
"hCaloHcalToF1");
469 sprintf(htitle,
"Hcal hits, ToF/ns");
471 sprintf(hname,
"hCaloHcalToF2");
474 for (Int_t
i = 0;
i < 2; ++
i) {
483 sprintf(hname,
"hCaloHcalPhi");
484 sprintf(htitle,
"Hcal hits, phi/rad");
489 sprintf(hname,
"hCaloHcalEta");
490 sprintf(htitle,
"Hcal hits, eta");
497 sprintf(hname,
"hTrackerPx1");
498 sprintf(htitle,
"Pixel hits");
500 sprintf(hname,
"hTrackerPx2");
502 for (Int_t
i = 0;
i < 2; ++
i) {
507 sprintf(hname,
"hTrackerPxPhi");
508 sprintf(htitle,
"Pixel hits phi/rad");
513 sprintf(hname,
"hTrackerPxEta");
514 sprintf(htitle,
"Pixel hits eta");
519 sprintf(hname,
"hTrackerPxBToF");
520 sprintf(htitle,
"Pixel barrel hits, ToF/ns");
525 sprintf(hname,
"hTrackerPxBR");
526 sprintf(htitle,
"Pixel barrel hits, R/cm");
531 sprintf(hname,
"hTrackerPxFToF");
532 sprintf(htitle,
"Pixel forward hits, ToF/ns");
537 sprintf(hname,
"hTrackerPxFZ");
538 sprintf(htitle,
"Pixel forward hits, Z/cm");
545 sprintf(hname,
"hTrackerSi1");
546 sprintf(htitle,
"Silicon hits");
548 sprintf(hname,
"hTrackerSi2");
550 for (Int_t
i = 0;
i < 2; ++
i) {
555 sprintf(hname,
"hTrackerSiPhi");
556 sprintf(htitle,
"Silicon hits phi/rad");
561 sprintf(hname,
"hTrackerSiEta");
562 sprintf(htitle,
"Silicon hits eta");
567 sprintf(hname,
"hTrackerSiBToF");
568 sprintf(htitle,
"Silicon barrel hits, ToF/ns");
573 sprintf(hname,
"hTrackerSiBR");
574 sprintf(htitle,
"Silicon barrel hits, R/cm");
579 sprintf(hname,
"hTrackerSiFToF");
580 sprintf(htitle,
"Silicon forward hits, ToF/ns");
585 sprintf(hname,
"hTrackerSiFZ");
586 sprintf(htitle,
"Silicon forward hits, Z/cm");
593 sprintf(hname,
"hMuon1");
594 sprintf(htitle,
"Muon hits");
595 meMuon[0] = iBooker.
book1D(hname, htitle, 100, 0., 10000.);
596 sprintf(hname,
"hMuon2");
597 meMuon[1] = iBooker.
book1D(hname, htitle, 100, -0.5, 99.5);
598 for (Int_t
i = 0;
i < 2; ++
i) {
603 sprintf(hname,
"hMuonPhi");
604 sprintf(htitle,
"Muon hits phi/rad");
609 sprintf(hname,
"hMuonEta");
610 sprintf(htitle,
"Muon hits eta");
615 sprintf(hname,
"hMuonCscToF1");
616 sprintf(htitle,
"Muon CSC hits, ToF/ns");
618 sprintf(hname,
"hMuonCscToF2");
620 for (Int_t
i = 0;
i < 2; ++
i) {
625 sprintf(hname,
"hMuonCscZ");
626 sprintf(htitle,
"Muon CSC hits, Z/cm");
631 sprintf(hname,
"hMuonDtToF1");
632 sprintf(htitle,
"Muon DT hits, ToF/ns");
634 sprintf(hname,
"hMuonDtToF2");
636 for (Int_t
i = 0;
i < 2; ++
i) {
641 sprintf(hname,
"hMuonDtR");
642 sprintf(htitle,
"Muon DT hits, R/cm");
647 sprintf(hname,
"hMuonRpcFToF1");
648 sprintf(htitle,
"Muon RPC forward hits, ToF/ns");
650 sprintf(hname,
"hMuonRpcFToF2");
652 for (Int_t
i = 0;
i < 2; ++
i) {
656 sprintf(hname,
"hMuonRpcFZ");
657 sprintf(htitle,
"Muon RPC forward hits, Z/cm");
662 sprintf(hname,
"hMuonRpcBToF1");
663 sprintf(htitle,
"Muon RPC barrel hits, ToF/ns");
665 sprintf(hname,
"hMuonRpcBToF2");
667 for (Int_t
i = 0;
i < 2; ++
i) {
672 sprintf(hname,
"hMuonRpcBR");
673 sprintf(htitle,
"Muon RPC barrel hits, R/cm");
680 std::string MsgLoggerCat =
"GlobalHitsAnalyzer_analyze";
690 edm::LogInfo(MsgLoggerCat) <<
"Processing run " << nrun <<
", event " <<
nevt <<
" (" <<
count <<
" events total)";
700 std::vector<const edm::StableProvenance *> AllProv;
701 iEvent.getAllStableProvenance(AllProv);
704 edm::LogInfo(MsgLoggerCat) <<
"Number of Provenances = " << AllProv.size();
707 TString eventout(
"\nProvenance info:\n");
709 for (
unsigned int i = 0;
i < AllProv.size(); ++
i) {
710 eventout +=
"\n ******************************";
711 eventout +=
"\n Module : ";
712 eventout += AllProv[
i]->moduleLabel();
713 eventout +=
"\n ProductID : ";
714 eventout += AllProv[
i]->productID().id();
715 eventout +=
"\n ClassName : ";
716 eventout += AllProv[
i]->className();
717 eventout +=
"\n InstanceName : ";
718 eventout += AllProv[
i]->productInstanceName();
719 eventout +=
"\n BranchName : ";
720 eventout += AllProv[
i]->branchName();
722 eventout +=
"\n ******************************\n";
742 edm::LogInfo(MsgLoggerCat) <<
"Done gathering data from event.";
749 std::string MsgLoggerCat =
"GlobalHitsAnalyzer_fillG4MC";
753 eventout =
"\nGathering info:";
759 std::vector<edm::Handle<edm::HepMCProduct>> AllHepMCEvt;
763 for (
unsigned int i = 0;
i < AllHepMCEvt.size(); ++
i) {
764 HepMCEvt = AllHepMCEvt[
i];
770 LogDebug(MsgLoggerCat) <<
"Unable to find HepMCProduct in event!";
773 eventout +=
"\n Using HepMCProduct: ";
781 eventout +=
"\n Number of Raw Particles collected:......... ";
808 if (!G4VtxContainer.
isValid()) {
809 LogDebug(MsgLoggerCat) <<
"Unable to find SimVertex in event!";
814 edm::SimVertexContainer::const_iterator itVtx;
815 for (itVtx = G4VtxContainer->begin(); itVtx != G4VtxContainer->end(); ++itVtx) {
819 itVtx->position().x(), itVtx->position().y(), itVtx->position().z(), itVtx->position().e());
822 G4Vtx1.GetCoordinates(G4Vtx);
850 if (G4TrkContainer.
isValid()) {
851 edm::SimTrackContainer::const_iterator itTrk;
852 for (itTrk = G4TrkContainer->begin(); itTrk != G4TrkContainer->end(); ++itTrk) {
853 if ((*itTrk).vertIndex() ==
i) {
863 eventout +=
"\n Number of G4Vertices collected:............ ";
876 if (!G4TrkContainer.
isValid()) {
877 LogDebug(MsgLoggerCat) <<
"Unable to find SimTrack in event!";
882 edm::SimTrackContainer::const_iterator itTrk;
883 for (itTrk = G4TrkContainer->begin(); itTrk != G4TrkContainer->end(); ++itTrk) {
887 itTrk->momentum().x(), itTrk->momentum().y(), itTrk->momentum().z(), itTrk->momentum().e());
889 G4Trk1.GetCoordinates(G4Trk);
898 eventout +=
"\n Number of G4Tracks collected:.............. ";
916 std::string MsgLoggerCat =
"GlobalHitsAnalyzer_fillTrk";
920 eventout =
"\nGathering info:";
924 if (!theTrackerGeometry.isValid()) {
925 edm::LogWarning(MsgLoggerCat) <<
"Unable to find TrackerDigiGeometryRecord in event!";
931 edm::PSimHitContainer::const_iterator itHit;
940 if (!PxlBrlLowContainer.
isValid()) {
941 LogDebug(MsgLoggerCat) <<
"Unable to find TrackerHitsPixelBarrelLowTof in event!";
947 if (!PxlBrlHighContainer.
isValid()) {
948 LogDebug(MsgLoggerCat) <<
"Unable to find TrackerHitsPixelBarrelHighTof in event!";
953 thePxlBrlHits.insert(thePxlBrlHits.end(), PxlBrlLowContainer->begin(), PxlBrlLowContainer->end());
955 thePxlBrlHits.insert(thePxlBrlHits.end(), PxlBrlHighContainer->begin(), PxlBrlHighContainer->end());
959 for (itHit = thePxlBrlHits.begin(); itHit != thePxlBrlHits.end(); ++itHit) {
963 DetId theDetUnitId(itHit->detUnitId());
973 edm::LogWarning(MsgLoggerCat) <<
"Unable to get GeomDetUnit from PxlBrlHits for Hit " <<
i;
992 edm::LogWarning(MsgLoggerCat) <<
"PxlBrl PSimHit " <<
i <<
" is expected to be (det,subdet) = (" <<
dTrk <<
"," 999 eventout +=
"\n Number of Pixel Barrel Hits collected:..... ";
1012 if (!PxlFwdLowContainer.
isValid()) {
1013 LogDebug(MsgLoggerCat) <<
"Unable to find TrackerHitsPixelEndcapLowTof in event!";
1019 if (!PxlFwdHighContainer.
isValid()) {
1020 LogDebug(
"GlobalHitsAnalyzer_fillTrk") <<
"Unable to find TrackerHitsPixelEndcapHighTof in event!";
1025 thePxlFwdHits.insert(thePxlFwdHits.end(), PxlFwdLowContainer->begin(), PxlFwdLowContainer->end());
1027 thePxlFwdHits.insert(thePxlFwdHits.end(), PxlFwdHighContainer->begin(), PxlFwdHighContainer->end());
1032 for (itHit = thePxlFwdHits.begin(); itHit != thePxlFwdHits.end(); ++itHit) {
1036 DetId theDetUnitId(itHit->detUnitId());
1046 edm::LogWarning(MsgLoggerCat) <<
"Unable to get GeomDetUnit from PxlFwdHits for Hit " <<
i;
1066 edm::LogWarning(MsgLoggerCat) <<
"PxlFwd PSimHit " <<
i <<
" is expected to be (det,subdet) = (" <<
dTrk <<
"," 1073 eventout +=
"\n Number of Pixel Forward Hits collected:.... ";
1092 if (!SiTIBLowContainer.
isValid()) {
1093 LogDebug(MsgLoggerCat) <<
"Unable to find TrackerHitsTIBLowTof in event!";
1099 if (!SiTIBHighContainer.
isValid()) {
1100 LogDebug(MsgLoggerCat) <<
"Unable to find TrackerHitsTIBHighTof in event!";
1106 if (!SiTOBLowContainer.
isValid()) {
1107 LogDebug(MsgLoggerCat) <<
"Unable to find TrackerHitsTOBLowTof in event!";
1113 if (!SiTOBHighContainer.
isValid()) {
1114 LogDebug(MsgLoggerCat) <<
"Unable to find TrackerHitsTOBHighTof in event!";
1119 theSiBrlHits.insert(theSiBrlHits.end(), SiTIBLowContainer->begin(), SiTIBLowContainer->end());
1121 theSiBrlHits.insert(theSiBrlHits.end(), SiTIBHighContainer->begin(), SiTIBHighContainer->end());
1123 theSiBrlHits.insert(theSiBrlHits.end(), SiTOBLowContainer->begin(), SiTOBLowContainer->end());
1125 theSiBrlHits.insert(theSiBrlHits.end(), SiTOBHighContainer->begin(), SiTOBHighContainer->end());
1130 for (itHit = theSiBrlHits.begin(); itHit != theSiBrlHits.end(); ++itHit) {
1134 DetId theDetUnitId(itHit->detUnitId());
1144 edm::LogWarning(MsgLoggerCat) <<
"Unable to get GeomDetUnit from SiBrlHits for Hit " <<
i;
1163 edm::LogWarning(MsgLoggerCat) <<
"SiBrl PSimHit " <<
i <<
" is expected to be (det,subdet) = (" <<
dTrk <<
"," 1171 eventout +=
"\n Number of Silicon Barrel Hits collected:... ";
1184 if (!SiTIDLowContainer.
isValid()) {
1185 LogDebug(MsgLoggerCat) <<
"Unable to find TrackerHitsTIDLowTof in event!";
1191 if (!SiTIDHighContainer.
isValid()) {
1192 LogDebug(
"GlobalHitsAnalyzer_fillTrk") <<
"Unable to find TrackerHitsTIDHighTof in event!";
1198 if (!SiTECLowContainer.
isValid()) {
1199 LogDebug(MsgLoggerCat) <<
"Unable to find TrackerHitsTECLowTof in event!";
1205 if (!SiTECHighContainer.
isValid()) {
1206 LogDebug(MsgLoggerCat) <<
"Unable to find TrackerHitsTECHighTof in event!";
1211 theSiFwdHits.insert(theSiFwdHits.end(), SiTIDLowContainer->begin(), SiTIDLowContainer->end());
1213 theSiFwdHits.insert(theSiFwdHits.end(), SiTIDHighContainer->begin(), SiTIDHighContainer->end());
1215 theSiFwdHits.insert(theSiFwdHits.end(), SiTECLowContainer->begin(), SiTECLowContainer->end());
1217 theSiFwdHits.insert(theSiFwdHits.end(), SiTECHighContainer->begin(), SiTECHighContainer->end());
1222 for (itHit = theSiFwdHits.begin(); itHit != theSiFwdHits.end(); ++itHit) {
1226 DetId theDetUnitId(itHit->detUnitId());
1236 edm::LogWarning(MsgLoggerCat) <<
"Unable to get GeomDetUnit from SiFwdHits Hit " <<
i;
1255 edm::LogWarning(MsgLoggerCat) <<
"SiFwd PSimHit " <<
i <<
" is expected to be (det,subdet) = (" <<
dTrk <<
"," 1263 eventout +=
"\n Number of Silicon Forward Hits collected:.. ";
1282 std::string MsgLoggerCat =
"GlobalHitsAnalyzer_fillMuon";
1286 eventout =
"\nGathering info:";
1289 edm::PSimHitContainer::const_iterator itHit;
1296 if (!theCSCGeometry.isValid()) {
1297 edm::LogWarning(MsgLoggerCat) <<
"Unable to find MuonGeometryRecord for the CSCGeometry in event!";
1305 if (!MuonCSCContainer.
isValid()) {
1306 LogDebug(MsgLoggerCat) <<
"Unable to find MuonCSCHits in event!";
1313 for (itHit = MuonCSCContainer->begin(); itHit != MuonCSCContainer->end(); ++itHit) {
1317 DetId theDetUnitId(itHit->detUnitId());
1327 edm::LogWarning(MsgLoggerCat) <<
"Unable to get GeomDetUnit from theCSCMuon for hit " <<
i;
1348 edm::LogWarning(MsgLoggerCat) <<
"MuonCsc PSimHit " <<
i <<
" is expected to be (det,subdet) = (" <<
dMuon 1356 eventout +=
"\n Number of CSC muon Hits collected:......... ";
1368 if (!theDTGeometry.isValid()) {
1369 edm::LogWarning(MsgLoggerCat) <<
"Unable to find MuonGeometryRecord for the DTGeometry in event!";
1377 if (!MuonDtContainer.
isValid()) {
1378 LogDebug(MsgLoggerCat) <<
"Unable to find MuonDTHits in event!";
1385 for (itHit = MuonDtContainer->begin(); itHit != MuonDtContainer->end(); ++itHit) {
1389 DetId theDetUnitId(itHit->detUnitId());
1397 DTWireId wireId(itHit->detUnitId());
1400 const DTLayer *theDet = theDTMuon.
layer(wireId.layerId());
1403 edm::LogWarning(MsgLoggerCat) <<
"Unable to get GeomDetUnit from theDtMuon for hit " <<
i;
1410 const BoundPlane &bSurface = theDet->surface();
1424 edm::LogWarning(MsgLoggerCat) <<
"MuonDt PSimHit " <<
i <<
" is expected to be (det,subdet) = (" <<
dMuon <<
"," 1431 eventout +=
"\n Number of DT muon Hits collected:.......... ";
1444 if (!theRPCGeometry.isValid()) {
1445 edm::LogWarning(MsgLoggerCat) <<
"Unable to find MuonGeometryRecord for the RPCGeometry in event!";
1453 if (!MuonRPCContainer.
isValid()) {
1454 LogDebug(MsgLoggerCat) <<
"Unable to find MuonRPCHits in event!";
1461 int RPCBrl = 0, RPCFwd = 0;
1462 for (itHit = MuonRPCContainer->begin(); itHit != MuonRPCContainer->end(); ++itHit) {
1466 DetId theDetUnitId(itHit->detUnitId());
1473 RPCDetId RPCId(itHit->detUnitId());
1476 int region = RPCId.region();
1482 edm::LogWarning(MsgLoggerCat) <<
"Unable to get GeomDetUnit from theRPCMuon for hit " <<
i;
1525 edm::LogWarning(MsgLoggerCat) <<
"MuonRpc PSimHit " <<
i <<
" is expected to be (det,subdet) = (" <<
dMuon 1533 eventout +=
"\n Number of RPC muon Hits collected:......... ";
1535 eventout +=
"\n RPC Barrel muon Hits:............ ";
1537 eventout +=
"\n RPC Forward muon Hits:........... ";
1556 std::string MsgLoggerCat =
"GlobalHitsAnalyzer_fillECal";
1560 eventout =
"\nGathering info:";
1564 if (!theCaloGeometry.isValid()) {
1565 edm::LogWarning(MsgLoggerCat) <<
"Unable to find CaloGeometryRecord in event!";
1571 edm::PCaloHitContainer::const_iterator itHit;
1581 LogDebug(MsgLoggerCat) <<
"Unable to find EcalHitsEB in event!";
1588 LogDebug(MsgLoggerCat) <<
"Unable to find EcalHitsEE in event!";
1593 theECalHits.insert(theECalHits.end(), EBContainer->begin(), EBContainer->end());
1595 theECalHits.insert(theECalHits.end(), EEContainer->begin(), EEContainer->end());
1599 for (itHit = theECalHits.begin(); itHit != theECalHits.end(); ++itHit) {
1603 DetId theDetUnitId(itHit->id());
1613 edm::LogWarning(MsgLoggerCat) <<
"Unable to get CaloCellGeometry from ECalHits for Hit " <<
i;
1620 const GlobalPoint &globalposition = theDet->getPosition();
1636 edm::LogWarning(MsgLoggerCat) <<
"ECal PCaloHit " <<
i <<
" is expected to be (det,subdet) = (" <<
dEcal <<
"," 1644 eventout +=
"\n Number of ECal Hits collected:............. ";
1659 if (!PreShContainer.
isValid()) {
1660 LogDebug(MsgLoggerCat) <<
"Unable to find EcalHitsES in event!";
1667 for (itHit = PreShContainer->begin(); itHit != PreShContainer->end(); ++itHit) {
1671 DetId theDetUnitId(itHit->id());
1681 edm::LogWarning(MsgLoggerCat) <<
"Unable to get CaloCellGeometry from PreShContainer for Hit " <<
i;
1688 const GlobalPoint &globalposition = theDet->getPosition();
1704 edm::LogWarning(MsgLoggerCat) <<
"PreSh PCaloHit " <<
i <<
" is expected to be (det,subdet) = (" <<
dEcal <<
"," 1711 eventout +=
"\n Number of PreSh Hits collected:............ ";
1728 std::string MsgLoggerCat =
"GlobalHitsAnalyzer_fillHCal";
1732 eventout =
"\nGathering info:";
1736 if (!theCaloGeometry.isValid()) {
1737 edm::LogWarning(MsgLoggerCat) <<
"Unable to find CaloGeometryRecord in event!";
1745 edm::PCaloHitContainer::const_iterator itHit;
1753 if (!HCalContainer.
isValid()) {
1754 LogDebug(MsgLoggerCat) <<
"Unable to find HCalHits in event!";
1761 for (itHit = HCalContainer->begin(); itHit != HCalContainer->end(); ++itHit) {
1766 unsigned int id_ = itHit->id();
1782 edm::LogWarning(MsgLoggerCat) <<
"Unable to get HcalGeometry from HCalContainer for Hit " <<
i;
1805 edm::LogWarning(MsgLoggerCat) <<
"HCal PCaloHit " <<
i <<
" is expected to be (det,subdet) = (" <<
dHcal <<
"," 1813 eventout +=
"\n Number of HCal Hits collected:............. ";
MonitorElement * meTrackerSiPhi
edm::EDGetTokenT< edm::PSimHitContainer > SiTIDLowSrc_Token_
void fillG4MC(const edm::Event &)
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeomToken_
T getParameter(std::string const &) const
std::vector< PCaloHit > PCaloHitContainer
edm::InputTag SiTECLowSrc_
edm::EDGetTokenT< edm::PSimHitContainer > SiTECHighSrc_Token_
~GlobalHitsAnalyzer() override
edm::InputTag PxlBrlLowSrc_
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
static const int sdMuonRPCRgnFwdn
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomToken_
static const int sdHcalOut
virtual void setCurrentFolder(std::string const &fullpath)
MonitorElement * meMuonDtToF[2]
static const int sdMuonDT
MonitorElement * meGeantVtxRad[2]
MonitorElement * meCaloHcal[2]
Geom::Phi< T > phi() const
MonitorElement * meMCG4Trk[2]
edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecord > hcaldddRecToken_
MonitorElement * meTrackerPxPhi
MonitorElement * meCaloHcalToF[2]
edm::EDGetTokenT< edm::PSimHitContainer > SiTIDHighSrc_Token_
unsigned long long EventNumber_t
MonitorElement * meCaloPreSh[2]
static const int sdEcalPS
edm::EDGetTokenT< edm::PCaloHitContainer > ECalEESrc_Token_
MonitorElement * meTrackerSiEta
const GeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
void fillHCal(const edm::Event &, const edm::EventSetup &)
MonitorElement * meTrackerSiBToF
static const int sdMuonRPC
MonitorElement * meTrackerSi[2]
edm::EDGetTokenT< edm::SimTrackContainer > G4TrkSrc_Token_
Provenance const * provenance() const
constexpr Detector det() const
get the detector field from this detid
edm::EDGetTokenT< edm::PSimHitContainer > SiTIBHighSrc_Token_
MonitorElement * meMCG4Vtx[2]
edm::InputTag SiTIBHighSrc_
MonitorElement * meGeantVtxY[2]
MonitorElement * meGeantVtxMulti
MonitorElement * meTrackerPxFZ
T getUntrackedParameter(std::string const &, T const &) const
edm::InputTag MuonCscSrc_
edm::InputTag PxlBrlHighSrc_
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
MonitorElement * meMuonCscToF[2]
MonitorElement * meCaloPreShPhi
MonitorElement * meGeantTrkE
MonitorElement * meCaloEcalEta
static const int sdPxlBrl
MonitorElement * meTrackerPxBR
MonitorElement * meCaloPreShE[2]
edm::InputTag PxlFwdLowSrc_
static const int sdMuonCSC
MonitorElement * meTrackerPxBToF
static const int sdEcalFwd
MonitorElement * meGeantVtxPhi
edm::InputTag SiTIDLowSrc_
MonitorElement * meCaloEcalPhi
edm::EDGetTokenT< edm::PSimHitContainer > SiTIBLowSrc_Token_
MonitorElement * meTrackerPx[2]
MonitorElement * meGeantTrkPt
MonitorElement * meGeantVtxEta
edm::InputTag PxlFwdHighSrc_
MonitorElement * meMuonRpcFZ
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
edm::EDGetTokenT< edm::PSimHitContainer > PxlBrlHighSrc_Token_
BranchDescription const & branchDescription() const
static const int sdEcalBrl
edm::InputTag SiTECHighSrc_
static const int sdMuonRPCRgnFwdp
static const int sdMuonRPCRgnBrl
DetId relabel(const uint32_t testId) const
edm::EDGetTokenT< edm::PCaloHitContainer > ECalEBSrc_Token_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
T perp() const
Magnitude of transverse component.
Basic3DVector unit() const
void fillTrk(const edm::Event &, const edm::EventSetup &)
MonitorElement * meMCRGP[2]
edm::EDGetTokenT< edm::PSimHitContainer > PxlBrlLowSrc_Token_
const HepMC::GenEvent * GetEvent() const
MonitorElement * meMuonRpcBToF[2]
void fillHandles(ProductContainer const &productContainer, std::vector< edm::Handle< T >> &handles) const
MonitorElement * meCaloHcalE[2]
Log< level::Info, false > LogInfo
MonitorElement * meMuonCscZ
MonitorElement * meGeantVtxX[2]
void fillMuon(const edm::Event &, const edm::EventSetup &)
edm::EDGetTokenT< edm::PSimHitContainer > SiTOBLowSrc_Token_
const Plane & surface() const
The nominal surface of the GeomDet.
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > cscGeomToken_
edm::EDGetTokenT< edm::PSimHitContainer > MuonRpcSrc_Token_
MonitorElement * meCaloEcal[2]
edm::EDGetTokenT< edm::PSimHitContainer > PxlFwdLowSrc_Token_
MonitorElement * meTrackerSiFZ
MonitorElement * meGeantVtxZ[2]
MonitorElement * meCaloEcalToF[2]
edm::EDGetTokenT< edm::PSimHitContainer > SiTOBHighSrc_Token_
std::vector< SimVertex > SimVertexContainer
static const int sdHcalFwd
edm::EDGetTokenT< edm::PSimHitContainer > MuonCscSrc_Token_
void fillECal(const edm::Event &, const edm::EventSetup &)
edm::InputTag SiTIDHighSrc_
MonitorElement * meMuon[2]
static const int sdHcalBrl
MonitorElement * meMuonRpcFToF[2]
MonitorElement * meCaloPreShToF[2]
MonitorElement * meCaloPreShEta
MonitorElement * meTrackerSiFToF
MonitorElement * meTrackerPxFToF
edm::GetterOfProducts< edm::HepMCProduct > getterOfProducts_
edm::InputTag MuonRpcSrc_
edm::EDGetTokenT< edm::SimVertexContainer > G4VtxSrc_Token_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * meMuonEta
GlobalPoint getPosition(const DetId &id) const
edm::InputTag SiTOBLowSrc_
edm::InputTag SiTOBHighSrc_
MonitorElement * meMuonDtR
edm::EDGetTokenT< edm::PCaloHitContainer > HCalSrc_Token_
std::vector< PSimHit > PSimHitContainer
edm::EDGetTokenT< edm::PSimHitContainer > PxlFwdHighSrc_Token_
static const int sdPxlFwd
edm::InputTag SiTIBLowSrc_
Log< level::Warning, false > LogWarning
MonitorElement * meCaloHcalPhi
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
edm::ESGetToken< RPCGeometry, MuonGeometryRecord > rpcGeomToken_
MonitorElement * meMuonRpcBR
MonitorElement * meTrackerPxEta
edm::EDGetTokenT< edm::PCaloHitContainer > ECalESSrc_Token_
std::vector< SimTrack > SimTrackContainer
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
MonitorElement * meCaloHcalEta
static const int sdHcalEC
MonitorElement * meMuonPhi
GlobalHitsAnalyzer(const edm::ParameterSet &)
edm::EDGetTokenT< edm::PSimHitContainer > MuonDtSrc_Token_
edm::EDGetTokenT< edm::PSimHitContainer > SiTECLowSrc_Token_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tGeomToken_
const GeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
MonitorElement * meTrackerSiBR
void analyze(const edm::Event &, const edm::EventSetup &) override
const DTLayer * layer(const DTLayerId &id) const
Return a layer given its id.
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * meCaloEcalE[2]