17 #include "RtypesCore.h" 28 #include "TVirtualPad.h" 38 #include <ext/alloc_traits.h> 39 #include <fmt/printf.h> 45 #include <type_traits> 48 #include "boost/range/adaptor/indexed.hpp" 158 isCosmics_(
pset.getParameter<
bool>(
"isCosmics")) {
162 theTrackCollectionToken_ = consumes<reco::TrackCollection>(TkTag_);
165 hltresultsToken_ = consumes<edm::TriggerResults>(TriggerResultsTag_);
168 beamspotToken_ = consumes<reco::BeamSpot>(BeamSpotTag_);
171 vertexToken_ = consumes<reco::VertexCollection>(VerticesTag_);
175 pmap = std::make_unique<TrackerMap>(
"Pixel");
176 pmap->onlyPixel(
true);
177 pmap->setTitle(
"Pixel Hit entries");
180 tmap = std::make_unique<TrackerMap>(
"Strip");
181 tmap->setTitle(
"Strip Hit entries");
186 pixelmap = std::make_unique<Phase1PixelMaps>(
"COLZ0 L");
187 pixelmap->bookBarrelHistograms(
"DMRsX",
"Median Residuals x-direction",
"Median Residuals");
188 pixelmap->bookForwardHistograms(
"DMRsX",
"Median Residuals x-direction",
"Median Residuals");
190 pixelmap->bookBarrelHistograms(
"DMRsY",
"Median Residuals y-direction",
"Median Residuals");
191 pixelmap->bookForwardHistograms(
"DMRsY",
"Median Residuals y-direction",
"Median Residuals");
194 pixelmap->setNoRescale();
197 fullPixelmapXDMR = std::make_unique<Phase1PixelSummaryMap>(
"",
"DMR-x",
"median of residuals [#mum]");
198 fullPixelmapYDMR = std::make_unique<Phase1PixelSummaryMap>(
"",
"DMR-y",
"median of residuals [#mum]");
210 template <
class OBJECT_TYPE>
212 for (
const auto &iter : vec | boost::adaptors::indexed(0)) {
213 if (iter.value() && iter.value()->GetName() ==
name) {
218 <<
" could not find " <<
name;
222 template <
typename T,
typename...
Args>
249 std::unique_ptr<TrackerMap>
tmap;
250 std::unique_ptr<TrackerMap>
pmap;
524 edm::LogVerbatim(
"DMRChecker") <<
"event #" << ievt <<
" Event ID = " <<
event.id()
525 <<
" magnetic field: " << magneticField_->
inTesla(zeroPoint) << std::endl;
530 runInfoMap_[
event.run()].first += 1;
531 runInfoMap_[
event.run()].second += tC.size();
534 edm::LogVerbatim(
"DMRChecker") <<
"Reconstructed " << tC.size() <<
" tracks" << std::endl;
541 for (
int itrig = 0; itrig != ntrigs; ++itrig) {
548 triggerMap_[
trigName].second += tC.size();
553 hrun->Fill(
event.run());
554 hlumi->Fill(
event.luminosityBlock());
556 int nHighPurityTracks = 0;
558 for (
const auto &
track : tC) {
559 auto const &residuals =
track.extra()->residuals();
561 unsigned int nHit2D = 0;
564 if (this->isHit2D(**iHit))
567 double resX = residuals.residualX(h_index);
568 double resY = residuals.residualY(h_index);
569 double pullX = residuals.pullX(h_index);
570 double pullY = residuals.pullY(h_index);
572 const DetId &
detId = (*iHit)->geographicalId();
574 unsigned int subid =
detId.subdetId();
575 uint32_t detid_db =
detId.rawId();
579 float uOrientation(-999.
F), vOrientation(-999.
F);
580 LocalPoint lPModule(0., 0., 0.), lUDirection(1., 0., 0.), lVDirection(0., 1., 0.), lWDirection(0., 0., 1.);
583 GlobalPoint gUDirection = geomDet->surface().toGlobal(lUDirection);
584 GlobalPoint gVDirection = geomDet->surface().toGlobal(lVDirection);
585 GlobalPoint gWDirection = geomDet->surface().toGlobal(lWDirection);
586 GlobalPoint gPModule = geomDet->surface().toGlobal(lPModule);
588 if (!(*iHit)->detUnit())
592 tmap->fill(detid_db, 1);
603 if (resDetailsTIB_.find(detid_db) == resDetailsTIB_.end()) {
604 resDetailsTIB_[detid_db].rDirection = gWDirection.
perp() - gPModule.
perp() >= 0 ? +1 : -1;
605 resDetailsTIB_[detid_db].zDirection = gVDirection.
z() - gPModule.
z() >= 0 ? +1 : -1;
606 resDetailsTIB_[detid_db].rOrZDirection = resDetailsTIB_[detid_db].rDirection;
609 hTIBResXPrime->Fill(uOrientation * resX *
cmToUm);
610 hTIBResXPull->Fill(
pullX);
613 this->updateOnlineMomenta(resDetailsTIB_, detid_db, uOrientation * resX *
cmToUm,
pullX);
619 hTOBResXPrime->Fill(uOrientation * resX *
cmToUm);
620 hTOBResXPull->Fill(
pullX);
623 if (resDetailsTOB_.find(detid_db) == resDetailsTOB_.end()) {
624 resDetailsTOB_[detid_db].rDirection = gWDirection.
perp() - gPModule.
perp() >= 0 ? +1 : -1;
625 resDetailsTOB_[detid_db].zDirection = gVDirection.
z() - gPModule.
z() >= 0 ? +1 : -1;
626 resDetailsTOB_[detid_db].rOrZDirection = resDetailsTOB_[detid_db].rDirection;
630 this->updateOnlineMomenta(resDetailsTOB_, detid_db, uOrientation * resX *
cmToUm,
pullX);
636 hTIDResXPrime->Fill(uOrientation * resX *
cmToUm);
637 hTIDResXPull->Fill(
pullX);
640 this->updateOnlineMomenta(resDetailsTID_, detid_db, uOrientation * resX *
cmToUm,
pullX);
646 hTECResXPrime->Fill(uOrientation * resX *
cmToUm);
647 hTECResXPull->Fill(
pullX);
650 this->updateOnlineMomenta(resDetailsTEC_, detid_db, uOrientation * resX *
cmToUm,
pullX);
659 pmap->fill(detid_db, 1);
669 int layer_num = trackerTopology_->
pxbLayer(detid_db);
672 vOrientation = gVDirection.
z() - gPModule.
z() >= 0 ? +1.F : -1.F;
675 if (resDetailsBPixX_.find(detid_db) == resDetailsBPixX_.end()) {
676 resDetailsBPixX_[detid_db].rDirection = gWDirection.
perp() - gPModule.
perp() >= 0 ? +1 : -1;
677 resDetailsBPixX_[detid_db].zDirection = gVDirection.
z() - gPModule.
z() >= 0 ? +1 : -1;
678 resDetailsBPixX_[detid_db].rOrZDirection =
679 resDetailsBPixX_[detid_db].rDirection;
683 if (resDetailsBPixY_.find(detid_db) == resDetailsBPixY_.end()) {
684 resDetailsBPixY_[detid_db].rDirection = gWDirection.
perp() - gPModule.
perp() >= 0 ? +1 : -1;
685 resDetailsBPixY_[detid_db].zDirection = gVDirection.
z() - gPModule.
z() >= 0 ? +1 : -1;
686 resDetailsBPixY_[detid_db].rOrZDirection =
687 resDetailsBPixY_[detid_db].rDirection;
690 hHitCountVsThetaBPix->Fill(GP.
theta());
691 hHitCountVsPhiBPix->Fill(GP.
phi());
693 hHitCountVsZBPix->Fill(GP.
z());
694 hHitCountVsXBPix->Fill(GP.
x());
695 hHitCountVsYBPix->Fill(GP.
y());
697 hBPixResXPrime->Fill(uOrientation * resX *
cmToUm);
698 hBPixResYPrime->Fill(vOrientation * resY *
cmToUm);
699 hBPixResXPull->Fill(
pullX);
700 hBPixResYPull->Fill(
pullY);
706 this->updateOnlineMomenta(resDetailsBPixX_, detid_db, uOrientation * resX *
cmToUm,
pullX);
709 this->updateOnlineMomenta(resDetailsBPixY_, detid_db, vOrientation * resY *
cmToUm,
pullY);
717 uOrientation = gUDirection.
perp() - gPModule.
perp() >= 0 ? +1.F : -1.F;
720 int side_num = trackerTopology_->
pxfSide(detid_db);
721 int disk_num = trackerTopology_->
pxfDisk(detid_db);
723 int packedTopo = disk_num + 3 * (side_num - 1);
726 edm::LogVerbatim(
"DMRChecker") <<
"side: " << side_num <<
" disk: " << disk_num
727 <<
" packedTopo: " << packedTopo <<
" GP.z(): " << GP.
z() << std::endl;
729 hHitCountVsThetaFPix->Fill(GP.
theta());
730 hHitCountVsPhiFPix->Fill(GP.
phi());
732 hHitCountVsZFPix->Fill(GP.
z());
733 hHitCountVsXFPix->Fill(GP.
x());
734 hHitCountVsYFPix->Fill(GP.
y());
736 hFPixResXPrime->Fill(uOrientation * resX *
cmToUm);
737 hFPixResYPrime->Fill(vOrientation * resY *
cmToUm);
738 hFPixResXPull->Fill(
pullX);
739 hFPixResYPull->Fill(
pullY);
747 if (resDetailsFPixX_.find(detid_db) == resDetailsFPixX_.end()) {
748 resDetailsFPixX_[detid_db].rDirection = gUDirection.
perp() - gPModule.
perp() >= 0 ? +1 : -1;
749 resDetailsFPixX_[detid_db].zDirection = gWDirection.
z() - gPModule.
z() >= 0 ? +1 : -1;
750 resDetailsFPixX_[detid_db].rOrZDirection =
751 resDetailsFPixX_[detid_db].zDirection;
755 if (resDetailsFPixY_.find(detid_db) == resDetailsFPixY_.end()) {
756 resDetailsFPixY_[detid_db].rDirection = gUDirection.
perp() - gPModule.
perp() >= 0 ? +1 : -1;
757 resDetailsFPixY_[detid_db].zDirection = gWDirection.
z() - gPModule.
z() >= 0 ? +1 : -1;
758 resDetailsFPixY_[detid_db].rOrZDirection =
759 resDetailsFPixY_[detid_db].zDirection;
763 this->updateOnlineMomenta(resDetailsFPixX_, detid_db, uOrientation * resX *
cmToUm,
pullX);
766 this->updateOnlineMomenta(resDetailsFPixY_, detid_db, vOrientation * resY *
cmToUm,
pullY);
769 hHitCountVsXFPixMinus->Fill(GP.
x());
770 hHitCountVsYFPixMinus->Fill(GP.
y());
771 hHitCountVsZFPixMinus->Fill(GP.
z());
772 hHitCountVsThetaFPixMinus->Fill(GP.
theta());
773 hHitCountVsPhiFPixMinus->Fill(GP.
phi());
775 hFPixZMinusResXPrime->Fill(uOrientation * resX *
cmToUm);
776 hFPixZMinusResYPrime->Fill(vOrientation * resY *
cmToUm);
777 hFPixZMinusResXPull->Fill(
pullX);
778 hFPixZMinusResYPull->Fill(
pullY);
781 hHitCountVsXFPixPlus->Fill(GP.
x());
782 hHitCountVsYFPixPlus->Fill(GP.
y());
783 hHitCountVsZFPixPlus->Fill(GP.
z());
784 hHitCountVsThetaFPixPlus->Fill(GP.
theta());
785 hHitCountVsPhiFPixPlus->Fill(GP.
phi());
787 hFPixZPlusResXPrime->Fill(uOrientation * resX *
cmToUm);
788 hFPixZPlusResYPrime->Fill(vOrientation * resY *
cmToUm);
789 hFPixZPlusResXPull->Fill(
pullX);
790 hFPixZPlusResYPull->Fill(
pullY);
798 hHit2D->Fill(nHit2D);
799 hHit->Fill(
track.numberOfValidHits());
800 hnhpxb->Fill(
track.hitPattern().numberOfValidPixelBarrelHits());
801 hnhpxe->Fill(
track.hitPattern().numberOfValidPixelEndcapHits());
802 hnhTIB->Fill(
track.hitPattern().numberOfValidStripTIBHits());
803 hnhTID->Fill(
track.hitPattern().numberOfValidStripTIDHits());
804 hnhTOB->Fill(
track.hitPattern().numberOfValidStripTOBHits());
805 hnhTEC->Fill(
track.hitPattern().numberOfValidStripTECHits());
807 runHitsMap_[
event.run()][0] +=
track.hitPattern().numberOfValidPixelBarrelHits();
808 runHitsMap_[
event.run()][1] +=
track.hitPattern().numberOfValidPixelEndcapHits();
809 runHitsMap_[
event.run()][2] +=
track.hitPattern().numberOfValidStripTIBHits();
810 runHitsMap_[
event.run()][3] +=
track.hitPattern().numberOfValidStripTIDHits();
811 runHitsMap_[
event.run()][4] +=
track.hitPattern().numberOfValidStripTOBHits();
812 runHitsMap_[
event.run()][5] +=
track.hitPattern().numberOfValidStripTECHits();
815 if (
track.hitPattern().numberOfValidPixelBarrelHits() != 0) {
816 hHitComposition->Fill(0.,
track.hitPattern().numberOfValidPixelBarrelHits());
818 pNBpixHitsVsVx->Fill(
track.vx(),
track.hitPattern().numberOfValidPixelBarrelHits());
819 pNBpixHitsVsVy->Fill(
track.vy(),
track.hitPattern().numberOfValidPixelBarrelHits());
820 pNBpixHitsVsVz->Fill(
track.vz(),
track.hitPattern().numberOfValidPixelBarrelHits());
822 if (
track.hitPattern().numberOfValidPixelEndcapHits() != 0) {
823 hHitComposition->Fill(1.,
track.hitPattern().numberOfValidPixelEndcapHits());
825 if (
track.hitPattern().numberOfValidStripTIBHits() != 0) {
826 hHitComposition->Fill(2.,
track.hitPattern().numberOfValidStripTIBHits());
828 if (
track.hitPattern().numberOfValidStripTIDHits() != 0) {
829 hHitComposition->Fill(3.,
track.hitPattern().numberOfValidStripTIDHits());
831 if (
track.hitPattern().numberOfValidStripTOBHits() != 0) {
832 hHitComposition->Fill(4.,
track.hitPattern().numberOfValidStripTOBHits());
834 if (
track.hitPattern().numberOfValidStripTECHits() != 0) {
835 hHitComposition->Fill(5.,
track.hitPattern().numberOfValidStripTECHits());
838 hCharge->Fill(
track.charge());
839 hQoverP->Fill(
track.qoverp());
840 hQoverPZoom->Fill(
track.qoverp());
841 hPt->Fill(
track.pt());
843 hchi2ndof->Fill(
track.normalizedChi2());
844 hEta->Fill(
track.eta());
845 hPhi->Fill(
track.phi());
847 if (fabs(
track.eta()) < 0.8)
848 hPhiBarrel->Fill(
track.phi());
850 hPhiOverlapPlus->Fill(
track.phi());
852 hPhiOverlapMinus->Fill(
track.phi());
853 if (
track.eta() > 1.4)
854 hPhiEndcapPlus->Fill(
track.phi());
855 if (
track.eta() < -1.4)
856 hPhiEndcapMinus->Fill(
track.phi());
858 hd0->Fill(
track.d0());
859 hdz->Fill(
track.dz());
860 hdxy->Fill(
track.dxy());
861 hvx->Fill(
track.vx());
862 hvy->Fill(
track.vy());
863 hvz->Fill(
track.vz());
865 htrkAlgo->Fill(
track.algo());
870 htrkQuality->Fill(myquality);
874 htrkQuality->Fill(myquality);
878 htrkQuality->Fill(myquality);
882 htrkQuality->Fill(myquality);
883 hPhp->Fill(
track.p());
884 hPthp->Fill(
track.pt());
885 hHithp->Fill(
track.numberOfValidHits());
886 hEtahp->Fill(
track.eta());
887 hPhihp->Fill(
track.phi());
888 hchi2ndofhp->Fill(
track.normalizedChi2());
889 hchi2Probhp->Fill(TMath::Prob(
track.chi2(),
track.ndof()));
894 htrkQuality->Fill(myquality);
898 htrkQuality->Fill(myquality);
902 static const int etaindex = this->
index(vTrackHistos_,
"h_tracketa");
903 vTrackHistos_[etaindex]->Fill(
track.eta());
904 static const int phiindex = this->
index(vTrackHistos_,
"h_trackphi");
905 vTrackHistos_[phiindex]->Fill(
track.phi());
906 static const int numOfValidHitsindex = this->
index(vTrackHistos_,
"h_trackNumberOfValidHits");
907 vTrackHistos_[numOfValidHitsindex]->Fill(
track.numberOfValidHits());
908 static const int numOfLostHitsindex = this->
index(vTrackHistos_,
"h_trackNumberOfLostHits");
909 vTrackHistos_[numOfLostHitsindex]->Fill(
track.numberOfLostHits());
912 double theLocalMagFieldInInverseGeV = magneticField_->
inInverseGeV(gPoint).
z();
913 double kappa = -
track.charge() * theLocalMagFieldInInverseGeV /
track.pt();
915 static const int kappaindex = this->
index(vTrackHistos_,
"h_curvature");
916 vTrackHistos_[kappaindex]->Fill(
kappa);
917 static const int kappaposindex = this->
index(vTrackHistos_,
"h_curvature_pos");
918 if (
track.charge() > 0)
919 vTrackHistos_[kappaposindex]->
Fill(fabs(
kappa));
920 static const int kappanegindex = this->
index(vTrackHistos_,
"h_curvature_neg");
921 if (
track.charge() < 0)
922 vTrackHistos_[kappanegindex]->
Fill(fabs(
kappa));
924 double chi2Prob = TMath::Prob(
track.chi2(),
track.ndof());
927 static const int normchi2index = this->
index(vTrackHistos_,
"h_normchi2");
928 vTrackHistos_[normchi2index]->Fill(
normchi2);
929 static const int chi2index = this->
index(vTrackHistos_,
"h_chi2");
930 vTrackHistos_[chi2index]->Fill(
track.chi2());
931 static const int chi2Probindex = this->
index(vTrackHistos_,
"h_chi2Prob");
932 vTrackHistos_[chi2Probindex]->Fill(chi2Prob);
933 static const int ptindex = this->
index(vTrackHistos_,
"h_pt");
934 static const int pt2index = this->
index(vTrackHistos_,
"h_ptrebin");
935 vTrackHistos_[ptindex]->Fill(
track.pt());
936 vTrackHistos_[pt2index]->Fill(
track.pt());
937 if (
track.ptError() != 0.) {
938 static const int ptResolutionindex = this->
index(vTrackHistos_,
"h_ptResolution");
939 vTrackHistos_[ptResolutionindex]->Fill(
track.ptError() /
track.pt());
942 static const int d0phiindex = this->
index(vTrackProfiles_,
"p_d0_vs_phi");
943 vTrackProfiles_[d0phiindex]->Fill(
track.phi(),
track.d0());
944 static const int dzphiindex = this->
index(vTrackProfiles_,
"p_dz_vs_phi");
945 vTrackProfiles_[dzphiindex]->Fill(
track.phi(),
track.dz());
946 static const int d0etaindex = this->
index(vTrackProfiles_,
"p_d0_vs_eta");
947 vTrackProfiles_[d0etaindex]->Fill(
track.eta(),
track.d0());
948 static const int dzetaindex = this->
index(vTrackProfiles_,
"p_dz_vs_eta");
949 vTrackProfiles_[dzetaindex]->Fill(
track.eta(),
track.dz());
950 static const int chiProbphiindex = this->
index(vTrackProfiles_,
"p_chi2Prob_vs_phi");
951 vTrackProfiles_[chiProbphiindex]->Fill(
track.phi(), chi2Prob);
952 static const int chiProbabsd0index = this->
index(vTrackProfiles_,
"p_chi2Prob_vs_d0");
953 vTrackProfiles_[chiProbabsd0index]->Fill(fabs(
track.d0()), chi2Prob);
954 static const int chiProbabsdzindex = this->
index(vTrackProfiles_,
"p_chi2Prob_vs_dz");
955 vTrackProfiles_[chiProbabsdzindex]->Fill(
track.dz(), chi2Prob);
956 static const int chiphiindex = this->
index(vTrackProfiles_,
"p_chi2_vs_phi");
957 vTrackProfiles_[chiphiindex]->Fill(
track.phi(),
track.chi2());
958 static const int normchiphiindex = this->
index(vTrackProfiles_,
"p_normchi2_vs_phi");
959 vTrackProfiles_[normchiphiindex]->Fill(
track.phi(),
normchi2);
960 static const int chietaindex = this->
index(vTrackProfiles_,
"p_chi2_vs_eta");
961 vTrackProfiles_[chietaindex]->Fill(
track.eta(),
track.chi2());
962 static const int normchiptindex = this->
index(vTrackProfiles_,
"p_normchi2_vs_pt");
964 static const int normchipindex = this->
index(vTrackProfiles_,
"p_normchi2_vs_p");
966 static const int chiProbetaindex = this->
index(vTrackProfiles_,
"p_chi2Prob_vs_eta");
967 vTrackProfiles_[chiProbetaindex]->Fill(
track.eta(), chi2Prob);
968 static const int normchietaindex = this->
index(vTrackProfiles_,
"p_normchi2_vs_eta");
969 vTrackProfiles_[normchietaindex]->Fill(
track.eta(),
normchi2);
970 static const int kappaphiindex = this->
index(vTrackProfiles_,
"p_kappa_vs_phi");
971 vTrackProfiles_[kappaphiindex]->Fill(
track.phi(),
kappa);
972 static const int kappaetaindex = this->
index(vTrackProfiles_,
"p_kappa_vs_eta");
973 vTrackProfiles_[kappaetaindex]->Fill(
track.eta(),
kappa);
974 static const int ptResphiindex = this->
index(vTrackProfiles_,
"p_ptResolution_vs_phi");
975 vTrackProfiles_[ptResphiindex]->Fill(
track.phi(),
track.ptError() /
track.pt());
976 static const int ptResetaindex = this->
index(vTrackProfiles_,
"p_ptResolution_vs_eta");
977 vTrackProfiles_[ptResetaindex]->Fill(
track.eta(),
track.ptError() /
track.pt());
980 static const int etaphiindex_2d = this->
index(vTrack2DHistos_,
"h2_phi_vs_eta");
981 vTrack2DHistos_[etaphiindex_2d]->Fill(
track.eta(),
track.phi());
982 static const int d0phiindex_2d = this->
index(vTrack2DHistos_,
"h2_d0_vs_phi");
983 vTrack2DHistos_[d0phiindex_2d]->Fill(
track.phi(),
track.d0());
984 static const int dzphiindex_2d = this->
index(vTrack2DHistos_,
"h2_dz_vs_phi");
985 vTrack2DHistos_[dzphiindex_2d]->Fill(
track.phi(),
track.dz());
986 static const int d0etaindex_2d = this->
index(vTrack2DHistos_,
"h2_d0_vs_eta");
987 vTrack2DHistos_[d0etaindex_2d]->Fill(
track.eta(),
track.d0());
988 static const int dzetaindex_2d = this->
index(vTrack2DHistos_,
"h2_dz_vs_eta");
989 vTrack2DHistos_[dzetaindex_2d]->Fill(
track.eta(),
track.dz());
990 static const int chiphiindex_2d = this->
index(vTrack2DHistos_,
"h2_chi2_vs_phi");
991 vTrack2DHistos_[chiphiindex_2d]->Fill(
track.phi(),
track.chi2());
992 static const int chiProbphiindex_2d = this->
index(vTrack2DHistos_,
"h2_chi2Prob_vs_phi");
993 vTrack2DHistos_[chiProbphiindex_2d]->Fill(
track.phi(), chi2Prob);
994 static const int chiProbabsd0index_2d = this->
index(vTrack2DHistos_,
"h2_chi2Prob_vs_d0");
995 vTrack2DHistos_[chiProbabsd0index_2d]->Fill(fabs(
track.d0()), chi2Prob);
996 static const int normchiphiindex_2d = this->
index(vTrack2DHistos_,
"h2_normchi2_vs_phi");
997 vTrack2DHistos_[normchiphiindex_2d]->Fill(
track.phi(),
normchi2);
998 static const int chietaindex_2d = this->
index(vTrack2DHistos_,
"h2_chi2_vs_eta");
999 vTrack2DHistos_[chietaindex_2d]->Fill(
track.eta(),
track.chi2());
1000 static const int chiProbetaindex_2d = this->
index(vTrack2DHistos_,
"h2_chi2Prob_vs_eta");
1001 vTrack2DHistos_[chiProbetaindex_2d]->Fill(
track.eta(), chi2Prob);
1002 static const int normchietaindex_2d = this->
index(vTrack2DHistos_,
"h2_normchi2_vs_eta");
1003 vTrack2DHistos_[normchietaindex_2d]->Fill(
track.eta(),
normchi2);
1004 static const int kappaphiindex_2d = this->
index(vTrack2DHistos_,
"h2_kappa_vs_phi");
1005 vTrack2DHistos_[kappaphiindex_2d]->Fill(
track.phi(),
kappa);
1006 static const int kappaetaindex_2d = this->
index(vTrack2DHistos_,
"h2_kappa_vs_eta");
1007 vTrack2DHistos_[kappaetaindex_2d]->Fill(
track.eta(),
kappa);
1008 static const int normchi2kappa_2d = this->
index(vTrack2DHistos_,
"h2_normchi2_vs_kappa");
1017 if (beamSpotHandle.
isValid()) {
1030 double mindxy = 100.;
1032 if (vertexHandle.
isValid() && !isCosmics_) {
1033 for (reco::VertexCollection::const_iterator pvtx = vertexHandle->begin(); pvtx != vertexHandle->end(); ++pvtx) {
1036 mindxy =
track.dxy(mypoint);
1043 hdxyPV->Fill(mindxy);
1044 hd0PV->Fill(-mindxy);
1047 hd0PVvsphi->Fill(
track.phi(), -mindxy);
1048 hd0PVvseta->Fill(
track.eta(), -mindxy);
1049 hd0PVvspt->Fill(
track.pt(), -mindxy);
1064 hNtrk->Fill(tC.size());
1065 hNtrkZoom->Fill(tC.size());
1066 hNhighPurity->Fill(nHighPurityTracks);
1077 runInfoMap_[
run.run()].first = 0;
1078 runInfoMap_[
run.run()].second = 0;
1081 for (
int n : {0, 1, 2, 3, 4, 5}) {
1082 runHitsMap_[
run.run()][
n] = 0;
1086 magneticField_ = &
setup.getData(magFieldToken_);
1089 edm::LogInfo(
"DMRChecker") <<
"run number:" <<
run.run() <<
" magnetic field: " << B_ <<
" [T]" << std::endl;
1092 time_t start_time =
summary->m_start_time_ll;
1094 time_t end_time =
summary->m_stop_time_ll;
1097 float average_current =
summary->m_avg_current;
1098 float uptimeInSeconds =
summary->m_run_intervall_micros;
1100 <<
" | end_time: " << end_time <<
" ( " <<
summary->m_stop_time_str <<
" )" 1101 <<
" | average current: " << average_current
1102 <<
" | uptime in seconds: " << uptimeInSeconds << std::endl;
1104 double seconds = difftime(end_time, start_time) / 1.0e+6;
1116 conditionsMap_[
run.run()].first =
mode;
1117 conditionsMap_[
run.run()].second = B_;
1120 trackerGeometry_ = &
setup.getData(geomToken_);
1121 trackerTopology_ = &
setup.getData(topoToken_);
1132 TH1D::SetDefaultSumw2(kTRUE);
1140 hrun = book<TH1D>(
"h_run",
"run", 100000, 230000, 240000);
1141 hlumi = book<TH1D>(
"h_lumi",
"lumi", 1000, 0, 1000);
1145 hchi2ndof = book<TH1D>(
"h_chi2ndof",
"chi2/ndf;#chi^{2}/ndf;tracks", 100, 0, 5.);
1146 hCharge = book<TH1D>(
"h_charge",
"charge;Charge of the track;tracks", 5, -2.5, 2.5);
1147 hNtrk = book<TH1D>(
"h_Ntrk",
"ntracks;Number of Tracks;events", 200, 0., 200.);
1148 hNtrkZoom = book<TH1D>(
"h_NtrkZoom",
"Number of tracks; number of tracks;events", 10, 0., 10.);
1149 hNhighPurity = book<TH1D>(
"h_NhighPurity",
"n. high purity tracks;Number of high purity tracks;events", 200, 0., 200.);
1152 htrkAlgo = book<TH1I>(
"h_trkAlgo",
"tracking step;iterative tracking step;tracks", nAlgos, -0.5, nAlgos - 0.5);
1153 for (
int nbin = 1; nbin <= htrkAlgo->GetNbinsX(); nbin++) {
1157 htrkQuality = book<TH1I>(
"h_trkQuality",
"track quality;track quality;tracks", 6, -1, 5);
1158 std::string qualities[7] = {
"undef",
"loose",
"tight",
"highPurity",
"confirmed",
"goodIterative"};
1159 for (
int nbin = 1; nbin <= htrkQuality->GetNbinsX(); nbin++) {
1160 htrkQuality->GetXaxis()->SetBinLabel(nbin,
qualities[nbin - 1].c_str());
1163 hP = book<TH1D>(
"h_P",
"Momentum;track momentum [GeV];tracks", 100, 0., 100.);
1164 hQoverP = book<TH1D>(
"h_qoverp",
"Track q/p; track q/p [GeV^{-1}];tracks", 100, -1., 1.);
1165 hQoverPZoom = book<TH1D>(
"h_qoverpZoom",
"Track q/p; track q/p [GeV^{-1}];tracks", 100, -0.1, 0.1);
1166 hPt = book<TH1D>(
"h_Pt",
"Transverse Momentum;track p_{T} [GeV];tracks", 100, 0., 100.);
1167 hHit = book<TH1D>(
"h_nHits",
"Number of hits;track n. hits;tracks", 50, -0.5, 49.5);
1168 hHit2D = book<TH1D>(
"h_nHit2D",
"Number of 2D hits; number of 2D hits;tracks", 20, 0, 20);
1172 hBPixResXPrime = book<TH1D>(
"h_BPixResXPrime",
"BPix track X-residuals;res_{X'} [#mum];hits", 100, -1000., 1000.);
1173 hFPixResXPrime = book<TH1D>(
"h_FPixResXPrime",
"FPix track X-residuals;res_{X'} [#mum];hits", 100, -1000., 1000.);
1174 hFPixZPlusResXPrime = book<TH1D>(
"h_FPixZPlusResXPrime",
"FPix (Z+) track X-residuals;res_{X'} [#mum];hits", 100, -1000., 1000.);
1175 hFPixZMinusResXPrime = book<TH1D>(
"h_FPixZMinusResXPrime",
"FPix (Z-) track X-residuals;res_{X'} [#mum];hits", 100, -1000., 1000.);
1177 hBPixResYPrime = book<TH1D>(
"h_BPixResYPrime",
"BPix track Y-residuals;res_{Y'} [#mum];hits", 100, -1000., 1000.);
1178 hFPixResYPrime = book<TH1D>(
"h_FPixResYPrime",
"FPix track Y-residuals;res_{Y'} [#mum];hits", 100, -1000., 1000.);
1179 hFPixZPlusResYPrime = book<TH1D>(
"h_FPixZPlusResYPrime",
"FPix (Z+) track Y-residuals;res_{Y'} [#mum];hits", 100, -1000., 1000.);
1180 hFPixZMinusResYPrime = book<TH1D>(
"h_FPixZMinusResYPrime",
"FPix (Z-) track Y-residuals;res_{Y'} [#mum];hits", 100, -1000., 1000.);
1182 hBPixResXPull = book<TH1D>(
"h_BPixResXPull",
"BPix track X-pulls;res_{X'}/#sigma_{res_{X'}};hits", 100, -5., 5.);
1183 hFPixResXPull = book<TH1D>(
"h_FPixResXPull",
"FPix track X-pulls;res_{X'}/#sigma_{res_{X'}};hits", 100, -5., 5.);
1184 hFPixZPlusResXPull = book<TH1D>(
"h_FPixZPlusResXPull",
"FPix (Z+) track X-pulls;res_{X'}/#sigma_{res_{X'}};hits", 100, -5., 5.);
1185 hFPixZMinusResXPull = book<TH1D>(
"h_FPixZMinusResXPull",
"FPix (Z-) track X-pulls;res_{X'}/#sigma_{res_{X'}};hits", 100, -5., 5.);
1187 hBPixResYPull = book<TH1D>(
"h_BPixResYPull",
"BPix track Y-pulls;res_{Y'}/#sigma_{res_{Y'}};hits", 100, -5., 5.);
1188 hFPixResYPull = book<TH1D>(
"h_FPixResYPull",
"FPix track Y-pulls;res_{Y'}/#sigma_{res_{Y'}};hits", 100, -5., 5.);
1189 hFPixZPlusResYPull = book<TH1D>(
"h_FPixZPlusResYPull",
"FPix (Z+) track Y-pulls;res_{Y'}/#sigma_{res_{Y'}};hits", 100, -5., 5.);
1190 hFPixZMinusResYPull = book<TH1D>(
"h_FPixZMinusResYPull",
"FPix (Z-) track Y-pulls;res_{Y'}/#sigma_{res_{Y'}};hits", 100, -5., 5.);
1194 hTIBResXPrime = book<TH1D>(
"h_TIBResXPrime",
"TIB track X-residuals;res_{X'} [#mum];hits", 100, -1000., 1000.);
1195 hTOBResXPrime = book<TH1D>(
"h_TOBResXPrime",
"TOB track X-residuals;res_{X'} [#mum];hits", 100, -1000., 1000.);
1196 hTIDResXPrime = book<TH1D>(
"h_TIDResXPrime",
"TID track X-residuals;res_{X'} [#mum];hits", 100, -1000., 1000.);
1197 hTECResXPrime = book<TH1D>(
"h_TECResXPrime",
"TEC track X-residuals;res_{X'} [#mum];hits", 100, -1000., 1000.);
1199 hTIBResXPull = book<TH1D>(
"h_TIBResXPull",
"TIB track X-pulls;res_{X'}/#sigma_{res_{X'}};hits", 100, -5., 5.);
1200 hTOBResXPull = book<TH1D>(
"h_TOBResXPull",
"TOB track X-pulls;res_{X'}/#sigma_{res_{X'}};hits", 100, -5., 5.);
1201 hTIDResXPull = book<TH1D>(
"h_TIDResXPull",
"TID track X-pulls;res_{X'}/#sigma_{res_{X'}};hits", 100, -5., 5.);
1202 hTECResXPull = book<TH1D>(
"h_TECResXPull",
"TEC track X-pulls;res_{X'}/#sigma_{res_{X'}};hits", 100, -5., 5.);
1206 hHitCountVsZBPix = book<TH1D>(
"h_HitCountVsZBpix",
"Number of BPix hits vs z;hit global z;hits", 60, -30, 30);
1207 hHitCountVsZFPix = book<TH1D>(
"h_HitCountVsZFpix",
"Number of FPix hits vs z;hit global z;hits", 100, -100, 100);
1209 hHitCountVsXBPix = book<TH1D>(
"h_HitCountVsXBpix",
"Number of BPix hits vs x;hit global x;hits", 20, -20, 20);
1210 hHitCountVsXFPix = book<TH1D>(
"h_HitCountVsXFpix",
"Number of FPix hits vs x;hit global x;hits", 20, -20, 20);
1212 hHitCountVsYBPix = book<TH1D>(
"h_HitCountVsYBpix",
"Number of BPix hits vs y;hit global y;hits", 20, -20, 20);
1213 hHitCountVsYFPix = book<TH1D>(
"h_HitCountVsYFpix",
"Number of FPix hits vs y;hit global y;hits", 20, -20, 20);
1215 hHitCountVsThetaBPix = book<TH1D>(
"h_HitCountVsThetaBpix",
"Number of BPix hits vs #theta;hit global #theta;hits", 20, 0.,
M_PI);
1216 hHitCountVsPhiBPix = book<TH1D>(
"h_HitCountVsPhiBpix",
"Number of BPix hits vs #phi;hit global #phi;hits", 20, -
M_PI,
M_PI);
1218 hHitCountVsThetaFPix = book<TH1D>(
"h_HitCountVsThetaFpix",
"Number of FPix hits vs #theta;hit global #theta;hits", 40, 0.,
M_PI);
1219 hHitCountVsPhiFPix = book<TH1D>(
"h_HitCountVsPhiFpix",
"Number of FPix hits vs #phi;hit global #phi;hits", 20, -
M_PI,
M_PI);
1223 hHitCountVsZFPixPlus = book<TH1D>(
"h_HitCountVsZFPixPlus",
"Number of FPix(Z+) hits vs z;hit global z;hits", 60, 15., 60);
1224 hHitCountVsZFPixMinus = book<TH1D>(
"h_HitCountVsZFPixMinus",
"Number of FPix(Z-) hits vs z;hit global z;hits", 100, -60., -15.);
1226 hHitCountVsXFPixPlus = book<TH1D>(
"h_HitCountVsXFPixPlus",
"Number of FPix(Z+) hits vs x;hit global x;hits", 20, -20, 20);
1227 hHitCountVsXFPixMinus = book<TH1D>(
"h_HitCountVsXFPixMinus",
"Number of FPix(Z-) hits vs x;hit global x;hits", 20, -20, 20);
1229 hHitCountVsYFPixPlus = book<TH1D>(
"h_HitCountVsYFPixPlus",
"Number of FPix(Z+) hits vs y;hit global y;hits", 20, -20, 20);
1230 hHitCountVsYFPixMinus = book<TH1D>(
"h_HitCountVsYFPixMinus",
"Number of FPix(Z-) hits vs y;hit global y;hits", 20, -20, 20);
1232 hHitCountVsThetaFPixPlus = book<TH1D>(
"h_HitCountVsThetaFPixPlus",
"Number of FPix(Z+) hits vs #theta;hit global #theta;hits", 20, 0.,
M_PI);
1233 hHitCountVsPhiFPixPlus = book<TH1D>(
"h_HitCountVsPhiFPixPlus",
"Number of FPix(Z+) hits vs #phi;hit global #phi;hits",20,-
M_PI,
M_PI);
1235 hHitCountVsThetaFPixMinus = book<TH1D>(
"h_HitCountVsThetaFPixMinus",
"Number of FPix(Z+) hits vs #theta;hit global #theta;hits", 40, 0.,
M_PI);
1236 hHitCountVsPhiFPixMinus = book<TH1D>(
"h_HitCountVsPhiFPixMinus",
"Number of FPix(Z+) hits vs #phi;hit global #phi;hits",20,-
M_PI,
M_PI);
1239 barrelLayersResidualsX = bookResidualsHistogram(ByLayerResiduals, 4,
"X",
"Res",
"BPix");
1240 endcapDisksResidualsX = bookResidualsHistogram(ByLayerResiduals, 6,
"X",
"Res",
"FPix");
1241 barrelLayersResidualsY = bookResidualsHistogram(ByLayerResiduals, 4,
"Y",
"Res",
"BPix");
1242 endcapDisksResidualsY = bookResidualsHistogram(ByLayerResiduals, 6,
"Y",
"Res",
"FPix");
1245 barrelLayersPullsX = bookResidualsHistogram(ByLayerPulls, 4,
"X",
"Pull",
"BPix");
1246 endcapDisksPullsX = bookResidualsHistogram(ByLayerPulls, 6,
"X",
"Pull",
"FPix");
1247 barrelLayersPullsY = bookResidualsHistogram(ByLayerPulls, 4,
"Y",
"Pull",
"BPix");
1248 endcapDisksPullsY = bookResidualsHistogram(ByLayerPulls, 6,
"Y",
"Pull",
"FPix");
1250 hEta = book<TH1D>(
"h_Eta",
"Track pseudorapidity; track #eta;tracks", 100, -etaMax_, etaMax_);
1251 hPhi = book<TH1D>(
"h_Phi",
"Track azimuth; track #phi;tracks", 100, -
M_PI,
M_PI);
1253 hPhiBarrel = book<TH1D>(
"h_PhiBarrel",
"hPhiBarrel (0<|#eta|<0.8);track #Phi;tracks", 100, -
M_PI,
M_PI);
1254 hPhiOverlapPlus = book<TH1D>(
"h_PhiOverlapPlus",
"hPhiOverlapPlus (0.8<#eta<1.4);track #phi;tracks", 100, -
M_PI,
M_PI);
1255 hPhiOverlapMinus = book<TH1D>(
"h_PhiOverlapMinus",
"hPhiOverlapMinus (-1.4<#eta<-0.8);track #phi;tracks", 100, -
M_PI,
M_PI);
1256 hPhiEndcapPlus = book<TH1D>(
"h_PhiEndcapPlus",
"hPhiEndcapPlus (#eta>1.4);track #phi;track", 100, -
M_PI,
M_PI);
1257 hPhiEndcapMinus = book<TH1D>(
"h_PhiEndcapMinus",
"hPhiEndcapMinus (#eta<1.4);track #phi;tracks", 100, -
M_PI,
M_PI);
1260 hPhp = book<TH1D>(
"h_P_hp",
"Momentum (high purity);track momentum [GeV];tracks", 100, 0., 100.);
1261 hPthp = book<TH1D>(
"h_Pt_hp",
"Transverse Momentum (high purity);track p_{T} [GeV];tracks", 100, 0., 100.);
1262 hHithp = book<TH1D>(
"h_nHit_hp",
"Number of hits (high purity);track n. hits;tracks", 30, 0, 30);
1263 hEtahp = book<TH1D>(
"h_Eta_hp",
"Track pseudorapidity (high purity); track #eta;tracks", 100, -etaMax_, etaMax_);
1264 hPhihp = book<TH1D>(
"h_Phi_hp",
"Track azimuth (high purity); track #phi;tracks", 100, -
M_PI,
M_PI);
1265 hchi2ndofhp = book<TH1D>(
"h_chi2ndof_hp",
"chi2/ndf (high purity);#chi^{2}/ndf;tracks", 100, 0, 5.);
1266 hchi2Probhp = book<TH1D>(
"hchi2_Prob_hp",
"#chi^{2} probability (high purity);#chi^{2}prob_{Track};Number of Tracks", 100, 0.0, 1.);
1268 hvx = book<TH1D>(
"h_vx",
"Track v_{x} ; track v_{x} [cm];tracks", 100, -1.5, 1.5);
1269 hvy = book<TH1D>(
"h_vy",
"Track v_{y} ; track v_{y} [cm];tracks", 100, -1.5, 1.5);
1270 hvz = book<TH1D>(
"h_vz",
"Track v_{z} ; track v_{z} [cm];tracks", 100, -20., 20.);
1271 hd0 = book<TH1D>(
"h_d0",
"Track d_{0} ; track d_{0} [cm];tracks", 100, -1., 1.);
1272 hdxy = book<TH1D>(
"h_dxy",
"Track d_{xy}; track d_{xy} [cm]; tracks", 100, -0.5, 0.5);
1273 hdz = book<TH1D>(
"h_dz",
"Track d_{z} ; track d_{z} [cm]; tracks", 100, -20, 20);
1275 hd0PVvsphi = book<TH2D>(
"h2_d0PVvsphi",
"hd0PVvsphi;track #phi;track d_{0}(PV) [cm]", 160, -
M_PI,
M_PI, 100, -1., 1.);
1276 hd0PVvseta = book<TH2D>(
"h2_d0PVvseta",
"hdPV0vseta;track #eta;track d_{0}(PV) [cm]", 160, -etaMax_, etaMax_, 100, -1., 1.);
1277 hd0PVvspt = book<TH2D>(
"h2_d0PVvspt",
"hdPV0vspt;track p_{T};d_{0}(PV) [cm]", 50, 0., 100., 100, -1, 1.);
1279 hdxyBS = book<TH1D>(
"h_dxyBS",
"hdxyBS; track d_{xy}(BS) [cm];tracks", 100, -0.1, 0.1);
1280 hd0BS = book<TH1D>(
"h_d0BS",
"hd0BS ; track d_{0}(BS) [cm];tracks", 100, -0.1, 0.1);
1281 hdzBS = book<TH1D>(
"h_dzBS",
"hdzBS ; track d_{z}(BS) [cm];tracks", 100, -12, 12);
1282 hdxyPV = book<TH1D>(
"h_dxyPV",
"hdxyPV; track d_{xy}(PV) [cm];tracks", 100, -0.1, 0.1);
1283 hd0PV = book<TH1D>(
"h_d0PV",
"hd0PV ; track d_{0}(PV) [cm];tracks", 100, -0.15, 0.15);
1284 hdzPV = book<TH1D>(
"h_dzPV",
"hdzPV ; track d_{z}(PV) [cm];tracks", 100, -0.1, 0.1);
1286 hnhTIB = book<TH1D>(
"h_nHitTIB",
"nhTIB;# hits in TIB; tracks", 20, 0., 20.);
1287 hnhTID = book<TH1D>(
"h_nHitTID",
"nhTID;# hits in TID; tracks", 20, 0., 20.);
1288 hnhTOB = book<TH1D>(
"h_nHitTOB",
"nhTOB;# hits in TOB; tracks", 20, 0., 20.);
1289 hnhTEC = book<TH1D>(
"h_nHitTEC",
"nhTEC;# hits in TEC; tracks", 20, 0., 20.);
1292 hvx = book<TH1D>(
"h_vx",
"Track v_{x};track v_{x} [cm];tracks", 100, -100., 100.);
1293 hvy = book<TH1D>(
"h_vy",
"Track v_{y};track v_{y} [cm];tracks", 100, -100., 100.);
1294 hvz = book<TH1D>(
"h_vz",
"Track v_{z};track v_{z} [cm];track", 100, -100., 100.);
1295 hd0 = book<TH1D>(
"h_d0",
"Track d_{0};track d_{0} [cm];track", 100, -100., 100.);
1296 hdxy = book<TH1D>(
"h_dxy",
"Track d_{xy};track d_{xy} [cm];tracks", 100, -100, 100);
1297 hdz = book<TH1D>(
"h_dz",
"Track d_{z};track d_{z} [cm];tracks", 100, -200, 200);
1299 hd0vsphi = book<TH2D>(
"h2_d0vsphi",
"Track d_{0} vs #phi; track #phi;track d_{0} [cm]", 160, -
M_PI,
M_PI, 100, -100., 100.);
1300 hd0vseta = book<TH2D>(
"h2_d0vseta",
"Track d_{0} vs #eta; track #eta;track d_{0} [cm]", 160, -etaMax_, etaMax_, 100, -100., 100.);
1301 hd0vspt = book<TH2D>(
"h2_d0vspt",
"Track d_{0} vs p_{T};track p_{T};track d_{0} [cm]", 50, 0., 100., 100, -100, 100);
1303 hdxyBS = book<TH1D>(
"h_dxyBS",
"Track d_{xy}(BS);d_{xy}(BS) [cm];tracks", 100, -100., 100.);
1304 hd0BS = book<TH1D>(
"h_d0BS",
"Track d_{0}(BS);d_{0}(BS) [cm];tracks", 100, -100., 100.);
1305 hdzBS = book<TH1D>(
"h_dzBS",
"Track d_{z}(BS);d_{z}(BS) [cm];tracks", 100, -100., 100.);
1306 hdxyPV = book<TH1D>(
"h_dxyPV",
"Track d_{xy}(PV); d_{xy}(PV) [cm];tracks", 100, -100., 100.);
1307 hd0PV = book<TH1D>(
"h_d0PV",
"Track d_{0}(PV); d_{0}(PV) [cm];tracks", 100, -100., 100.);
1308 hdzPV = book<TH1D>(
"h_dzPV",
"Track d_{z}(PV); d_{z}(PV) [cm];tracks", 100, -100., 100.);
1310 hnhTIB = book<TH1D>(
"h_nHitTIB",
"nhTIB;# hits in TIB; tracks", 30, 0., 30.);
1311 hnhTID = book<TH1D>(
"h_nHitTID",
"nhTID;# hits in TID; tracks", 30, 0., 30.);
1312 hnhTOB = book<TH1D>(
"h_nHitTOB",
"nhTOB;# hits in TOB; tracks", 30, 0., 30.);
1313 hnhTEC = book<TH1D>(
"h_nHitTEC",
"nhTEC;# hits in TEC; tracks", 30, 0., 30.);
1316 hnhpxb = book<TH1D>(
"h_nHitPXB",
"nhpxb;# hits in Pixel Barrel; tracks", 10, 0., 10.);
1317 hnhpxe = book<TH1D>(
"h_nHitPXE",
"nhpxe;# hits in Pixel Endcap; tracks", 10, 0., 10.);
1319 hHitComposition = book<TH1D>(
"h_hitcomposition",
"track hit composition;;# hits", 6, -0.5, 5.5);
1320 pNBpixHitsVsVx = book<TProfile>(
"p_NpixHits_vs_Vx",
"n. Barrel Pixel hits vs. v_{x};v_{x} (cm);n. BPix hits", 20, -20, 20);
1321 pNBpixHitsVsVy = book<TProfile>(
"p_NpixHits_vs_Vy",
"n. Barrel Pixel hits vs. v_{y};v_{y} (cm);n. BPix hits", 20, -20, 20);
1322 pNBpixHitsVsVz = book<TProfile>(
"p_NpixHits_vs_Vz",
"n. Barrel Pixel hits vs. v_{z};v_{z} (cm);n. BPix hits", 20, -100, 100);
1324 std::string dets[6] = {
"PXB",
"PXF",
"TIB",
"TID",
"TOB",
"TEC"};
1325 for (
int i = 1;
i <= hHitComposition->GetNbinsX();
i++) {
1326 hHitComposition->GetXaxis()->SetBinLabel(
i, dets[
i - 1].c_str());
1329 vTrackHistos_.push_back(book<TH1F>(
"h_tracketa",
"Track #eta;#eta_{Track};Number of Tracks", 90, -etaMax_, etaMax_));
1330 vTrackHistos_.push_back(book<TH1F>(
"h_trackphi",
"Track #phi;#phi_{Track};Number of Tracks", 90, -
M_PI,
M_PI));
1331 vTrackHistos_.push_back(book<TH1F>(
"h_trackNumberOfValidHits",
"Track # of valid hits;# of valid hits _{Track};Number of Tracks", 40, 0., 40.));
1332 vTrackHistos_.push_back(book<TH1F>(
"h_trackNumberOfLostHits",
"Track # of lost hits;# of lost hits _{Track};Number of Tracks", 10, 0., 10.));
1333 vTrackHistos_.push_back(book<TH1F>(
"h_curvature",
"Curvature #kappa;#kappa_{Track};Number of Tracks", 100, -.05, .05));
1334 vTrackHistos_.push_back(book<TH1F>(
"h_curvature_pos",
"Curvature |#kappa| Positive Tracks;|#kappa_{pos Track}|;Number of Tracks", 100, .0, .05));
1335 vTrackHistos_.push_back(book<TH1F>(
"h_curvature_neg",
"Curvature |#kappa| Negative Tracks;|#kappa_{neg Track}|;Number of Tracks", 100, .0, .05));
1336 vTrackHistos_.push_back(book<TH1F>(
"h_diff_curvature",
"Curvature |#kappa| Tracks Difference;|#kappa_{Track}|;# Pos Tracks - # Neg Tracks", 100,.0,.05));
1338 vTrackHistos_.push_back(book<TH1F>(
"h_chi2",
"Track #chi^{2};#chi^{2}_{Track};Number of Tracks", 500, -0.01, 500.));
1339 vTrackHistos_.push_back(book<TH1F>(
"h_chi2Prob",
"#chi^{2} probability;Track Prob(#chi^{2},ndof);Number of Tracks", 100, 0.0, 1.));
1340 vTrackHistos_.push_back(book<TH1F>(
"h_normchi2",
"#chi^{2}/ndof;#chi^{2}/ndof;Number of Tracks", 100, -0.01, 10.));
1343 double xBins[19] = {0., 0.15, 0.5, 1., 1.5, 2., 2.5, 3., 3.5, 4., 4.5, 5., 7., 10., 15., 25., 40., 100., 200.};
1344 vTrackHistos_.push_back(book<TH1F>(
"h_pt",
"Track p_{T};p_{T}^{track} [GeV];Number of Tracks", 250, 0., 250));
1345 vTrackHistos_.push_back(book<TH1F>(
"h_ptrebin",
"Track p_{T};p_{T}^{track} [GeV];Number of Tracks", 18,
xBins));
1347 vTrackHistos_.push_back(book<TH1F>(
"h_ptResolution",
"#delta_{p_{T}}/p_{T}^{track};#delta_{p_{T}}/p_{T}^{track};Number of Tracks", 100, 0., 0.5));
1348 vTrackProfiles_.push_back(book<TProfile>(
"p_d0_vs_phi",
"Transverse Impact Parameter vs. #phi;#phi_{Track};#LT d_{0} #GT [cm]", 100, -
M_PI,
M_PI));
1349 vTrackProfiles_.push_back(book<TProfile>(
"p_dz_vs_phi",
"Longitudinal Impact Parameter vs. #phi;#phi_{Track};#LT d_{z} #GT [cm]", 100, -
M_PI,
M_PI));
1350 vTrackProfiles_.push_back(book<TProfile>(
"p_d0_vs_eta",
"Transverse Impact Parameter vs. #eta;#eta_{Track};#LT d_{0} #GT [cm]", 100, -etaMax_, etaMax_));
1351 vTrackProfiles_.push_back(book<TProfile>(
"p_dz_vs_eta",
"Longitudinal Impact Parameter vs. #eta;#eta_{Track};#LT d_{z} #GT [cm]", 100, -etaMax_, etaMax_));
1352 vTrackProfiles_.push_back(book<TProfile>(
"p_chi2_vs_phi",
"#chi^{2} vs. #phi;#phi_{Track};#LT #chi^{2} #GT", 100, -
M_PI,
M_PI));
1353 vTrackProfiles_.push_back(book<TProfile>(
"p_chi2Prob_vs_phi",
"#chi^{2} probablility vs. #phi;#phi_{Track};#LT #chi^{2} probability#GT",100,-
M_PI,
M_PI));
1354 vTrackProfiles_.push_back(book<TProfile>(
"p_chi2Prob_vs_d0",
"#chi^{2} probablility vs. |d_{0}|;|d_{0}|[cm];#LT #chi^{2} probability#GT", 100, 0, 80));
1355 vTrackProfiles_.push_back(book<TProfile>(
"p_chi2Prob_vs_dz",
"#chi^{2} probablility vs. dz;d_{z} [cm];#LT #chi^{2} probability#GT", 100, -30, 30));
1356 vTrackProfiles_.push_back(book<TProfile>(
"p_normchi2_vs_phi",
"#chi^{2}/ndof vs. #phi;#phi_{Track};#LT #chi^{2}/ndof #GT", 100, -
M_PI,
M_PI));
1357 vTrackProfiles_.push_back(book<TProfile>(
"p_chi2_vs_eta",
"#chi^{2} vs. #eta;#eta_{Track};#LT #chi^{2} #GT", 100, -etaMax_, etaMax_));
1358 vTrackProfiles_.push_back(book<TProfile>(
"p_normchi2_vs_pt",
"norm #chi^{2} vs. p_{T}_{Track}; p_{T}_{Track};#LT #chi^{2}/ndof #GT", 18,
xBins));
1359 vTrackProfiles_.push_back(book<TProfile>(
"p_normchi2_vs_p",
"#chi^{2}/ndof vs. p_{Track};p_{Track};#LT #chi^{2}/ndof #GT", 18,
xBins));
1360 vTrackProfiles_.push_back(book<TProfile>(
"p_chi2Prob_vs_eta",
"#chi^{2} probability vs. #eta;#eta_{Track};#LT #chi^{2} probability #GT",100,-etaMax_, etaMax_));
1361 vTrackProfiles_.push_back(book<TProfile>(
"p_normchi2_vs_eta",
"#chi^{2}/ndof vs. #eta;#eta_{Track};#LT #chi^{2}/ndof #GT", 100, -etaMax_, etaMax_));
1362 vTrackProfiles_.push_back(book<TProfile>(
"p_kappa_vs_phi",
"#kappa vs. #phi;#phi_{Track};#kappa", 100, -
M_PI,
M_PI));
1363 vTrackProfiles_.push_back(book<TProfile>(
"p_kappa_vs_eta",
"#kappa vs. #eta;#eta_{Track};#kappa", 100, -etaMax_, etaMax_));
1364 vTrackProfiles_.push_back(book<TProfile>(
"p_ptResolution_vs_phi",
"#delta_{p_{T}}/p_{T}^{track};#phi^{track};#delta_{p_{T}}/p_{T}^{track}", 100,-
M_PI,
M_PI));
1365 vTrackProfiles_.push_back(book<TProfile>(
"p_ptResolution_vs_eta",
"#delta_{p_{T}}/p_{T}^{track};#eta^{track};#delta_{p_{T}}/p_{T}^{track}", 100, -etaMax_, etaMax_));
1366 vTrack2DHistos_.push_back(book<TH2F>(
"h2_d0_vs_phi",
"Transverse Impact Parameter vs. #phi;#phi_{Track};d_{0} [cm]", 100, -
M_PI,
M_PI, 100, -1., 1.));
1367 vTrack2DHistos_.push_back(book<TH2F>(
"h2_phi_vs_eta",
"Track #phi vs. #eta;#eta_{Track};#phi_{Track}",50, -etaMax_, etaMax_, 50, -
M_PI,
M_PI));
1368 vTrack2DHistos_.push_back(book<TH2F>(
"h2_dz_vs_phi",
"Longitudinal Impact Parameter vs. #phi;#phi_{Track};d_{z} [cm]",100,-
M_PI,
M_PI,100,-100.,100.));
1369 vTrack2DHistos_.push_back(book<TH2F>(
"h2_d0_vs_eta",
"Transverse Impact Parameter vs. #eta;#eta_{Track};d_{0} [cm]", 100, -etaMax_, etaMax_, 100, -1., 1.));
1370 vTrack2DHistos_.push_back(book<TH2F>(
"h2_dz_vs_eta",
"Longitudinal Impact Parameter vs. #eta;#eta_{Track};d_{z} [cm]",100, -etaMax_, etaMax_, 100,-100.,100.));
1371 vTrack2DHistos_.push_back(book<TH2F>(
"h2_chi2_vs_phi",
"#chi^{2} vs. #phi;#phi_{Track};#chi^{2}", 100, -
M_PI,
M_PI, 500, 0., 500.));
1372 vTrack2DHistos_.push_back(book<TH2F>(
"h2_chi2Prob_vs_phi",
"#chi^{2} probability vs. #phi;#phi_{Track};#chi^{2} probability",100,-
M_PI,
M_PI,100,0.,1.));
1373 vTrack2DHistos_.push_back(book<TH2F>(
"h2_chi2Prob_vs_d0",
"#chi^{2} probability vs. |d_{0}|;|d_{0}| [cm];#chi^{2} probability",100,0,80,100,0.,1.));
1374 vTrack2DHistos_.push_back(book<TH2F>(
"h2_normchi2_vs_phi",
"#chi^{2}/ndof vs. #phi;#phi_{Track};#chi^{2}/ndof", 100, -
M_PI,
M_PI, 100, 0., 10.));
1375 vTrack2DHistos_.push_back(book<TH2F>(
"h2_chi2_vs_eta",
"#chi^{2} vs. #eta;#eta_{Track};#chi^{2}", 100, -etaMax_, etaMax_, 500, 0., 500.));
1376 vTrack2DHistos_.push_back(book<TH2F>(
"h2_chi2Prob_vs_eta",
"#chi^{2} probaility vs. #eta;#eta_{Track};#chi^{2} probability",100,-
M_PI,
M_PI,100,0.,1.));
1377 vTrack2DHistos_.push_back(book<TH2F>(
"h2_normchi2_vs_eta",
"#chi^{2}/ndof vs. #eta;#eta_{Track};#chi^{2}/ndof", 100, -etaMax_, etaMax_, 100, 0., 10.));
1378 vTrack2DHistos_.push_back(book<TH2F>(
"h2_kappa_vs_phi",
"#kappa vs. #phi;#phi_{Track};#kappa", 100, -
M_PI,
M_PI, 100, .0, .05));
1379 vTrack2DHistos_.push_back(book<TH2F>(
"h2_kappa_vs_eta",
"#kappa vs. #eta;#eta_{Track};#kappa", 100, -etaMax_, etaMax_, 100, .0, .05));
1380 vTrack2DHistos_.push_back(book<TH2F>(
"h2_normchi2_vs_kappa",
"#kappa vs. #chi^{2}/ndof;#chi^{2}/ndof;#kappa", 100, 0., 10, 100, -.03, .03));
1387 fullPixelmapXDMR->createTrackerBaseMap();
1388 fullPixelmapYDMR->createTrackerBaseMap();
1393 edm::LogPrint(
"DMRChecker") <<
"*******************************" << std::endl;
1394 edm::LogPrint(
"DMRChecker") <<
"Events run in total: " << ievt << std::endl;
1395 edm::LogPrint(
"DMRChecker") <<
"n. tracks: " << itrks << std::endl;
1396 edm::LogPrint(
"DMRChecker") <<
"*******************************" << std::endl;
1398 int nFiringTriggers = !triggerMap_.empty() ? triggerMap_.size() : 1;
1399 edm::LogPrint(
"DMRChecker") <<
"firing triggers: " << triggerMap_.size() << std::endl;
1400 edm::LogPrint(
"DMRChecker") <<
"*******************************" << std::endl;
1403 book<TH1D>(
"tksByTrigger",
"tracks by HLT path;;% of # traks", nFiringTriggers, -0.5, nFiringTriggers - 0.5);
1405 book<TH1D>(
"evtsByTrigger",
"events by HLT path;;% of # events", nFiringTriggers, -0.5, nFiringTriggers - 0.5);
1408 edm::LogPrint(
"DMRChecker") << __FILE__ <<
"@" << __FUNCTION__ <<
" L-" << __LINE__ << std::endl;
1411 for (
const auto &
it : triggerMap_) {
1414 double trkpercent = ((
it.second).
second) * 100. / double(itrks);
1415 double evtpercent = ((
it.second).
first) * 100. / double(ievt);
1419 edm::LogPrint(
"DMRChecker") <<
"HLT path: " << std::setw(60) << left <<
it.first <<
" | events firing: " << right
1420 << std::setw(8) << (
it.second).
first <<
" (" << setw(8) <<
fixed << evtpercent <<
"%)" 1421 <<
" | tracks collected: " << std::setw(10) << (
it.second).
second <<
" (" << setw(8)
1422 <<
fixed << trkpercent <<
"%)";
1424 tksByTrigger_->SetBinContent(
i, trkpercent);
1425 tksByTrigger_->GetXaxis()->SetBinLabel(
i, (
it.first).c_str());
1427 evtsByTrigger_->SetBinContent(
i, evtpercent);
1428 evtsByTrigger_->GetXaxis()->SetBinLabel(
i, (
it.first).c_str());
1432 edm::LogPrint(
"DMRChecker") << __FILE__ <<
"@" << __FUNCTION__ <<
" L-" << __LINE__ << std::endl;
1434 int nRuns = conditionsMap_.size();
1438 vector<int> theRuns_;
1439 theRuns_.reserve(conditionsMap_.size());
1440 for (
const auto &
it : conditionsMap_) {
1441 theRuns_.push_back(
it.first);
1444 std::sort(theRuns_.begin(), theRuns_.end());
1445 int runRange = theRuns_.back() - theRuns_.front() + 1;
1447 edm::LogPrint(
"DMRChecker") <<
"*******************************" << std::endl;
1448 edm::LogPrint(
"DMRChecker") <<
"first run: " << theRuns_.front() << std::endl;
1449 edm::LogPrint(
"DMRChecker") <<
"last run: " << theRuns_.back() << std::endl;
1450 edm::LogPrint(
"DMRChecker") <<
"considered runs: " << nRuns << std::endl;
1451 edm::LogPrint(
"DMRChecker") <<
"*******************************" << std::endl;
1453 modeByRun_ = book<TH1D>(
"modeByRun",
1454 "Strip APV mode by run number;;APV mode (-1=deco,+1=peak)",
1456 theRuns_.front() - 0.5,
1457 theRuns_.back() + 0.5);
1458 fieldByRun_ = book<TH1D>(
"fieldByRun",
1459 "CMS B-field intensity by run number;;B-field intensity [T]",
1461 theRuns_.front() - 0.5,
1462 theRuns_.back() + 0.5);
1464 tracksByRun_ = book<TH1D>(
"tracksByRun",
1465 "n. AlCaReco Tracks by run number;;n. of tracks",
1467 theRuns_.front() - 0.5,
1468 theRuns_.back() + 0.5);
1469 hitsByRun_ = book<TH1D>(
1470 "histByRun",
"n. of hits by run number;;n. of hits",
runRange, theRuns_.front() - 0.5, theRuns_.back() + 0.5);
1472 trackRatesByRun_ = book<TH1D>(
"trackRatesByRun",
1473 "rate of AlCaReco Tracks by run number;;n. of tracks/s",
1475 theRuns_.front() - 0.5,
1476 theRuns_.back() + 0.5);
1477 eventRatesByRun_ = book<TH1D>(
"eventRatesByRun",
1478 "rate of AlCaReco Events by run number;;n. of events/s",
1480 theRuns_.front() - 0.5,
1481 theRuns_.back() + 0.5);
1483 hitsinBPixByRun_ = book<TH1D>(
"histinBPixByRun",
1484 "n. of hits in BPix by run number;;n. of BPix hits",
1486 theRuns_.front() - 0.5,
1487 theRuns_.back() + 0.5);
1488 hitsinFPixByRun_ = book<TH1D>(
"histinFPixByRun",
1489 "n. of hits in FPix by run number;;n. of FPix hits",
1491 theRuns_.front() - 0.5,
1492 theRuns_.back() + 0.5);
1494 for (
const auto &the_r : theRuns_) {
1495 if (conditionsMap_.find(the_r)->second.first != 0) {
1496 auto indexing = (the_r - theRuns_.front()) + 1;
1497 double runTime = timeMap_.find(the_r)->second;
1499 edm::LogPrint(
"DMRChecker") <<
"run:" << the_r <<
" | isPeak: " << std::setw(4)
1500 << conditionsMap_.find(the_r)->second.first
1501 <<
"| B-field: " << conditionsMap_.find(the_r)->second.second <<
" [T]" 1502 <<
"| events: " << setw(10) << runInfoMap_.find(the_r)->second.first
1503 <<
"(rate: " << setw(10) << (runInfoMap_.find(the_r)->second.first) / runTime
1505 <<
", tracks " << setw(10) << runInfoMap_.find(the_r)->second.second
1506 <<
"(rate: " << setw(10) << (runInfoMap_.find(the_r)->second.second) / runTime
1507 <<
" trk/s)" << std::endl;
1510 modeByRun_->SetBinContent(indexing, conditionsMap_.find(the_r)->second.first);
1511 modeByRun_->GetXaxis()->SetBinLabel(indexing, Form(
"%d", the_r));
1512 fieldByRun_->SetBinContent(indexing, conditionsMap_.find(the_r)->second.second);
1513 fieldByRun_->GetXaxis()->SetBinLabel(indexing, Form(
"%d", the_r));
1515 tracksByRun_->SetBinContent(indexing, runInfoMap_.find(the_r)->second.first);
1516 tracksByRun_->GetXaxis()->SetBinLabel(indexing, Form(
"%d", the_r));
1517 hitsByRun_->SetBinContent(indexing, runInfoMap_.find(the_r)->second.second);
1518 hitsByRun_->GetXaxis()->SetBinLabel(indexing, Form(
"%d", the_r));
1520 hitsinBPixByRun_->SetBinContent(indexing, (runHitsMap_.find(the_r)->second)[0]);
1521 hitsinBPixByRun_->GetXaxis()->SetBinLabel(indexing, Form(
"%d", the_r));
1522 hitsinFPixByRun_->SetBinContent(indexing, (runHitsMap_.find(the_r)->second)[1]);
1523 hitsinFPixByRun_->GetXaxis()->SetBinLabel(indexing, Form(
"%d", the_r));
1525 trackRatesByRun_->SetBinContent(indexing, (runInfoMap_.find(the_r)->second.second) / runTime);
1526 trackRatesByRun_->GetXaxis()->SetBinLabel(indexing, Form(
"%d", the_r));
1527 eventRatesByRun_->SetBinContent(indexing, (runInfoMap_.find(the_r)->second.first) / runTime);
1528 eventRatesByRun_->GetXaxis()->SetBinLabel(indexing, Form(
"%d", the_r));
1530 constexpr const char *
subdets[]{
"BPix",
"FPix",
"TIB",
"TID",
"TOB",
"TEC"};
1532 edm::LogPrint(
"DMRChecker") <<
"*******************************" << std::endl;
1533 edm::LogPrint(
"DMRChecker") <<
"Hits by SubDetector" << std::endl;
1535 for (
const auto &
entry : runHitsMap_.find(the_r)->second) {
1539 edm::LogPrint(
"DMRChecker") <<
"*******************************" << std::endl;
1546 edm::LogPrint(
"DMRChecker") << __FILE__ <<
"@" << __FUNCTION__ <<
" L-" << __LINE__ << std::endl;
1552 DMRBPixX_ = DMeanR.
make<TH1D>(
"DMRBPix-X",
"DMR of BPix-X;mean of X-residuals;modules", 100., -200, 200);
1553 DMRBPixY_ = DMeanR.
make<TH1D>(
"DMRBPix-Y",
"DMR of BPix-Y;mean of Y-residuals;modules", 100., -200, 200);
1555 DMRFPixX_ = DMeanR.
make<TH1D>(
"DMRFPix-X",
"DMR of FPix-X;mean of X-residuals;modules", 100., -200, 200);
1556 DMRFPixY_ = DMeanR.
make<TH1D>(
"DMRFPix-Y",
"DMR of FPix-Y;mean of Y-residuals;modules", 100., -200, 200);
1558 DMRTIB_ = DMeanR.
make<TH1D>(
"DMRTIB",
"DMR of TIB;mean of X-residuals;modules", 100., -200, 200);
1559 DMRTOB_ = DMeanR.
make<TH1D>(
"DMRTOB",
"DMR of TOB;mean of X-residuals;modules", 100., -200, 200);
1561 DMRTID_ = DMeanR.
make<TH1D>(
"DMRTID",
"DMR of TID;mean of X-residuals;modules", 100., -200, 200);
1562 DMRTEC_ = DMeanR.
make<TH1D>(
"DMRTEC",
"DMR of TEC;mean of X-residuals;modules", 100., -200, 200);
1566 DMRBPixXSplit_ = bookSplitDMRHistograms(DMeanRSplit,
"BPix",
"X",
true);
1567 DMRBPixYSplit_ = bookSplitDMRHistograms(DMeanRSplit,
"BPix",
"Y",
true);
1569 DMRFPixXSplit_ = bookSplitDMRHistograms(DMeanRSplit,
"FPix",
"X",
false);
1570 DMRFPixYSplit_ = bookSplitDMRHistograms(DMeanRSplit,
"FPix",
"Y",
false);
1572 DMRTIBSplit_ = bookSplitDMRHistograms(DMeanRSplit,
"TIB",
"X",
true);
1573 DMRTOBSplit_ = bookSplitDMRHistograms(DMeanRSplit,
"TOB",
"X",
true);
1578 DRnRBPixX_ = DRnRs.
make<TH1D>(
"DRnRBPix-X",
"DRnR of BPix-X;rms of normalized X-residuals;modules", 100., 0., 3.);
1579 DRnRBPixY_ = DRnRs.
make<TH1D>(
"DRnRBPix-Y",
"DRnR of BPix-Y;rms of normalized Y-residuals;modules", 100., 0., 3.);
1581 DRnRFPixX_ = DRnRs.
make<TH1D>(
"DRnRFPix-X",
"DRnR of FPix-X;rms of normalized X-residuals;modules", 100., 0., 3.);
1582 DRnRFPixY_ = DRnRs.
make<TH1D>(
"DRnRFPix-Y",
"DRnR of FPix-Y;rms of normalized Y-residuals;modules", 100., 0., 3.);
1584 DRnRTIB_ = DRnRs.
make<TH1D>(
"DRnRTIB",
"DRnR of TIB;rms of normalized X-residuals;modules", 100., 0., 3.);
1585 DRnRTOB_ = DRnRs.
make<TH1D>(
"DRnRTOB",
"DRnR of TOB;rms of normalized Y-residuals;modules", 100., 0., 3.);
1587 DRnRTID_ = DRnRs.
make<TH1D>(
"DRnRTID",
"DRnR of TID;rms of normalized X-residuals;modules", 100., 0., 3.);
1588 DRnRTEC_ = DRnRs.
make<TH1D>(
"DRnRTEC",
"DRnR of TEC;rms of normalized Y-residuals;modules", 100., 0., 3.);
1598 PixelDMRS_x_ByLayer = std::make_unique<PixelRegions::PixelRegionContainers>(&standaloneTopo, ph_info.
phase());
1599 PixelDMRS_y_ByLayer = std::make_unique<PixelRegions::PixelRegionContainers>(&standaloneTopo, ph_info.
phase());
1602 PixelDMRS_x_ByLayer->bookAll(
"Barrel Pixel DMRs",
"median(x'_{pred}-x'_{hit}) [#mum]",
"# modules", 100, -50, 50);
1603 PixelDMRS_y_ByLayer->bookAll(
"Barrel Pixel DMRs",
"median(y'_{pred}-y'_{hit}) [#mum]",
"# modules", 100, -50, 50);
1607 for (
const auto &det : dets) {
1608 auto myLocalTopo = PixelDMRS_x_ByLayer->getTheTopo();
1615 for (
auto &bpixid : resDetailsBPixX_) {
1616 DMRBPixX_->Fill(bpixid.second.runningMeanOfRes_);
1618 pixelmap->fillBarrelBin(
"DMRsX", bpixid.first, bpixid.second.runningMeanOfRes_);
1619 fullPixelmapXDMR->fillTrackerMap(bpixid.first, bpixid.second.runningMeanOfRes_);
1623 auto myLocalTopo = PixelDMRS_x_ByLayer->getTheTopo();
1624 edm::LogPrint(
"DMRChecker") << myLocalTopo->print(bpixid.first) << std::endl;
1627 PixelDMRS_x_ByLayer->fill(bpixid.first, bpixid.second.runningMeanOfRes_);
1630 if (bpixid.second.rDirection > 0) {
1631 DMRBPixXSplit_[0]->Fill(bpixid.second.runningMeanOfRes_);
1633 DMRBPixXSplit_[1]->Fill(bpixid.second.runningMeanOfRes_);
1636 if (bpixid.second.hitCount < 2)
1637 DRnRBPixX_->Fill(-1);
1639 DRnRBPixX_->Fill(
sqrt(bpixid.second.runningNormVarOfRes_ / (bpixid.second.hitCount - 1)));
1642 for (
auto &bpixid : resDetailsBPixY_) {
1643 DMRBPixY_->Fill(bpixid.second.runningMeanOfRes_);
1645 pixelmap->fillBarrelBin(
"DMRsY", bpixid.first, bpixid.second.runningMeanOfRes_);
1646 fullPixelmapYDMR->fillTrackerMap(bpixid.first, bpixid.second.runningMeanOfRes_);
1649 PixelDMRS_y_ByLayer->fill(bpixid.first, bpixid.second.runningMeanOfRes_);
1652 if (bpixid.second.rDirection > 0) {
1653 DMRBPixYSplit_[0]->Fill(bpixid.second.runningMeanOfRes_);
1655 DMRBPixYSplit_[1]->Fill(bpixid.second.runningMeanOfRes_);
1658 if (bpixid.second.hitCount < 2)
1659 DRnRBPixY_->Fill(-1);
1661 DRnRBPixY_->Fill(
sqrt(bpixid.second.runningNormVarOfRes_ / (bpixid.second.hitCount - 1)));
1664 for (
auto &fpixid : resDetailsFPixX_) {
1665 DMRFPixX_->Fill(fpixid.second.runningMeanOfRes_);
1667 pixelmap->fillForwardBin(
"DMRsX", fpixid.first, fpixid.second.runningMeanOfRes_);
1668 fullPixelmapXDMR->fillTrackerMap(fpixid.first, fpixid.second.runningMeanOfRes_);
1670 PixelDMRS_x_ByLayer->fill(fpixid.first, fpixid.second.runningMeanOfRes_);
1673 if (fpixid.second.zDirection > 0) {
1674 DMRFPixXSplit_[0]->Fill(fpixid.second.runningMeanOfRes_);
1676 DMRFPixXSplit_[1]->Fill(fpixid.second.runningMeanOfRes_);
1679 if (fpixid.second.hitCount < 2)
1680 DRnRFPixX_->Fill(-1);
1682 DRnRFPixX_->Fill(
sqrt(fpixid.second.runningNormVarOfRes_ / (fpixid.second.hitCount - 1)));
1685 for (
auto &fpixid : resDetailsFPixY_) {
1686 DMRFPixY_->Fill(fpixid.second.runningMeanOfRes_);
1688 pixelmap->fillForwardBin(
"DMRsY", fpixid.first, fpixid.second.runningMeanOfRes_);
1689 fullPixelmapXDMR->fillTrackerMap(fpixid.first, fpixid.second.runningMeanOfRes_);
1691 PixelDMRS_y_ByLayer->fill(fpixid.first, fpixid.second.runningMeanOfRes_);
1694 if (fpixid.second.zDirection > 0) {
1695 DMRFPixYSplit_[0]->Fill(fpixid.second.runningMeanOfRes_);
1697 DMRFPixYSplit_[1]->Fill(fpixid.second.runningMeanOfRes_);
1700 if (fpixid.second.hitCount < 2)
1701 DRnRFPixY_->Fill(-1);
1703 DRnRFPixY_->Fill(
sqrt(fpixid.second.runningNormVarOfRes_ / (fpixid.second.hitCount - 1)));
1708 for (
auto &tibid : resDetailsTIB_) {
1709 DMRTIB_->Fill(tibid.second.runningMeanOfRes_);
1712 if (tibid.second.rDirection > 0) {
1713 DMRTIBSplit_[0]->Fill(tibid.second.runningMeanOfRes_);
1715 DMRTIBSplit_[1]->Fill(tibid.second.runningMeanOfRes_);
1718 if (tibid.second.hitCount < 2)
1721 DRnRTIB_->Fill(
sqrt(tibid.second.runningNormVarOfRes_ / (tibid.second.hitCount - 1)));
1724 for (
auto &tobid : resDetailsTOB_) {
1725 DMRTOB_->Fill(tobid.second.runningMeanOfRes_);
1728 if (tobid.second.rDirection > 0) {
1729 DMRTOBSplit_[0]->Fill(tobid.second.runningMeanOfRes_);
1731 DMRTOBSplit_[1]->Fill(tobid.second.runningMeanOfRes_);
1734 if (tobid.second.hitCount < 2)
1737 DRnRTOB_->Fill(
sqrt(tobid.second.runningNormVarOfRes_ / (tobid.second.hitCount - 1)));
1740 for (
auto &tidid : resDetailsTID_) {
1741 DMRTID_->Fill(tidid.second.runningMeanOfRes_);
1743 if (tidid.second.hitCount < 2)
1746 DRnRTID_->Fill(
sqrt(tidid.second.runningNormVarOfRes_ / (tidid.second.hitCount - 1)));
1749 for (
auto &tecid : resDetailsTEC_) {
1750 DMRTEC_->Fill(tecid.second.runningMeanOfRes_);
1752 if (tecid.second.hitCount < 2)
1755 DRnRTEC_->Fill(
sqrt(tecid.second.runningNormVarOfRes_ / (tecid.second.hitCount - 1)));
1758 edm::LogPrint(
"DMRChecker") <<
"n. of bpix modules " << resDetailsBPixX_.size() << std::endl;
1759 edm::LogPrint(
"DMRChecker") <<
"n. of fpix modules " << resDetailsFPixX_.size() << std::endl;
1762 pmap->save(
true, 0, 0,
"PixelHitMap.pdf", 600, 800);
1763 pmap->save(
true, 0, 0,
"PixelHitMap.png", 500, 750);
1766 tmap->save(
true, 0, 0,
"StripHitMap.pdf");
1767 tmap->save(
true, 0, 0,
"StripHitMap.png");
1770 gStyle->SetPalette(kRainBow);
1771 pixelmap->beautifyAllHistograms();
1773 TCanvas cBX(
"CanvXBarrel",
"CanvXBarrel", 1200, 1000);
1774 pixelmap->drawBarrelMaps(
"DMRsX", cBX);
1775 cBX.SaveAs(
"pixelBarrelDMR_x.png");
1777 TCanvas cFX(
"CanvXForward",
"CanvXForward", 1600, 1000);
1778 pixelmap->drawForwardMaps(
"DMRsX", cFX);
1779 cFX.SaveAs(
"pixelForwardDMR_x.png");
1781 TCanvas cBY(
"CanvYBarrel",
"CanvYBarrel", 1200, 1000);
1782 pixelmap->drawBarrelMaps(
"DMRsY", cBY);
1783 cBY.SaveAs(
"pixelBarrelDMR_y.png");
1785 TCanvas cFY(
"CanvXForward",
"CanvXForward", 1600, 1000);
1786 pixelmap->drawForwardMaps(
"DMRsY", cFY);
1787 cFY.SaveAs(
"pixelForwardDMR_y.png");
1789 TCanvas cFullPixelxDMR(
"CanvFullPixelX",
"CanvFullPixelX", 3000, 2000);
1790 fullPixelmapXDMR->printTrackerMap(cFullPixelxDMR);
1791 cFullPixelxDMR.SaveAs(
"fullPixelDMR_x.png");
1793 TCanvas cFullPixelyDMR(
"CanvFullPixelX",
"CanvFullPixelY", 3000, 2000);
1794 fullPixelmapXDMR->printTrackerMap(cFullPixelyDMR);
1795 cFullPixelyDMR.SaveAs(
"fullPixelDMR_y.png");
1799 gStyle->SetOptStat(
"emr");
1800 PixelDMRS_x_ByLayer->beautify(2, 0);
1801 PixelDMRS_y_ByLayer->beautify(2, 0);
1803 TCanvas DMRxBarrel(
"DMRxBarrelCanv",
"x-coordinate", 1400, 1200);
1804 DMRxBarrel.Divide(2, 2);
1805 PixelDMRS_x_ByLayer->draw(DMRxBarrel,
true,
"HISTS");
1806 adjustCanvases(DMRxBarrel,
true);
1807 for (
unsigned int c = 1;
c <= 4;
c++) {
1808 DMRxBarrel.cd(
c)->Update();
1810 PixelDMRS_x_ByLayer->stats();
1812 TCanvas DMRxForward(
"DMRxForwardCanv",
"x-coordinate", 1400, 1200);
1813 DMRxForward.Divide(4, 3);
1814 PixelDMRS_x_ByLayer->draw(DMRxForward,
false,
"HISTS");
1815 adjustCanvases(DMRxForward,
false);
1816 for (
unsigned int c = 1;
c <= 12;
c++) {
1817 DMRxForward.cd(
c)->Update();
1819 PixelDMRS_x_ByLayer->stats();
1821 DMRxBarrel.SaveAs(
"DMR_x_Barrel_ByLayer.png");
1822 DMRxForward.SaveAs(
"DMR_x_Forward_ByRing.png");
1824 TCanvas DMRyBarrel(
"DMRyBarrelCanv",
"y-coordinate", 1400, 1200);
1825 DMRyBarrel.Divide(2, 2);
1826 PixelDMRS_y_ByLayer->draw(DMRyBarrel,
true,
"HISTS");
1827 adjustCanvases(DMRyBarrel,
true);
1828 for (
unsigned int c = 1;
c <= 4;
c++) {
1829 DMRyBarrel.cd(
c)->Update();
1831 PixelDMRS_y_ByLayer->stats();
1833 TCanvas DMRyForward(
"DMRyForwardCanv",
"y-coordinate", 1400, 1200);
1834 DMRyForward.Divide(4, 3);
1835 PixelDMRS_y_ByLayer->draw(DMRyForward,
false,
"HISTS");
1836 adjustCanvases(DMRyForward,
false);
1837 for (
unsigned int c = 1;
c <= 12;
c++) {
1838 DMRyForward.cd(
c)->Update();
1840 PixelDMRS_y_ByLayer->stats();
1842 DMRyBarrel.SaveAs(
"DMR_y_Barrel_ByLayer.png");
1843 DMRyForward.SaveAs(
"DMR_y_Forward_ByRing.png");
1850 unsigned int maxPads =
isBarrel ? 4 : 12;
1851 for (
unsigned int c = 1;
c <= maxPads;
c++) {
1856 auto ltx = TLatex();
1857 ltx.SetTextFont(62);
1858 ltx.SetTextSize(0.05);
1859 ltx.SetTextAlign(11);
1863 for (
unsigned int c = 1;
c <= maxPads;
c++) {
1866 ltx.DrawLatexNDC(gPad->GetLeftMargin(),
1867 1 - gPad->GetTopMargin() + 0.01,
1876 bool countStereoHitAs2D_ =
true;
1879 if (!
hit.isValid() ||
1890 return countStereoHitAs2D_;
1891 else if (dynamic_cast<const SiStripRecHit1D *>(&
hit) ||
dynamic_cast<const SiStripRecHit2D *
>(&
hit))
1894 else if (dynamic_cast<const SiStripMatchedRecHit2D *>(&
hit))
1896 else if (dynamic_cast<const ProjectedSiStripRecHit2D *>(&
hit)) {
1898 return (countStereoHitAs2D_ && this->isHit2D(pH->
originalHit()));
1901 <<
"Tracker hit not in pixel, neither SiStripRecHit[12]D nor " 1902 <<
"SiStripMatchedRecHit2D nor ProjectedSiStripRecHit2D.";
1908 <<
"Hit not in tracker with 'official' dimension >=2.";
1922 TH1F::SetDefaultSumw2(kTRUE);
1924 std::array<TH1D *, 2>
out;
1925 std::array<std::string, 2> sign_name = {{
"plus",
"minus"}};
1926 std::array<std::string, 2>
sign = {{
">0",
"<0"}};
1927 for (
unsigned int i = 0;
i < 2;
i++) {
1930 const char *axisTitle_;
1933 name_ = Form(
"DMR%s_%s_rDir%s", subdet.c_str(), vartype.c_str(), sign_name[
i].c_str());
1934 title_ = Form(
"Split DMR of %s-%s (rDir%s)", subdet.c_str(), vartype.c_str(),
sign[
i].c_str());
1935 axisTitle_ = Form(
"mean of %s-residuals (rDir%s);modules", vartype.c_str(),
sign[
i].c_str());
1937 name_ = Form(
"DMR%s_%s_zDir%s", subdet.c_str(), vartype.c_str(), sign_name[
i].c_str());
1938 title_ = Form(
"Split DMR of %s-%s (zDir%s)", subdet.c_str(), vartype.c_str(),
sign[
i].c_str());
1939 axisTitle_ = Form(
"mean of %s-residuals (zDir%s);modules", vartype.c_str(),
sign[
i].c_str());
1942 out[
i] =
dir.make<TH1D>(name_, fmt::sprintf(
"%s;%s", title_, axisTitle_).c_str(), 100., -200, 200);
1952 TH1F::SetDefaultSumw2(kTRUE);
1954 std::pair<double, double>
limits;
1956 if (
varType.find(
"Res") != std::string::npos) {
1957 limits = std::make_pair(-1000., 1000);
1959 limits = std::make_pair(-3., 3.);
1962 std::map<unsigned int, TH1D *>
h;
1964 for (
unsigned int i = 1;
i <= theNLayers;
i++) {
1969 if (
varType.find(
"Res") != std::string::npos) {
1970 xAxisTitle_ = fmt::sprintf(
"res_{%s'} [#mum]", resType);
1972 xAxisTitle_ = fmt::sprintf(
"res_{%s'}/#sigma_{res_{%s`}}", resType, resType);
1975 unsigned int side = -1;
1976 if (detType.find(
"FPix") != std::string::npos) {
1977 side = (
i - 1) / 3 + 1;
1978 unsigned int plane = (
i - 1) % 3 + 1;
1987 name_ = Form(
"h_%s%s%s_side%i_disk%i", detType.c_str(),
varType.c_str(), resType.c_str(),
side, plane);
1988 title_ = Form(
"%s (%s, disk %i) track %s-%s;%s;hits",
1994 xAxisTitle_.c_str());
1997 name_ = Form(
"h_%s%s%s_layer%i", detType.c_str(),
varType.c_str(), resType.c_str(),
i);
1998 title_ = Form(
"%s (layer %i) track %s-%s;%s;hits",
2003 xAxisTitle_.c_str());
2018 if (
h.count(
index) != 0) {
2022 double min =
h[
index]->GetXaxis()->GetXmin();
2023 double max =
h[
index]->GetXaxis()->GetXmax();
2038 myDetails[theID].hitCount += 1;
2043 if (myDetails[theID].hitCount != 1) {
2044 delta = the_data - myDetails[theID].runningMeanOfRes_;
2045 n_delta = the_pull - myDetails[theID].runningNormMeanOfRes_;
2046 myDetails[theID].runningMeanOfRes_ += (
delta / myDetails[theID].hitCount);
2047 myDetails[theID].runningNormMeanOfRes_ += (n_delta / myDetails[theID].hitCount);
2049 myDetails[theID].runningMeanOfRes_ = the_data;
2050 myDetails[theID].runningNormMeanOfRes_ = the_pull;
2053 float delta2 = the_data - myDetails[theID].runningMeanOfRes_;
2054 float n_delta2 = the_pull - myDetails[theID].runningNormMeanOfRes_;
2056 myDetails[theID].runningVarOfRes_ +=
delta * delta2;
2057 myDetails[theID].runningNormVarOfRes_ += n_delta * n_delta2;
2066 std::array<TH1D *, 2> DMRSplit,
2067 std::unique_ptr<PixelRegions::PixelRegionContainers> regionalDMR) {
2068 for (
const auto &element : myDetails) {
2070 DMR->Fill(element.second.runningMeanOfRes_);
2073 if (regionalDMR.get()) {
2074 regionalDMR->fill(element.first, element.second.runningMeanOfRes_);
2078 if (element.second.rOrZDirection > 0) {
2079 DMRSplit[0]->Fill(element.second.runningMeanOfRes_);
2081 DMRSplit[1]->Fill(element.second.runningMeanOfRes_);
2085 if (element.second.hitCount < 2) {
2088 DRnR->Fill(
sqrt(element.second.runningNormVarOfRes_ / (element.second.hitCount - 1)));
2099 desc.setComment(
"Generic track analyzer to check ALCARECO sample quantities / compute fast DMRs");
2104 desc.add<
bool>(
"isCosmics",
false);
static const std::string kSharedResource
std::array< TH1D *, 2 > bookSplitDMRHistograms(TFileDirectory dir, std::string subdet, std::string vartype, bool isBarrel)
running::estimatorMap resDetailsTEC_
Log< level::Info, true > LogVerbatim
static constexpr auto TEC
const TrackerTopology * trackerTopology_
TH1D * hFPixZMinusResYPull
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
TH1D * hHitCountVsYFPixPlus
unsigned int pxbLayer(const DetId &id) const
float runningNormVarOfRes_
TH1D * hFPixZPlusResXPrime
TH1D * hHitCountVsXFPixPlus
TH1D * hHitCountVsYFPixMinus
TH1D * hFPixZMinusResXPrime
std::unique_ptr< Phase1PixelSummaryMap > fullPixelmapXDMR
std::vector< TH1 * > vTrackProfiles_
TH1D * hHitCountVsZFPixMinus
T * book(const Args &...args) const
running::estimatorMap resDetailsBPixX_
std::map< std::string, std::pair< int, int > > triggerMap_
double z() const
z coordinate
static void fillDescriptions(edm::ConfigurationDescriptions &)
const std::vector< std::string > IDlabels
std::map< int, std::array< int, 6 > > runHitsMap_
Strings const & triggerNames() const
virtual GlobalVector inTesla(const GlobalPoint &gp) const =0
Field value ad specified global point, in Tesla.
std::map< unsigned int, TH1D * > endcapDisksPullsX
running::estimatorMap resDetailsTOB_
Geom::Phi< T > phi() const
running::estimatorMap resDetailsBPixY_
Global3DPoint GlobalPoint
const char * pathToTopoXML()
std::vector< Track > TrackCollection
collection of Tracks
GlobalVector inInverseGeV(const GlobalPoint &gp) const
Field value ad specified global point, in 1/Gev.
TH1D * hFPixZPlusResYPull
ALPAKA_FN_ACC int side(int ieta, int iphi)
running::estimatorMap resDetailsFPixY_
TProfile * pNBpixHitsVsVx
TProfile * pNBpixHitsVsVz
TH1D * hHitCountVsThetaFPix
edm::InputTag TriggerResultsTag_
Log< level::Error, false > LogError
void fillByIndex(std::map< unsigned int, TH1D *> &h, unsigned int index, double x)
std::map< int, std::pair< int, int > > runInfoMap_
std::map< unsigned int, TH1D * > endcapDisksResidualsX
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
std::map< unsigned int, TH1D * > bookResidualsHistogram(TFileDirectory dir, unsigned int theNLayers, std::string resType, std::string varType, std::string detType)
edm::InputTag BeamSpotTag_
TH1D * hHitCountVsZFPixPlus
int index(const std::vector< OBJECT_TYPE *> &vec, const std::string &name)
running::estimatorMap resDetailsTID_
std::map< int, float > timeMap_
TH1D * hFPixZPlusResYPrime
TH1D * hFPixZPlusResXPull
std::array< TH1D *, 2 > DMRTIBSplit_
TH1D * hHitCountVsPhiFPix
U second(std::pair< T, U > const &p)
const SiPixelPI::phase phase() const
T * make(const Args &...args) const
make new ROOT object
std::map< uint32_t, running::Estimators > estimatorMap
std::unique_ptr< Phase1PixelSummaryMap > fullPixelmapYDMR
TH1D * hHitCountVsPhiBPix
DMRChecker(const edm::ParameterSet &pset)
const MagneticField * magneticField_
TH1D * hHitCountVsXFPixMinus
TH1D * hHitCountVsPhiFPixPlus
std::unique_ptr< PixelRegions::PixelRegionContainers > PixelDMRS_x_ByLayer
edm::EDGetTokenT< reco::TrackCollection > theTrackCollectionToken_
void beginRun(edm::Run const &run, edm::EventSetup const &setup) override
TH1D * hHitCountVsThetaFPixPlus
TH1D * hFPixZMinusResXPull
std::map< unsigned int, TH1D * > barrelLayersPullsX
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
bool isThere(GeomDetEnumerators::SubDetector subdet) const
std::unique_ptr< TrackerMap > pmap
std::array< TH1D *, 2 > DMRBPixXSplit_
edm::EDGetTokenT< reco::VertexCollection > vertexToken_
std::vector< TH1 * > vTrackHistos_
edm::EDGetTokenT< reco::BeamSpot > beamspotToken_
unsigned int pxfDisk(const DetId &id) const
Abs< T >::type abs(const T &t)
std::map< int, std::pair< int, float > > conditionsMap_
#define DEFINE_FWK_MODULE(type)
void updateOnlineMomenta(running::estimatorMap &myDetails, uint32_t theID, float the_data, float the_pull)
std::array< TH1D *, 2 > DMRFPixXSplit_
std::unique_ptr< TrackerMap > tmap
std::map< unsigned int, TH1D * > endcapDisksResidualsY
double x() const
x coordinate
static constexpr auto TOB
const TrackerGeometry * trackerGeometry_
void adjustCanvasMargins(TVirtualPad *pad, float top, float bottom, float left, float right)
running::estimatorMap resDetailsFPixX_
running::estimatorMap resDetailsTIB_
Log< level::Warning, true > LogPrint
const TrackerGeomDet * idToDet(DetId) const override
double y() const
y coordinate
const char * qualities[3]
std::map< unsigned int, TH1D * > barrelLayersResidualsX
TH1D * hHitCountVsPhiFPixMinus
TH1D * hFPixZMinusResYPrime
Log< level::Info, false > LogInfo
Detector identifier class for the strip tracker.
const edm::ESGetToken< RunInfo, RunInfoRcd > runInfoToken_
TH1D * hHitCountVsThetaFPixMinus
int16_t singleReadOutMode() const
unsigned int pxfSide(const DetId &id) const
static constexpr auto TIB
const edm::ESGetToken< SiStripLatency, SiStripLatencyRcd > latencyToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::map< unsigned int, TH1D * > barrelLayersResidualsY
std::map< unsigned int, TH1D * > barrelLayersPullsY
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > topoToken_
float runningNormMeanOfRes_
std::unique_ptr< Phase1PixelMaps > pixelmap
XYZPointD XYZPoint
point in space with cartesian internal representation
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
edm::EDGetTokenT< edm::TriggerResults > hltresultsToken_
TProfile * pNBpixHitsVsVy
void endRun(edm::Run const &, edm::EventSetup const &) override
std::string const & triggerName(unsigned int index) const
static const std::string algoNames[]
std::array< TH1D *, 2 > DMRFPixYSplit_
edm::InputTag VerticesTag_
SiStripRecHit2D originalHit() const
edm::Service< TFileService > fs
void adjustCanvases(TCanvas &canvas, bool isBarrel)
std::array< TH1D *, 2 > DMRTOBSplit_
TrackerTopology fromTrackerParametersXMLFile(const std::string &xmlFileName)
std::unique_ptr< PixelRegions::PixelRegionContainers > PixelDMRS_y_ByLayer
TH1D * hHitCountVsThetaBPix
void fillDMRs(const running::estimatorMap &myDetails, TH1D *DMR, TH1D *DRnR, std::array< TH1D *, 2 > DMRSplit, std::unique_ptr< PixelRegions::PixelRegionContainers > regionalDMR)
std::map< unsigned int, TH1D * > endcapDisksPullsY
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geomToken_
Log< level::Warning, false > LogWarning
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
void fillByIndex(std::vector< TH1F *> &h, unsigned int index, double x, std::string tag="")
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
float pullY(const MatchPair &match)
static const std::string subdets[7]
static constexpr auto TID
static const std::vector< uint32_t > attachedDets(const PixelRegions::PixelId theId, const TrackerTopology *trackTopo, const SiPixelPI::phase &ph)
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
float pullX(const MatchPair &match)
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
std::array< TH1D *, 2 > DMRBPixYSplit_
bool isHit2D(const TrackingRecHit &hit)
Geom::Theta< T > theta() const
std::vector< TH1 * > vTrack2DHistos_