70 storeNtuple_(iConfig.getParameter<
bool>(
"storeNtuple")),
71 lightNtupleSwitch_(iConfig.getParameter<
bool>(
"isLightNtuple")),
72 useTracksFromRecoVtx_(iConfig.getParameter<
bool>(
"useTracksFromRecoVtx")),
73 vertexZMax_(iConfig.getUntrackedParameter<double>(
"vertexZMax",99.)),
74 intLumi_(iConfig.getUntrackedParameter<double>(
"intLumi",0.)),
75 askFirstLayerHit_(iConfig.getParameter<
bool>(
"askFirstLayerHit")),
76 doBPix_(iConfig.getUntrackedParameter<
bool>(
"doBPix",
true)),
77 doFPix_(iConfig.getUntrackedParameter<
bool>(
"doFPix",
true)),
78 ptOfProbe_(iConfig.getUntrackedParameter<double>(
"probePt",0.)),
79 pOfProbe_(iConfig.getUntrackedParameter<double>(
"probeP",0.)),
80 etaOfProbe_(iConfig.getUntrackedParameter<double>(
"probeEta",2.4)),
81 nHitsOfProbe_(iConfig.getUntrackedParameter<double>(
"probeNHits",0.)),
82 nBins_(iConfig.getUntrackedParameter<
int>(
"numberOfBins",24)),
83 debug_(iConfig.getParameter<
bool>(
"Debug")),
84 runControl_(iConfig.getUntrackedParameter<
bool>(
"runControl",
false))
92 std::vector<unsigned int> defaultRuns;
93 defaultRuns.push_back(0);
109 if (clusteringAlgorithm==
"gap"){
111 }
else if(clusteringAlgorithm==
"DA"){
114 }
else if(clusteringAlgorithm==
"DA_vect") {
117 throw VertexException(
"PrimaryVertexProducerAlgorithm: unknown clustering algorithm: " + clusteringAlgorithm);
187 using namespace reco;
191 edm::LogWarning(
"PrimaryVertexValidation") <<
"*********************************************************************************\n" 192 <<
"* The configuration (ptOfProbe > " <<
ptOfProbe_ <<
"GeV) is not correctly set for current value of magnetic field \n" 193 <<
"* Switching it to 0. !!! \n" 194 <<
"*********************************************************************************"<< std::endl;
202 bool passesRunControl =
false;
210 passesRunControl =
true;
214 if (!passesRunControl)
return;
246 edm::LogInfo(
"tracker geometry read")<<
"There are: "<< pDD->
dets().size() <<
" detectors";
298 double fBfield_=((*theB_).field()->inTesla(
GlobalPoint(0.,0.,0.))).
z();
306 if(!trackCollectionHandle.
isValid())
return;
307 auto const &
tracks = *trackCollectionHandle;
327 LogTrace(
"PrimaryVertexValidation")<<
"caught std::exception "<<er.
what()<<std::endl;
330 std::vector<Vertex> vsorted = *(
vertices);
337 if( vsorted.empty())
return;
342 if ( vsorted[0].isValid() ) {
359 unsigned int vertexCollectionSize = vsorted.size();
362 for (
unsigned int i=0;
i<vertexCollectionSize;
i++) {
363 const Vertex& vertex = vsorted.at(
i);
364 if (vertex.
isValid()) nvvertex++;
375 double chi2prob = 0.;
377 if (!vsorted.at(0).isFake()) {
390 double pt = (**itrk).pt();
395 double dxyRes = (**itrk).dxy(myVertex);
396 double dzRes = (**itrk).dz(myVertex);
398 double dxy_err = (**itrk).dxyError();
399 double dz_err = (**itrk).dzError();
401 float trackphi = ((**itrk).phi())*(180/
M_PI);
402 float tracketa = (**itrk).eta();
412 if(tracketa >= etaF && tracketa < etaL ){
421 if(trackphi >= phiF && trackphi < phiL ){
428 for(
int j=0; j<
nBins_; j++){
433 if(tracketa >= etaJ && tracketa < etaK ){
460 if ( beamSpotHandle.
isValid() ) {
461 beamSpot = *beamSpotHandle;
501 edm::LogInfo(
"PrimaryVertexValidation")<<
" looping over "<<trackCollectionHandle->size()<<
"tracks";
503 h_nTracks->Fill(trackCollectionHandle->size());
509 std::vector<TransientTrack> t_tks;
518 edm::LogInfo(
"PrimaryVertexValidation") <<
"Found: " << t_tks.size() <<
" reconstructed tracks";
534 edm::LogInfo(
"PrimaryVertexValidation")<<
" looping over: "<< clusters.size() <<
" clusters from " << t_tks.size() <<
" selected tracks";
543 for (
const auto & iclus : clusters){
548 for(
const auto & theTTrack : iclus)
557 const Track & theTrack = theTTrack.track();
599 if((*iHit)->isValid()) {
601 if (this->
isHit2D(**iHit)) {++nRecHit2D;}
633 vector<TransientTrack> theFinalTracks;
634 theFinalTracks.clear();
636 for (
const auto & tk : iclus) {
640 if( tk == theTTrack )
continue;
642 theFinalTracks.push_back(tk);
647 if(theFinalTracks.size() > 1){
650 edm::LogInfo(
"PrimaryVertexValidation")<<
"Transient Track Collection size: "<<theFinalTracks.size();
659 double totalTrackWeights=0;
660 if(theFittedVertex.isValid ()){
663 if(theFittedVertex.hasTrackWeight()){
664 for(
const auto & theFinalTrack : theFinalTracks){
666 totalTrackWeights+= theFittedVertex.trackWeight(theFinalTrack);
674 const math::XYZPoint myVertex(theFittedVertex.position().x(),theFittedVertex.position().y(),theFittedVertex.position().z());
676 const Vertex vertex = theFittedVertex;
694 h_fitVtxChi2Prob_->Fill(TMath::Prob(theFittedVertex.totalChiSquared(),(
int)theFittedVertex.degreesOfFreedom()));
697 double dxyFromMyVertex = theTrack.
dxy(myVertex);
698 double dzFromMyVertex = theTrack.
dz(myVertex);
700 GlobalPoint vert(theFittedVertex.position().x(),theFittedVertex.position().y(),theFittedVertex.position().z());
706 double dz_err =
sqrt(
std::pow(theTrack.
dzError(), 2) + theFittedVertex.positionError().czz());
716 double s_ip2dpv_corr = s_ip2dpv.second.value();
717 double s_ip2dpv_err = s_ip2dpv.second.error();
726 double s_ip3dpv_corr = s_ip3dpv.second.value();
727 double s_ip3dpv_err = s_ip3dpv.second.error();
731 double ip3d_corr = ip3dpv.second.value();
732 double ip3d_err = ip3dpv.second.error();
740 float my_dx = refPoint.
x() - myVertex.x();
741 float my_dy = refPoint.
y() - myVertex.y();
743 float my_dx2 = cPToVtx.
x() - myVertex.x();
744 float my_dy2 = cPToVtx.
y() - myVertex.y();
746 float my_dxy =
std::sqrt(my_dx*my_dx + my_dy*my_dy);
754 edm::LogInfo(
"PrimaryVertexValidation")<<
"my_dx:" << my_dx
755 <<
" my_dy:" << my_dy
756 <<
" my_dxy:" << my_dxy
757 <<
" my_dx2:" << my_dx2
758 <<
" my_dy2:" << my_dy2
760 <<
" dxyFromVtx:" << dxyFromMyVertex <<
"\n" 761 <<
" ============================== "<<
"\n" 764 <<
"diff3:" << (my_dx - my_dx2) <<
" " << (my_dy - my_dy2) <<
"\n" 784 float trackphi = (theTrack.
phi())*(180./
M_PI);
785 float tracketa = theTrack.
eta();
786 float trackpt = theTrack.
pt();
787 float trackp = theTrack.
p();
792 int ladder_num = -1.;
793 int module_num = -1.;
794 int L1BPixHitCount = 0;
797 const DetId& detId = (*iHit)->geographicalId();
798 unsigned int subid = detId.
subdetId();
816 for(
int ipTBin=0; ipTBin<
nPtBins_; ipTBin++){
824 if(
std::abs(tracketa)<1.5 && (trackpt >= pTF && trackpt < pTL) ){
854 if(pixelOcc.first ==
true)
855 edm::LogInfo(
"PrimaryVertexValidation")<<
"has BPIx hits"<<std::endl;
856 if(pixelOcc.second ==
true)
857 edm::LogInfo(
"PrimaryVertexValidation")<<
"has FPix hits"<<std::endl;
860 if(!
doBPix_ && (pixelOcc.first ==
true))
continue;
861 if(!
doFPix_ && (pixelOcc.second ==
true))
continue;
887 float dxyRecoV = theTrack.
dz(theRecoVertex);
888 float dzRecoV = theTrack.
dxy(theRecoVertex);
892 double zTrack=(theTTrack.stateAtBeamLine().trackStateAtPCA()).
position().z();
893 double zVertex=theFittedVertex.position().z();
894 double tantheta=
tan((theTTrack.stateAtBeamLine().trackStateAtPCA()).momentum().theta());
897 double restrkz = zTrack-
zVertex;
898 double pulltrkz = (zTrack-
zVertex)/TMath::Sqrt(dz2);
923 n_dxyVsPhi->Fill(trackphi,dxyFromMyVertex/s_ip2dpv_err);
926 a_dxyVsEta->Fill(tracketa,dxyFromMyVertex*cmToum);
928 n_dxyVsEta->Fill(tracketa,dxyFromMyVertex/s_ip2dpv_err);
931 if( ladder_num > 0 && module_num > 0 ) {
933 LogDebug(
"PrimaryVertexValidation")<<
" ladder_num"<<ladder_num <<
" module_num"<<module_num <<std::endl;
944 if(L1BPixHitCount==1){
957 for(
int i=0; i<
nBins_; i++){
965 if(tracketa >= etaF && tracketa < etaL ){
984 if(trackphi >= phiF && trackphi < phiL ){
1001 for(
int j=0; j<
nBins_; j++){
1006 if(tracketa >= etaJ && tracketa < etaK ){
1021 edm::LogInfo(
"PrimaryVertexValidation")<<
" myVertex.x()= "<<myVertex.x()<<
"\n" 1022 <<
" myVertex.y()= "<<myVertex.y()<<
" \n" 1023 <<
" myVertex.z()= "<<myVertex.z()<<
" \n" 1024 <<
" theTrack.dz(myVertex)= "<<theTrack.
dz(myVertex)<<
" \n" 1025 <<
" zPCA -myVertex.z() = "<<(theTrack.
vertex().z() -myVertex.z());
1033 LogTrace(
"PrimaryVertexValidation")<<
"caught std::exception "<<er.
what()<<std::endl;
1040 edm::LogInfo(
"PrimaryVertexValidation")<<
"Not enough tracks to make a vertex. Returns no vertex info";
1047 edm::LogInfo(
"PrimaryVertexValidation")<<
"Track "<<i<<
" : pT = "<<theTrack.
pt();
1072 if (dynamic_cast<const SiStripRecHit2D*>(&hit))
return false;
1073 else if (dynamic_cast<const SiStripMatchedRecHit2D*>(&hit))
return true;
1074 else if (dynamic_cast<const ProjectedSiStripRecHit2D*>(&hit))
return false;
1076 edm::LogError(
"UnkownType") <<
"@SUB=AlignmentTrackSelector::isHit2D" 1077 <<
"Tracker hit not in pixel and neither SiStripRecHit2D nor " 1078 <<
"SiStripMatchedRecHit2D nor ProjectedSiStripRecHit2D.";
1083 edm::LogWarning(
"DetectorMismatch") <<
"@SUB=AlignmentTrackSelector::isHit2D" 1084 <<
"Hit not in tracker with 'official' dimension >=2.";
1095 bool hasBPixHits =
false;
1096 bool hasFPixHits =
false;
1106 return std::make_pair(hasBPixHits,hasFPixHits);
1113 using namespace reco;
1132 <<
"######################################\n" 1134 <<
"######################################";
1226 TH1F::SetDefaultSumw2(kTRUE);
1228 h_lumiFromConfig = EventFeatures.
make<TH1F>(
"h_lumiFromConfig",
"luminosity from config;;luminosity of present run",1,-0.5,0.5);
1231 h_runFromConfig = EventFeatures.
make<TH1I>(
"h_runFromConfig",
"run number from config;;run number (from configuration)",
1237 h_runFromEvent = EventFeatures.
make<TH1I>(
"h_runFromEvent",
"run number from config;;run number (from event)",1,-0.5,0.5);
1239 h_nTracks = EventFeatures.
make<TH1F>(
"h_nTracks",
"number of tracks per event;n_{tracks}/event;n_{events}",300,-0.5,299.5);
1240 h_nClus = EventFeatures.
make<TH1F>(
"h_nClus",
"number of track clusters;n_{clusters}/event;n_{events}",50,-0.5,49.5);
1241 h_nOfflineVertices = EventFeatures.
make<TH1F>(
"h_nOfflineVertices",
"number of offline reconstructed vertices;n_{vertices}/event;n_{events}",50,-0.5,49.5);
1242 h_runNumber = EventFeatures.
make<TH1F>(
"h_runNumber",
"run number;run number;n_{events}",100000,250000.,350000.);
1243 h_xOfflineVertex = EventFeatures.
make<TH1F>(
"h_xOfflineVertex",
"x-coordinate of offline vertex;x_{vertex};n_{events}",100,-0.1,0.1);
1244 h_yOfflineVertex = EventFeatures.
make<TH1F>(
"h_yOfflineVertex",
"y-coordinate of offline vertex;y_{vertex};n_{events}",100,-0.1,0.1);
1245 h_zOfflineVertex = EventFeatures.
make<TH1F>(
"h_zOfflineVertex",
"z-coordinate of offline vertex;z_{vertex};n_{events}",100,-30.,30.);
1246 h_xErrOfflineVertex = EventFeatures.
make<TH1F>(
"h_xErrOfflineVertex",
"x-coordinate error of offline vertex;err_{x}^{vtx};n_{events}",100,0.,0.01);
1247 h_yErrOfflineVertex = EventFeatures.
make<TH1F>(
"h_yErrOfflineVertex",
"y-coordinate error of offline vertex;err_{y}^{vtx};n_{events}",100,0.,0.01);
1248 h_zErrOfflineVertex = EventFeatures.
make<TH1F>(
"h_zErrOfflineVertex",
"z-coordinate error of offline vertex;err_{z}^{vtx};n_{events}",100,0.,10.);
1249 h_BSx0 = EventFeatures.
make<TH1F>(
"h_BSx0",
"x-coordinate of reco beamspot;x^{BS}_{0};n_{events}",100,-0.1,0.1);
1250 h_BSy0 = EventFeatures.
make<TH1F>(
"h_BSy0",
"y-coordinate of reco beamspot;y^{BS}_{0};n_{events}",100,-0.1,0.1);
1251 h_BSz0 = EventFeatures.
make<TH1F>(
"h_BSz0",
"z-coordinate of reco beamspot;z^{BS}_{0};n_{events}",100,-1.,1.);
1252 h_Beamsigmaz = EventFeatures.
make<TH1F>(
"h_Beamsigmaz",
"z-coordinate beam width;#sigma_{Z}^{beam};n_{events}",100,0.,1.);
1253 h_BeamWidthX = EventFeatures.
make<TH1F>(
"h_BeamWidthX",
"x-coordinate beam width;#sigma_{X}^{beam};n_{events}",100,0.,0.01);
1254 h_BeamWidthY = EventFeatures.
make<TH1F>(
"h_BeamWidthY",
"y-coordinate beam width;#sigma_{Y}^{beam};n_{events}",100,0.,0.01);
1256 h_etaMax = EventFeatures.
make<TH1F>(
"etaMax",
"etaMax",1,-0.5,0.5);
1257 h_nbins = EventFeatures.
make<TH1F>(
"nbins",
"nbins",1,-0.5,0.5);
1258 h_nLadders = EventFeatures.
make<TH1F>(
"nladders",
"n. ladders",1,-0.5,0.5);
1263 h_probePt_ = ProbeFeatures.
make<TH1F>(
"h_probePt",
"p_{T} of probe track;track p_{T} (GeV); tracks",100,0.,50.);
1264 h_probeP_ = ProbeFeatures.
make<TH1F>(
"h_probeP",
"momentum of probe track;track p (GeV); tracks",100,0.,100.);
1265 h_probeEta_ = ProbeFeatures.
make<TH1F>(
"h_probeEta",
"#eta of the probe track;track #eta;tracks",54,-2.8,2.8);
1266 h_probePhi_ = ProbeFeatures.
make<TH1F>(
"h_probePhi",
"#phi of probe track;track #phi (rad);tracks",100,-3.15,3.15);
1268 h2_probeEtaPhi_ = ProbeFeatures.
make<TH2F>(
"h2_probeEtaPhi",
"probe track #phi vs #eta;#eta of probe track;track #phi of probe track (rad); tracks",54,-2.8,2.8,100,-3.15,3.15);
1269 h2_probeEtaPt_ = ProbeFeatures.
make<TH2F>(
"h2_probeEtaPt",
"probe track p_{T} vs #eta;#eta of probe track;track p_{T} (GeV); tracks",54,-2.8,2.8,100,0.,50.);
1271 h_probeChi2_ = ProbeFeatures.
make<TH1F>(
"h_probeChi2",
"#chi^{2} of probe track;track #chi^{2}; tracks",100,0.,100.);
1272 h_probeNormChi2_ = ProbeFeatures.
make<TH1F>(
"h_probeNormChi2",
" normalized #chi^{2} of probe track;track #chi^{2}/ndof; tracks",100,0.,10.);
1273 h_probeCharge_ = ProbeFeatures.
make<TH1F>(
"h_probeCharge",
"charge of profe track;track charge Q;tracks",3,-1.5,1.5);
1274 h_probeQoverP_ = ProbeFeatures.
make<TH1F>(
"h_probeQoverP",
"q/p of probe track; track Q/p (GeV^{-1});tracks",200,-1.,1.);
1275 h_probedzRecoV_ = ProbeFeatures.
make<TH1F>(
"h_probedzRecoV",
"d_{z}(V_{offline}) of probe track;track d_{z}(V_{off}) (cm);tracks",200,-1.,1.);
1276 h_probedxyRecoV_ = ProbeFeatures.
make<TH1F>(
"h_probedxyRecoV",
"d_{xy}(V_{offline}) of probe track;track d_{xy}(V_{off}) (cm);tracks",200,-1.,1.);
1277 h_probedzRefitV_ = ProbeFeatures.
make<TH1F>(
"h_probedzRefitV",
"d_{z}(V_{refit}) of probe track;track d_{z}(V_{fit}) (cm);tracks",200,-0.5,0.5);
1278 h_probesignIP2DRefitV_ = ProbeFeatures.
make<TH1F>(
"h_probesignIPRefitV",
"ip_{2D}(V_{refit}) of probe track;track ip_{2D}(V_{fit}) (cm);tracks",200,-1.,1.);
1279 h_probedxyRefitV_ = ProbeFeatures.
make<TH1F>(
"h_probedxyRefitV",
"d_{xy}(V_{refit}) of probe track;track d_{xy}(V_{fit}) (cm);tracks",200,-0.5,0.5);
1281 h_probez0RefitV_ = ProbeFeatures.
make<TH1F>(
"h_probez0RefitV",
"z_{0}(V_{refit}) of probe track;track z_{0}(V_{fit}) (cm);tracks",200,-1.,1.);
1282 h_probed0RefitV_ = ProbeFeatures.
make<TH1F>(
"h_probed0RefitV",
"d_{0}(V_{refit}) of probe track;track d_{0}(V_{fit}) (cm);tracks",200,-1.,1.);
1284 h_probed3DRefitV_ = ProbeFeatures.
make<TH1F>(
"h_probed3DRefitV",
"d_{3D}(V_{refit}) of probe track;track d_{3D}(V_{fit}) (cm);tracks",200,0.,1.);
1285 h_probereszRefitV_ = ProbeFeatures.
make<TH1F>(
"h_probeReszRefitV",
"z_{track} -z_{V_{refit}};track res_{z}(V_{refit}) (cm);tracks",200,-1.,1.);
1287 h_probeRecoVSigZ_ = ProbeFeatures.
make<TH1F>(
"h_probeRecoVSigZ" ,
"Longitudinal DCA Significance (reco);d_{z}(V_{off})/#sigma_{dz};tracks",100,-8,8);
1288 h_probeRecoVSigXY_ = ProbeFeatures.
make<TH1F>(
"h_probeRecoVSigXY" ,
"Transverse DCA Significance (reco);d_{xy}(V_{off})/#sigma_{dxy};tracks",100,-8,8);
1289 h_probeRefitVSigZ_ = ProbeFeatures.
make<TH1F>(
"h_probeRefitVSigZ" ,
"Longitudinal DCA Significance (refit);d_{z}(V_{fit})/#sigma_{dz};tracks",100,-8,8);
1290 h_probeRefitVSigXY_= ProbeFeatures.
make<TH1F>(
"h_probeRefitVSigXY",
"Transverse DCA Significance (refit);d_{xy}(V_{fit})/#sigma_{dxy};tracks",100,-8,8);
1291 h_probeRefitVSig3D_= ProbeFeatures.
make<TH1F>(
"h_probeRefitVSig3D",
"3D DCA Significance (refit);d_{3D}/#sigma_{3D};tracks",100,0.,20.);
1292 h_probeRefitVLogSig3D_ = ProbeFeatures.
make<TH1F>(
"h_probeRefitVLogSig3D",
"log_{10}(3D DCA-Significance) (refit);log_{10}(d_{3D}/#sigma_{3D});tracks",100,-5.,4.);
1293 h_probeRefitVSigResZ_ = ProbeFeatures.
make<TH1F>(
"h_probeRefitVSigResZ" ,
"Longitudinal residual significance (refit);(z_{track} -z_{V_{fit}})/#sigma_{res_{z}};tracks",100,-8,8);
1295 h_probeHits_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechits" ,
"N_{hits} ;N_{hits} ;tracks",40,-0.5,39.5);
1296 h_probeHits1D_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechits1D" ,
"N_{hits} 1D ;N_{hits} 1D ;tracks",40,-0.5,39.5);
1297 h_probeHits2D_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechits2D" ,
"N_{hits} 2D ;N_{hits} 2D ;tracks",40,-0.5,39.5);
1298 h_probeHitsInTIB_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTIB" ,
"N_{hits} TIB ;N_{hits} TIB;tracks",40,-0.5,39.5);
1299 h_probeHitsInTOB_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTOB" ,
"N_{hits} TOB ;N_{hits} TOB;tracks",40,-0.5,39.5);
1300 h_probeHitsInTID_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTID" ,
"N_{hits} TID ;N_{hits} TID;tracks",40,-0.5,39.5);
1301 h_probeHitsInTEC_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTEC" ,
"N_{hits} TEC ;N_{hits} TEC;tracks",40,-0.5,39.5);
1302 h_probeHitsInBPIX_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsBPIX",
"N_{hits} BPIX;N_{hits} BPIX;tracks",40,-0.5,39.5);
1303 h_probeHitsInFPIX_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsFPIX",
"N_{hits} FPIX;N_{hits} FPIX;tracks",40,-0.5,39.5);
1305 h_probeL1Ladder_ = ProbeFeatures.
make<TH1F>(
"h_probeL1Ladder",
"Ladder number (L1 hit); ladder number",22,-1.5,20.5);
1306 h_probeL1Module_ = ProbeFeatures.
make<TH1F>(
"h_probeL1Module",
"Module number (L1 hit); module number",10,-1.5,8.5);
1311 h_fitVtxNtracks_ = RefitVertexFeatures.make<TH1F>(
"h_fitVtxNtracks" ,
"N_{trks} used in vertex fit;N^{fit}_{tracks};vertices" ,100,-0.5,99.5);
1312 h_fitVtxNdof_ = RefitVertexFeatures.make<TH1F>(
"h_fitVtxNdof" ,
"N_{DOF} of vertex fit;N_{DOF} of refit vertex;vertices" ,100,-0.5,99.5);
1313 h_fitVtxChi2_ = RefitVertexFeatures.make<TH1F>(
"h_fitVtxChi2" ,
"#chi^{2} of vertex fit;vertex #chi^{2};vertices" ,100,-0.5,99.5);
1314 h_fitVtxChi2ndf_ = RefitVertexFeatures.make<TH1F>(
"h_fitVtxChi2ndf" ,
"#chi^{2}/ndf of vertex fit;vertex #chi^{2}/ndf;vertices" ,100,-0.5,9.5);
1315 h_fitVtxChi2Prob_ = RefitVertexFeatures.make<TH1F>(
"h_fitVtxChi2Prob" ,
"Prob(#chi^{2},ndf) of vertex fit;Prob(#chi^{2},ndf);vertices",40,0.,1.);
1316 h_fitVtxTrackWeights_ = RefitVertexFeatures.make<TH1F>(
"h_fitVtxTrackWeights",
"track weights associated to track;track weights;tracks",40,0.,1.);
1317 h_fitVtxTrackAverageWeight_ = RefitVertexFeatures.make<TH1F>(
"h_fitVtxTrackAverageWeight_",
"average track weight per vertex;#LT track weight #GT;vertices",40,0.,1.);
1322 h_recoVtxNtracks_ = RecoVertexFeatures.
make<TH1F>(
"h_recoVtxNtracks" ,
"N^{vtx}_{trks};N^{vtx}_{trks};vertices" ,100,-0.5,99.5);
1323 h_recoVtxChi2ndf_ = RecoVertexFeatures.
make<TH1F>(
"h_recoVtxChi2ndf" ,
"#chi^{2}/ndf vtx;#chi^{2}/ndf vtx;vertices" ,10,-0.5,9.5);
1324 h_recoVtxChi2Prob_ = RecoVertexFeatures.
make<TH1F>(
"h_recoVtxChi2Prob" ,
"Prob(#chi^{2},ndf);Prob(#chi^{2},ndf);vertices",40,0.,1.);
1325 h_recoVtxSumPt_ = RecoVertexFeatures.
make<TH1F>(
"h_recoVtxSumPt" ,
"Sum(p^{trks}_{T});Sum(p^{trks}_{T});vertices" ,100,0.,200.);
1495 for (
int j=0; j<
nBins_; ++j ) {
1501 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy};tracks",etaF,etaL,phiF,phiL),
1505 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z};tracks",etaF,etaL,phiF,phiL),
1509 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{3D};tracks",etaF,etaL,phiF,phiL),
1513 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy}/#sigma_{d_{xy}};tracks",etaF,etaL,phiF,phiL),
1517 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z}/#sigma_{d_{z}};tracks",etaF,etaL,phiF,phiL),
1521 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{3D}/#sigma_{d_{3D}};tracks",etaF,etaL,phiF,phiL),
1531 a_dxyVsPhi = BiasVsParameter.make<TH2F>(
"h2_dxy_vs_phi",
"d_{xy} vs track #phi;track #phi [rad];track d_{xy}(PV) [#mum]",
1534 a_dzVsPhi = BiasVsParameter.make<TH2F>(
"h2_dz_vs_phi",
"d_{z} vs track #phi;track #phi [rad];track d_{z}(PV) [#mum]",
1537 n_dxyVsPhi = BiasVsParameter.make<TH2F>(
"h2_n_dxy_vs_phi",
"d_{xy}/#sigma_{d_{xy}} vs track #phi;track #phi [rad];track d_{xy}(PV)/#sigma_{d_{xy}}",
1540 n_dzVsPhi = BiasVsParameter.make<TH2F>(
"h2_n_dz_vs_phi",
"d_{z}/#sigma_{d_{z}} vs track #phi;track #phi [rad];track d_{z}(PV)/#sigma_{d_{z}}",
1543 a_dxyVsEta = BiasVsParameter.make<TH2F>(
"h2_dxy_vs_eta",
"d_{xy} vs track #eta;track #eta;track d_{xy}(PV) [#mum]",
1546 a_dzVsEta = BiasVsParameter.make<TH2F>(
"h2_dz_vs_eta",
"d_{z} vs track #eta;track #eta;track d_{z}(PV) [#mum]",
1549 n_dxyVsEta = BiasVsParameter.make<TH2F>(
"h2_n_dxy_vs_eta",
"d_{xy}/#sigma_{d_{xy}} vs track #eta;track #eta;track d_{xy}(PV)/#sigma_{d_{xy}}",
1552 n_dzVsEta = BiasVsParameter.make<TH2F>(
"h2_n_dz_vs_eta",
"d_{z}/#sigma_{d_{z}} vs track #eta;track #eta;track d_{z}(PV)/#sigma_{d_{z}}",
1563 double highedge=nBins_-0.5;
1564 double lowedge=-0.5;
1569 "#LT d_{xy} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy} #GT [#mum]",
1570 nBins_,lowedge,highedge);
1573 "#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{xy}} [#mum]",
1574 nBins_,lowedge,highedge);
1577 "#LT d_{z} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z} #GT [#mum]",
1578 nBins_,lowedge,highedge);
1581 nBins_,lowedge,highedge);
1584 "#LT d_{xy} #GT vs #eta sector;#eta (sector);#LT d_{xy} #GT [#mum]",
1585 nBins_,lowedge,highedge);
1588 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{xy}} [#mum]",
1589 nBins_,lowedge,highedge);
1592 "#LT d_{z} #GT vs #eta sector;#eta (sector);#LT d_{z} #GT [#mum]" 1593 ,
nBins_,lowedge,highedge);
1596 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{z}} [#mum]",
1597 nBins_,lowedge,highedge);
1600 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy}/#sigma_{d_{xy}} #GT",
1601 nBins_,lowedge,highedge);
1604 "width(d_{xy}/#sigma_{d_{xy}}) vs #phi sector;#varphi (sector) [degrees]; width(d_{xy}/#sigma_{d_{xy}})",
1605 nBins_,lowedge,highedge);
1608 "#LT d_{z}/#sigma_{d_{z}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z}/#sigma_{d_{z}} #GT",
1609 nBins_,lowedge,highedge);
1612 "width(d_{z}/#sigma_{d_{z}}) vs #phi sector;#varphi (sector) [degrees];width(d_{z}/#sigma_{d_{z}})",
1613 nBins_,lowedge,highedge);
1616 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #eta sector;#eta (sector);#LT d_{xy}/#sigma_{d_{z}} #GT",
1617 nBins_,lowedge,highedge);
1620 "width(d_{xy}/#sigma_{d_{xy}}) vs #eta sector;#eta (sector);width(d_{xy}/#sigma_{d_{z}})",
1621 nBins_,lowedge,highedge);
1624 "#LT d_{z}/#sigma_{d_{z}} #GT vs #eta sector;#eta (sector);#LT d_{z}/#sigma_{d_{z}} #GT",
1625 nBins_,lowedge,highedge);
1628 "width(d_{z}/#sigma_{d_{z}}) vs #eta sector;#eta (sector);width(d_{z}/#sigma_{d_{z}})",
1629 nBins_,lowedge,highedge);
1634 "#LT d_{xy} #GT vs pT;p_{T} [GeV];#LT d_{xy} #GT [#mum]",
1638 "#sigma_{d_{xy}} vs pT;p_{T} [GeV];#sigma_{d_{xy}} [#mum]",
1642 "#LT d_{z} #GT vs pT;p_{T} [GeV];#LT d_{z} #GT [#mum]",
1650 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs pT;p_{T} [GeV];#LT d_{xy}/#sigma_{d_{xy}} #GT",
1654 "width(d_{xy}/#sigma_{d_{xy}}) vs pT;p_{T} [GeV]; width(d_{xy}/#sigma_{d_{xy}})",
1658 "#LT d_{z}/#sigma_{d_{z}} #GT vs pT;p_{T} [GeV];#LT d_{z}/#sigma_{d_{z}} #GT",
1662 "width(d_{z}/#sigma_{d_{z}}) vs pT;p_{T} [GeV];width(d_{z}/#sigma_{d_{z}})",
1667 "#LT d_{xy} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{xy} #GT [#mum]",
1671 "#sigma_{d_{xy}} vs p_{T};p_{T}(|#eta|<1.) [GeV];#sigma_{d_{xy}} [#mum]",
1675 "#LT d_{z} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{z} #GT [#mum]" 1679 "#sigma_{d_{z}} vs p_{T};p_{T}(|#eta|<1.) [GeV];#sigma_{d_{z}} [#mum]",
1683 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{xy}/#sigma_{d_{z}} #GT",
1687 "width(d_{xy}/#sigma_{d_{xy}}) vs p_{T};p_{T}(|#eta|<1.) [GeV];width(d_{xy}/#sigma_{d_{z}})",
1691 "#LT d_{z}/#sigma_{d_{z}} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{z}/#sigma_{d_{z}} #GT",
1695 "width(d_{z}/#sigma_{d_{z}}) vs p_{T};p_{T}(|#eta|<1.) [GeV];width(d_{z}/#sigma_{d_{z}})",
1701 "#LT d_{xy} #GT map;#eta (sector);#varphi (sector) [degrees]",
1705 "#LT d_{z} #GT map;#eta (sector);#varphi (sector) [degrees]",
1709 "#LT d_{xy}/#sigma_{d_{xy}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1713 "#LT d_{z}/#sigma_{d_{z}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1717 "#sigma_{d_{xy}} map;#eta (sector);#varphi (sector) [degrees]",
1721 "#sigma_{d_{z}} map;#eta (sector);#varphi (sector) [degrees]",
1725 "width(d_{xy}/#sigma_{d_{xy}}) map;#eta (sector);#varphi (sector) [degrees]",
1729 "width(d_{z}/#sigma_{d_{z}}) map;#eta (sector);#varphi (sector) [degrees]",
1735 "Median of d_{xy} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}) [#mum]",
1736 nBins_,lowedge,highedge);
1739 "Median absolute deviation of d_{xy} vs #phi sector;#varphi (sector) [degrees];MAD(d_{xy}) [#mum]",
1740 nBins_,lowedge,highedge);
1743 "Median of d_{z} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}) [#mum]",
1744 nBins_,lowedge,highedge);
1747 "Median absolute deviation of d_{z} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}) [#mum]",
1748 nBins_,lowedge,highedge);
1751 "Median of d_{xy} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}) [#mum]",
1752 nBins_,lowedge,highedge);
1755 "Median absolute deviation of d_{xy} vs #eta sector;#eta (sector);MAD(d_{xy}) [#mum]",
1756 nBins_,lowedge,highedge);
1759 "Median of d_{z} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}) [#mum]",
1760 nBins_,lowedge,highedge);
1763 "Median absolute deviation of d_{z} vs #eta sector;#eta (sector);MAD(d_{z}) [#mum]",
1764 nBins_,lowedge,highedge);
1767 "Median of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}/#sigma_{d_{xy}})",
1768 nBins_,lowedge,highedge);
1771 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees]; MAD(d_{xy}/#sigma_{d_{xy}})",
1772 nBins_,lowedge,highedge);
1775 "Median of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
1776 nBins_,lowedge,highedge);
1779 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}/#sigma_{d_{z}})",
1780 nBins_,lowedge,highedge);
1783 "Median of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}/#sigma_{d_{z}})",
1784 nBins_,lowedge,highedge);
1787 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);MAD(d_{xy}/#sigma_{d_{z}})",
1788 nBins_,lowedge,highedge);
1791 "Median of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
1792 nBins_,lowedge,highedge);
1795 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);MAD(d_{z}/#sigma_{d_{z}})",
1796 nBins_,lowedge,highedge);
1840 for (
int j=0; j<
nBins_; ++j ) {
1846 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy} [#mum];tracks",etaF,etaL,phiF,phiL),
1850 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z} [#mum];tracks",etaF,etaL,phiF,phiL),
1854 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy}/#sigma_{d_{xy}};tracks",etaF,etaL,phiF,phiL),
1858 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z}/#sigma_{d_{z}};tracks",etaF,etaL,phiF,phiL),
1876 "#LT d_{xy} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy} #GT [#mum]",
1877 nBins_,lowedge,highedge);
1880 "#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{xy}} [#mum]",
1881 nBins_,lowedge,highedge);
1884 "#LT d_{z} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z} #GT [#mum]",
1885 nBins_,lowedge,highedge);
1888 "#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{z}} [#mum]",
1889 nBins_,lowedge,highedge);
1892 "#LT d_{xy} #GT vs #eta sector;#eta (sector);#LT d_{xy} #GT [#mum]",
1893 nBins_,lowedge,highedge);
1896 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{xy}} [#mum]",
1897 nBins_,lowedge,highedge);
1900 "#LT d_{z} #GT vs #eta sector;#eta (sector);#LT d_{z} #GT [#mum]",
1901 nBins_,lowedge,highedge);
1904 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{z}} [#mum]",
1905 nBins_,lowedge,highedge);
1908 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy}/#sigma_{d_{xy}} #GT",
1909 nBins_,lowedge,highedge);
1912 "width(d_{xy}/#sigma_{d_{xy}}) vs #phi sector;#varphi (sector) [degrees]; width(d_{xy}/#sigma_{d_{xy}})",
1913 nBins_,lowedge,highedge);
1916 "#LT d_{z}/#sigma_{d_{z}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z}/#sigma_{d_{z}} #GT",
1917 nBins_,lowedge,highedge);
1920 "width(d_{z}/#sigma_{d_{z}}) vs #phi sector;#varphi (sector) [degrees];width(d_{z}/#sigma_{d_{z}})",
1921 nBins_,lowedge,highedge);
1924 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #eta sector;#eta (sector);#LT d_{xy}/#sigma_{d_{z}} #GT",
1925 nBins_,lowedge,highedge);
1928 "width(d_{xy}/#sigma_{d_{xy}}) vs #eta sector;#eta (sector);width(d_{xy}/#sigma_{d_{z}})",
1929 nBins_,lowedge,highedge);
1932 "#LT d_{z}/#sigma_{d_{z}} #GT vs #eta sector;#eta (sector);#LT d_{z}/#sigma_{d_{z}} #GT",
1933 nBins_,lowedge,highedge);
1936 "width(d_{z}/#sigma_{d_{z}}) vs #eta sector;#eta (sector);width(d_{z}/#sigma_{d_{z}})",
1937 nBins_,lowedge,highedge);
1942 "#LT d_{xy} #GT map;#eta (sector);#varphi (sector) [degrees]",
1946 "#LT d_{z} #GT map;#eta (sector);#varphi (sector) [degrees]",
1950 "#LT d_{xy}/#sigma_{d_{xy}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1954 "#LT d_{z}/#sigma_{d_{z}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1958 "#sigma_{d_{xy}} map;#eta (sector);#varphi (sector) [degrees]",
1962 "#sigma_{d_{z}} map;#eta (sector);#varphi (sector) [degrees]",
1966 "width(d_{xy}/#sigma_{d_{xy}}) map;#eta (sector);#varphi (sector) [degrees]",
1970 "width(d_{z}/#sigma_{d_{z}}) map;#eta (sector);#varphi (sector) [degrees]",
1976 "Median of d_{xy} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}) [#mum]",
1977 nBins_,lowedge,highedge);
1980 "Median absolute deviation of d_{xy} vs #phi sector;#varphi (sector) [degrees];MAD(d_{xy}) [#mum]",
1981 nBins_,lowedge,highedge);
1984 "Median of d_{z} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}) [#mum]",
1985 nBins_,lowedge,highedge);
1988 "Median absolute deviation of d_{z} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}) [#mum]",
1989 nBins_,lowedge,highedge);
1992 "Median of d_{xy} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}) [#mum]",
1993 nBins_,lowedge,highedge);
1996 "Median absolute deviation of d_{xy} vs #eta sector;#eta (sector);MAD(d_{xy}) [#mum]",
1997 nBins_,lowedge,highedge);
2000 "Median of d_{z} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}) [#mum]",
2001 nBins_,lowedge,highedge);
2004 "Median absolute deviation of d_{z} vs #eta sector;#eta (sector);MAD(d_{z}) [#mum]",
2005 nBins_,lowedge,highedge);
2008 "Median of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}/#sigma_{d_{xy}})",
2009 nBins_,lowedge,highedge);
2012 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees]; MAD(d_{xy}/#sigma_{d_{xy}})",
2013 nBins_,lowedge,highedge);
2016 "Median of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
2017 nBins_,lowedge,highedge);
2020 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}/#sigma_{d_{z}})",
2021 nBins_,lowedge,highedge);
2024 "Median of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}/#sigma_{d_{z}})",
2025 nBins_,lowedge,highedge);
2028 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);MAD(d_{xy}/#sigma_{d_{z}})",
2029 nBins_,lowedge,highedge);
2032 "Median of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
2033 nBins_,lowedge,highedge);
2036 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);MAD(d_{z}/#sigma_{d_{z}})",
2037 nBins_,lowedge,highedge);
2046 <<
"######################################\n" 2047 <<
"# PrimaryVertexValidation::endJob()\n" 2048 <<
"# Number of analyzed events: "<<
Nevt_<<
"\n" 2049 <<
"######################################";
2054 "#LT d_{xy} #GT vs modZ;module number (Z);#LT d_{xy} #GT [#mum]",
2058 "#sigma_{d_{xy}} vs modZ;module number (Z);#sigma_{d_{xy}} [#mum]",
2062 "#LT d_{z} #GT vs modZ;module number (Z);#LT d_{z} #GT [#mum]",
2066 "#sigma_{d_{z}} vs modZ;module number (Z);#sigma_{d_{z}} [#mum]",
2070 "#LT d_{xy} #GT vs ladder;ladder number (#phi);#LT d_{xy} #GT [#mum]",
2074 "#sigma_{d_{xy}} vs ladder;ladder number (#phi);#sigma_{d_{xy}} [#mum]",
2078 "#LT d_{z} #GT vs ladder;ladder number (#phi);#LT d_{z} #GT [#mum]" 2082 "#sigma_{d_{z}} vs ladder;ladder number (#phi);#sigma_{d_{z}} [#mum]",
2086 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs modZ;module number (Z);#LT d_{xy}/#sigma_{d_{xy}} #GT",
2090 "width(d_{xy}/#sigma_{d_{xy}}) vs modZ;module number (Z); width(d_{xy}/#sigma_{d_{xy}})",
2094 "#LT d_{z}/#sigma_{d_{z}} #GT vs modZ;module number (Z);#LT d_{z}/#sigma_{d_{z}} #GT",
2098 "width(d_{z}/#sigma_{d_{z}}) vs pT;module number (Z);width(d_{z}/#sigma_{d_{z}})",
2102 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs ladder;ladder number (#phi);#LT d_{xy}/#sigma_{d_{z}} #GT",
2106 "width(d_{xy}/#sigma_{d_{xy}}) vs ladder;ladder number (#phi);width(d_{xy}/#sigma_{d_{z}})",
2110 "#LT d_{z}/#sigma_{d_{z}} #GT vs ladder;ladder number (#phi);#LT d_{z}/#sigma_{d_{z}} #GT",
2114 "width(d_{z}/#sigma_{d_{z}}) vs ladder;ladder number (#phi);width(d_{z}/#sigma_{d_{z}})",
2286 bool isOn = (average_current > 2000.);
2289 return ( (isOn && !is0T) || (!isOn && is0T) );
2374 char phibincenter[129];
2376 sprintf(phibincenter,
"%.f",(phiBins[
i]+phiBins[
i+1])/2.);
2378 char etabincenter[129];
2380 sprintf(etabincenter,
"%.1f",(etaBins[
i]+etaBins[
i+1])/2.);
2388 trendPlot->SetBinContent(i+1,mean_);
2389 trendPlot->SetBinError(i+1,meanErr_);
2396 trendPlot->SetBinContent(i+1,width_);
2397 trendPlot->SetBinError(i+1,widthErr_);
2404 trendPlot->SetBinContent(i+1,median_);
2405 trendPlot->SetBinError(i+1,medianErr_);
2412 trendPlot->SetBinContent(i+1,mad_);
2413 trendPlot->SetBinError(i+1,madErr_);
2417 edm::LogWarning(
"PrimaryVertexValidation")<<
"fillTrendPlot() "<<fitPar_<<
" unknown estimator!"<<std::endl;
2421 if(var_.find(
"eta") != std::string::npos){
2422 trendPlot->GetXaxis()->SetBinLabel(
i+1,etabincenter);
2423 }
else if(var_.find(
"phi") != std::string::npos){
2424 trendPlot->GetXaxis()->SetBinLabel(
i+1,phibincenter);
2426 edm::LogWarning(
"PrimaryVertexValidation")<<
"fillTrendPlot() "<<var_<<
" unknown track parameter!"<<std::endl;
2436 for(
auto iterator = h.begin(); iterator != h.end(); iterator++) {
2445 float mean_ = myFit.first.value();
2446 float meanErr_ = myFit.first.error();
2447 trendPlot->SetBinContent(bin,mean_);
2448 trendPlot->SetBinError(bin,meanErr_);
2453 float width_ = myFit.second.value();
2454 float widthErr_ = myFit.second.error();
2455 trendPlot->SetBinContent(bin,width_);
2456 trendPlot->SetBinError(bin,widthErr_);
2463 trendPlot->SetBinContent(bin,median_);
2464 trendPlot->SetBinError(bin,medianErr_);
2471 trendPlot->SetBinContent(bin,mad_);
2472 trendPlot->SetBinError(bin,madErr_);
2476 edm::LogWarning(
"PrimaryVertexValidation")<<
"fillTrendPlotByIndex() "<<fitPar_<<
" unknown estimator!"<<std::endl;
2480 char bincenter[129];
2483 sprintf(bincenter,
"%.1f",(etaBins[bin-1]+etaBins[bin])/2.);
2484 trendPlot->GetXaxis()->SetBinLabel(bin,bincenter);
2487 sprintf(bincenter,
"%.f",(phiBins[bin-1]+phiBins[bin])/2.);
2488 trendPlot->GetXaxis()->SetBinLabel(bin,bincenter);
2504 char phibincenter[129];
2506 sprintf(phibincenter,
"%.f",(phiBins[
i]+phiBins[
i+1])/2.);
2508 trendMap->GetYaxis()->SetBinLabel(
i+1,phibincenter);
2510 for (
int j=0; j<
nBins_; ++j ) {
2512 char etabincenter[129];
2514 sprintf(etabincenter,
"%.1f",(etaBins[j]+etaBins[j+1])/2.);
2516 if(
i==0) { trendMap->GetXaxis()->SetBinLabel(j+1,etabincenter); }
2524 trendMap->SetBinContent(j+1,
i+1,mean_);
2525 trendMap->SetBinError(j+1,
i+1,meanErr_);
2532 trendMap->SetBinContent(j+1,
i+1,width_);
2533 trendMap->SetBinError(j+1,
i+1,widthErr_);
2540 trendMap->SetBinContent(j+1,
i+1,median_);
2541 trendMap->SetBinError(j+1,
i+1,medianErr_);
2548 trendMap->SetBinContent(j+1,
i+1,mad_);
2549 trendMap->SetBinError(j+1,
i+1,madErr_);
2553 edm::LogWarning(
"PrimaryVertexValidation:") <<
" fillMap() "<<fitPar_<<
" unknown estimator!"<<std::endl;
2575 double vzErr =0.0, vxErr=0.0, vyErr=0.0;
2581 double dxy=0.0,
dz=0.0, dxysigma=0.0, dzsigma=0.0;
2582 dxy = track.
dxy(vtxPoint);
2583 dz = track.
dz(vtxPoint);
2588 if(
std::abs(dxy/dxysigma) > dxyErrMax_)
return false;
2589 if(
std::abs(
dz/dzsigma) > dzErrMax_)
return false;
2590 if(track.
ptError() / track.
pt() > ptErrMax_)
return false;
2601 TH1F::SetDefaultSumw2(kTRUE);
2603 std::map<std::string, TH1*>
h;
2607 for(
const auto &
type : types){
2608 h[
"pseudorapidity_"+
type] =dir.
make <TH1F>((
"rapidity_"+
type).c_str(),
"track pseudorapidity; track #eta; tracks",100,-3., 3.);
2609 h[
"z0_"+
type] = dir.
make<TH1F>((
"z0_"+
type).c_str(),
"track z_{0};track z_{0} (cm);tracks",80,-40., 40.);
2610 h[
"phi_"+
type] = dir.
make<TH1F>((
"phi_"+
type).c_str(),
"track #phi; track #phi;tracks",80,-
M_PI,
M_PI);
2611 h[
"eta_"+
type] = dir.
make<TH1F>((
"eta_"+
type).c_str(),
"track #eta; track #eta;tracks",80,-4., 4.);
2612 h[
"pt_"+
type] = dir.
make<TH1F>((
"pt_"+
type).c_str(),
"track p_{T}; track p_{T} [GeV];tracks",100,0., 20.);
2613 h[
"p_"+
type] = dir.
make<TH1F>((
"p_"+
type).c_str(),
"track p; track p [GeV];tracks",100,0., 20.);
2614 h[
"found_"+
type] = dir.
make<TH1F>((
"found_"+
type).c_str(),
"n. found hits;n^{found}_{hits};tracks",30, 0., 30.);
2615 h[
"lost_"+
type] = dir.
make<TH1F>((
"lost_"+
type).c_str(),
"n. lost hits;n^{lost}_{hits};tracks",20, 0., 20.);
2616 h[
"nchi2_"+
type] = dir.
make<TH1F>((
"nchi2_"+
type).c_str(),
"normalized track #chi^{2};track #chi^{2}/ndf;tracks",100, 0., 20.);
2617 h[
"rstart_"+
type] = dir.
make<TH1F>((
"rstart_"+
type).c_str(),
"track start radius; track innermost radius r (cm);tracks",100, 0., 20.);
2618 h[
"expectedInner_"+
type] = dir.
make<TH1F>((
"expectedInner_"+
type).c_str(),
"n. expected inner hits;n^{expected}_{inner};tracks",10, 0., 10.);
2619 h[
"expectedOuter_"+
type] = dir.
make<TH1F>((
"expectedOuter_"+
type).c_str(),
"n. expected outer hits;n^{expected}_{outer};tracks ",10, 0., 10.);
2620 h[
"logtresxy_"+
type] = dir.
make<TH1F>((
"logtresxy_"+
type).c_str(),
"log10(track r-#phi resolution/#mum);log10(track r-#phi resolution/#mum);tracks",100, 0., 5.);
2621 h[
"logtresz_"+
type] = dir.
make<TH1F>((
"logtresz_"+
type).c_str(),
"log10(track z resolution/#mum);log10(track z resolution/#mum);tracks",100, 0., 5.);
2622 h[
"tpullxy_"+
type] = dir.
make<TH1F>((
"tpullxy_"+
type).c_str(),
"track r-#phi pull;pull_{r-#phi};tracks",100, -10., 10.);
2623 h[
"tpullz_"+
type] = dir.
make<TH1F>((
"tpullz_"+
type).c_str(),
"track r-z pull;pull_{r-z};tracks",100, -50., 50.);
2624 h[
"tlogDCAxy_"+
type] = dir.
make<TH1F>((
"tlogDCAxy_"+
type).c_str(),
"track log_{10}(DCA_{r-#phi});track log_{10}(DCA_{r-#phi});tracks",200, -5., 3.);
2625 h[
"tlogDCAz_"+
type] = dir.
make<TH1F>((
"tlogDCAz_"+
type).c_str(),
"track log_{10}(DCA_{r-z});track log_{10}(DCA_{r-z});tracks",200, -5., 5.);
2626 h[
"lvseta_"+
type] = dir.
make<TH2F>((
"lvseta_"+
type).c_str(),
"cluster length vs #eta;track #eta;cluster length",60,-3., 3., 20, 0., 20);
2627 h[
"lvstanlambda_"+
type] = dir.
make<TH2F>((
"lvstanlambda_"+
type).c_str(),
"cluster length vs tan #lambda; tan#lambda;cluster length",60,-6., 6., 20, 0., 20);
2628 h[
"restrkz_"+
type] = dir.
make<TH1F>((
"restrkz_"+
type).c_str(),
"z-residuals (track vs vertex);res_{z} (cm);tracks", 200, -5., 5.);
2629 h[
"restrkzvsphi_"+
type] = dir.
make<TH2F>((
"restrkzvsphi_"+
type).c_str(),
"z-residuals (track - vertex) vs track #phi;track #phi;res_{z} (cm)", 12,-
M_PI,
M_PI,100, -0.5,0.5);
2630 h[
"restrkzvseta_"+
type] = dir.
make<TH2F>((
"restrkzvseta_"+
type).c_str(),
"z-residuals (track - vertex) vs track #eta;track #eta;res_{z} (cm)", 12,-3.,3.,200, -0.5,0.5);
2631 h[
"pulltrkzvsphi_"+
type] = dir.
make<TH2F>((
"pulltrkzvsphi_"+
type).c_str(),
"normalized z-residuals (track - vertex) vs track #phi;track #phi;res_{z}/#sigma_{res_{z}}", 12,-
M_PI,
M_PI,100, -5., 5.);
2632 h[
"pulltrkzvseta_"+
type] = dir.
make<TH2F>((
"pulltrkzvseta_"+
type).c_str(),
"normalized z-residuals (track - vertex) vs track #eta;track #eta;res_{z}/#sigma_{res_{z}}", 12,-3.,3.,100, -5., 5.);
2633 h[
"pulltrkz_"+
type] = dir.
make<TH1F>((
"pulltrkz_"+
type).c_str(),
"normalized z-residuals (track vs vertex);res_{z}/#sigma_{res_{z}};tracks", 100, -5., 5.);
2634 h[
"sigmatrkz0_"+
type] = dir.
make<TH1F>((
"sigmatrkz0_"+
type).c_str(),
"z-resolution (excluding beam);#sigma^{trk}_{z_{0}} (cm);tracks", 100, 0., 5.);
2635 h[
"sigmatrkz_"+
type] = dir.
make<TH1F>((
"sigmatrkz_"+
type).c_str(),
"z-resolution (including beam);#sigma^{trk}_{z} (cm);tracks", 100,0., 5.);
2636 h[
"nbarrelhits_"+
type] = dir.
make<TH1F>((
"nbarrelhits_"+
type).c_str(),
"number of pixel barrel hits;n. hits Barrel Pixel;tracks", 10, 0., 10.);
2637 h[
"nbarrelLayers_"+
type] = dir.
make<TH1F>((
"nbarrelLayers_"+
type).c_str(),
"number of pixel barrel layers;n. layers Barrel Pixel;tracks", 10, 0., 10.);
2638 h[
"nPxLayers_"+
type] = dir.
make<TH1F>((
"nPxLayers_"+
type).c_str(),
"number of pixel layers (barrel+endcap);n. Pixel layers;tracks", 10, 0., 10.);
2639 h[
"nSiLayers_"+
type] = dir.
make<TH1F>((
"nSiLayers_"+
type).c_str(),
"number of Tracker layers;n. Tracker layers;tracks", 20, 0., 20.);
2640 h[
"trackAlgo_"+
type] = dir.
make<TH1F>((
"trackAlgo_"+
type).c_str(),
"track algorithm;track algo;tracks", 30, 0., 30.);
2641 h[
"trackQuality_"+
type] = dir.
make<TH1F>((
"trackQuality_"+
type).c_str(),
"track quality;track quality;tracks", 7, -1., 6.);
2652 unsigned int theNOfBins,
2657 TH1F::SetDefaultSumw2(kTRUE);
2659 auto hash = std::make_pair(resType,varType);
2669 std::vector<TH1F*>
h;
2670 h.reserve(theNOfBins);
2672 if (theNOfBins==0) {
2673 edm::LogError(
"PrimaryVertexValidation") <<
"bookResidualsHistogram() The number of bins cannot be identically 0" << std::endl;
2684 for(
unsigned int i=0;
i<theNOfBins;
i++){
2687 Form(
"%s vs %s - bin %i (%f < %s < %f);%s %s;tracks",t_resType.c_str(),t_varType.c_str(),
i,
theDetails_.
trendbins[varType][
i],t_varType.c_str(),
theDetails_.
trendbins[varType][
i+1],t_resType.c_str(),units.c_str()) : Form(
"%s vs %s - bin %i;%s %s;tracks",t_resType.c_str(),t_varType.c_str(),
i,t_resType.c_str(),units.c_str());
2689 TH1F* htemp = dir.
make<TH1F>(Form(
"histo_%s_%s_plot%i",s_resType.c_str(),s_varType.c_str(),
i),
2705 using namespace reco;
2763 double q=
sqrt(1.-2.*kappa*D0);
2788 int longesthit=0, nbarrel=0;
2790 if ((**hit).isValid() && (**hit).geographicalId().det() ==
DetId::Tracker ){
2798 if (clust->sizeY()-longesthit>0) longesthit=clust->sizeY();
2799 if (clust->sizeY()>20.){
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
double qoverp() const
q / p
static const std::string kSharedResource
TH1F * n_dzEtaMedianTrend
double p() const
momentum vector magnitude
T getParameter(std::string const &) const
EventNumber_t event() const
TH1F * n_dxyEtaMADBiasTrend
double z0() const
z coordinate
T getUntrackedParameter(std::string const &, T const &) const
TH1F * a_dxyPhiMedianBiasTrend
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_]
static uint32_t getLayer(uint16_t pattern)
std::vector< TH1F * > a_d3DEtaResiduals
double d0Error() const
error on d0
TH1F * a_dzPhiMedianBiasTrend
GlobalPoint position() const
TH1F * a_dxyladderMeanTrend
TH1F * a_dxyEtaWidthBiasTrend
double longitudinalImpactParameterError() const
std::vector< TH1F * > n_reszPhiResiduals
TFileDirectory MADTrendsDir
std::vector< unsigned int > runControlNumbers_
EventAuxiliary const & eventAuxiliary() const override
bool isNonnull() const
Checks for non-null.
void fillByIndex(std::vector< TH1F * > &h, unsigned int index, double x, std::string tag="")
unsigned short lost() const
Number of lost (=invalid) hits on track.
TH1F * n_dxyEtaMedianTrend
TH1F * n_dxyEtaMeanBiasTrend
TH1F * a_dzEtaWidthBiasTrend
TH1F * a_dzPhiMADBiasTrend
TH1F * h_probeRefitVSigXY_
static const int nMaxtracks_
TH1F * h_probeRefitVSigZ_
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
static bool vtxSort(const reco::Vertex &a, const reco::Vertex &b)
TH1F * n_dxyEtaMedianBiasTrend
const PerigeeTrajectoryError & perigeeError() const
TFileDirectory WidthTrendsDir
TH1F * a_dxyEtaMADBiasTrend
std::pair< Measurement1D, Measurement1D > fitResiduals(TH1 *hist)
TH1F * h_probesignIP2DRefitV_
trackRef_iterator tracks_end() const
last iterator over tracks
TH1F * a_dzpTCentralWidthTrend
void setBeamSpot(const reco::BeamSpot &beamSpot)
double normalizedChi2() const
chi-squared divided by n.d.o.f. (or chi-squared * 1e6 if n.d.o.f. is zero)
void fillTrendPlot(TH1F *trendPlot, TH1F *residualsPlot[100], PVValHelper::estimator fitPar_, const std::string &var_)
int nhits1D_[nMaxtracks_]
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< TH1F * > h_dxy_pT_
double zError() const
error on z
TrackFilterForPVFindingBase * theTrackFilter_
TH1F * a_dxyResidualsMap[nMaxBins_][nMaxBins_]
std::map< std::string, TH1 * > hDA
TrackQuality
track quality
std::vector< TH1F * > a_IP3DEtaResiduals
const FreeTrajectoryState & theState() const
double theta() const
polar angle
#define DEFINE_FWK_MODULE(type)
std::vector< float > generateBins(int n, float start, float range)
std::vector< TH1F * > n_dzPhiResiduals
bool isValid() const
Tells whether the vertex is valid.
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
const HitPattern & hitPattern() const
unsigned int pxbLadder(const DetId &id) const
Global3DPoint GlobalPoint
reco::TransientTrack build(const reco::Track *p) const
std::vector< TH1F * > h_norm_dz_Central_pT_
const float mypT_bins_[nPtBins_+1]
TH1F * h_xErrOfflineVertex
double phi() const
azimuthal angle of momentum vector
TH1F * n_dzladderMeanTrend
float DOFUnbiasedVertex_[nMaxtracks_]
TH1F * n_dzPhiWidthBiasTrend
unsigned int pxbModule(const DetId &id) const
T * make(const Args &...args) const
make new ROOT object
double d3DFromMyVertex_[nMaxtracks_]
char const * what() const override
void fillTrendPlotByIndex(TH1F *trendPlot, std::vector< TH1F * > &h, PVValHelper::estimator fitPar_, PVValHelper::plotVariable plotVar=PVValHelper::END_OF_PLOTS)
std::vector< TH1F * > a_reszPhiResiduals
double dxyBs_[nMaxtracks_]
double zPCA_[nMaxtracks_]
std::vector< TH1F * > a_IP2DPhiResiduals
TH1F * a_dxyPhiWidthBiasTrend
float chi2ProbUnbiasedVertex_[nMaxtracks_]
double px() const
x coordinate of momentum vector
int pixelLayersWithMeasurement() const
std::vector< TH1F * > n_reszEtaResiduals
double dxyFromMyVertex_[nMaxtracks_]
TH1F * a_dzPhiWidthBiasTrend
TH1F * a_dzladderWidthTrend
virtual void endJob() override
TH1F * h_probeRefitVSig3D_
Measurement1D getMAD(TH1F *histo)
std::map< std::string, TH1 * > bookVertexHistograms(const TFileDirectory &dir)
int trackerLayersWithMeasurement() const
const Point & position() const
position
static bool pixelBarrelHitFilter(uint16_t pattern)
std::vector< TH1F * > h_dz_modZ_
std::vector< TH1F * > h_dxy_modZ_
std::vector< TH1F * > a_dxEtaResiduals
bool isBFieldConsistentWithMode(const edm::EventSetup &iSetup) const
std::pair< bool, bool > pixelHitsCheck(const reco::TransientTrack &track)
TrajectoryStateClosestToBeamLine stateAtBeamLine() const
int numberOfValidStripTOBHits() const
plotLabels getVarString(plotVariable var)
TH1F * h_probereszRefitV_
double dzErrorFromMyVertex_[nMaxtracks_]
std::vector< TH1F * > n_dxyEtaBiasResiduals
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)
LuminosityBlockNumber_t luminosityBlock() const
int isHighPurity_[nMaxtracks_]
int nhitsTIB_[nMaxtracks_]
static bool pixelEndcapHitFilter(uint16_t pattern)
std::vector< TH1F * > n_dxyEtaResiduals
TH1F * h_probeRefitVSigResZ_
double qoverp_[nMaxtracks_]
double IPTsigFromMyVertex_[nMaxtracks_]
static bool validHitFilter(uint16_t pattern)
bool isThere(GeomDetEnumerators::SubDetector subdet) const
const math::XYZPoint & innerPosition() const
position of the innermost hit
TrackAlgorithm algo() const
TH1F * a_dzEtaMedianTrend
std::vector< TH1F * > a_dzPhiBiasResiduals
double theta_[nMaxtracks_]
TH1F * a_dxyPhiMedianTrend
TH1F * a_dxypTCentralWidthTrend
double longitudinalImpactParameter() const
std::vector< TH1F * > h_norm_dxy_pT_
const DetContainer & dets() const override
Returm a vector of all GeomDet (including all GeomDetUnits)
std::vector< TH1F * > a_dzEtaResiduals
TH1F * a_dzPhiMeanBiasTrend
const Point & vertex() const
reference point on the track. This method is DEPRECATED, please use referencePoint() instead ...
float getHigh(residualType type, plotVariable plot)
int tracksUsedForVertexing_[nMaxtracks_]
float getLow(residualType type, plotVariable plot)
TH1F * n_dxymodZWidthTrend
TH1F * h_fitVtxTrackAverageWeight_
TFileDirectory Width2DMapsDir
int isGoodTrack_[nMaxtracks_]
double eta() const
pseudorapidity of momentum vector
virtual void beginJob() override
std::vector< TH1F * > a_dxyEtaBiasResiduals
TH1F * a_dxyPhiMADBiasTrend
unsigned int LuminosityBlockNumber_
TH1F * a_dxyPhiWidthTrend
int numberOfValidPixelBarrelHits() const
double zErrOfflineVertex_
TH1F * h_yErrOfflineVertex
std::vector< TH1F * > h_norm_dxy_ladder_
const PerigeeTrajectoryParameters & perigeeParameters() const
int nhitsFPIX_[nMaxtracks_]
bool useTracksFromRecoVtx_
std::vector< TH1F * > a_dzPhiResiduals
double chi2() const
chi-squared of the fit
TH1F * n_dzPhiMADBiasTrend
double yUnbiasedVertex_[nMaxtracks_]
TH1F * h_probeRecoVSigXY_
virtual int dimension() const =0
TH1F * h_probeRefitVLogSig3D_
TH1F * h_fitVtxTrackWeights_
TH1F * a_dxymodZWidthTrend
double pt() const
track transverse momentum
std::vector< TH1F * > n_dxyPhiResiduals
double transverseImpactParameter() const
Cos< T >::type cos(const T &t)
static const int nPtBins_
double ptError() const
error on Pt (set to 1000 TeV if charge==0 for safety)
unsigned int EventNumber_
int numberOfAllHits(HitCategory category) const
std::map< plotVariable, std::vector< float > > trendbins
Tan< T >::type tan(const T &t)
Abs< T >::type abs(const T &t)
int nhitsTID_[nMaxtracks_]
double chi2() const
chi-squares
double zUnbiasedVertex_[nMaxtracks_]
int numberOfValidStripTIDHits() const
double lambda() const
Lambda angle.
TH1F * a_dzPhiMedianTrend
double BeamWidthX() const
beam width X
std::vector< TH1F * > h_dxy_ladder_
unsigned short numberOfValidHits() const
number of valid hits found
int numberOfValidStripTECHits() const
float chi2normUnbiasedVertex_[nMaxtracks_]
TH1F * n_d3DResidualsMap[nMaxBins_][nMaxBins_]
T * make(const Args &...args) const
make new ROOT object
std::vector< TH1F * > a_dxyPhiResiduals
TH1I * h_probeHasBPixL1Overlap_
trackingRecHit_iterator recHitsBegin() const
Iterator to first hit on the track.
std::vector< TH1F * > a_dxyPhiBiasResiduals
edm::EDGetTokenT< reco::VertexCollection > theVertexCollectionToken
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
TH1F * n_dzEtaWidthBiasTrend
TH1F * a_d3DResidualsMap[nMaxBins_][nMaxBins_]
TH1F * n_dzEtaMADBiasTrend
std::vector< TH1F * > h_dxy_ladderNoOverlap_
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
double IPLsigFromMyVertex_[nMaxtracks_]
double dzBs_[nMaxtracks_]
double yPCA_[nMaxtracks_]
bool hasFirstLayerPixelHits(const reco::TransientTrack &track)
std::vector< TH1F * > n_dzEtaResiduals
double dxdz() const
dxdz slope
TH1F * a_dxyEtaWidthTrend
void setMap(residualType type, plotVariable plot, float low, float high)
FTS const & trackStateAtPCA() const
double pz() const
z coordinate of momentum vector
virtual std::vector< std::vector< reco::TransientTrack > > clusterize(const std::vector< reco::TransientTrack > &tracks) const =0
TH1F * n_dzPhiMeanBiasTrend
bin
set the eta bin as selection string.
std::vector< TH1F * > n_IP3DEtaResiduals
TH1F * h_nOfflineVertices
unsigned int pxbLayer(const DetId &id) const
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...
int nhits2D_[nMaxtracks_]
TH1F * a_dxyEtaMedianBiasTrend
double dzError() const
error on dz
std::map< std::pair< residualType, plotVariable >, std::pair< float, float > > range
double vz() const
z coordinate of the reference point on track
std::vector< TH1F * > h_norm_dz_pT_
GlobalPoint position() const
TH1F * n_dzPhiMedianBiasTrend
void fillMap(TH2F *trendMap, TH1F *residualsMapPlot[100][100], PVValHelper::estimator fitPar_)
static TrackQuality qualityByName(const std::string &name)
double xError() const
error on x
std::vector< TH1F * > h_dz_pT_
plotLabels getTypeString(residualType type)
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
TH1F * a_dzladderMeanTrend
void fill(std::map< std::string, TH1 * > &h, const std::string &s, double x)
void shrinkHistVectorToFit(std::vector< TH1F * > &h, unsigned int desired_size)
std::vector< TH1F * > n_dzEtaBiasResiduals
edm::Service< TFileService > fs
std::vector< TH1F * > h_dz_Central_pT_
TH1F * n_dzEtaMeanBiasTrend
const Track & track() const
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
bool isHit2D(const TrackingRecHit &hit) const
int nhitsTOB_[nMaxtracks_]
double chi2ndof_[nMaxtracks_]
TH1F * a_dxymodZMeanTrend
std::vector< TH1F * > h_dz_ladder_
std::vector< TH1F * > a_IP2DEtaResiduals
XYZPointD XYZPoint
point in space with cartesian internal representation
double sigmaZ() const
sigma z
int pixelBarrelLayersWithMeasurement() const
TFileDirectory Mean2DMapsDir
int nhitsTEC_[nMaxtracks_]
double BeamWidthY() const
beam width Y
TrackClusterizerInZ * theTrackClusterizer_
double yErrOfflineVertex_
std::vector< TH1F * > n_IP2DPhiResiduals
double xPCA_[nMaxtracks_]
double xUnbiasedVertex_[nMaxtracks_]
std::vector< TH1F * > h_dxy_Central_pT_
TH1F * n_dxypTCentralWidthTrend
TH1F * n_dxyPhiWidthTrend
virtual std::vector< reco::TransientTrack > select(const std::vector< reco::TransientTrack > &tracks) const =0
int numberOfValidStripTIBHits() const
TH1F * a_dzpTCentralMeanTrend
bool quality(const TrackQuality) const
Track quality.
int numberOfLostHits(HitCategory category) const
TH1F * a_dxypTCentralMeanTrend
TFileDirectory MedianTrendsDir
int numberOfValidPixelEndcapHits() const
TH1F * a_dxyEtaMeanBiasTrend
edm::EDGetTokenT< reco::BeamSpot > theBeamspotToken
TH1F * n_dxypTCentralMeanTrend
edm::EDGetTokenT< reco::TrackCollection > theTrackCollectionToken
EventID const & id() const
~PrimaryVertexValidation() override
TH1F * a_dzEtaMedianBiasTrend
Pixel cluster – collection of neighboring pixels above threshold.
double vy() const
y coordinate of the reference point on track
TString units(TString variable, Char_t axis)
double dzFromMyVertex_[nMaxtracks_]
TH1F * n_dxyEtaWidthTrend
TH1F * a_dxyPhiMeanBiasTrend
static int position[264][3]
unsigned short found() const
Number of valid hits on track.
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)
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
double y0() const
y coordinate
TH1F * a_dzmodZWidthTrend
TH1F * n_dxyladderMeanTrend
TH1F * a_dxyBiasResidualsMap[nMaxBins_][nMaxBins_]
TH1F * h_zErrOfflineVertex
std::vector< TH1F * > a_dxPhiResiduals
std::vector< TH1F * > h_norm_dz_modZ_
int charge() const
track electric charge
const Point & position() const
position
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
static const G4double kappa
TH1F * n_dzPhiMedianTrend
double normalizedChi2() const
chi-squared divided by n.d.o.f.
double dxyErrorFromMyVertex_[nMaxtracks_]
DetId geographicalId() const
std::vector< TH1F * > a_dyEtaResiduals
TH1F * n_dxyPhiWidthBiasTrend
trackRef_iterator tracks_begin() const
first iterator over tracks
std::vector< TH1F * > n_IP2DEtaResiduals
std::vector< TH1F * > h_norm_dz_ladder_
uint16_t getHitPattern(HitCategory category, int position) const
TH1F * n_dzladderWidthTrend
float sumOfWeightsUnbiasedVertex_[nMaxtracks_]
TH1F * n_dzBiasResidualsMap[nMaxBins_][nMaxBins_]
double d3DErrorFromMyVertex_[nMaxtracks_]
std::vector< TH1F * > a_dyPhiResiduals
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
TH1F * n_dxymodZMeanTrend
std::vector< TH1F * > h_dxy_ladderOverlap_
TH1F * n_dzEtaMedianBiasTrend
TH1F * a_dzBiasResidualsMap[nMaxBins_][nMaxBins_]
PVValHelper::histodetails theDetails_
T const * product() const
TH1F * a_dxyEtaMedianTrend
int hasRecVertex_[nMaxtracks_]
TH1F * a_dzResidualsMap[nMaxBins_][nMaxBins_]
Power< A, B >::type pow(const A &a, const B &b)
double xErrOfflineVertex_
double yError() const
error on y
TH1F * a_dzEtaMeanBiasTrend
float chi2UnbiasedVertex_[nMaxtracks_]
TH1F * n_dzpTCentralWidthTrend
size_t tracksSize() const
number of tracks
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
std::vector< TH1F * > h_norm_dxy_Central_pT_
TH1F * n_dzmodZWidthTrend
double py() const
y coordinate of momentum vector
TrackingRecHitCollection::base::const_iterator trackingRecHit_iterator
iterator over a vector of reference to TrackingRecHit in the same collection
double vx() const
x coordinate of the reference point on track
TH1F * n_dxyPhiMedianBiasTrend
TH1F * n_dxyPhiMeanBiasTrend
Global3DVector GlobalVector
double chi2_[nMaxtracks_]
std::vector< TH1F * > a_dzEtaBiasResiduals
std::vector< TH1F * > a_IP3DPhiResiduals
TH1F * n_dxyladderWidthTrend
int nhitsBPIX_[nMaxtracks_]
std::vector< TH1F * > n_dzPhiBiasResiduals
double x0() const
x coordinate
trackingRecHit_iterator recHitsEnd() const
Iterator to last hit on the track.
double IP3DsigFromMyVertex_[nMaxtracks_]