25 #include <boost/range/adaptor/indexed.hpp> 77 compressionSettings_(iConfig.getUntrackedParameter<
int>(
"compressionSettings", -1)),
78 storeNtuple_(iConfig.getParameter<
bool>(
"storeNtuple")),
79 lightNtupleSwitch_(iConfig.getParameter<
bool>(
"isLightNtuple")),
80 useTracksFromRecoVtx_(iConfig.getParameter<
bool>(
"useTracksFromRecoVtx")),
81 vertexZMax_(iConfig.getUntrackedParameter<double>(
"vertexZMax", 99.)),
82 intLumi_(iConfig.getUntrackedParameter<double>(
"intLumi", 0.)),
83 askFirstLayerHit_(iConfig.getParameter<
bool>(
"askFirstLayerHit")),
84 doBPix_(iConfig.getUntrackedParameter<
bool>(
"doBPix",
true)),
85 doFPix_(iConfig.getUntrackedParameter<
bool>(
"doFPix",
true)),
86 ptOfProbe_(iConfig.getUntrackedParameter<double>(
"probePt", 0.)),
87 pOfProbe_(iConfig.getUntrackedParameter<double>(
"probeP", 0.)),
88 etaOfProbe_(iConfig.getUntrackedParameter<double>(
"probeEta", 2.4)),
89 nHitsOfProbe_(iConfig.getUntrackedParameter<double>(
"probeNHits", 0.)),
90 nBins_(iConfig.getUntrackedParameter<
int>(
"numberOfBins", 24)),
91 minPt_(iConfig.getUntrackedParameter<double>(
"minPt", 1.)),
92 maxPt_(iConfig.getUntrackedParameter<double>(
"maxPt", 20.)),
93 debug_(iConfig.getParameter<
bool>(
"Debug")),
94 runControl_(iConfig.getUntrackedParameter<
bool>(
"runControl",
false)),
95 forceBeamSpotContraint_(iConfig.getUntrackedParameter<
bool>(
"forceBeamSpot",
false)) {
101 std::vector<unsigned int> defaultRuns;
102 defaultRuns.push_back(0);
120 if (clusteringAlgorithm ==
"gap") {
123 .getParameter<edm::ParameterSet>(
"TkGapClusParameters"));
124 }
else if (clusteringAlgorithm ==
"DA_vect") {
127 .getParameter<edm::ParameterSet>(
"TkDAClusParameters"));
129 throw VertexException(
"PrimaryVertexProducerAlgorithm: unknown clustering algorithm: " + clusteringAlgorithm);
160 edm::LogVerbatim(
"PrimaryVertexValidation") <<
"######################################";
165 << std::setw(5) <<
it.second.second <<
") |" << std::endl;
196 edm::LogVerbatim(
"PrimaryVertexValidation") <<
"######################################\n";
197 edm::LogVerbatim(
"PrimaryVertexValidation") <<
"The pT binning is: [" << toOutput <<
"] \n";
209 using namespace reco;
216 bool passesRunControl =
false;
225 passesRunControl =
true;
229 if (!passesRunControl)
264 double fBfield_ = ((*theB_).field()->inTesla(
GlobalPoint(0., 0., 0.))).
z();
271 if (!trackCollectionHandle.
isValid())
273 auto const&
tracks = *trackCollectionHandle;
283 edm::LogError(
"PrimaryVertexValidation") <<
"Vertex collection handle is not valid. Aborting!" << std::endl;
287 std::vector<Vertex> vsorted = *(
vertices);
317 unsigned int vertexCollectionSize = vsorted.size();
320 for (
unsigned int i = 0;
i < vertexCollectionSize;
i++) {
333 double chi2prob = 0.;
335 if (!vsorted.at(0).isFake()) {
339 chi2ndf =
pv.normalizedChi2();
340 chi2prob = TMath::Prob(
pv.chi2(), (
int)
pv.ndof());
347 double pt = (**itrk).pt();
352 double dxyRes = (**itrk).dxy(myVertex);
353 double dzRes = (**itrk).dz(myVertex);
355 double dxy_err = (**itrk).dxyError();
356 double dz_err = (**itrk).dzError();
358 float trackphi = ((**itrk).phi()) * (180 /
M_PI);
359 float tracketa = (**itrk).eta();
368 if (tracketa >= etaF && tracketa < etaL) {
375 if (trackphi >= phiF && trackphi < phiL) {
385 if (tracketa >= etaJ && tracketa < etaK) {
408 if (beamSpotHandle.
isValid()) {
443 edm::LogInfo(
"PrimaryVertexValidation") <<
" looping over " << trackCollectionHandle->size() <<
"tracks";
445 h_nTracks->Fill(trackCollectionHandle->size());
451 std::vector<TransientTrack> t_tks;
459 edm::LogInfo(
"PrimaryVertexValidation") <<
"Found: " << t_tks.size() <<
" reconstructed tracks";
476 <<
" looping over: " <<
clusters.size() <<
" clusters from " << t_tks.size() <<
" selected tracks";
485 for (
const auto& iclus :
clusters) {
489 for (
const auto& theTTrack : iclus) {
498 const Track& theTrack = theTTrack.track();
532 int nhitinTIB =
hits.numberOfValidStripTIBHits();
533 int nhitinTOB =
hits.numberOfValidStripTOBHits();
534 int nhitinTID =
hits.numberOfValidStripTIDHits();
535 int nhitinTEC =
hits.numberOfValidStripTECHits();
536 int nhitinBPIX =
hits.numberOfValidPixelBarrelHits();
537 int nhitinFPIX =
hits.numberOfValidPixelEndcapHits();
539 if ((*iHit)->isValid()) {
573 vector<TransientTrack> theFinalTracks;
574 theFinalTracks.clear();
576 for (
const auto& tk : iclus) {
582 theFinalTracks.push_back(tk);
587 if (theFinalTracks.size() > 1) {
589 edm::LogInfo(
"PrimaryVertexValidation") <<
"Transient Track Collection size: " << theFinalTracks.size();
596 theFittedVertex = theFitter->vertex(theFinalTracks,
beamSpot);
598 theFittedVertex = theFitter->vertex(theFinalTracks);
601 double totalTrackWeights = 0;
602 if (theFittedVertex.isValid()) {
603 if (theFittedVertex.hasTrackWeight()) {
604 for (
const auto& theFinalTrack : theFinalTracks) {
606 totalTrackWeights += theFittedVertex.trackWeight(theFinalTrack);
615 theFittedVertex.position().x(), theFittedVertex.position().y(), theFittedVertex.position().z());
629 TMath::Prob(theFittedVertex.totalChiSquared(), (
int)theFittedVertex.degreesOfFreedom());
637 TMath::Prob(theFittedVertex.totalChiSquared(), (
int)theFittedVertex.degreesOfFreedom()));
640 double dxyFromMyVertex = theTrack.
dxy(myVertex);
641 double dzFromMyVertex = theTrack.
dz(myVertex);
644 theFittedVertex.position().x(), theFittedVertex.position().y(), theFittedVertex.position().z());
650 double dz_err =
sqrt(
std::pow(theTrack.
dzError(), 2) + theFittedVertex.positionError().czz());
654 theTTrack,
GlobalVector(theTrack.
px(), theTrack.
py(), theTrack.
pz()), theFittedVertex);
656 double s_ip2dpv_corr = s_ip2dpv.second.value();
657 double s_ip2dpv_err = s_ip2dpv.second.error();
661 theTTrack,
GlobalVector(theTrack.
px(), theTrack.
py(), theTrack.
pz()), theFittedVertex);
663 double s_ip3dpv_corr = s_ip3dpv.second.value();
664 double s_ip3dpv_err = s_ip3dpv.second.error();
668 double ip3d_corr = ip3dpv.second.value();
669 double ip3d_err = ip3dpv.second.error();
677 float my_dx = refPoint.
x() - myVertex.x();
678 float my_dy = refPoint.
y() - myVertex.y();
680 float my_dx2 = cPToVtx.
x() - myVertex.x();
681 float my_dy2 = cPToVtx.
y() - myVertex.y();
683 float my_dxy =
std::sqrt(my_dx * my_dx + my_dy * my_dy);
692 <<
"my_dx:" << my_dx <<
" my_dy:" << my_dy <<
" my_dxy:" << my_dxy <<
" my_dx2:" << my_dx2
693 <<
" my_dy2:" << my_dy2 <<
" d0: " <<
d0 <<
" dxyFromVtx:" << dxyFromMyVertex <<
"\n" 694 <<
" ============================== " 698 <<
"diff3:" << (my_dx - my_dx2) <<
" " << (my_dy - my_dy2) <<
"\n" 718 float trackphi = (theTrack.
phi()) * (180. /
M_PI);
719 float tracketa = theTrack.
eta();
720 float trackpt = theTrack.
pt();
721 float trackp = theTrack.
p();
726 int ladder_num = -1.;
727 int module_num = -1.;
728 int L1BPixHitCount = 0;
732 unsigned int subid =
detId.subdetId();
740 if (clusterProbability > 0) {
757 if (module_num > 0 && ladder_num > 0) {
766 for (
int ipTBin = 0; ipTBin <
nPtBins_; ipTBin++) {
772 <<
" < pT < " <<
mypT_bins_[ipTBin + 1] << std::endl;
774 if (
std::abs(tracketa) < 1.5 && (trackpt >= pTF && trackpt < pTL)) {
785 <<
"passes tight eta cut: " <<
mypT_bins_[ipTBin] << std::endl;
800 if (pixelOcc.first ==
true)
801 edm::LogInfo(
"PrimaryVertexValidation") <<
"has BPIx hits" << std::endl;
802 if (pixelOcc.second ==
true)
803 edm::LogInfo(
"PrimaryVertexValidation") <<
"has FPix hits" << std::endl;
806 if (!
doBPix_ && (pixelOcc.first ==
true))
808 if (!
doFPix_ && (pixelOcc.second ==
true))
836 float dxyRecoV = theTrack.
dz(theRecoVertex);
837 float dzRecoV = theTrack.
dxy(theRecoVertex);
838 float dxysigmaRecoV =
843 double zTrack = (theTTrack.stateAtBeamLine().trackStateAtPCA()).
position().z();
844 double zVertex = theFittedVertex.position().z();
845 double tantheta =
tan((theTTrack.stateAtBeamLine().trackStateAtPCA()).momentum().theta());
848 double restrkz = zTrack -
zVertex;
849 double pulltrkz = (zTrack -
zVertex) / TMath::Sqrt(dz2);
874 n_dxyVsPhi->Fill(trackphi, dxyFromMyVertex / s_ip2dpv_err);
879 n_dxyVsEta->Fill(tracketa, dxyFromMyVertex / s_ip2dpv_err);
882 if (ladder_num > 0 && module_num > 0) {
884 <<
" ladder_num: " << ladder_num <<
" module_num: " << module_num << std::endl;
895 if (L1BPixHitCount == 1) {
916 if (tracketa >= etaF && tracketa < etaL) {
933 if (trackphi >= phiF && trackphi < phiL) {
953 if (tracketa >= etaJ && tracketa < etaK) {
968 <<
" myVertex.x()= " << myVertex.x() <<
"\n" 969 <<
" myVertex.y()= " << myVertex.y() <<
" \n" 970 <<
" myVertex.z()= " << myVertex.z() <<
" \n" 971 <<
" theTrack.dz(myVertex)= " << theTrack.
dz(myVertex) <<
" \n" 972 <<
" zPCA -myVertex.z() = " << (theTrack.
vertex().z() - myVertex.z());
980 LogTrace(
"PrimaryVertexValidation") <<
"caught std::exception " << er.
what() << std::endl;
987 edm::LogInfo(
"PrimaryVertexValidation") <<
"Not enough tracks to make a vertex. Returns no vertex info";
994 edm::LogInfo(
"PrimaryVertexValidation") <<
"Track " <<
i <<
" : pT = " << theTrack.
pt();
1008 if (
hit.dimension() < 2) {
1016 if (dynamic_cast<const SiStripRecHit2D*>(&
hit))
1018 else if (dynamic_cast<const SiStripMatchedRecHit2D*>(&
hit))
1020 else if (dynamic_cast<const ProjectedSiStripRecHit2D*>(&
hit))
1023 edm::LogError(
"UnknownType") <<
"@SUB=PrimaryVertexValidation::isHit2D" 1024 <<
"Tracker hit not in pixel and neither SiStripRecHit2D nor " 1025 <<
"SiStripMatchedRecHit2D nor ProjectedSiStripRecHit2D.";
1032 edm::LogWarning(
"DetectorMismatch") <<
"@SUB=PrimaryVertexValidation::isHit2D" 1033 <<
"Hit not in tracker with 'official' dimension >=2.";
1042 bool hasBPixHits =
false;
1043 bool hasFPixHits =
false;
1046 if (
p.numberOfValidPixelEndcapHits() != 0) {
1049 if (
p.numberOfValidPixelBarrelHits() != 0) {
1053 return std::make_pair(hasBPixHits, hasFPixHits);
1058 using namespace reco;
1060 for (
int i = 0;
i <
p.numberOfAllHits(HitPattern::TRACK_HITS);
i++) {
1061 uint32_t
pattern =
p.getHitPattern(HitPattern::TRACK_HITS,
i);
1075 edm::LogInfo(
"PrimaryVertexValidation") <<
"######################################\n" 1077 <<
"######################################";
1171 TH1F::SetDefaultSumw2(kTRUE);
1174 EventFeatures.
make<TH1F>(
"h_lumiFromConfig",
"luminosity from config;;luminosity of present run", 1, -0.5, 0.5);
1178 "run number from config;;run number (from configuration)",
1188 EventFeatures.
make<TH1I>(
"h_runFromEvent",
"run number from event;;run number (from event)", 1, -0.5, 0.5);
1190 EventFeatures.
make<TH1F>(
"h_nTracks",
"number of tracks per event;n_{tracks}/event;n_{events}", 300, -0.5, 299.5);
1192 EventFeatures.
make<TH1F>(
"h_nClus",
"number of track clusters;n_{clusters}/event;n_{events}", 50, -0.5, 49.5);
1194 "h_nOfflineVertices",
"number of offline reconstructed vertices;n_{vertices}/event;n_{events}", 50, -0.5, 49.5);
1195 h_runNumber = EventFeatures.
make<TH1F>(
"h_runNumber",
"run number;run number;n_{events}", 100000, 250000., 350000.);
1197 "h_xOfflineVertex",
"x-coordinate of offline vertex;x_{vertex};n_{events}", 100, -0.1, 0.1);
1199 "h_yOfflineVertex",
"y-coordinate of offline vertex;y_{vertex};n_{events}", 100, -0.1, 0.1);
1201 "h_zOfflineVertex",
"z-coordinate of offline vertex;z_{vertex};n_{events}", 100, -30., 30.);
1203 "h_xErrOfflineVertex",
"x-coordinate error of offline vertex;err_{x}^{vtx};n_{events}", 100, 0., 0.01);
1205 "h_yErrOfflineVertex",
"y-coordinate error of offline vertex;err_{y}^{vtx};n_{events}", 100, 0., 0.01);
1207 "h_zErrOfflineVertex",
"z-coordinate error of offline vertex;err_{z}^{vtx};n_{events}", 100, 0., 10.);
1208 h_BSx0 = EventFeatures.
make<TH1F>(
"h_BSx0",
"x-coordinate of reco beamspot;x^{BS}_{0};n_{events}", 100, -0.1, 0.1);
1209 h_BSy0 = EventFeatures.
make<TH1F>(
"h_BSy0",
"y-coordinate of reco beamspot;y^{BS}_{0};n_{events}", 100, -0.1, 0.1);
1210 h_BSz0 = EventFeatures.
make<TH1F>(
"h_BSz0",
"z-coordinate of reco beamspot;z^{BS}_{0};n_{events}", 100, -1., 1.);
1212 EventFeatures.
make<TH1F>(
"h_Beamsigmaz",
"z-coordinate beam width;#sigma_{Z}^{beam};n_{events}", 100, 0., 1.);
1214 EventFeatures.
make<TH1F>(
"h_BeamWidthX",
"x-coordinate beam width;#sigma_{X}^{beam};n_{events}", 100, 0., 0.01);
1216 EventFeatures.
make<TH1F>(
"h_BeamWidthY",
"y-coordinate beam width;#sigma_{Y}^{beam};n_{events}", 100, 0., 0.01);
1218 h_etaMax = EventFeatures.
make<TH1F>(
"etaMax",
"etaMax", 1, -0.5, 0.5);
1219 h_pTinfo = EventFeatures.
make<TH1F>(
"pTinfo",
"pTinfo", 3, -1.5, 1.5);
1220 h_pTinfo->GetXaxis()->SetBinLabel(1,
"n. bins");
1221 h_pTinfo->GetXaxis()->SetBinLabel(2,
"pT min");
1222 h_pTinfo->GetXaxis()->SetBinLabel(3,
"pT max");
1224 h_nbins = EventFeatures.
make<TH1F>(
"nbins",
"nbins", 1, -0.5, 0.5);
1225 h_nLadders = EventFeatures.
make<TH1F>(
"nladders",
"n. ladders", 1, -0.5, 0.5);
1226 h_nModZ = EventFeatures.
make<TH1F>(
"nModZ",
"n. modules along z", 1, -0.5, 0.5);
1231 h_probePt_ = ProbeFeatures.
make<TH1F>(
"h_probePt",
"p_{T} of probe track;track p_{T} (GeV); tracks", 100, 0., 50.);
1233 "h_probePtRebin",
"p_{T} of probe track;track p_{T} (GeV); tracks",
mypT_bins_.size() - 1,
mypT_bins_.data());
1234 h_probeP_ = ProbeFeatures.
make<TH1F>(
"h_probeP",
"momentum of probe track;track p (GeV); tracks", 100, 0., 100.);
1237 h_probePhi_ = ProbeFeatures.
make<TH1F>(
"h_probePhi",
"#phi of probe track;track #phi (rad);tracks", 100, -3.15, 3.15);
1240 ProbeFeatures.
make<TH2F>(
"h2_probeEtaPhi",
1241 "probe track #phi vs #eta;#eta of probe track;track #phi of probe track (rad); tracks",
1249 "probe track p_{T} vs #eta;#eta of probe track;track p_{T} (GeV); tracks",
1258 ProbeFeatures.
make<TH1F>(
"h_probeChi2",
"#chi^{2} of probe track;track #chi^{2}; tracks", 100, 0., 100.);
1260 "h_probeNormChi2",
" normalized #chi^{2} of probe track;track #chi^{2}/ndof; tracks", 100, 0., 10.);
1262 ProbeFeatures.
make<TH1F>(
"h_probeCharge",
"charge of probe track;track charge Q;tracks", 3, -1.5, 1.5);
1264 ProbeFeatures.
make<TH1F>(
"h_probeQoverP",
"q/p of probe track; track Q/p (GeV^{-1});tracks", 200, -1., 1.);
1266 "h_probedzRecoV",
"d_{z}(V_{offline}) of probe track;track d_{z}(V_{off}) (cm);tracks", 200, -1., 1.);
1268 "h_probedxyRecoV",
"d_{xy}(V_{offline}) of probe track;track d_{xy}(V_{off}) (cm);tracks", 200, -1., 1.);
1270 "h_probedzRefitV",
"d_{z}(V_{refit}) of probe track;track d_{z}(V_{fit}) (cm);tracks", 200, -0.5, 0.5);
1272 "h_probesignIPRefitV",
"ip_{2D}(V_{refit}) of probe track;track ip_{2D}(V_{fit}) (cm);tracks", 200, -1., 1.);
1274 "h_probedxyRefitV",
"d_{xy}(V_{refit}) of probe track;track d_{xy}(V_{fit}) (cm);tracks", 200, -0.5, 0.5);
1277 "h_probez0RefitV",
"z_{0}(V_{refit}) of probe track;track z_{0}(V_{fit}) (cm);tracks", 200, -1., 1.);
1279 "h_probed0RefitV",
"d_{0}(V_{refit}) of probe track;track d_{0}(V_{fit}) (cm);tracks", 200, -1., 1.);
1282 "h_probed3DRefitV",
"d_{3D}(V_{refit}) of probe track;track d_{3D}(V_{fit}) (cm);tracks", 200, 0., 1.);
1284 "h_probeReszRefitV",
"z_{track} -z_{V_{refit}};track res_{z}(V_{refit}) (cm);tracks", 200, -1., 1.);
1287 "h_probeRecoVSigZ",
"Longitudinal DCA Significance (reco);d_{z}(V_{off})/#sigma_{dz};tracks", 100, -8, 8);
1289 "h_probeRecoVSigXY",
"Transverse DCA Significance (reco);d_{xy}(V_{off})/#sigma_{dxy};tracks", 100, -8, 8);
1291 "h_probeRefitVSigZ",
"Longitudinal DCA Significance (refit);d_{z}(V_{fit})/#sigma_{dz};tracks", 100, -8, 8);
1293 "h_probeRefitVSigXY",
"Transverse DCA Significance (refit);d_{xy}(V_{fit})/#sigma_{dxy};tracks", 100, -8, 8);
1295 "h_probeRefitVSig3D",
"3D DCA Significance (refit);d_{3D}/#sigma_{3D};tracks", 100, 0., 20.);
1297 ProbeFeatures.
make<TH1F>(
"h_probeRefitVLogSig3D",
1298 "log_{10}(3D DCA-Significance) (refit);log_{10}(d_{3D}/#sigma_{3D});tracks",
1303 "h_probeRefitVSigResZ",
1304 "Longitudinal residual significance (refit);(z_{track} -z_{V_{fit}})/#sigma_{res_{z}};tracks",
1309 h_probeHits_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechits",
"N_{hits} ;N_{hits} ;tracks", 40, -0.5, 39.5);
1310 h_probeHits1D_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechits1D",
"N_{hits} 1D ;N_{hits} 1D ;tracks", 40, -0.5, 39.5);
1311 h_probeHits2D_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechits2D",
"N_{hits} 2D ;N_{hits} 2D ;tracks", 40, -0.5, 39.5);
1313 ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTIB",
"N_{hits} TIB ;N_{hits} TIB;tracks", 40, -0.5, 39.5);
1315 ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTOB",
"N_{hits} TOB ;N_{hits} TOB;tracks", 40, -0.5, 39.5);
1317 ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTID",
"N_{hits} TID ;N_{hits} TID;tracks", 40, -0.5, 39.5);
1319 ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTEC",
"N_{hits} TEC ;N_{hits} TEC;tracks", 40, -0.5, 39.5);
1321 ProbeFeatures.
make<TH1F>(
"h_probeNRechitsBPIX",
"N_{hits} BPIX;N_{hits} BPIX;tracks", 40, -0.5, 39.5);
1323 ProbeFeatures.
make<TH1F>(
"h_probeNRechitsFPIX",
"N_{hits} FPIX;N_{hits} FPIX;tracks", 40, -0.5, 39.5);
1326 "h_probeL1Ladder",
"Ladder number (L1 hit); ladder number",
nLadders_ + 2, -1.5,
nLadders_ + 0.5);
1328 "h_probeL1Module",
"Module number (L1 hit); module number",
nModZ_ + 2, -1.5,
nModZ_ + 0.5);
1331 "Position in Layer 1 of first hit;module number;ladder number",
1340 "Position in Layer 1 of first hit;module number;ladder number",
1348 ProbeFeatures.
make<TH1I>(
"h_probeHasBPixL1Overlap",
"n. hits in L1;n. L1-BPix hits;tracks", 5, -0.5, 4.5);
1350 "h_probeL1ClusterProb",
1351 "log_{10}(Cluster Probability) for Layer1 hits;log_{10}(cluster probability); n. Layer1 hits",
1359 "h_fitVtxNtracks",
"N_{trks} used in vertex fit;N^{fit}_{tracks};vertices", 100, -0.5, 99.5);
1361 "h_fitVtxNdof",
"N_{DOF} of vertex fit;N_{DOF} of refit vertex;vertices", 100, -0.5, 99.5);
1363 "h_fitVtxChi2",
"#chi^{2} of vertex fit;vertex #chi^{2};vertices", 100, -0.5, 99.5);
1365 "h_fitVtxChi2ndf",
"#chi^{2}/ndf of vertex fit;vertex #chi^{2}/ndf;vertices", 100, -0.5, 9.5);
1367 "h_fitVtxChi2Prob",
"Prob(#chi^{2},ndf) of vertex fit;Prob(#chi^{2},ndf);vertices", 40, 0., 1.);
1369 "h_fitVtxTrackWeights",
"track weights associated to track;track weights;tracks", 40, 0., 1.);
1371 "h_fitVtxTrackAverageWeight_",
"average track weight per vertex;#LT track weight #GT;vertices", 40, 0., 1.);
1376 RecoVertexFeatures.
make<TH1F>(
"h_recoVtxNtracks",
"N^{vtx}_{trks};N^{vtx}_{trks};vertices", 100, -0.5, 99.5);
1378 RecoVertexFeatures.
make<TH1F>(
"h_recoVtxChi2ndf",
"#chi^{2}/ndf vtx;#chi^{2}/ndf vtx;vertices", 10, -0.5, 9.5);
1380 "h_recoVtxChi2Prob",
"Prob(#chi^{2},ndf);Prob(#chi^{2},ndf);vertices", 40, 0., 1.);
1382 RecoVertexFeatures.
make<TH1F>(
"h_recoVtxSumPt",
"Sum(p^{trks}_{T});Sum(p^{trks}_{T});vertices", 100, 0., 200.);
1547 for (
unsigned int iLadder = 0; iLadder <
nLadders_; iLadder++) {
1548 for (
unsigned int iModule = 0; iModule <
nModZ_; iModule++) {
1550 AbsL1Map.
make<TH1F>(Form(
"histo_dxy_ladder%i_module%i", iLadder, iModule),
1551 Form(
"d_{xy} ladder=%i module=%i;d_{xy} [#mum];tracks", iLadder, iModule),
1557 AbsL1Map.
make<TH1F>(Form(
"histo_dz_ladder%i_module%i", iLadder, iModule),
1558 Form(
"d_{z} ladder=%i module=%i;d_{z} [#mum];tracks", iLadder, iModule),
1564 NormL1Map.
make<TH1F>(Form(
"histo_norm_dxy_ladder%i_module%i", iLadder, iModule),
1565 Form(
"d_{xy} ladder=%i module=%i;d_{xy}/#sigma_{d_{xy}};tracks", iLadder, iModule),
1571 NormL1Map.
make<TH1F>(Form(
"histo_norm_dz_ladder%i_module%i", iLadder, iModule),
1572 Form(
"d_{z} ladder=%i module=%i;d_{z}/#sigma_{d_{z}};tracks", iLadder, iModule),
1595 Form(
"histo_dxy_eta_plot%i_phi_plot%i",
i,
j),
1596 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy};tracks", etaF, etaL, phiF, phiL),
1602 Form(
"histo_dz_eta_plot%i_phi_plot%i",
i,
j),
1603 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z};tracks", etaF, etaL, phiF, phiL),
1609 Form(
"histo_d3D_eta_plot%i_phi_plot%i",
i,
j),
1610 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{3D};tracks", etaF, etaL, phiF, phiL),
1616 Form(
"histo_norm_dxy_eta_plot%i_phi_plot%i",
i,
j),
1617 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy}/#sigma_{d_{xy}};tracks",
1627 Form(
"histo_norm_dz_eta_plot%i_phi_plot%i",
i,
j),
1628 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z}/#sigma_{d_{z}};tracks",
1638 Form(
"histo_norm_d3D_eta_plot%i_phi_plot%i",
i,
j),
1639 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{3D}/#sigma_{d_{3D}};tracks",
1655 "d_{xy} vs track #phi;track #phi [rad];track d_{xy}(PV) [#mum]",
1664 "d_{z} vs track #phi;track #phi [rad];track d_{z}(PV) [#mum]",
1674 "d_{xy}/#sigma_{d_{xy}} vs track #phi;track #phi [rad];track d_{xy}(PV)/#sigma_{d_{xy}}",
1683 BiasVsParameter.
make<TH2F>(
"h2_n_dz_vs_phi",
1684 "d_{z}/#sigma_{d_{z}} vs track #phi;track #phi [rad];track d_{z}(PV)/#sigma_{d_{z}}",
1693 "d_{xy} vs track #eta;track #eta;track d_{xy}(PV) [#mum]",
1702 "d_{z} vs track #eta;track #eta;track d_{z}(PV) [#mum]",
1711 BiasVsParameter.
make<TH2F>(
"h2_n_dxy_vs_eta",
1712 "d_{xy}/#sigma_{d_{xy}} vs track #eta;track #eta;track d_{xy}(PV)/#sigma_{d_{xy}}",
1721 "d_{z}/#sigma_{d_{z}} vs track #eta;track #eta;track d_{z}(PV)/#sigma_{d_{z}}",
1744 "#LT d_{xy} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy} #GT [#mum]",
1751 "#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{xy}} [#mum]",
1758 "#LT d_{z} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z} #GT [#mum]",
1765 "#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{z}} [#mum]",
1771 "means_dxy_eta",
"#LT d_{xy} #GT vs #eta sector;#eta (sector);#LT d_{xy} #GT [#mum]",
nBins_,
lowedge,
highedge);
1774 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{xy}} [#mum]",
1780 "means_dz_eta",
"#LT d_{z} #GT vs #eta sector;#eta (sector);#LT d_{z} #GT [#mum]",
nBins_,
lowedge,
highedge);
1783 "widths_dz_eta",
"#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{z}} [#mum]",
nBins_,
lowedge,
highedge);
1786 "norm_means_dxy_phi",
1787 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy}/#sigma_{d_{xy}} #GT",
1793 "norm_widths_dxy_phi",
1794 "width(d_{xy}/#sigma_{d_{xy}}) vs #phi sector;#varphi (sector) [degrees]; width(d_{xy}/#sigma_{d_{xy}})",
1800 "norm_means_dz_phi",
1801 "#LT d_{z}/#sigma_{d_{z}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z}/#sigma_{d_{z}} #GT",
1807 "norm_widths_dz_phi",
1808 "width(d_{z}/#sigma_{d_{z}}) vs #phi sector;#varphi (sector) [degrees];width(d_{z}/#sigma_{d_{z}})",
1814 "norm_means_dxy_eta",
1815 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #eta sector;#eta (sector);#LT d_{xy}/#sigma_{d_{z}} #GT",
1821 "norm_widths_dxy_eta",
1822 "width(d_{xy}/#sigma_{d_{xy}}) vs #eta sector;#eta (sector);width(d_{xy}/#sigma_{d_{z}})",
1829 "#LT d_{z}/#sigma_{d_{z}} #GT vs #eta sector;#eta (sector);#LT d_{z}/#sigma_{d_{z}} #GT",
1836 "width(d_{z}/#sigma_{d_{z}}) vs #eta sector;#eta (sector);width(d_{z}/#sigma_{d_{z}})",
1844 "#LT d_{xy} #GT vs pT;p_{T} [GeV];#LT d_{xy} #GT [#mum]",
1849 "#sigma_{d_{xy}} vs pT;p_{T} [GeV];#sigma_{d_{xy}} [#mum]",
1854 "means_dz_pT",
"#LT d_{z} #GT vs pT;p_{T} [GeV];#LT d_{z} #GT [#mum]",
mypT_bins_.size() - 1,
mypT_bins_.data());
1857 "#sigma_{d_{z}} vs pT;p_{T} [GeV];#sigma_{d_{z}} [#mum]",
1863 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs pT;p_{T} [GeV];#LT d_{xy}/#sigma_{d_{xy}} #GT",
1869 "width(d_{xy}/#sigma_{d_{xy}}) vs pT;p_{T} [GeV]; width(d_{xy}/#sigma_{d_{xy}})",
1875 "#LT d_{z}/#sigma_{d_{z}} #GT vs pT;p_{T} [GeV];#LT d_{z}/#sigma_{d_{z}} #GT",
1881 "width(d_{z}/#sigma_{d_{z}}) vs pT;p_{T} [GeV];width(d_{z}/#sigma_{d_{z}})",
1887 "#LT d_{xy} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{xy} #GT [#mum]",
1893 "#sigma_{d_{xy}} vs p_{T};p_{T}(|#eta|<1.) [GeV];#sigma_{d_{xy}} [#mum]",
1899 "#LT d_{z} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{z} #GT [#mum]",
1905 "#sigma_{d_{z}} vs p_{T};p_{T}(|#eta|<1.) [GeV];#sigma_{d_{z}} [#mum]",
1910 "norm_means_dxy_pTCentral",
1911 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{xy}/#sigma_{d_{z}} #GT",
1916 "norm_widths_dxy_pTCentral",
1917 "width(d_{xy}/#sigma_{d_{xy}}) vs p_{T};p_{T}(|#eta|<1.) [GeV];width(d_{xy}/#sigma_{d_{z}})",
1922 "norm_means_dz_pTCentral",
1923 "#LT d_{z}/#sigma_{d_{z}} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{z}/#sigma_{d_{z}} #GT",
1928 "norm_widths_dz_pTCentral",
1929 "width(d_{z}/#sigma_{d_{z}}) vs p_{T};p_{T}(|#eta|<1.) [GeV];width(d_{z}/#sigma_{d_{z}})",
1936 "#LT d_{xy} #GT map;#eta (sector);#varphi (sector) [degrees]",
1945 "#LT d_{z} #GT map;#eta (sector);#varphi (sector) [degrees]",
1954 "#LT d_{xy}/#sigma_{d_{xy}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1963 "#LT d_{z}/#sigma_{d_{z}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1972 "#sigma_{d_{xy}} map;#eta (sector);#varphi (sector) [degrees]",
1981 "#sigma_{d_{z}} map;#eta (sector);#varphi (sector) [degrees]",
1991 "width(d_{xy}/#sigma_{d_{xy}}) map;#eta (sector);#varphi (sector) [degrees]",
2000 "width(d_{z}/#sigma_{d_{z}}) map;#eta (sector);#varphi (sector) [degrees]",
2012 "Median of d_{xy} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}) [#mum]",
2019 "Median absolute deviation of d_{xy} vs #phi sector;#varphi (sector) [degrees];MAD(d_{xy}) [#mum]",
2026 "Median of d_{z} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}) [#mum]",
2033 "Median absolute deviation of d_{z} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}) [#mum]",
2040 "Median of d_{xy} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}) [#mum]",
2047 "Median absolute deviation of d_{xy} vs #eta sector;#eta (sector);MAD(d_{xy}) [#mum]",
2054 "Median of d_{z} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}) [#mum]",
2061 "Median absolute deviation of d_{z} vs #eta sector;#eta (sector);MAD(d_{z}) [#mum]",
2067 "norm_medians_dxy_phi",
2068 "Median of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}/#sigma_{d_{xy}})",
2074 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #phi " 2075 "sector;#varphi (sector) [degrees]; MAD(d_{xy}/#sigma_{d_{xy}})",
2081 "norm_medians_dz_phi",
2082 "Median of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
2088 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi " 2089 "(sector) [degrees];MAD(d_{z}/#sigma_{d_{z}})",
2095 "norm_medians_dxy_eta",
2096 "Median of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}/#sigma_{d_{z}})",
2102 "norm_MADs_dxy_eta",
2103 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);MAD(d_{xy}/#sigma_{d_{z}})",
2109 "norm_medians_dz_eta",
2110 "Median of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
2117 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);MAD(d_{z}/#sigma_{d_{z}})",
2166 Form(
"histo_dxy_eta_plot%i_phi_plot%i",
i,
j),
2167 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy} [#mum];tracks", etaF, etaL, phiF, phiL),
2173 Form(
"histo_dxy_eta_plot%i_phi_plot%i",
i,
j),
2174 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z} [#mum];tracks", etaF, etaL, phiF, phiL),
2180 Form(
"histo_norm_dxy_eta_plot%i_phi_plot%i",
i,
j),
2181 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy}/#sigma_{d_{xy}};tracks",
2191 Form(
"histo_norm_dxy_eta_plot%i_phi_plot%i",
i,
j),
2192 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z}/#sigma_{d_{z}};tracks",
2216 MeanBiasTrendsDir.
make<TH1F>(
"means_dxy_phi",
2217 "#LT d_{xy} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy} #GT [#mum]",
2224 "#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{xy}} [#mum]",
2230 MeanBiasTrendsDir.
make<TH1F>(
"means_dz_phi",
2231 "#LT d_{z} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z} #GT [#mum]",
2237 WidthBiasTrendsDir.
make<TH1F>(
"widths_dz_phi",
2238 "#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{z}} [#mum]",
2244 "means_dxy_eta",
"#LT d_{xy} #GT vs #eta sector;#eta (sector);#LT d_{xy} #GT [#mum]",
nBins_,
lowedge,
highedge);
2247 WidthBiasTrendsDir.
make<TH1F>(
"widths_dxy_eta",
2248 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{xy}} [#mum]",
2254 "means_dz_eta",
"#LT d_{z} #GT vs #eta sector;#eta (sector);#LT d_{z} #GT [#mum]",
nBins_,
lowedge,
highedge);
2257 WidthBiasTrendsDir.
make<TH1F>(
"widths_dz_eta",
2258 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{z}} [#mum]",
2264 "norm_means_dxy_phi",
2265 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy}/#sigma_{d_{xy}} #GT",
2271 "norm_widths_dxy_phi",
2272 "width(d_{xy}/#sigma_{d_{xy}}) vs #phi sector;#varphi (sector) [degrees]; width(d_{xy}/#sigma_{d_{xy}})",
2278 "norm_means_dz_phi",
2279 "#LT d_{z}/#sigma_{d_{z}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z}/#sigma_{d_{z}} #GT",
2285 "norm_widths_dz_phi",
2286 "width(d_{z}/#sigma_{d_{z}}) vs #phi sector;#varphi (sector) [degrees];width(d_{z}/#sigma_{d_{z}})",
2292 "norm_means_dxy_eta",
2293 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #eta sector;#eta (sector);#LT d_{xy}/#sigma_{d_{z}} #GT",
2299 "norm_widths_dxy_eta",
2300 "width(d_{xy}/#sigma_{d_{xy}}) vs #eta sector;#eta (sector);width(d_{xy}/#sigma_{d_{z}})",
2306 "norm_means_dz_eta",
2307 "#LT d_{z}/#sigma_{d_{z}} #GT vs #eta sector;#eta (sector);#LT d_{z}/#sigma_{d_{z}} #GT",
2313 "norm_widths_dz_eta",
2314 "width(d_{z}/#sigma_{d_{z}}) vs #eta sector;#eta (sector);width(d_{z}/#sigma_{d_{z}})",
2322 "#LT d_{xy} #GT map;#eta (sector);#varphi (sector) [degrees]",
2331 "#LT d_{z} #GT map;#eta (sector);#varphi (sector) [degrees]",
2340 Mean2DBiasMapsDir.
make<TH2F>(
"norm_means_dxy_map",
2341 "#LT d_{xy}/#sigma_{d_{xy}} #GT map;#eta (sector);#varphi (sector) [degrees]",
2350 Mean2DBiasMapsDir.
make<TH2F>(
"norm_means_dz_map",
2351 "#LT d_{z}/#sigma_{d_{z}} #GT map;#eta (sector);#varphi (sector) [degrees]",
2360 "#sigma_{d_{xy}} map;#eta (sector);#varphi (sector) [degrees]",
2369 "#sigma_{d_{z}} map;#eta (sector);#varphi (sector) [degrees]",
2378 Width2DBiasMapsDir.
make<TH2F>(
"norm_widths_dxy_map",
2379 "width(d_{xy}/#sigma_{d_{xy}}) map;#eta (sector);#varphi (sector) [degrees]",
2388 Width2DBiasMapsDir.
make<TH2F>(
"norm_widths_dz_map",
2389 "width(d_{z}/#sigma_{d_{z}}) map;#eta (sector);#varphi (sector) [degrees]",
2401 "Median of d_{xy} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}) [#mum]",
2408 "Median absolute deviation of d_{xy} vs #phi sector;#varphi (sector) [degrees];MAD(d_{xy}) [#mum]",
2415 "Median of d_{z} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}) [#mum]",
2422 "Median absolute deviation of d_{z} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}) [#mum]",
2428 MedianBiasTrendsDir.
make<TH1F>(
"medians_dxy_eta",
2429 "Median of d_{xy} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}) [#mum]",
2436 "Median absolute deviation of d_{xy} vs #eta sector;#eta (sector);MAD(d_{xy}) [#mum]",
2442 MedianBiasTrendsDir.
make<TH1F>(
"medians_dz_eta",
2443 "Median of d_{z} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}) [#mum]",
2449 MADBiasTrendsDir.
make<TH1F>(
"MADs_dz_eta",
2450 "Median absolute deviation of d_{z} vs #eta sector;#eta (sector);MAD(d_{z}) [#mum]",
2456 "norm_medians_dxy_phi",
2457 "Median of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}/#sigma_{d_{xy}})",
2463 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #phi " 2464 "sector;#varphi (sector) [degrees]; MAD(d_{xy}/#sigma_{d_{xy}})",
2470 "norm_medians_dz_phi",
2471 "Median of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
2477 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #phi " 2478 "sector;#varphi (sector) [degrees];MAD(d_{z}/#sigma_{d_{z}})",
2484 "norm_medians_dxy_eta",
2485 "Median of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}/#sigma_{d_{z}})",
2491 "norm_MADs_dxy_eta",
2492 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);MAD(d_{xy}/#sigma_{d_{z}})",
2498 "norm_medians_dz_eta",
2499 "Median of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
2506 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);MAD(d_{z}/#sigma_{d_{z}})",
2521 <<
"*********************************************************************************\n" 2522 <<
"* The configuration (ptOfProbe > " <<
ptOfProbe_ 2523 <<
"GeV) is not correctly set for current value of magnetic field \n" 2524 <<
"* Switching it to 0. !!! \n" 2525 <<
"*********************************************************************************" << std::endl;
2540 const time_t start_time = times.first / 1000000;
2542 <<
runNumber_ <<
" has start time: " << times.first <<
" - " << times.second << std::endl;
2544 <<
"human readable time: " << std::asctime(std::gmtime(&start_time)) << std::endl;
2566 edm::LogInfo(
"tracker geometry read") <<
"There are: " << pDD->
dets().size() <<
" detectors";
2605 <<
" pixel phase2 setup, nLadders: " <<
nLadders_ <<
" nModules:" <<
nModZ_;
2613 <<
" pixel phase1 setup, nLadders: " <<
nLadders_ <<
" nModules:" <<
nModZ_;
2620 <<
" pixel phase0 setup, nLadders: " <<
nLadders_ <<
" nModules:" <<
nModZ_;
2638 if (
h_etaMax->GetEntries() == 0.) {
2665 unsigned int count = 1;
2677 edm::LogInfo(
"PrimaryVertexValidation") <<
"######################################\n" 2678 <<
"# PrimaryVertexValidation::endJob()\n" 2679 <<
"# Number of analyzed events: " <<
Nevt_ <<
"\n" 2680 <<
"######################################";
2685 "means_dxy_modZ",
"#LT d_{xy} #GT vs modZ;module number (Z);#LT d_{xy} #GT [#mum]",
nModZ_, 0.,
nModZ_);
2688 "widths_dxy_modZ",
"#sigma_{d_{xy}} vs modZ;module number (Z);#sigma_{d_{xy}} [#mum]",
nModZ_, 0.,
nModZ_);
2691 "means_dz_modZ",
"#LT d_{z} #GT vs modZ;module number (Z);#LT d_{z} #GT [#mum]",
nModZ_, 0.,
nModZ_);
2694 "widths_dz_modZ",
"#sigma_{d_{z}} vs modZ;module number (Z);#sigma_{d_{z}} [#mum]",
nModZ_, 0.,
nModZ_);
2697 "#LT d_{xy} #GT vs ladder;ladder number (#phi);#LT d_{xy} #GT [#mum]",
2704 "#sigma_{d_{xy}} vs ladder;ladder number (#phi);#sigma_{d_{xy}} [#mum]",
2710 "means_dz_ladder",
"#LT d_{z} #GT vs ladder;ladder number (#phi);#LT d_{z} #GT [#mum]",
nLadders_, 0.,
nLadders_);
2714 "#sigma_{d_{z}} vs ladder;ladder number (#phi);#sigma_{d_{z}} [#mum]",
2720 "norm_means_dxy_modZ",
2721 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs modZ;module number (Z);#LT d_{xy}/#sigma_{d_{xy}} #GT",
2727 "norm_widths_dxy_modZ",
2728 "width(d_{xy}/#sigma_{d_{xy}}) vs modZ;module number (Z); width(d_{xy}/#sigma_{d_{xy}})",
2735 "#LT d_{z}/#sigma_{d_{z}} #GT vs modZ;module number (Z);#LT d_{z}/#sigma_{d_{z}} #GT",
2742 "width(d_{z}/#sigma_{d_{z}}) vs pT;module number (Z);width(d_{z}/#sigma_{d_{z}})",
2748 "norm_means_dxy_ladder",
2749 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs ladder;ladder number (#phi);#LT d_{xy}/#sigma_{d_{z}} #GT",
2755 "norm_widths_dxy_ladder",
2756 "width(d_{xy}/#sigma_{d_{xy}}) vs ladder;ladder number (#phi);width(d_{xy}/#sigma_{d_{z}})",
2762 "norm_means_dz_ladder",
2763 "#LT d_{z}/#sigma_{d_{z}} #GT vs ladder;ladder number (#phi);#LT d_{z}/#sigma_{d_{z}} #GT",
2769 "norm_widths_dz_ladder",
2770 "width(d_{z}/#sigma_{d_{z}}) vs ladder;ladder number (#phi);width(d_{z}/#sigma_{d_{z}})",
2778 "#LT d_{xy} #GT map;module number [z];ladder number [#varphi]",
2787 "#LT d_{z} #GT map;module number [z];ladder number [#varphi]",
2797 "#LT d_{xy}/#sigma_{d_{xy}} #GT map;module number [z];ladder number [#varphi]",
2806 "#LT d_{z}/#sigma_{d_{z}} #GT map;module number [z];ladder number [#varphi]",
2815 "#sigma_{d_{xy}} map;module number [z];ladder number [#varphi]",
2824 "#sigma_{d_{z}} map;module number [z];ladder number [#varphi]",
2834 "width(d_{xy}/#sigma_{d_{xy}}) map;module number [z];ladder number [#varphi]",
2844 "width(d_{z}/#sigma_{d_{z}}) map;module number [z];ladder number [#varphi]",
3029 <<
runInfo.product()->m_start_time_str <<
" " <<
runInfo.product()->m_stop_time_str << std::endl;
3031 return std::make_pair(
runInfo.product()->m_start_time_ll,
runInfo.product()->m_stop_time_ll);
3039 double average_current =
runInfo.product()->m_avg_current;
3040 bool isOn = (average_current > 2000.);
3043 return ((isOn && !is0T) || (!isOn && is0T));
3122 TH1F* residualsPlot[100],
3128 char phibincenter[129];
3132 char etabincenter[129];
3140 trendPlot->SetBinContent(
i + 1, mean_);
3141 trendPlot->SetBinError(
i + 1, meanErr_);
3147 trendPlot->SetBinContent(
i + 1, width_);
3148 trendPlot->SetBinError(
i + 1, widthErr_);
3154 trendPlot->SetBinContent(
i + 1, median_);
3155 trendPlot->SetBinError(
i + 1, medianErr_);
3161 trendPlot->SetBinContent(
i + 1, mad_);
3162 trendPlot->SetBinError(
i + 1, madErr_);
3167 <<
"fillTrendPlot() " << fitPar_ <<
" unknown estimator!" << std::endl;
3171 if (var_.find(
"eta") != std::string::npos) {
3172 trendPlot->GetXaxis()->SetBinLabel(
i + 1, etabincenter);
3173 }
else if (var_.find(
"phi") != std::string::npos) {
3174 trendPlot->GetXaxis()->SetBinLabel(
i + 1, phibincenter);
3177 <<
"fillTrendPlot() " << var_ <<
" unknown track parameter!" << std::endl;
3184 std::vector<TH1F*>&
h,
3189 for (
auto iterator =
h.begin(); iterator !=
h.end(); iterator++) {
3195 float mean_ = myFit.first.value();
3196 float meanErr_ = myFit.first.error();
3197 trendPlot->SetBinContent(
bin, mean_);
3198 trendPlot->SetBinError(
bin, meanErr_);
3202 float width_ = myFit.second.value();
3203 float widthErr_ = myFit.second.error();
3204 trendPlot->SetBinContent(
bin, width_);
3205 trendPlot->SetBinError(
bin, widthErr_);
3211 trendPlot->SetBinContent(
bin, median_);
3212 trendPlot->SetBinError(
bin, medianErr_);
3218 trendPlot->SetBinContent(
bin, mad_);
3219 trendPlot->SetBinError(
bin, madErr_);
3224 <<
"fillTrendPlotByIndex() " << fitPar_ <<
" unknown estimator!" << std::endl;
3228 char bincenter[129];
3232 trendPlot->GetXaxis()->SetBinLabel(
bin, bincenter);
3236 trendPlot->GetXaxis()->SetBinLabel(
bin, bincenter);
3246 TH1F* residualsMapPlot[100][100],
3252 for (
int i = 0;
i < nYBins_; ++
i) {
3253 char phibincenter[129];
3257 if (nXBins_ == nYBins_) {
3258 trendMap->GetYaxis()->SetBinLabel(
i + 1, phibincenter);
3261 for (
int j = 0;
j < nXBins_; ++
j) {
3262 char etabincenter[129];
3267 if (nXBins_ == nYBins_) {
3268 trendMap->GetXaxis()->SetBinLabel(
j + 1, etabincenter);
3276 trendMap->SetBinContent(
j + 1,
i + 1, mean_);
3277 trendMap->SetBinError(
j + 1,
i + 1, meanErr_);
3283 trendMap->SetBinContent(
j + 1,
i + 1, width_);
3284 trendMap->SetBinError(
j + 1,
i + 1, widthErr_);
3290 trendMap->SetBinContent(
j + 1,
i + 1, median_);
3291 trendMap->SetBinError(
j + 1,
i + 1, medianErr_);
3297 trendMap->SetBinContent(
j + 1,
i + 1, mad_);
3298 trendMap->SetBinError(
j + 1,
i + 1, madErr_);
3302 edm::LogWarning(
"PrimaryVertexValidation:") <<
" fillMap() " << fitPar_ <<
" unknown estimator!" << std::endl;
3312 if (
a.tracksSize() !=
b.tracksSize())
3313 return a.tracksSize() >
b.tracksSize() ?
true :
false;
3315 return a.chi2() <
b.chi2() ?
true :
false;
3328 double vzErr = 0.0, vxErr = 0.0, vyErr = 0.0;
3329 vtxPoint =
vertex.position();
3334 double dxy = 0.0,
dz = 0.0, dxysigma = 0.0, dzsigma = 0.0;
3337 dxysigma =
sqrt(
track.d0Error() *
track.d0Error() + vxErr * vyErr);
3338 dzsigma =
sqrt(
track.dzError() *
track.dzError() + vzErr * vzErr);
3346 if (
track.ptError() /
track.pt() > ptErrMax_)
3356 TH1F::SetDefaultSumw2(kTRUE);
3358 std::map<std::string, TH1*>
h;
3363 h[
"pseudorapidity_" +
type] =
3364 dir.make<TH1F>((
"rapidity_" +
type).c_str(),
"track pseudorapidity; track #eta; tracks", 100, -3., 3.);
3365 h[
"z0_" +
type] =
dir.make<TH1F>((
"z0_" +
type).c_str(),
"track z_{0};track z_{0} (cm);tracks", 80, -40., 40.);
3366 h[
"phi_" +
type] =
dir.make<TH1F>((
"phi_" +
type).c_str(),
"track #phi; track #phi;tracks", 80, -
M_PI,
M_PI);
3367 h[
"eta_" +
type] =
dir.make<TH1F>((
"eta_" +
type).c_str(),
"track #eta; track #eta;tracks", 80, -4., 4.);
3368 h[
"pt_" +
type] =
dir.make<TH1F>((
"pt_" +
type).c_str(),
"track p_{T}; track p_{T} [GeV];tracks", 100, 0., 20.);
3369 h[
"p_" +
type] =
dir.make<TH1F>((
"p_" +
type).c_str(),
"track p; track p [GeV];tracks", 100, 0., 20.);
3370 h[
"found_" +
type] =
3371 dir.make<TH1F>((
"found_" +
type).c_str(),
"n. found hits;n^{found}_{hits};tracks", 30, 0., 30.);
3372 h[
"lost_" +
type] =
dir.make<TH1F>((
"lost_" +
type).c_str(),
"n. lost hits;n^{lost}_{hits};tracks", 20, 0., 20.);
3373 h[
"nchi2_" +
type] =
3374 dir.make<TH1F>((
"nchi2_" +
type).c_str(),
"normalized track #chi^{2};track #chi^{2}/ndf;tracks", 100, 0., 20.);
3375 h[
"rstart_" +
type] =
dir.make<TH1F>(
3376 (
"rstart_" +
type).c_str(),
"track start radius; track innermost radius r (cm);tracks", 100, 0., 20.);
3377 h[
"expectedInner_" +
type] =
dir.make<TH1F>(
3378 (
"expectedInner_" +
type).c_str(),
"n. expected inner hits;n^{expected}_{inner};tracks", 10, 0., 10.);
3379 h[
"expectedOuter_" +
type] =
dir.make<TH1F>(
3380 (
"expectedOuter_" +
type).c_str(),
"n. expected outer hits;n^{expected}_{outer};tracks ", 10, 0., 10.);
3381 h[
"logtresxy_" +
type] =
3382 dir.make<TH1F>((
"logtresxy_" +
type).c_str(),
3383 "log10(track r-#phi resolution/#mum);log10(track r-#phi resolution/#mum);tracks",
3387 h[
"logtresz_" +
type] =
dir.make<TH1F>((
"logtresz_" +
type).c_str(),
3388 "log10(track z resolution/#mum);log10(track z resolution/#mum);tracks",
3392 h[
"tpullxy_" +
type] =
3393 dir.make<TH1F>((
"tpullxy_" +
type).c_str(),
"track r-#phi pull;pull_{r-#phi};tracks", 100, -10., 10.);
3394 h[
"tpullz_" +
type] =
3395 dir.make<TH1F>((
"tpullz_" +
type).c_str(),
"track r-z pull;pull_{r-z};tracks", 100, -50., 50.);
3396 h[
"tlogDCAxy_" +
type] =
dir.make<TH1F>(
3397 (
"tlogDCAxy_" +
type).c_str(),
"track log_{10}(DCA_{r-#phi});track log_{10}(DCA_{r-#phi});tracks", 200, -5., 3.);
3398 h[
"tlogDCAz_" +
type] =
dir.make<TH1F>(
3399 (
"tlogDCAz_" +
type).c_str(),
"track log_{10}(DCA_{r-z});track log_{10}(DCA_{r-z});tracks", 200, -5., 5.);
3400 h[
"lvseta_" +
type] =
dir.make<TH2F>(
3401 (
"lvseta_" +
type).c_str(),
"cluster length vs #eta;track #eta;cluster length", 60, -3., 3., 20, 0., 20);
3402 h[
"lvstanlambda_" +
type] =
dir.make<TH2F>((
"lvstanlambda_" +
type).c_str(),
3403 "cluster length vs tan #lambda; tan#lambda;cluster length",
3410 h[
"restrkz_" +
type] =
3411 dir.make<TH1F>((
"restrkz_" +
type).c_str(),
"z-residuals (track vs vertex);res_{z} (cm);tracks", 200, -5., 5.);
3412 h[
"restrkzvsphi_" +
type] =
dir.make<TH2F>((
"restrkzvsphi_" +
type).c_str(),
3413 "z-residuals (track - vertex) vs track #phi;track #phi;res_{z} (cm)",
3420 h[
"restrkzvseta_" +
type] =
dir.make<TH2F>((
"restrkzvseta_" +
type).c_str(),
3421 "z-residuals (track - vertex) vs track #eta;track #eta;res_{z} (cm)",
3428 h[
"pulltrkzvsphi_" +
type] =
3429 dir.make<TH2F>((
"pulltrkzvsphi_" +
type).c_str(),
3430 "normalized z-residuals (track - vertex) vs track #phi;track #phi;res_{z}/#sigma_{res_{z}}",
3437 h[
"pulltrkzvseta_" +
type] =
3438 dir.make<TH2F>((
"pulltrkzvseta_" +
type).c_str(),
3439 "normalized z-residuals (track - vertex) vs track #eta;track #eta;res_{z}/#sigma_{res_{z}}",
3446 h[
"pulltrkz_" +
type] =
dir.make<TH1F>((
"pulltrkz_" +
type).c_str(),
3447 "normalized z-residuals (track vs vertex);res_{z}/#sigma_{res_{z}};tracks",
3451 h[
"sigmatrkz0_" +
type] =
dir.make<TH1F>(
3452 (
"sigmatrkz0_" +
type).c_str(),
"z-resolution (excluding beam);#sigma^{trk}_{z_{0}} (cm);tracks", 100, 0., 5.);
3453 h[
"sigmatrkz_" +
type] =
dir.make<TH1F>(
3454 (
"sigmatrkz_" +
type).c_str(),
"z-resolution (including beam);#sigma^{trk}_{z} (cm);tracks", 100, 0., 5.);
3455 h[
"nbarrelhits_" +
type] =
dir.make<TH1F>(
3456 (
"nbarrelhits_" +
type).c_str(),
"number of pixel barrel hits;n. hits Barrel Pixel;tracks", 10, 0., 10.);
3457 h[
"nbarrelLayers_" +
type] =
dir.make<TH1F>(
3458 (
"nbarrelLayers_" +
type).c_str(),
"number of pixel barrel layers;n. layers Barrel Pixel;tracks", 10, 0., 10.);
3459 h[
"nPxLayers_" +
type] =
dir.make<TH1F>(
3460 (
"nPxLayers_" +
type).c_str(),
"number of pixel layers (barrel+endcap);n. Pixel layers;tracks", 10, 0., 10.);
3461 h[
"nSiLayers_" +
type] =
3462 dir.make<TH1F>((
"nSiLayers_" +
type).c_str(),
"number of Tracker layers;n. Tracker layers;tracks", 20, 0., 20.);
3463 h[
"trackAlgo_" +
type] =
3464 dir.make<TH1F>((
"trackAlgo_" +
type).c_str(),
"track algorithm;track algo;tracks", 30, 0., 30.);
3465 h[
"trackQuality_" +
type] =
3466 dir.make<TH1F>((
"trackQuality_" +
type).c_str(),
"track quality;track quality;tracks", 7, -1., 6.);
3476 unsigned int theNOfBins,
3479 bool isNormalized) {
3480 TH1F::SetDefaultSumw2(kTRUE);
3492 std::vector<TH1F*>
h;
3493 h.reserve(theNOfBins);
3495 if (theNOfBins == 0) {
3497 <<
"bookResidualsHistogram() The number of bins cannot be identically 0" << std::endl;
3508 for (
unsigned int i = 0;
i < theNOfBins;
i++) {
3510 ? Form(
"%s vs %s - bin %i (%f < %s < %f);%s %s;tracks",
3519 : Form(
"%s vs %s - bin %i;%s %s;tracks",
3526 TH1F* htemp =
dir.make<TH1F>(
3527 Form(
"histo_%s_%s_plot%i", s_resType.c_str(), s_varType.c_str(),
i),
3548 using namespace reco;
3561 double d0Error =
tt->track().d0Error();
3590 double z = (
tt->stateAtBeamLine().trackStateAtPCA()).
position().z();
3591 double tantheta =
tan((
tt->stateAtBeamLine().trackStateAtPCA()).momentum().theta());
3592 double dz2 =
pow(
tt->track().dzError(), 2) +
wxy2_ /
pow(tantheta, 2);
3605 double kappa = -0.002998 * fBfield_ *
tt->track().qoverp() /
cos(
tt->track().theta());
3608 double s0 = (
x1 *
cos(
tt->track().phi()) +
y1 *
sin(
tt->track().phi())) /
q;
3622 PVValHelper::fill(
h,
"nbarrelLayers_" + ttype,
tt->track().hitPattern().pixelBarrelLayersWithMeasurement());
3623 PVValHelper::fill(
h,
"nPxLayers_" + ttype,
tt->track().hitPattern().pixelLayersWithMeasurement());
3624 PVValHelper::fill(
h,
"nSiLayers_" + ttype,
tt->track().hitPattern().trackerLayersWithMeasurement());
3626 h,
"expectedInner_" + ttype,
tt->track().hitPattern().numberOfLostHits(HitPattern::MISSING_INNER_HITS));
3628 h,
"expectedOuter_" + ttype,
tt->track().hitPattern().numberOfLostHits(HitPattern::MISSING_OUTER_HITS));
3633 int longesthit = 0, nbarrel = 0;
3634 for (
auto const&
hit :
tt->track().recHits()) {
3643 if (clust->sizeY() - longesthit > 0)
3644 longesthit = clust->sizeY();
3645 if (clust->sizeY() > 20.) {
3662 desc.setComment(
"Validates alignment payloads by evaluating unbiased track paramter resisuals to vertices");
3666 desc.addUntracked<
int>(
"compressionSettings", -1);
3667 desc.add<
bool>(
"storeNtuple",
false);
3668 desc.add<
bool>(
"isLightNtuple",
true);
3669 desc.add<
bool>(
"useTracksFromRecoVtx",
false);
3670 desc.addUntracked<
double>(
"vertexZMax", 99);
3671 desc.addUntracked<
double>(
"intLumi", 0.);
3672 desc.add<
bool>(
"askFirstLayerHit",
false);
3673 desc.addUntracked<
bool>(
"doBPix",
true);
3674 desc.addUntracked<
bool>(
"doFPix",
true);
3675 desc.addUntracked<
double>(
"probePt", 0.);
3676 desc.addUntracked<
double>(
"probeP", 0.);
3677 desc.addUntracked<
double>(
"probeEta", 2.4);
3678 desc.addUntracked<
double>(
"probeNHits", 0.);
3679 desc.addUntracked<
int>(
"numberOfBins", 24);
3680 desc.addUntracked<
double>(
"minPt", 1.);
3681 desc.addUntracked<
double>(
"maxPt", 20.);
3682 desc.add<
bool>(
"Debug",
false);
3683 desc.addUntracked<
bool>(
"runControl",
false);
3684 desc.addUntracked<
bool>(
"forceBeamSpot",
false);
3686 std::vector<unsigned int> defaultRuns;
3687 defaultRuns.push_back(0);
3688 desc.addUntracked<std::vector<unsigned int>>(
"runControlNumber", defaultRuns);
3718 descriptions.
add(
"primaryVertexValidation",
desc);
bool quality(const TrackQuality) const
Track quality.
std::vector< TH1F * > h_norm_dxy_modZ_
TrajectoryStateClosestToPoint trajectoryStateClosestToPoint(const AlgebraicVector3 &momentum, const GlobalPoint &referencePoint, const TrackCharge &charge, const AlgebraicSymMatrix66 &theCovarianceMatrix, const MagneticField *field)
TH1F * n_dxyPhiMedianTrend
static const char runNumber_[]
static const std::string kSharedResource
TH1F * n_dzEtaMedianTrend
Log< level::Info, true > LogVerbatim
void fillTrackHistos(std::map< std::string, TH1 *> &h, const std::string &ttype, const reco::TransientTrack *tt, const reco::Vertex &v, const reco::BeamSpot &beamSpot, double fBfield)
double qoverp() const
q / p
TH1F * n_dxyEtaMADBiasTrend
TH1F * a_dxyPhiMedianBiasTrend
edm::EDGetTokenT< reco::TrackCollection > theTrackCollectionToken_
TH1F * n_dxyPhiMADBiasTrend
TH1F * a_dxyladderWidthTrend
std::vector< TH1F * > n_IP3DPhiResiduals
Measurement1D getMedian(TH1F *histo)
std::vector< TH1F * > a_dxyEtaResiduals
TH1F * n_dzResidualsMap[nMaxBins_][nMaxBins_]
std::vector< TH1F * > a_d3DEtaResiduals
TH1F * a_dzPhiMedianBiasTrend
T getParameter(std::string const &) const
TH1F * a_dxyladderMeanTrend
unsigned int pxbLayer(const DetId &id) const
TH1F * a_dxyEtaWidthBiasTrend
std::vector< TH1F * > n_reszPhiResiduals
TFileDirectory MADTrendsDir
std::vector< unsigned int > runControlNumbers_
TH1F * n_dxyEtaMedianTrend
TH1F * n_dxyEtaMeanBiasTrend
TH1F * a_dzEtaWidthBiasTrend
TH1F * a_dzPhiMADBiasTrend
TH1F * h_probeRefitVSigXY_
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
static const int nMaxtracks_
TH1F * h_probeRefitVSigZ_
const bool isValid(const Frame &aFrame, const FrameQuality &aQuality, const uint16_t aExpectedPos)
static bool vtxSort(const reco::Vertex &a, const reco::Vertex &b)
TH1F * n_dxyEtaMedianBiasTrend
TFileDirectory WidthTrendsDir
static void fillPSetDescription(edm::ParameterSetDescription &desc)
unsigned short numberOfValidHits() const
number of valid hits found
TH1F * a_dxyEtaMADBiasTrend
std::pair< Measurement1D, Measurement1D > fitResiduals(TH1 *hist)
TH1F * h_probesignIP2DRefitV_
Quality qualityByName(std::string const &name)
TH1F * a_dzpTCentralWidthTrend
edm::EDGetTokenT< reco::BeamSpot > theBeamspotToken_
void fillTrendPlot(TH1F *trendPlot, TH1F *residualsPlot[100], PVValHelper::estimator fitPar_, const std::string &var_)
int nhits1D_[nMaxtracks_]
std::vector< TH1F * > h_dxy_pT_
TH1F * a_dxyResidualsMap[nMaxBins_][nMaxBins_]
std::map< std::string, TH1 * > hDA
TrackQuality
track quality
std::vector< TH1F * > a_IP3DEtaResiduals
std::vector< float > generateBins(int n, float start, float range)
void beginRun(edm::Run const &iRun, edm::EventSetup const &iSetup) override
double px() const
x coordinate of momentum vector
std::vector< TH1F * > n_dzPhiResiduals
double p() const
momentum vector magnitude
std::vector< TH1F * > a_d3DPhiResiduals
std::vector< TH1F * > n_d3DPhiResiduals
PrimaryVertexValidation(const edm::ParameterSet &)
std::vector< TH1F * > n_dxyPhiBiasResiduals
Sin< T >::type sin(const T &t)
TH1F * a_dzEtaMADBiasTrend
TH1F * n_dxyBiasResidualsMap[nMaxBins_][nMaxBins_]
TFileDirectory MeanTrendsDir
std::vector< TH1F * > n_d3DEtaResiduals
Global3DPoint GlobalPoint
const edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > trackingGeomToken_
std::vector< TH1F * > h_norm_dz_Central_pT_
const unsigned getPXBModules(unsigned int lay) const
double py() const
y coordinate of momentum vector
TH1F * h_xErrOfflineVertex
bool isNonnull() const
Checks for non-null.
double longitudinalImpactParameterError() const
TH1F * n_dzladderMeanTrend
float DOFUnbiasedVertex_[nMaxtracks_]
TH1F * n_dzPhiWidthBiasTrend
std::map< std::pair< residualType, plotVariable >, std::pair< float, float > > range
double d3DFromMyVertex_[nMaxtracks_]
const DetContainer & dets() const override
Returm a vector of all GeomDet (including all GeomDetUnits)
double transverseImpactParameter() const
std::vector< TH1F * > a_reszPhiResiduals
double dxyBs_[nMaxtracks_]
double zPCA_[nMaxtracks_]
std::vector< TH1F * > a_IP2DPhiResiduals
TH1F * a_dxyPhiWidthBiasTrend
float chi2ProbUnbiasedVertex_[nMaxtracks_]
unsigned int pxbLadder(const DetId &id) const
const PerigeeTrajectoryError & perigeeError() const
Log< level::Error, false > LogError
std::vector< TH1F * > n_reszEtaResiduals
double dxyFromMyVertex_[nMaxtracks_]
TH1F * a_dzPhiWidthBiasTrend
TH1F * a_dzladderWidthTrend
TH1F * h_probeRefitVSig3D_
constexpr double max_eta_phase2
Measurement1D getMAD(TH1F *histo)
std::map< std::string, TH1 * > bookVertexHistograms(const TFileDirectory &dir)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< TH1F * > h_dz_modZ_
std::vector< TH1F * > h_dxy_modZ_
std::vector< TH1F * > a_dxEtaResiduals
std::pair< bool, bool > pixelHitsCheck(const reco::TransientTrack &track)
plotLabels getVarString(plotVariable var)
TH1F * h_probereszRefitV_
double dzErrorFromMyVertex_[nMaxtracks_]
static std::string to_string(const XMLCh *ch)
std::vector< TH1F * > n_dxyEtaBiasResiduals
int isHighPurity_[nMaxtracks_]
int nhitsTIB_[nMaxtracks_]
std::vector< TH1F * > n_dxyEtaResiduals
TH1F * h_probeRefitVSigResZ_
double qoverp_[nMaxtracks_]
double IPTsigFromMyVertex_[nMaxtracks_]
T getUntrackedParameter(std::string const &, T const &) const
reco::TransientTrack build(const reco::Track *p) const
GlobalPoint position() const
TH1F * a_dzEtaMedianTrend
std::vector< TH1F * > a_dzPhiBiasResiduals
double theta_[nMaxtracks_]
TH1F * a_dxyPhiMedianTrend
TH1F * a_dxypTCentralWidthTrend
std::map< plotVariable, std::vector< float > > trendbins
double pt() const
track transverse momentum
T * make(const Args &...args) const
make new ROOT object
constexpr double max_eta_phase1
auto recHits() const
Access to reconstructed hits on the track.
std::vector< TH1F * > h_norm_dxy_pT_
std::vector< TH1F * > a_dzEtaResiduals
TH1F * a_dzPhiMeanBiasTrend
edm::EDGetTokenT< reco::VertexCollection > theVertexCollectionToken_
float getHigh(residualType type, plotVariable plot)
int tracksUsedForVertexing_[nMaxtracks_]
float getLow(residualType type, plotVariable plot)
int charge() const
track electric charge
double dz() const
dz parameter (= dsz/cos(lambda)). This is the track z0 w.r.t (0,0,0) only if the refPoint is close to...
TH1F * n_dxymodZWidthTrend
TH1F * h_fitVtxTrackAverageWeight_
TFileDirectory Width2DMapsDir
T const * product() const
int isGoodTrack_[nMaxtracks_]
std::vector< TH1F * > a_dxyEtaBiasResiduals
const edm::ESGetToken< RunInfo, RunInfoRcd > runInfoTokenBR_
GlobalPoint position() const
TH1F * a_dxyPhiMADBiasTrend
unsigned int LuminosityBlockNumber_
TH1F * a_dxyPhiWidthTrend
double zErrOfflineVertex_
TH1F * h_yErrOfflineVertex
std::vector< TH1F * > h_norm_dxy_ladder_
int nhitsFPIX_[nMaxtracks_]
bool useTracksFromRecoVtx_
std::vector< TH1F * > a_dzPhiResiduals
TH1F * n_dzPhiMADBiasTrend
double dzError() const
error on dz
double yUnbiasedVertex_[nMaxtracks_]
bool isThere(GeomDetEnumerators::SubDetector subdet) const
std::unique_ptr< TrackClusterizerInZ > theTrackClusterizer_
TH1F * h_probeRecoVSigXY_
bool forceBeamSpotContraint_
static void fillPSetDescription(edm::ParameterSetDescription &desc)
TH1F * h_probeRefitVLogSig3D_
TH1F * h_fitVtxTrackWeights_
TH1F * a_dxymodZWidthTrend
TH2F * h2_probePassingLayer1Map_
std::vector< TH1F * > n_dxyPhiResiduals
Cos< T >::type cos(const T &t)
static const int nPtBins_
unsigned int EventNumber_
TH1F * a_dzL1ResidualsMap[nMaxBins_][nMaxBins_]
Tan< T >::type tan(const T &t)
Abs< T >::type abs(const T &t)
int nhitsTID_[nMaxtracks_]
double zUnbiasedVertex_[nMaxtracks_]
double phi() const
azimuthal angle of momentum vector
TH1F * a_dzPhiMedianTrend
#define DEFINE_FWK_MODULE(type)
std::vector< TH1F * > h_dxy_ladder_
void fill(std::map< std::string, TH1 *> &h, const std::string &s, double x)
float chi2normUnbiasedVertex_[nMaxtracks_]
const Point & vertex() const
reference point on the track. This method is DEPRECATED, please use referencePoint() instead ...
TH1F * n_d3DResidualsMap[nMaxBins_][nMaxBins_]
std::vector< TH1F * > a_dxyPhiResiduals
TH1I * h_probeHasBPixL1Overlap_
std::vector< TH1F * > a_dxyPhiBiasResiduals
void analyze(const edm::Event &, const edm::EventSetup &) override
TH1F * n_dzEtaWidthBiasTrend
TH1F * a_d3DResidualsMap[nMaxBins_][nMaxBins_]
TH1F * n_dzEtaMADBiasTrend
ParameterDescriptionBase * add(U const &iLabel, T const &value)
float clusterProbability(unsigned int flags=0) const
std::vector< TH1F * > h_dxy_ladderNoOverlap_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
TH1F * n_dxyL1ResidualsMap[nMaxBins_][nMaxBins_]
double IPLsigFromMyVertex_[nMaxtracks_]
double dzBs_[nMaxtracks_]
double yPCA_[nMaxtracks_]
void fillMap(TH2F *trendMap, TH1F *residualsMapPlot[100][100], PVValHelper::estimator fitPar_, const int nXBins_, const int nYBins_)
const PerigeeTrajectoryParameters & perigeeParameters() const
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > topoToken_
bool hasFirstLayerPixelHits(const reco::TransientTrack &track)
std::vector< TH1F * > n_dzEtaResiduals
TH1F * a_dxyEtaWidthTrend
void setMap(residualType type, plotVariable plot, float low, float high)
std::unique_ptr< TrackFilterForPVFindingBase > theTrackFilter_
TH1F * n_dzPhiMeanBiasTrend
std::vector< TH1F * > n_IP3DEtaResiduals
TH1F * h_nOfflineVertices
int nhits2D_[nMaxtracks_]
TH1F * a_dxyEtaMedianBiasTrend
Log< level::Info, false > LogInfo
const int compressionSettings_
std::vector< TH1F * > h_norm_dz_pT_
bool isHit2D(const TrackingRecHit &hit, const PVValHelper::detectorPhase &thePhase) const
double eta() const
pseudorapidity of momentum vector
TH1F * n_dzPhiMedianBiasTrend
bool isBFieldConsistentWithMode(const edm::EventSetup &iSetup) const
static constexpr float d0
TH1F * a_dxyL1ResidualsMap[nMaxBins_][nMaxBins_]
void shrinkHistVectorToFit(std::vector< TH1F *> &h, unsigned int desired_size)
static TrackQuality qualityByName(const std::string &name)
std::vector< TH1F * > h_dz_pT_
const edm::ESGetToken< TransientTrackBuilder, TransientTrackRecord > ttkToken_
plotLabels getTypeString(residualType type)
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
TH1F * a_dzladderMeanTrend
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
std::vector< TH1F * > n_dzEtaBiasResiduals
edm::Service< TFileService > fs
std::vector< TH1F * > h_dz_Central_pT_
TH1F * n_dzEtaMeanBiasTrend
int nhitsTOB_[nMaxtracks_]
double chi2ndof_[nMaxtracks_]
TH1F * a_dxymodZMeanTrend
double longitudinalImpactParameter() const
static void fillPSetDescription(edm::ParameterSetDescription &desc)
std::vector< TH1F * > h_dz_ladder_
std::vector< TH1F * > a_IP2DEtaResiduals
XYZPointD XYZPoint
point in space with cartesian internal representation
double pz() const
z coordinate of momentum vector
TFileDirectory Mean2DMapsDir
double chi2() const
chi-squared of the fit
double normalizedChi2() const
chi-squared divided by n.d.o.f. (or chi-squared * 1e6 if n.d.o.f. is zero)
int nhitsTEC_[nMaxtracks_]
double yErrOfflineVertex_
constexpr double max_eta_phase0
const FreeTrajectoryState & theState() const
std::vector< TH1F * > n_IP2DPhiResiduals
void add(std::string const &label, ParameterSetDescription const &psetDescription)
double xPCA_[nMaxtracks_]
double xUnbiasedVertex_[nMaxtracks_]
std::vector< TH1F * > h_dxy_Central_pT_
TH1F * n_dxypTCentralWidthTrend
TH1F * n_dxyPhiWidthTrend
PVValHelper::detectorPhase phase_
TH1F * a_dzpTCentralMeanTrend
TH1F * a_dxypTCentralMeanTrend
TFileDirectory MedianTrendsDir
TH1F * n_dzL1ResidualsMap[nMaxBins_][nMaxBins_]
TH1F * a_dxyEtaMeanBiasTrend
TH1F * n_dxypTCentralMeanTrend
double theta() const
polar angle
std::map< unsigned int, std::pair< long long, long long > > runNumbersTimesLog_
~PrimaryVertexValidation() override
TH1F * a_dzEtaMedianBiasTrend
Pixel cluster – collection of neighboring pixels above threshold.
TString units(TString variable, Char_t axis)
double dzFromMyVertex_[nMaxtracks_]
TH1F * n_dxyEtaWidthTrend
TH1F * a_dxyPhiMeanBiasTrend
static int position[264][3]
TH1F * h_probeHitsInBPIX_
TH1F * h_recoVtxChi2Prob_
TH1F * h_probeHitsInFPIX_
TH1F * n_dxyEtaWidthBiasTrend
std::vector< TH1F * > a_reszEtaResiduals
std::vector< TH1F * > bookResidualsHistogram(const TFileDirectory &dir, unsigned int theNOfBins, PVValHelper::residualType resType, PVValHelper::plotVariable varType, bool isNormalized=false)
TH1F * a_dzmodZWidthTrend
TH1F * n_dxyladderMeanTrend
TH1F * a_dxyBiasResidualsMap[nMaxBins_][nMaxBins_]
TH1F * h_zErrOfflineVertex
T * make(const Args &...args) const
make new ROOT object
static void fillPSetDescription(edm::ParameterSetDescription &desc)
std::vector< TH1F * > a_dxPhiResiduals
std::vector< TH1F * > h_norm_dz_modZ_
TH1F * n_dxyResidualsMap[nMaxBins_][nMaxBins_]
bool passesTrackCuts(const reco::Track &track, const reco::Vertex &vertex, const std::string &qualityString_, double dxyErrMax_, double dzErrMax_, double ptErrMax_)
TH1F * n_dzpTCentralMeanTrend
TH1F * n_dzPhiMedianTrend
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > topoTokenBR_
double dxyErrorFromMyVertex_[nMaxtracks_]
std::vector< TH1F * > a_dyEtaResiduals
TH1F * n_dxyPhiWidthBiasTrend
unsigned int pxbModule(const DetId &id) const
Log< level::Warning, false > LogWarning
std::vector< TH1F * > n_IP2DEtaResiduals
std::vector< TH1F * > h_norm_dz_ladder_
TH1F * n_dzladderWidthTrend
char const * what() const noexcept override
float sumOfWeightsUnbiasedVertex_[nMaxtracks_]
TH2F * h2_probeLayer1Map_
void fillByIndex(std::vector< TH1F *> &h, unsigned int index, double x, std::string tag="")
TH1F * n_dzBiasResidualsMap[nMaxBins_][nMaxBins_]
double d3DErrorFromMyVertex_[nMaxtracks_]
std::vector< TH1F * > a_dyPhiResiduals
double d0Error() const
error on d0
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
TH1F * n_dxymodZMeanTrend
std::vector< TH1F * > h_dxy_ladderOverlap_
TH1F * n_dzEtaMedianBiasTrend
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
TH1F * a_dzBiasResidualsMap[nMaxBins_][nMaxBins_]
PVValHelper::histodetails theDetails_
TH1F * a_dxyEtaMedianTrend
std::array< float, nPtBins_+1 > mypT_bins_
int hasRecVertex_[nMaxtracks_]
TH1F * a_dzResidualsMap[nMaxBins_][nMaxBins_]
Power< A, B >::type pow(const A &a, const B &b)
double xErrOfflineVertex_
TH1F * a_dzEtaMeanBiasTrend
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
float chi2UnbiasedVertex_[nMaxtracks_]
TH1F * n_dzpTCentralWidthTrend
std::pair< long long, long long > getRunTime(const edm::EventSetup &iSetup) const
*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
const unsigned getPXBLadders(unsigned int lay) const
std::vector< TH1F * > h_norm_dxy_Central_pT_
TH1F * n_dzmodZWidthTrend
TH1F * n_dxyPhiMedianBiasTrend
TH1F * n_dxyPhiMeanBiasTrend
Global3DVector GlobalVector
void fillTrendPlotByIndex(TH1F *trendPlot, std::vector< TH1F *> &h, PVValHelper::estimator fitPar_, PVValHelper::plotVariable plotVar=PVValHelper::END_OF_PLOTS)
double chi2_[nMaxtracks_]
std::vector< TH1F * > a_dzEtaBiasResiduals
std::vector< TH1F * > a_IP3DPhiResiduals
TH1F * n_dxyladderWidthTrend
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
int nhitsBPIX_[nMaxtracks_]
TH1F * h_probeL1ClusterProb_
std::vector< TH1F * > n_dzPhiBiasResiduals
double IP3DsigFromMyVertex_[nMaxtracks_]
TFile & file() const
return opened TFile
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geomTokenBR_