25 #include <boost/range/adaptor/indexed.hpp> 75 compressionSettings_(iConfig.getUntrackedParameter<
int>(
"compressionSettings", -1)),
76 storeNtuple_(iConfig.getParameter<
bool>(
"storeNtuple")),
77 lightNtupleSwitch_(iConfig.getParameter<
bool>(
"isLightNtuple")),
78 useTracksFromRecoVtx_(iConfig.getParameter<
bool>(
"useTracksFromRecoVtx")),
79 vertexZMax_(iConfig.getUntrackedParameter<double>(
"vertexZMax", 99.)),
80 intLumi_(iConfig.getUntrackedParameter<double>(
"intLumi", 0.)),
81 askFirstLayerHit_(iConfig.getParameter<
bool>(
"askFirstLayerHit")),
82 doBPix_(iConfig.getUntrackedParameter<
bool>(
"doBPix",
true)),
83 doFPix_(iConfig.getUntrackedParameter<
bool>(
"doFPix",
true)),
84 ptOfProbe_(iConfig.getUntrackedParameter<double>(
"probePt", 0.)),
85 pOfProbe_(iConfig.getUntrackedParameter<double>(
"probeP", 0.)),
86 etaOfProbe_(iConfig.getUntrackedParameter<double>(
"probeEta", 2.4)),
87 nHitsOfProbe_(iConfig.getUntrackedParameter<double>(
"probeNHits", 0.)),
88 nBins_(iConfig.getUntrackedParameter<
int>(
"numberOfBins", 24)),
89 minPt_(iConfig.getUntrackedParameter<double>(
"minPt", 1.)),
90 maxPt_(iConfig.getUntrackedParameter<double>(
"maxPt", 20.)),
91 debug_(iConfig.getParameter<
bool>(
"Debug")),
92 runControl_(iConfig.getUntrackedParameter<
bool>(
"runControl",
false)),
93 forceBeamSpotContraint_(iConfig.getUntrackedParameter<
bool>(
"forceBeamSpot",
false)) {
99 std::vector<unsigned int> defaultRuns;
100 defaultRuns.push_back(0);
118 if (clusteringAlgorithm ==
"gap") {
121 .getParameter<edm::ParameterSet>(
"TkGapClusParameters"));
122 }
else if (clusteringAlgorithm ==
"DA_vect") {
125 .getParameter<edm::ParameterSet>(
"TkDAClusParameters"));
127 throw VertexException(
"PrimaryVertexProducerAlgorithm: unknown clustering algorithm: " + clusteringAlgorithm);
158 edm::LogVerbatim(
"PrimaryVertexValidation") <<
"######################################";
163 << std::setw(5) <<
it.second.second <<
") |" << std::endl;
194 edm::LogVerbatim(
"PrimaryVertexValidation") <<
"######################################\n";
195 edm::LogVerbatim(
"PrimaryVertexValidation") <<
"The pT binning is: [" << toOutput <<
"] \n";
207 using namespace reco;
214 bool passesRunControl =
false;
223 passesRunControl =
true;
227 if (!passesRunControl)
262 double fBfield_ = ((*theB_).field()->inTesla(
GlobalPoint(0., 0., 0.))).
z();
269 if (!trackCollectionHandle.
isValid())
271 auto const&
tracks = *trackCollectionHandle;
281 edm::LogError(
"PrimaryVertexValidation") <<
"Vertex collection handle is not valid. Aborting!" << std::endl;
285 std::vector<Vertex> vsorted = *(
vertices);
315 unsigned int vertexCollectionSize = vsorted.size();
318 for (
unsigned int i = 0;
i < vertexCollectionSize;
i++) {
331 double chi2prob = 0.;
333 if (!vsorted.at(0).isFake()) {
337 chi2ndf =
pv.normalizedChi2();
338 chi2prob = TMath::Prob(
pv.chi2(), (
int)
pv.ndof());
345 double pt = (**itrk).pt();
350 double dxyRes = (**itrk).dxy(myVertex);
351 double dzRes = (**itrk).dz(myVertex);
353 double dxy_err = (**itrk).dxyError();
354 double dz_err = (**itrk).dzError();
356 float trackphi = ((**itrk).phi()) * (180 /
M_PI);
357 float tracketa = (**itrk).eta();
366 if (tracketa >= etaF && tracketa < etaL) {
373 if (trackphi >= phiF && trackphi < phiL) {
383 if (tracketa >= etaJ && tracketa < etaK) {
406 if (beamSpotHandle.
isValid()) {
441 edm::LogInfo(
"PrimaryVertexValidation") <<
" looping over " << trackCollectionHandle->size() <<
"tracks";
443 h_nTracks->Fill(trackCollectionHandle->size());
449 std::vector<TransientTrack> t_tks;
457 edm::LogInfo(
"PrimaryVertexValidation") <<
"Found: " << t_tks.size() <<
" reconstructed tracks";
474 <<
" looping over: " <<
clusters.size() <<
" clusters from " << t_tks.size() <<
" selected tracks";
483 for (
const auto& iclus :
clusters) {
487 for (
const auto& theTTrack : iclus) {
496 const Track& theTrack = theTTrack.track();
530 int nhitinTIB =
hits.numberOfValidStripTIBHits();
531 int nhitinTOB =
hits.numberOfValidStripTOBHits();
532 int nhitinTID =
hits.numberOfValidStripTIDHits();
533 int nhitinTEC =
hits.numberOfValidStripTECHits();
534 int nhitinBPIX =
hits.numberOfValidPixelBarrelHits();
535 int nhitinFPIX =
hits.numberOfValidPixelEndcapHits();
537 if ((*iHit)->isValid()) {
571 vector<TransientTrack> theFinalTracks;
572 theFinalTracks.clear();
574 for (
const auto& tk : iclus) {
580 theFinalTracks.push_back(tk);
585 if (theFinalTracks.size() > 1) {
587 edm::LogInfo(
"PrimaryVertexValidation") <<
"Transient Track Collection size: " << theFinalTracks.size();
594 theFittedVertex = theFitter->vertex(theFinalTracks,
beamSpot);
596 theFittedVertex = theFitter->vertex(theFinalTracks);
599 double totalTrackWeights = 0;
600 if (theFittedVertex.isValid()) {
601 if (theFittedVertex.hasTrackWeight()) {
602 for (
const auto& theFinalTrack : theFinalTracks) {
604 totalTrackWeights += theFittedVertex.trackWeight(theFinalTrack);
613 theFittedVertex.position().x(), theFittedVertex.position().y(), theFittedVertex.position().z());
627 TMath::Prob(theFittedVertex.totalChiSquared(), (
int)theFittedVertex.degreesOfFreedom());
635 TMath::Prob(theFittedVertex.totalChiSquared(), (
int)theFittedVertex.degreesOfFreedom()));
638 double dxyFromMyVertex = theTrack.
dxy(myVertex);
639 double dzFromMyVertex = theTrack.
dz(myVertex);
642 theFittedVertex.position().x(), theFittedVertex.position().y(), theFittedVertex.position().z());
648 double dz_err =
sqrt(
std::pow(theTrack.
dzError(), 2) + theFittedVertex.positionError().czz());
652 theTTrack,
GlobalVector(theTrack.
px(), theTrack.
py(), theTrack.
pz()), theFittedVertex);
654 double s_ip2dpv_corr = s_ip2dpv.second.value();
655 double s_ip2dpv_err = s_ip2dpv.second.error();
659 theTTrack,
GlobalVector(theTrack.
px(), theTrack.
py(), theTrack.
pz()), theFittedVertex);
661 double s_ip3dpv_corr = s_ip3dpv.second.value();
662 double s_ip3dpv_err = s_ip3dpv.second.error();
666 double ip3d_corr = ip3dpv.second.value();
667 double ip3d_err = ip3dpv.second.error();
675 float my_dx = refPoint.
x() - myVertex.x();
676 float my_dy = refPoint.
y() - myVertex.y();
678 float my_dx2 = cPToVtx.
x() - myVertex.x();
679 float my_dy2 = cPToVtx.
y() - myVertex.y();
681 float my_dxy =
std::sqrt(my_dx * my_dx + my_dy * my_dy);
690 <<
"my_dx:" << my_dx <<
" my_dy:" << my_dy <<
" my_dxy:" << my_dxy <<
" my_dx2:" << my_dx2
691 <<
" my_dy2:" << my_dy2 <<
" d0: " <<
d0 <<
" dxyFromVtx:" << dxyFromMyVertex <<
"\n" 692 <<
" ============================== " 696 <<
"diff3:" << (my_dx - my_dx2) <<
" " << (my_dy - my_dy2) <<
"\n" 716 float trackphi = (theTrack.
phi()) * (180. /
M_PI);
717 float tracketa = theTrack.
eta();
718 float trackpt = theTrack.
pt();
719 float trackp = theTrack.
p();
724 int ladder_num = -1.;
725 int module_num = -1.;
726 int L1BPixHitCount = 0;
730 unsigned int subid =
detId.subdetId();
738 if (clusterProbability > 0) {
755 if (module_num > 0 && ladder_num > 0) {
764 for (
int ipTBin = 0; ipTBin <
nPtBins_; ipTBin++) {
770 <<
" < pT < " <<
mypT_bins_[ipTBin + 1] << std::endl;
772 if (
std::abs(tracketa) < 1.5 && (trackpt >= pTF && trackpt < pTL)) {
783 <<
"passes tight eta cut: " <<
mypT_bins_[ipTBin] << std::endl;
798 if (pixelOcc.first ==
true)
799 edm::LogInfo(
"PrimaryVertexValidation") <<
"has BPIx hits" << std::endl;
800 if (pixelOcc.second ==
true)
801 edm::LogInfo(
"PrimaryVertexValidation") <<
"has FPix hits" << std::endl;
804 if (!
doBPix_ && (pixelOcc.first ==
true))
806 if (!
doFPix_ && (pixelOcc.second ==
true))
834 float dxyRecoV = theTrack.
dz(theRecoVertex);
835 float dzRecoV = theTrack.
dxy(theRecoVertex);
836 float dxysigmaRecoV =
841 double zTrack = (theTTrack.stateAtBeamLine().trackStateAtPCA()).
position().z();
842 double zVertex = theFittedVertex.position().z();
843 double tantheta =
tan((theTTrack.stateAtBeamLine().trackStateAtPCA()).momentum().theta());
846 double restrkz = zTrack -
zVertex;
847 double pulltrkz = (zTrack -
zVertex) / TMath::Sqrt(dz2);
872 n_dxyVsPhi->Fill(trackphi, dxyFromMyVertex / s_ip2dpv_err);
877 n_dxyVsEta->Fill(tracketa, dxyFromMyVertex / s_ip2dpv_err);
880 if (ladder_num > 0 && module_num > 0) {
882 <<
" ladder_num: " << ladder_num <<
" module_num: " << module_num << std::endl;
893 if (L1BPixHitCount == 1) {
914 if (tracketa >= etaF && tracketa < etaL) {
931 if (trackphi >= phiF && trackphi < phiL) {
951 if (tracketa >= etaJ && tracketa < etaK) {
966 <<
" myVertex.x()= " << myVertex.x() <<
"\n" 967 <<
" myVertex.y()= " << myVertex.y() <<
" \n" 968 <<
" myVertex.z()= " << myVertex.z() <<
" \n" 969 <<
" theTrack.dz(myVertex)= " << theTrack.
dz(myVertex) <<
" \n" 970 <<
" zPCA -myVertex.z() = " << (theTrack.
vertex().z() - myVertex.z());
978 LogTrace(
"PrimaryVertexValidation") <<
"caught std::exception " << er.
what() << std::endl;
985 edm::LogInfo(
"PrimaryVertexValidation") <<
"Not enough tracks to make a vertex. Returns no vertex info";
992 edm::LogInfo(
"PrimaryVertexValidation") <<
"Track " <<
i <<
" : pT = " << theTrack.
pt();
1006 if (
hit.dimension() < 2) {
1014 if (dynamic_cast<const SiStripRecHit2D*>(&
hit))
1016 else if (dynamic_cast<const SiStripMatchedRecHit2D*>(&
hit))
1018 else if (dynamic_cast<const ProjectedSiStripRecHit2D*>(&
hit))
1021 edm::LogError(
"UnknownType") <<
"@SUB=PrimaryVertexValidation::isHit2D" 1022 <<
"Tracker hit not in pixel and neither SiStripRecHit2D nor " 1023 <<
"SiStripMatchedRecHit2D nor ProjectedSiStripRecHit2D.";
1030 edm::LogWarning(
"DetectorMismatch") <<
"@SUB=PrimaryVertexValidation::isHit2D" 1031 <<
"Hit not in tracker with 'official' dimension >=2.";
1040 bool hasBPixHits =
false;
1041 bool hasFPixHits =
false;
1044 if (
p.numberOfValidPixelEndcapHits() != 0) {
1047 if (
p.numberOfValidPixelBarrelHits() != 0) {
1051 return std::make_pair(hasBPixHits, hasFPixHits);
1056 using namespace reco;
1058 for (
int i = 0;
i <
p.numberOfAllHits(HitPattern::TRACK_HITS);
i++) {
1059 uint32_t
pattern =
p.getHitPattern(HitPattern::TRACK_HITS,
i);
1073 edm::LogInfo(
"PrimaryVertexValidation") <<
"######################################\n" 1075 <<
"######################################";
1169 TH1F::SetDefaultSumw2(kTRUE);
1172 EventFeatures.
make<TH1F>(
"h_lumiFromConfig",
"luminosity from config;;luminosity of present run", 1, -0.5, 0.5);
1176 "run number from config;;run number (from configuration)",
1186 EventFeatures.
make<TH1I>(
"h_runFromEvent",
"run number from event;;run number (from event)", 1, -0.5, 0.5);
1188 EventFeatures.
make<TH1F>(
"h_nTracks",
"number of tracks per event;n_{tracks}/event;n_{events}", 300, -0.5, 299.5);
1190 EventFeatures.
make<TH1F>(
"h_nClus",
"number of track clusters;n_{clusters}/event;n_{events}", 50, -0.5, 49.5);
1192 "h_nOfflineVertices",
"number of offline reconstructed vertices;n_{vertices}/event;n_{events}", 50, -0.5, 49.5);
1193 h_runNumber = EventFeatures.
make<TH1F>(
"h_runNumber",
"run number;run number;n_{events}", 100000, 250000., 350000.);
1195 "h_xOfflineVertex",
"x-coordinate of offline vertex;x_{vertex};n_{events}", 100, -0.1, 0.1);
1197 "h_yOfflineVertex",
"y-coordinate of offline vertex;y_{vertex};n_{events}", 100, -0.1, 0.1);
1199 "h_zOfflineVertex",
"z-coordinate of offline vertex;z_{vertex};n_{events}", 100, -30., 30.);
1201 "h_xErrOfflineVertex",
"x-coordinate error of offline vertex;err_{x}^{vtx};n_{events}", 100, 0., 0.01);
1203 "h_yErrOfflineVertex",
"y-coordinate error of offline vertex;err_{y}^{vtx};n_{events}", 100, 0., 0.01);
1205 "h_zErrOfflineVertex",
"z-coordinate error of offline vertex;err_{z}^{vtx};n_{events}", 100, 0., 10.);
1206 h_BSx0 = EventFeatures.
make<TH1F>(
"h_BSx0",
"x-coordinate of reco beamspot;x^{BS}_{0};n_{events}", 100, -0.1, 0.1);
1207 h_BSy0 = EventFeatures.
make<TH1F>(
"h_BSy0",
"y-coordinate of reco beamspot;y^{BS}_{0};n_{events}", 100, -0.1, 0.1);
1208 h_BSz0 = EventFeatures.
make<TH1F>(
"h_BSz0",
"z-coordinate of reco beamspot;z^{BS}_{0};n_{events}", 100, -1., 1.);
1210 EventFeatures.
make<TH1F>(
"h_Beamsigmaz",
"z-coordinate beam width;#sigma_{Z}^{beam};n_{events}", 100, 0., 1.);
1212 EventFeatures.
make<TH1F>(
"h_BeamWidthX",
"x-coordinate beam width;#sigma_{X}^{beam};n_{events}", 100, 0., 0.01);
1214 EventFeatures.
make<TH1F>(
"h_BeamWidthY",
"y-coordinate beam width;#sigma_{Y}^{beam};n_{events}", 100, 0., 0.01);
1216 h_etaMax = EventFeatures.
make<TH1F>(
"etaMax",
"etaMax", 1, -0.5, 0.5);
1217 h_pTinfo = EventFeatures.
make<TH1F>(
"pTinfo",
"pTinfo", 3, -1.5, 1.5);
1218 h_pTinfo->GetXaxis()->SetBinLabel(1,
"n. bins");
1219 h_pTinfo->GetXaxis()->SetBinLabel(2,
"pT min");
1220 h_pTinfo->GetXaxis()->SetBinLabel(3,
"pT max");
1222 h_nbins = EventFeatures.
make<TH1F>(
"nbins",
"nbins", 1, -0.5, 0.5);
1223 h_nLadders = EventFeatures.
make<TH1F>(
"nladders",
"n. ladders", 1, -0.5, 0.5);
1224 h_nModZ = EventFeatures.
make<TH1F>(
"nModZ",
"n. modules along z", 1, -0.5, 0.5);
1229 h_probePt_ = ProbeFeatures.
make<TH1F>(
"h_probePt",
"p_{T} of probe track;track p_{T} (GeV); tracks", 100, 0., 50.);
1231 "h_probePtRebin",
"p_{T} of probe track;track p_{T} (GeV); tracks",
mypT_bins_.size() - 1,
mypT_bins_.data());
1232 h_probeP_ = ProbeFeatures.
make<TH1F>(
"h_probeP",
"momentum of probe track;track p (GeV); tracks", 100, 0., 100.);
1235 h_probePhi_ = ProbeFeatures.
make<TH1F>(
"h_probePhi",
"#phi of probe track;track #phi (rad);tracks", 100, -3.15, 3.15);
1238 ProbeFeatures.
make<TH2F>(
"h2_probeEtaPhi",
1239 "probe track #phi vs #eta;#eta of probe track;track #phi of probe track (rad); tracks",
1247 "probe track p_{T} vs #eta;#eta of probe track;track p_{T} (GeV); tracks",
1256 ProbeFeatures.
make<TH1F>(
"h_probeChi2",
"#chi^{2} of probe track;track #chi^{2}; tracks", 100, 0., 100.);
1258 "h_probeNormChi2",
" normalized #chi^{2} of probe track;track #chi^{2}/ndof; tracks", 100, 0., 10.);
1260 ProbeFeatures.
make<TH1F>(
"h_probeCharge",
"charge of probe track;track charge Q;tracks", 3, -1.5, 1.5);
1262 ProbeFeatures.
make<TH1F>(
"h_probeQoverP",
"q/p of probe track; track Q/p (GeV^{-1});tracks", 200, -1., 1.);
1264 "h_probedzRecoV",
"d_{z}(V_{offline}) of probe track;track d_{z}(V_{off}) (cm);tracks", 200, -1., 1.);
1266 "h_probedxyRecoV",
"d_{xy}(V_{offline}) of probe track;track d_{xy}(V_{off}) (cm);tracks", 200, -1., 1.);
1268 "h_probedzRefitV",
"d_{z}(V_{refit}) of probe track;track d_{z}(V_{fit}) (cm);tracks", 200, -0.5, 0.5);
1270 "h_probesignIPRefitV",
"ip_{2D}(V_{refit}) of probe track;track ip_{2D}(V_{fit}) (cm);tracks", 200, -1., 1.);
1272 "h_probedxyRefitV",
"d_{xy}(V_{refit}) of probe track;track d_{xy}(V_{fit}) (cm);tracks", 200, -0.5, 0.5);
1275 "h_probez0RefitV",
"z_{0}(V_{refit}) of probe track;track z_{0}(V_{fit}) (cm);tracks", 200, -1., 1.);
1277 "h_probed0RefitV",
"d_{0}(V_{refit}) of probe track;track d_{0}(V_{fit}) (cm);tracks", 200, -1., 1.);
1280 "h_probed3DRefitV",
"d_{3D}(V_{refit}) of probe track;track d_{3D}(V_{fit}) (cm);tracks", 200, 0., 1.);
1282 "h_probeReszRefitV",
"z_{track} -z_{V_{refit}};track res_{z}(V_{refit}) (cm);tracks", 200, -1., 1.);
1285 "h_probeRecoVSigZ",
"Longitudinal DCA Significance (reco);d_{z}(V_{off})/#sigma_{dz};tracks", 100, -8, 8);
1287 "h_probeRecoVSigXY",
"Transverse DCA Significance (reco);d_{xy}(V_{off})/#sigma_{dxy};tracks", 100, -8, 8);
1289 "h_probeRefitVSigZ",
"Longitudinal DCA Significance (refit);d_{z}(V_{fit})/#sigma_{dz};tracks", 100, -8, 8);
1291 "h_probeRefitVSigXY",
"Transverse DCA Significance (refit);d_{xy}(V_{fit})/#sigma_{dxy};tracks", 100, -8, 8);
1293 "h_probeRefitVSig3D",
"3D DCA Significance (refit);d_{3D}/#sigma_{3D};tracks", 100, 0., 20.);
1295 ProbeFeatures.
make<TH1F>(
"h_probeRefitVLogSig3D",
1296 "log_{10}(3D DCA-Significance) (refit);log_{10}(d_{3D}/#sigma_{3D});tracks",
1301 "h_probeRefitVSigResZ",
1302 "Longitudinal residual significance (refit);(z_{track} -z_{V_{fit}})/#sigma_{res_{z}};tracks",
1307 h_probeHits_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechits",
"N_{hits} ;N_{hits} ;tracks", 40, -0.5, 39.5);
1308 h_probeHits1D_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechits1D",
"N_{hits} 1D ;N_{hits} 1D ;tracks", 40, -0.5, 39.5);
1309 h_probeHits2D_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechits2D",
"N_{hits} 2D ;N_{hits} 2D ;tracks", 40, -0.5, 39.5);
1311 ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTIB",
"N_{hits} TIB ;N_{hits} TIB;tracks", 40, -0.5, 39.5);
1313 ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTOB",
"N_{hits} TOB ;N_{hits} TOB;tracks", 40, -0.5, 39.5);
1315 ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTID",
"N_{hits} TID ;N_{hits} TID;tracks", 40, -0.5, 39.5);
1317 ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTEC",
"N_{hits} TEC ;N_{hits} TEC;tracks", 40, -0.5, 39.5);
1319 ProbeFeatures.
make<TH1F>(
"h_probeNRechitsBPIX",
"N_{hits} BPIX;N_{hits} BPIX;tracks", 40, -0.5, 39.5);
1321 ProbeFeatures.
make<TH1F>(
"h_probeNRechitsFPIX",
"N_{hits} FPIX;N_{hits} FPIX;tracks", 40, -0.5, 39.5);
1324 "h_probeL1Ladder",
"Ladder number (L1 hit); ladder number",
nLadders_ + 2, -1.5,
nLadders_ + 0.5);
1326 "h_probeL1Module",
"Module number (L1 hit); module number",
nModZ_ + 2, -1.5,
nModZ_ + 0.5);
1329 "Position in Layer 1 of first hit;module number;ladder number",
1338 "Position in Layer 1 of first hit;module number;ladder number",
1346 ProbeFeatures.
make<TH1I>(
"h_probeHasBPixL1Overlap",
"n. hits in L1;n. L1-BPix hits;tracks", 5, -0.5, 4.5);
1348 "h_probeL1ClusterProb",
1349 "log_{10}(Cluster Probability) for Layer1 hits;log_{10}(cluster probability); n. Layer1 hits",
1357 "h_fitVtxNtracks",
"N_{trks} used in vertex fit;N^{fit}_{tracks};vertices", 100, -0.5, 99.5);
1359 "h_fitVtxNdof",
"N_{DOF} of vertex fit;N_{DOF} of refit vertex;vertices", 100, -0.5, 99.5);
1361 "h_fitVtxChi2",
"#chi^{2} of vertex fit;vertex #chi^{2};vertices", 100, -0.5, 99.5);
1363 "h_fitVtxChi2ndf",
"#chi^{2}/ndf of vertex fit;vertex #chi^{2}/ndf;vertices", 100, -0.5, 9.5);
1365 "h_fitVtxChi2Prob",
"Prob(#chi^{2},ndf) of vertex fit;Prob(#chi^{2},ndf);vertices", 40, 0., 1.);
1367 "h_fitVtxTrackWeights",
"track weights associated to track;track weights;tracks", 40, 0., 1.);
1369 "h_fitVtxTrackAverageWeight_",
"average track weight per vertex;#LT track weight #GT;vertices", 40, 0., 1.);
1374 RecoVertexFeatures.
make<TH1F>(
"h_recoVtxNtracks",
"N^{vtx}_{trks};N^{vtx}_{trks};vertices", 100, -0.5, 99.5);
1376 RecoVertexFeatures.
make<TH1F>(
"h_recoVtxChi2ndf",
"#chi^{2}/ndf vtx;#chi^{2}/ndf vtx;vertices", 10, -0.5, 9.5);
1378 "h_recoVtxChi2Prob",
"Prob(#chi^{2},ndf);Prob(#chi^{2},ndf);vertices", 40, 0., 1.);
1380 RecoVertexFeatures.
make<TH1F>(
"h_recoVtxSumPt",
"Sum(p^{trks}_{T});Sum(p^{trks}_{T});vertices", 100, 0., 200.);
1545 for (
unsigned int iLadder = 0; iLadder <
nLadders_; iLadder++) {
1546 for (
unsigned int iModule = 0; iModule <
nModZ_; iModule++) {
1548 AbsL1Map.
make<TH1F>(Form(
"histo_dxy_ladder%i_module%i", iLadder, iModule),
1549 Form(
"d_{xy} ladder=%i module=%i;d_{xy} [#mum];tracks", iLadder, iModule),
1555 AbsL1Map.
make<TH1F>(Form(
"histo_dz_ladder%i_module%i", iLadder, iModule),
1556 Form(
"d_{z} ladder=%i module=%i;d_{z} [#mum];tracks", iLadder, iModule),
1562 NormL1Map.
make<TH1F>(Form(
"histo_norm_dxy_ladder%i_module%i", iLadder, iModule),
1563 Form(
"d_{xy} ladder=%i module=%i;d_{xy}/#sigma_{d_{xy}};tracks", iLadder, iModule),
1569 NormL1Map.
make<TH1F>(Form(
"histo_norm_dz_ladder%i_module%i", iLadder, iModule),
1570 Form(
"d_{z} ladder=%i module=%i;d_{z}/#sigma_{d_{z}};tracks", iLadder, iModule),
1593 Form(
"histo_dxy_eta_plot%i_phi_plot%i",
i,
j),
1594 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy};tracks", etaF, etaL, phiF, phiL),
1600 Form(
"histo_dz_eta_plot%i_phi_plot%i",
i,
j),
1601 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z};tracks", etaF, etaL, phiF, phiL),
1607 Form(
"histo_d3D_eta_plot%i_phi_plot%i",
i,
j),
1608 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{3D};tracks", etaF, etaL, phiF, phiL),
1614 Form(
"histo_norm_dxy_eta_plot%i_phi_plot%i",
i,
j),
1615 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy}/#sigma_{d_{xy}};tracks",
1625 Form(
"histo_norm_dz_eta_plot%i_phi_plot%i",
i,
j),
1626 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z}/#sigma_{d_{z}};tracks",
1636 Form(
"histo_norm_d3D_eta_plot%i_phi_plot%i",
i,
j),
1637 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{3D}/#sigma_{d_{3D}};tracks",
1653 "d_{xy} vs track #phi;track #phi [rad];track d_{xy}(PV) [#mum]",
1662 "d_{z} vs track #phi;track #phi [rad];track d_{z}(PV) [#mum]",
1672 "d_{xy}/#sigma_{d_{xy}} vs track #phi;track #phi [rad];track d_{xy}(PV)/#sigma_{d_{xy}}",
1681 BiasVsParameter.
make<TH2F>(
"h2_n_dz_vs_phi",
1682 "d_{z}/#sigma_{d_{z}} vs track #phi;track #phi [rad];track d_{z}(PV)/#sigma_{d_{z}}",
1691 "d_{xy} vs track #eta;track #eta;track d_{xy}(PV) [#mum]",
1700 "d_{z} vs track #eta;track #eta;track d_{z}(PV) [#mum]",
1709 BiasVsParameter.
make<TH2F>(
"h2_n_dxy_vs_eta",
1710 "d_{xy}/#sigma_{d_{xy}} vs track #eta;track #eta;track d_{xy}(PV)/#sigma_{d_{xy}}",
1719 "d_{z}/#sigma_{d_{z}} vs track #eta;track #eta;track d_{z}(PV)/#sigma_{d_{z}}",
1742 "#LT d_{xy} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy} #GT [#mum]",
1749 "#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{xy}} [#mum]",
1756 "#LT d_{z} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z} #GT [#mum]",
1763 "#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{z}} [#mum]",
1769 "means_dxy_eta",
"#LT d_{xy} #GT vs #eta sector;#eta (sector);#LT d_{xy} #GT [#mum]",
nBins_,
lowedge,
highedge);
1772 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{xy}} [#mum]",
1778 "means_dz_eta",
"#LT d_{z} #GT vs #eta sector;#eta (sector);#LT d_{z} #GT [#mum]",
nBins_,
lowedge,
highedge);
1781 "widths_dz_eta",
"#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{z}} [#mum]",
nBins_,
lowedge,
highedge);
1784 "norm_means_dxy_phi",
1785 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy}/#sigma_{d_{xy}} #GT",
1791 "norm_widths_dxy_phi",
1792 "width(d_{xy}/#sigma_{d_{xy}}) vs #phi sector;#varphi (sector) [degrees]; width(d_{xy}/#sigma_{d_{xy}})",
1798 "norm_means_dz_phi",
1799 "#LT d_{z}/#sigma_{d_{z}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z}/#sigma_{d_{z}} #GT",
1805 "norm_widths_dz_phi",
1806 "width(d_{z}/#sigma_{d_{z}}) vs #phi sector;#varphi (sector) [degrees];width(d_{z}/#sigma_{d_{z}})",
1812 "norm_means_dxy_eta",
1813 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #eta sector;#eta (sector);#LT d_{xy}/#sigma_{d_{z}} #GT",
1819 "norm_widths_dxy_eta",
1820 "width(d_{xy}/#sigma_{d_{xy}}) vs #eta sector;#eta (sector);width(d_{xy}/#sigma_{d_{z}})",
1827 "#LT d_{z}/#sigma_{d_{z}} #GT vs #eta sector;#eta (sector);#LT d_{z}/#sigma_{d_{z}} #GT",
1834 "width(d_{z}/#sigma_{d_{z}}) vs #eta sector;#eta (sector);width(d_{z}/#sigma_{d_{z}})",
1842 "#LT d_{xy} #GT vs pT;p_{T} [GeV];#LT d_{xy} #GT [#mum]",
1847 "#sigma_{d_{xy}} vs pT;p_{T} [GeV];#sigma_{d_{xy}} [#mum]",
1852 "means_dz_pT",
"#LT d_{z} #GT vs pT;p_{T} [GeV];#LT d_{z} #GT [#mum]",
mypT_bins_.size() - 1,
mypT_bins_.data());
1855 "#sigma_{d_{z}} vs pT;p_{T} [GeV];#sigma_{d_{z}} [#mum]",
1861 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs pT;p_{T} [GeV];#LT d_{xy}/#sigma_{d_{xy}} #GT",
1867 "width(d_{xy}/#sigma_{d_{xy}}) vs pT;p_{T} [GeV]; width(d_{xy}/#sigma_{d_{xy}})",
1873 "#LT d_{z}/#sigma_{d_{z}} #GT vs pT;p_{T} [GeV];#LT d_{z}/#sigma_{d_{z}} #GT",
1879 "width(d_{z}/#sigma_{d_{z}}) vs pT;p_{T} [GeV];width(d_{z}/#sigma_{d_{z}})",
1885 "#LT d_{xy} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{xy} #GT [#mum]",
1891 "#sigma_{d_{xy}} vs p_{T};p_{T}(|#eta|<1.) [GeV];#sigma_{d_{xy}} [#mum]",
1897 "#LT d_{z} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{z} #GT [#mum]",
1903 "#sigma_{d_{z}} vs p_{T};p_{T}(|#eta|<1.) [GeV];#sigma_{d_{z}} [#mum]",
1908 "norm_means_dxy_pTCentral",
1909 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{xy}/#sigma_{d_{z}} #GT",
1914 "norm_widths_dxy_pTCentral",
1915 "width(d_{xy}/#sigma_{d_{xy}}) vs p_{T};p_{T}(|#eta|<1.) [GeV];width(d_{xy}/#sigma_{d_{z}})",
1920 "norm_means_dz_pTCentral",
1921 "#LT d_{z}/#sigma_{d_{z}} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{z}/#sigma_{d_{z}} #GT",
1926 "norm_widths_dz_pTCentral",
1927 "width(d_{z}/#sigma_{d_{z}}) vs p_{T};p_{T}(|#eta|<1.) [GeV];width(d_{z}/#sigma_{d_{z}})",
1934 "#LT d_{xy} #GT map;#eta (sector);#varphi (sector) [degrees]",
1943 "#LT d_{z} #GT map;#eta (sector);#varphi (sector) [degrees]",
1952 "#LT d_{xy}/#sigma_{d_{xy}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1961 "#LT d_{z}/#sigma_{d_{z}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1970 "#sigma_{d_{xy}} map;#eta (sector);#varphi (sector) [degrees]",
1979 "#sigma_{d_{z}} map;#eta (sector);#varphi (sector) [degrees]",
1989 "width(d_{xy}/#sigma_{d_{xy}}) map;#eta (sector);#varphi (sector) [degrees]",
1998 "width(d_{z}/#sigma_{d_{z}}) map;#eta (sector);#varphi (sector) [degrees]",
2010 "Median of d_{xy} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}) [#mum]",
2017 "Median absolute deviation of d_{xy} vs #phi sector;#varphi (sector) [degrees];MAD(d_{xy}) [#mum]",
2024 "Median of d_{z} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}) [#mum]",
2031 "Median absolute deviation of d_{z} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}) [#mum]",
2038 "Median of d_{xy} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}) [#mum]",
2045 "Median absolute deviation of d_{xy} vs #eta sector;#eta (sector);MAD(d_{xy}) [#mum]",
2052 "Median of d_{z} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}) [#mum]",
2059 "Median absolute deviation of d_{z} vs #eta sector;#eta (sector);MAD(d_{z}) [#mum]",
2065 "norm_medians_dxy_phi",
2066 "Median of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}/#sigma_{d_{xy}})",
2072 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #phi " 2073 "sector;#varphi (sector) [degrees]; MAD(d_{xy}/#sigma_{d_{xy}})",
2079 "norm_medians_dz_phi",
2080 "Median of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
2086 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi " 2087 "(sector) [degrees];MAD(d_{z}/#sigma_{d_{z}})",
2093 "norm_medians_dxy_eta",
2094 "Median of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}/#sigma_{d_{z}})",
2100 "norm_MADs_dxy_eta",
2101 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);MAD(d_{xy}/#sigma_{d_{z}})",
2107 "norm_medians_dz_eta",
2108 "Median of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
2115 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);MAD(d_{z}/#sigma_{d_{z}})",
2164 Form(
"histo_dxy_eta_plot%i_phi_plot%i",
i,
j),
2165 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy} [#mum];tracks", etaF, etaL, phiF, phiL),
2171 Form(
"histo_dxy_eta_plot%i_phi_plot%i",
i,
j),
2172 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z} [#mum];tracks", etaF, etaL, phiF, phiL),
2178 Form(
"histo_norm_dxy_eta_plot%i_phi_plot%i",
i,
j),
2179 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy}/#sigma_{d_{xy}};tracks",
2189 Form(
"histo_norm_dxy_eta_plot%i_phi_plot%i",
i,
j),
2190 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z}/#sigma_{d_{z}};tracks",
2214 MeanBiasTrendsDir.
make<TH1F>(
"means_dxy_phi",
2215 "#LT d_{xy} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy} #GT [#mum]",
2222 "#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{xy}} [#mum]",
2228 MeanBiasTrendsDir.
make<TH1F>(
"means_dz_phi",
2229 "#LT d_{z} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z} #GT [#mum]",
2235 WidthBiasTrendsDir.
make<TH1F>(
"widths_dz_phi",
2236 "#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{z}} [#mum]",
2242 "means_dxy_eta",
"#LT d_{xy} #GT vs #eta sector;#eta (sector);#LT d_{xy} #GT [#mum]",
nBins_,
lowedge,
highedge);
2245 WidthBiasTrendsDir.
make<TH1F>(
"widths_dxy_eta",
2246 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{xy}} [#mum]",
2252 "means_dz_eta",
"#LT d_{z} #GT vs #eta sector;#eta (sector);#LT d_{z} #GT [#mum]",
nBins_,
lowedge,
highedge);
2255 WidthBiasTrendsDir.
make<TH1F>(
"widths_dz_eta",
2256 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{z}} [#mum]",
2262 "norm_means_dxy_phi",
2263 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy}/#sigma_{d_{xy}} #GT",
2269 "norm_widths_dxy_phi",
2270 "width(d_{xy}/#sigma_{d_{xy}}) vs #phi sector;#varphi (sector) [degrees]; width(d_{xy}/#sigma_{d_{xy}})",
2276 "norm_means_dz_phi",
2277 "#LT d_{z}/#sigma_{d_{z}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z}/#sigma_{d_{z}} #GT",
2283 "norm_widths_dz_phi",
2284 "width(d_{z}/#sigma_{d_{z}}) vs #phi sector;#varphi (sector) [degrees];width(d_{z}/#sigma_{d_{z}})",
2290 "norm_means_dxy_eta",
2291 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #eta sector;#eta (sector);#LT d_{xy}/#sigma_{d_{z}} #GT",
2297 "norm_widths_dxy_eta",
2298 "width(d_{xy}/#sigma_{d_{xy}}) vs #eta sector;#eta (sector);width(d_{xy}/#sigma_{d_{z}})",
2304 "norm_means_dz_eta",
2305 "#LT d_{z}/#sigma_{d_{z}} #GT vs #eta sector;#eta (sector);#LT d_{z}/#sigma_{d_{z}} #GT",
2311 "norm_widths_dz_eta",
2312 "width(d_{z}/#sigma_{d_{z}}) vs #eta sector;#eta (sector);width(d_{z}/#sigma_{d_{z}})",
2320 "#LT d_{xy} #GT map;#eta (sector);#varphi (sector) [degrees]",
2329 "#LT d_{z} #GT map;#eta (sector);#varphi (sector) [degrees]",
2338 Mean2DBiasMapsDir.
make<TH2F>(
"norm_means_dxy_map",
2339 "#LT d_{xy}/#sigma_{d_{xy}} #GT map;#eta (sector);#varphi (sector) [degrees]",
2348 Mean2DBiasMapsDir.
make<TH2F>(
"norm_means_dz_map",
2349 "#LT d_{z}/#sigma_{d_{z}} #GT map;#eta (sector);#varphi (sector) [degrees]",
2358 "#sigma_{d_{xy}} map;#eta (sector);#varphi (sector) [degrees]",
2367 "#sigma_{d_{z}} map;#eta (sector);#varphi (sector) [degrees]",
2376 Width2DBiasMapsDir.
make<TH2F>(
"norm_widths_dxy_map",
2377 "width(d_{xy}/#sigma_{d_{xy}}) map;#eta (sector);#varphi (sector) [degrees]",
2386 Width2DBiasMapsDir.
make<TH2F>(
"norm_widths_dz_map",
2387 "width(d_{z}/#sigma_{d_{z}}) map;#eta (sector);#varphi (sector) [degrees]",
2399 "Median of d_{xy} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}) [#mum]",
2406 "Median absolute deviation of d_{xy} vs #phi sector;#varphi (sector) [degrees];MAD(d_{xy}) [#mum]",
2413 "Median of d_{z} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}) [#mum]",
2420 "Median absolute deviation of d_{z} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}) [#mum]",
2426 MedianBiasTrendsDir.
make<TH1F>(
"medians_dxy_eta",
2427 "Median of d_{xy} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}) [#mum]",
2434 "Median absolute deviation of d_{xy} vs #eta sector;#eta (sector);MAD(d_{xy}) [#mum]",
2440 MedianBiasTrendsDir.
make<TH1F>(
"medians_dz_eta",
2441 "Median of d_{z} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}) [#mum]",
2447 MADBiasTrendsDir.
make<TH1F>(
"MADs_dz_eta",
2448 "Median absolute deviation of d_{z} vs #eta sector;#eta (sector);MAD(d_{z}) [#mum]",
2454 "norm_medians_dxy_phi",
2455 "Median of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}/#sigma_{d_{xy}})",
2461 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #phi " 2462 "sector;#varphi (sector) [degrees]; MAD(d_{xy}/#sigma_{d_{xy}})",
2468 "norm_medians_dz_phi",
2469 "Median of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
2475 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #phi " 2476 "sector;#varphi (sector) [degrees];MAD(d_{z}/#sigma_{d_{z}})",
2482 "norm_medians_dxy_eta",
2483 "Median of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}/#sigma_{d_{z}})",
2489 "norm_MADs_dxy_eta",
2490 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);MAD(d_{xy}/#sigma_{d_{z}})",
2496 "norm_medians_dz_eta",
2497 "Median of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
2504 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);MAD(d_{z}/#sigma_{d_{z}})",
2519 <<
"*********************************************************************************\n" 2520 <<
"* The configuration (ptOfProbe > " <<
ptOfProbe_ 2521 <<
"GeV) is not correctly set for current value of magnetic field \n" 2522 <<
"* Switching it to 0. !!! \n" 2523 <<
"*********************************************************************************" << std::endl;
2538 const time_t start_time = times.first / 1000000;
2540 <<
runNumber_ <<
" has start time: " << times.first <<
" - " << times.second << std::endl;
2542 <<
"human readable time: " << std::asctime(std::gmtime(&start_time)) << std::endl;
2564 edm::LogInfo(
"tracker geometry read") <<
"There are: " << pDD->
dets().size() <<
" detectors";
2603 <<
" pixel phase2 setup, nLadders: " <<
nLadders_ <<
" nModules:" <<
nModZ_;
2611 <<
" pixel phase1 setup, nLadders: " <<
nLadders_ <<
" nModules:" <<
nModZ_;
2618 <<
" pixel phase0 setup, nLadders: " <<
nLadders_ <<
" nModules:" <<
nModZ_;
2636 if (
h_etaMax->GetEntries() == 0.) {
2663 unsigned int count = 1;
2675 edm::LogInfo(
"PrimaryVertexValidation") <<
"######################################\n" 2676 <<
"# PrimaryVertexValidation::endJob()\n" 2677 <<
"# Number of analyzed events: " <<
Nevt_ <<
"\n" 2678 <<
"######################################";
2683 "means_dxy_modZ",
"#LT d_{xy} #GT vs modZ;module number (Z);#LT d_{xy} #GT [#mum]",
nModZ_, 0.,
nModZ_);
2686 "widths_dxy_modZ",
"#sigma_{d_{xy}} vs modZ;module number (Z);#sigma_{d_{xy}} [#mum]",
nModZ_, 0.,
nModZ_);
2689 "means_dz_modZ",
"#LT d_{z} #GT vs modZ;module number (Z);#LT d_{z} #GT [#mum]",
nModZ_, 0.,
nModZ_);
2692 "widths_dz_modZ",
"#sigma_{d_{z}} vs modZ;module number (Z);#sigma_{d_{z}} [#mum]",
nModZ_, 0.,
nModZ_);
2695 "#LT d_{xy} #GT vs ladder;ladder number (#phi);#LT d_{xy} #GT [#mum]",
2702 "#sigma_{d_{xy}} vs ladder;ladder number (#phi);#sigma_{d_{xy}} [#mum]",
2708 "means_dz_ladder",
"#LT d_{z} #GT vs ladder;ladder number (#phi);#LT d_{z} #GT [#mum]",
nLadders_, 0.,
nLadders_);
2712 "#sigma_{d_{z}} vs ladder;ladder number (#phi);#sigma_{d_{z}} [#mum]",
2718 "norm_means_dxy_modZ",
2719 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs modZ;module number (Z);#LT d_{xy}/#sigma_{d_{xy}} #GT",
2725 "norm_widths_dxy_modZ",
2726 "width(d_{xy}/#sigma_{d_{xy}}) vs modZ;module number (Z); width(d_{xy}/#sigma_{d_{xy}})",
2733 "#LT d_{z}/#sigma_{d_{z}} #GT vs modZ;module number (Z);#LT d_{z}/#sigma_{d_{z}} #GT",
2740 "width(d_{z}/#sigma_{d_{z}}) vs pT;module number (Z);width(d_{z}/#sigma_{d_{z}})",
2746 "norm_means_dxy_ladder",
2747 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs ladder;ladder number (#phi);#LT d_{xy}/#sigma_{d_{z}} #GT",
2753 "norm_widths_dxy_ladder",
2754 "width(d_{xy}/#sigma_{d_{xy}}) vs ladder;ladder number (#phi);width(d_{xy}/#sigma_{d_{z}})",
2760 "norm_means_dz_ladder",
2761 "#LT d_{z}/#sigma_{d_{z}} #GT vs ladder;ladder number (#phi);#LT d_{z}/#sigma_{d_{z}} #GT",
2767 "norm_widths_dz_ladder",
2768 "width(d_{z}/#sigma_{d_{z}}) vs ladder;ladder number (#phi);width(d_{z}/#sigma_{d_{z}})",
2776 "#LT d_{xy} #GT map;module number [z];ladder number [#varphi]",
2785 "#LT d_{z} #GT map;module number [z];ladder number [#varphi]",
2795 "#LT d_{xy}/#sigma_{d_{xy}} #GT map;module number [z];ladder number [#varphi]",
2804 "#LT d_{z}/#sigma_{d_{z}} #GT map;module number [z];ladder number [#varphi]",
2813 "#sigma_{d_{xy}} map;module number [z];ladder number [#varphi]",
2822 "#sigma_{d_{z}} map;module number [z];ladder number [#varphi]",
2832 "width(d_{xy}/#sigma_{d_{xy}}) map;module number [z];ladder number [#varphi]",
2842 "width(d_{z}/#sigma_{d_{z}}) map;module number [z];ladder number [#varphi]",
3027 <<
runInfo.product()->m_start_time_str <<
" " <<
runInfo.product()->m_stop_time_str << std::endl;
3029 return std::make_pair(
runInfo.product()->m_start_time_ll,
runInfo.product()->m_stop_time_ll);
3037 double average_current =
runInfo.product()->m_avg_current;
3038 bool isOn = (average_current > 2000.);
3041 return ((isOn && !is0T) || (!isOn && is0T));
3120 TH1F* residualsPlot[100],
3126 char phibincenter[129];
3130 char etabincenter[129];
3138 trendPlot->SetBinContent(
i + 1, mean_);
3139 trendPlot->SetBinError(
i + 1, meanErr_);
3145 trendPlot->SetBinContent(
i + 1, width_);
3146 trendPlot->SetBinError(
i + 1, widthErr_);
3152 trendPlot->SetBinContent(
i + 1, median_);
3153 trendPlot->SetBinError(
i + 1, medianErr_);
3159 trendPlot->SetBinContent(
i + 1, mad_);
3160 trendPlot->SetBinError(
i + 1, madErr_);
3165 <<
"fillTrendPlot() " << fitPar_ <<
" unknown estimator!" << std::endl;
3169 if (var_.find(
"eta") != std::string::npos) {
3170 trendPlot->GetXaxis()->SetBinLabel(
i + 1, etabincenter);
3171 }
else if (var_.find(
"phi") != std::string::npos) {
3172 trendPlot->GetXaxis()->SetBinLabel(
i + 1, phibincenter);
3175 <<
"fillTrendPlot() " << var_ <<
" unknown track parameter!" << std::endl;
3182 std::vector<TH1F*>&
h,
3187 for (
auto iterator =
h.begin(); iterator !=
h.end(); iterator++) {
3193 float mean_ = myFit.first.value();
3194 float meanErr_ = myFit.first.error();
3195 trendPlot->SetBinContent(
bin, mean_);
3196 trendPlot->SetBinError(
bin, meanErr_);
3200 float width_ = myFit.second.value();
3201 float widthErr_ = myFit.second.error();
3202 trendPlot->SetBinContent(
bin, width_);
3203 trendPlot->SetBinError(
bin, widthErr_);
3209 trendPlot->SetBinContent(
bin, median_);
3210 trendPlot->SetBinError(
bin, medianErr_);
3216 trendPlot->SetBinContent(
bin, mad_);
3217 trendPlot->SetBinError(
bin, madErr_);
3222 <<
"fillTrendPlotByIndex() " << fitPar_ <<
" unknown estimator!" << std::endl;
3226 char bincenter[129];
3230 trendPlot->GetXaxis()->SetBinLabel(
bin, bincenter);
3234 trendPlot->GetXaxis()->SetBinLabel(
bin, bincenter);
3244 TH1F* residualsMapPlot[100][100],
3250 for (
int i = 0;
i < nYBins_; ++
i) {
3251 char phibincenter[129];
3255 if (nXBins_ == nYBins_) {
3256 trendMap->GetYaxis()->SetBinLabel(
i + 1, phibincenter);
3259 for (
int j = 0;
j < nXBins_; ++
j) {
3260 char etabincenter[129];
3265 if (nXBins_ == nYBins_) {
3266 trendMap->GetXaxis()->SetBinLabel(
j + 1, etabincenter);
3274 trendMap->SetBinContent(
j + 1,
i + 1, mean_);
3275 trendMap->SetBinError(
j + 1,
i + 1, meanErr_);
3281 trendMap->SetBinContent(
j + 1,
i + 1, width_);
3282 trendMap->SetBinError(
j + 1,
i + 1, widthErr_);
3288 trendMap->SetBinContent(
j + 1,
i + 1, median_);
3289 trendMap->SetBinError(
j + 1,
i + 1, medianErr_);
3295 trendMap->SetBinContent(
j + 1,
i + 1, mad_);
3296 trendMap->SetBinError(
j + 1,
i + 1, madErr_);
3300 edm::LogWarning(
"PrimaryVertexValidation:") <<
" fillMap() " << fitPar_ <<
" unknown estimator!" << std::endl;
3310 if (
a.tracksSize() !=
b.tracksSize())
3311 return a.tracksSize() >
b.tracksSize() ?
true :
false;
3313 return a.chi2() <
b.chi2() ?
true :
false;
3326 double vzErr = 0.0, vxErr = 0.0, vyErr = 0.0;
3327 vtxPoint =
vertex.position();
3332 double dxy = 0.0,
dz = 0.0, dxysigma = 0.0, dzsigma = 0.0;
3335 dxysigma =
sqrt(
track.d0Error() *
track.d0Error() + vxErr * vyErr);
3336 dzsigma =
sqrt(
track.dzError() *
track.dzError() + vzErr * vzErr);
3344 if (
track.ptError() /
track.pt() > ptErrMax_)
3354 TH1F::SetDefaultSumw2(kTRUE);
3356 std::map<std::string, TH1*>
h;
3361 h[
"pseudorapidity_" +
type] =
3362 dir.make<TH1F>((
"rapidity_" +
type).c_str(),
"track pseudorapidity; track #eta; tracks", 100, -3., 3.);
3363 h[
"z0_" +
type] =
dir.make<TH1F>((
"z0_" +
type).c_str(),
"track z_{0};track z_{0} (cm);tracks", 80, -40., 40.);
3364 h[
"phi_" +
type] =
dir.make<TH1F>((
"phi_" +
type).c_str(),
"track #phi; track #phi;tracks", 80, -
M_PI,
M_PI);
3365 h[
"eta_" +
type] =
dir.make<TH1F>((
"eta_" +
type).c_str(),
"track #eta; track #eta;tracks", 80, -4., 4.);
3366 h[
"pt_" +
type] =
dir.make<TH1F>((
"pt_" +
type).c_str(),
"track p_{T}; track p_{T} [GeV];tracks", 100, 0., 20.);
3367 h[
"p_" +
type] =
dir.make<TH1F>((
"p_" +
type).c_str(),
"track p; track p [GeV];tracks", 100, 0., 20.);
3368 h[
"found_" +
type] =
3369 dir.make<TH1F>((
"found_" +
type).c_str(),
"n. found hits;n^{found}_{hits};tracks", 30, 0., 30.);
3370 h[
"lost_" +
type] =
dir.make<TH1F>((
"lost_" +
type).c_str(),
"n. lost hits;n^{lost}_{hits};tracks", 20, 0., 20.);
3371 h[
"nchi2_" +
type] =
3372 dir.make<TH1F>((
"nchi2_" +
type).c_str(),
"normalized track #chi^{2};track #chi^{2}/ndf;tracks", 100, 0., 20.);
3373 h[
"rstart_" +
type] =
dir.make<TH1F>(
3374 (
"rstart_" +
type).c_str(),
"track start radius; track innermost radius r (cm);tracks", 100, 0., 20.);
3375 h[
"expectedInner_" +
type] =
dir.make<TH1F>(
3376 (
"expectedInner_" +
type).c_str(),
"n. expected inner hits;n^{expected}_{inner};tracks", 10, 0., 10.);
3377 h[
"expectedOuter_" +
type] =
dir.make<TH1F>(
3378 (
"expectedOuter_" +
type).c_str(),
"n. expected outer hits;n^{expected}_{outer};tracks ", 10, 0., 10.);
3379 h[
"logtresxy_" +
type] =
3380 dir.make<TH1F>((
"logtresxy_" +
type).c_str(),
3381 "log10(track r-#phi resolution/#mum);log10(track r-#phi resolution/#mum);tracks",
3385 h[
"logtresz_" +
type] =
dir.make<TH1F>((
"logtresz_" +
type).c_str(),
3386 "log10(track z resolution/#mum);log10(track z resolution/#mum);tracks",
3390 h[
"tpullxy_" +
type] =
3391 dir.make<TH1F>((
"tpullxy_" +
type).c_str(),
"track r-#phi pull;pull_{r-#phi};tracks", 100, -10., 10.);
3392 h[
"tpullz_" +
type] =
3393 dir.make<TH1F>((
"tpullz_" +
type).c_str(),
"track r-z pull;pull_{r-z};tracks", 100, -50., 50.);
3394 h[
"tlogDCAxy_" +
type] =
dir.make<TH1F>(
3395 (
"tlogDCAxy_" +
type).c_str(),
"track log_{10}(DCA_{r-#phi});track log_{10}(DCA_{r-#phi});tracks", 200, -5., 3.);
3396 h[
"tlogDCAz_" +
type] =
dir.make<TH1F>(
3397 (
"tlogDCAz_" +
type).c_str(),
"track log_{10}(DCA_{r-z});track log_{10}(DCA_{r-z});tracks", 200, -5., 5.);
3398 h[
"lvseta_" +
type] =
dir.make<TH2F>(
3399 (
"lvseta_" +
type).c_str(),
"cluster length vs #eta;track #eta;cluster length", 60, -3., 3., 20, 0., 20);
3400 h[
"lvstanlambda_" +
type] =
dir.make<TH2F>((
"lvstanlambda_" +
type).c_str(),
3401 "cluster length vs tan #lambda; tan#lambda;cluster length",
3408 h[
"restrkz_" +
type] =
3409 dir.make<TH1F>((
"restrkz_" +
type).c_str(),
"z-residuals (track vs vertex);res_{z} (cm);tracks", 200, -5., 5.);
3410 h[
"restrkzvsphi_" +
type] =
dir.make<TH2F>((
"restrkzvsphi_" +
type).c_str(),
3411 "z-residuals (track - vertex) vs track #phi;track #phi;res_{z} (cm)",
3418 h[
"restrkzvseta_" +
type] =
dir.make<TH2F>((
"restrkzvseta_" +
type).c_str(),
3419 "z-residuals (track - vertex) vs track #eta;track #eta;res_{z} (cm)",
3426 h[
"pulltrkzvsphi_" +
type] =
3427 dir.make<TH2F>((
"pulltrkzvsphi_" +
type).c_str(),
3428 "normalized z-residuals (track - vertex) vs track #phi;track #phi;res_{z}/#sigma_{res_{z}}",
3435 h[
"pulltrkzvseta_" +
type] =
3436 dir.make<TH2F>((
"pulltrkzvseta_" +
type).c_str(),
3437 "normalized z-residuals (track - vertex) vs track #eta;track #eta;res_{z}/#sigma_{res_{z}}",
3444 h[
"pulltrkz_" +
type] =
dir.make<TH1F>((
"pulltrkz_" +
type).c_str(),
3445 "normalized z-residuals (track vs vertex);res_{z}/#sigma_{res_{z}};tracks",
3449 h[
"sigmatrkz0_" +
type] =
dir.make<TH1F>(
3450 (
"sigmatrkz0_" +
type).c_str(),
"z-resolution (excluding beam);#sigma^{trk}_{z_{0}} (cm);tracks", 100, 0., 5.);
3451 h[
"sigmatrkz_" +
type] =
dir.make<TH1F>(
3452 (
"sigmatrkz_" +
type).c_str(),
"z-resolution (including beam);#sigma^{trk}_{z} (cm);tracks", 100, 0., 5.);
3453 h[
"nbarrelhits_" +
type] =
dir.make<TH1F>(
3454 (
"nbarrelhits_" +
type).c_str(),
"number of pixel barrel hits;n. hits Barrel Pixel;tracks", 10, 0., 10.);
3455 h[
"nbarrelLayers_" +
type] =
dir.make<TH1F>(
3456 (
"nbarrelLayers_" +
type).c_str(),
"number of pixel barrel layers;n. layers Barrel Pixel;tracks", 10, 0., 10.);
3457 h[
"nPxLayers_" +
type] =
dir.make<TH1F>(
3458 (
"nPxLayers_" +
type).c_str(),
"number of pixel layers (barrel+endcap);n. Pixel layers;tracks", 10, 0., 10.);
3459 h[
"nSiLayers_" +
type] =
3460 dir.make<TH1F>((
"nSiLayers_" +
type).c_str(),
"number of Tracker layers;n. Tracker layers;tracks", 20, 0., 20.);
3461 h[
"trackAlgo_" +
type] =
3462 dir.make<TH1F>((
"trackAlgo_" +
type).c_str(),
"track algorithm;track algo;tracks", 30, 0., 30.);
3463 h[
"trackQuality_" +
type] =
3464 dir.make<TH1F>((
"trackQuality_" +
type).c_str(),
"track quality;track quality;tracks", 7, -1., 6.);
3474 unsigned int theNOfBins,
3477 bool isNormalized) {
3478 TH1F::SetDefaultSumw2(kTRUE);
3490 std::vector<TH1F*>
h;
3491 h.reserve(theNOfBins);
3493 if (theNOfBins == 0) {
3495 <<
"bookResidualsHistogram() The number of bins cannot be identically 0" << std::endl;
3506 for (
unsigned int i = 0;
i < theNOfBins;
i++) {
3508 ? Form(
"%s vs %s - bin %i (%f < %s < %f);%s %s;tracks",
3517 : Form(
"%s vs %s - bin %i;%s %s;tracks",
3524 TH1F* htemp =
dir.make<TH1F>(
3525 Form(
"histo_%s_%s_plot%i", s_resType.c_str(), s_varType.c_str(),
i),
3546 using namespace reco;
3559 double d0Error =
tt->track().d0Error();
3588 double z = (
tt->stateAtBeamLine().trackStateAtPCA()).
position().z();
3589 double tantheta =
tan((
tt->stateAtBeamLine().trackStateAtPCA()).momentum().theta());
3590 double dz2 =
pow(
tt->track().dzError(), 2) +
wxy2_ /
pow(tantheta, 2);
3603 double kappa = -0.002998 * fBfield_ *
tt->track().qoverp() /
cos(
tt->track().theta());
3606 double s0 = (
x1 *
cos(
tt->track().phi()) +
y1 *
sin(
tt->track().phi())) /
q;
3620 PVValHelper::fill(
h,
"nbarrelLayers_" + ttype,
tt->track().hitPattern().pixelBarrelLayersWithMeasurement());
3621 PVValHelper::fill(
h,
"nPxLayers_" + ttype,
tt->track().hitPattern().pixelLayersWithMeasurement());
3622 PVValHelper::fill(
h,
"nSiLayers_" + ttype,
tt->track().hitPattern().trackerLayersWithMeasurement());
3624 h,
"expectedInner_" + ttype,
tt->track().hitPattern().numberOfLostHits(HitPattern::MISSING_INNER_HITS));
3626 h,
"expectedOuter_" + ttype,
tt->track().hitPattern().numberOfLostHits(HitPattern::MISSING_OUTER_HITS));
3631 int longesthit = 0, nbarrel = 0;
3632 for (
auto const&
hit :
tt->track().recHits()) {
3641 if (clust->sizeY() - longesthit > 0)
3642 longesthit = clust->sizeY();
3643 if (clust->sizeY() > 20.) {
3660 desc.setComment(
"Validates alignment payloads by evaluating unbiased track paramter resisuals to vertices");
3664 desc.addUntracked<
int>(
"compressionSettings", -1);
3665 desc.add<
bool>(
"storeNtuple",
false);
3666 desc.add<
bool>(
"isLightNtuple",
true);
3667 desc.add<
bool>(
"useTracksFromRecoVtx",
false);
3668 desc.addUntracked<
double>(
"vertexZMax", 99);
3669 desc.addUntracked<
double>(
"intLumi", 0.);
3670 desc.add<
bool>(
"askFirstLayerHit",
false);
3671 desc.addUntracked<
bool>(
"doBPix",
true);
3672 desc.addUntracked<
bool>(
"doFPix",
true);
3673 desc.addUntracked<
double>(
"probePt", 0.);
3674 desc.addUntracked<
double>(
"probeP", 0.);
3675 desc.addUntracked<
double>(
"probeEta", 2.4);
3676 desc.addUntracked<
double>(
"probeNHits", 0.);
3677 desc.addUntracked<
int>(
"numberOfBins", 24);
3678 desc.addUntracked<
double>(
"minPt", 1.);
3679 desc.addUntracked<
double>(
"maxPt", 20.);
3680 desc.add<
bool>(
"Debug",
false);
3681 desc.addUntracked<
bool>(
"runControl",
false);
3682 desc.addUntracked<
bool>(
"forceBeamSpot",
false);
3684 std::vector<unsigned int> defaultRuns;
3685 defaultRuns.push_back(0);
3686 desc.addUntracked<std::vector<unsigned int>>(
"runControlNumber", defaultRuns);
3697 psd0.add<
int>(
"numTracksThreshold", 0);
3716 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
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
static void fillPSetDescription(edm::ParameterSetDescription &desc)
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
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_