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);
185 using namespace reco;
189 edm::LogWarning(
"PrimaryVertexValidation") <<
"*********************************************************************************\n" 190 <<
"* The configuration (ptOfProbe > " <<
ptOfProbe_ <<
"GeV) is not correctly set for current value of magnetic field \n" 191 <<
"* Switching it to 0. !!! \n" 192 <<
"*********************************************************************************"<< std::endl;
200 bool passesRunControl =
false;
208 passesRunControl =
true;
212 if (!passesRunControl)
return;
244 edm::LogInfo(
"tracker geometry read")<<
"There are: "<< pDD->
dets().size() <<
" detectors";
296 double fBfield_=((*theB_).field()->inTesla(
GlobalPoint(0.,0.,0.))).
z();
304 if(!trackCollectionHandle.
isValid())
return;
305 auto const &
tracks = *trackCollectionHandle;
325 LogTrace(
"PrimaryVertexValidation")<<
"caught std::exception "<<er.
what()<<std::endl;
328 std::vector<Vertex> vsorted = *(
vertices);
335 if( vsorted.empty())
return;
340 if ( vsorted[0].isValid() ) {
357 unsigned int vertexCollectionSize = vsorted.size();
360 for (
unsigned int i=0;
i<vertexCollectionSize;
i++) {
361 const Vertex& vertex = vsorted.at(
i);
362 if (vertex.
isValid()) nvvertex++;
373 double chi2prob = 0.;
375 if (!vsorted.at(0).isFake()) {
388 double pt = (**itrk).pt();
393 double dxyRes = (**itrk).dxy(myVertex);
394 double dzRes = (**itrk).dz(myVertex);
396 double dxy_err = (**itrk).dxyError();
397 double dz_err = (**itrk).dzError();
399 float trackphi = ((**itrk).phi())*(180/
M_PI);
400 float tracketa = (**itrk).eta();
410 if(tracketa >= etaF && tracketa < etaL ){
419 if(trackphi >= phiF && trackphi < phiL ){
426 for(
int j=0; j<
nBins_; j++){
431 if(tracketa >= etaJ && tracketa < etaK ){
458 if ( beamSpotHandle.
isValid() ) {
459 beamSpot = *beamSpotHandle;
499 edm::LogInfo(
"PrimaryVertexValidation")<<
" looping over "<<trackCollectionHandle->size()<<
"tracks";
501 h_nTracks->Fill(trackCollectionHandle->size());
507 std::vector<TransientTrack> t_tks;
516 edm::LogInfo(
"PrimaryVertexValidation") <<
"Found: " << t_tks.size() <<
" reconstructed tracks";
532 edm::LogInfo(
"PrimaryVertexValidation")<<
" looping over: "<< clusters.size() <<
" clusters from " << t_tks.size() <<
" selected tracks";
541 for (
const auto & iclus : clusters){
546 for(
const auto & theTTrack : iclus)
555 const Track & theTrack = theTTrack.track();
597 if((*iHit)->isValid()) {
599 if (this->
isHit2D(**iHit)) {++nRecHit2D;}
631 vector<TransientTrack> theFinalTracks;
632 theFinalTracks.clear();
634 for (
const auto & tk : iclus) {
638 if( tk == theTTrack )
continue;
640 theFinalTracks.push_back(tk);
645 if(theFinalTracks.size() > 1){
648 edm::LogInfo(
"PrimaryVertexValidation")<<
"Transient Track Collection size: "<<theFinalTracks.size();
657 double totalTrackWeights=0;
658 if(theFittedVertex.isValid ()){
661 if(theFittedVertex.hasTrackWeight()){
662 for(
const auto & theFinalTrack : theFinalTracks){
664 totalTrackWeights+= theFittedVertex.trackWeight(theFinalTrack);
672 const math::XYZPoint myVertex(theFittedVertex.position().x(),theFittedVertex.position().y(),theFittedVertex.position().z());
674 const Vertex vertex = theFittedVertex;
692 h_fitVtxChi2Prob_->Fill(TMath::Prob(theFittedVertex.totalChiSquared(),(
int)theFittedVertex.degreesOfFreedom()));
695 double dxyFromMyVertex = theTrack.
dxy(myVertex);
696 double dzFromMyVertex = theTrack.
dz(myVertex);
698 GlobalPoint vert(theFittedVertex.position().x(),theFittedVertex.position().y(),theFittedVertex.position().z());
704 double dz_err =
sqrt(
std::pow(theTrack.
dzError(), 2) + theFittedVertex.positionError().czz());
714 double s_ip2dpv_corr = s_ip2dpv.second.value();
715 double s_ip2dpv_err = s_ip2dpv.second.error();
724 double s_ip3dpv_corr = s_ip3dpv.second.value();
725 double s_ip3dpv_err = s_ip3dpv.second.error();
729 double ip3d_corr = ip3dpv.second.value();
730 double ip3d_err = ip3dpv.second.error();
738 float my_dx = refPoint.
x() - myVertex.x();
739 float my_dy = refPoint.
y() - myVertex.y();
741 float my_dx2 = cPToVtx.
x() - myVertex.x();
742 float my_dy2 = cPToVtx.
y() - myVertex.y();
744 float my_dxy =
std::sqrt(my_dx*my_dx + my_dy*my_dy);
752 edm::LogInfo(
"PrimaryVertexValidation")<<
"my_dx:" << my_dx
753 <<
" my_dy:" << my_dy
754 <<
" my_dxy:" << my_dxy
755 <<
" my_dx2:" << my_dx2
756 <<
" my_dy2:" << my_dy2
758 <<
" dxyFromVtx:" << dxyFromMyVertex <<
"\n" 759 <<
" ============================== "<<
"\n" 762 <<
"diff3:" << (my_dx - my_dx2) <<
" " << (my_dy - my_dy2) <<
"\n" 782 float trackphi = (theTrack.
phi())*(180./
M_PI);
783 float tracketa = theTrack.
eta();
784 float trackpt = theTrack.
pt();
785 float trackp = theTrack.
p();
790 int ladder_num = -1.;
791 int module_num = -1.;
792 int L1BPixHitCount = 0;
797 unsigned int subid = detId.
subdetId();
815 for(
int ipTBin=0; ipTBin<
nPtBins_; ipTBin++){
823 if(
std::abs(tracketa)<1.5 && (trackpt >= pTF && trackpt < pTL) ){
853 if(pixelOcc.first ==
true)
854 edm::LogInfo(
"PrimaryVertexValidation")<<
"has BPIx hits"<<std::endl;
855 if(pixelOcc.second ==
true)
856 edm::LogInfo(
"PrimaryVertexValidation")<<
"has FPix hits"<<std::endl;
859 if(!
doBPix_ && (pixelOcc.first ==
true))
continue;
860 if(!
doFPix_ && (pixelOcc.second ==
true))
continue;
886 float dxyRecoV = theTrack.
dz(theRecoVertex);
887 float dzRecoV = theTrack.
dxy(theRecoVertex);
891 double zTrack=(theTTrack.stateAtBeamLine().trackStateAtPCA()).
position().z();
892 double zVertex=theFittedVertex.position().z();
893 double tantheta=
tan((theTTrack.stateAtBeamLine().trackStateAtPCA()).momentum().theta());
896 double restrkz = zTrack-
zVertex;
897 double pulltrkz = (zTrack-
zVertex)/TMath::Sqrt(dz2);
922 n_dxyVsPhi->Fill(trackphi,dxyFromMyVertex/s_ip2dpv_err);
925 a_dxyVsEta->Fill(tracketa,dxyFromMyVertex*cmToum);
927 n_dxyVsEta->Fill(tracketa,dxyFromMyVertex/s_ip2dpv_err);
930 if( ladder_num > 0 && module_num > 0 ) {
932 LogDebug(
"PrimaryVertexValidation")<<
" ladder_num"<<ladder_num <<
" module_num"<<module_num <<std::endl;
943 if(L1BPixHitCount==1){
956 for(
int i=0; i<
nBins_; i++){
964 if(tracketa >= etaF && tracketa < etaL ){
983 if(trackphi >= phiF && trackphi < phiL ){
1000 for(
int j=0; j<
nBins_; j++){
1005 if(tracketa >= etaJ && tracketa < etaK ){
1020 edm::LogInfo(
"PrimaryVertexValidation")<<
" myVertex.x()= "<<myVertex.x()<<
"\n" 1021 <<
" myVertex.y()= "<<myVertex.y()<<
" \n" 1022 <<
" myVertex.z()= "<<myVertex.z()<<
" \n" 1023 <<
" theTrack.dz(myVertex)= "<<theTrack.
dz(myVertex)<<
" \n" 1024 <<
" zPCA -myVertex.z() = "<<(theTrack.
vertex().z() -myVertex.z());
1032 LogTrace(
"PrimaryVertexValidation")<<
"caught std::exception "<<er.
what()<<std::endl;
1039 edm::LogInfo(
"PrimaryVertexValidation")<<
"Not enough tracks to make a vertex. Returns no vertex info";
1046 edm::LogInfo(
"PrimaryVertexValidation")<<
"Track "<<i<<
" : pT = "<<theTrack.
pt();
1071 if (dynamic_cast<const SiStripRecHit2D*>(&hit))
return false;
1072 else if (dynamic_cast<const SiStripMatchedRecHit2D*>(&hit))
return true;
1073 else if (dynamic_cast<const ProjectedSiStripRecHit2D*>(&hit))
return false;
1075 edm::LogError(
"UnkownType") <<
"@SUB=AlignmentTrackSelector::isHit2D" 1076 <<
"Tracker hit not in pixel and neither SiStripRecHit2D nor " 1077 <<
"SiStripMatchedRecHit2D nor ProjectedSiStripRecHit2D.";
1082 edm::LogWarning(
"DetectorMismatch") <<
"@SUB=AlignmentTrackSelector::isHit2D" 1083 <<
"Hit not in tracker with 'official' dimension >=2.";
1094 bool hasBPixHits =
false;
1095 bool hasFPixHits =
false;
1105 return std::make_pair(hasBPixHits,hasFPixHits);
1112 using namespace reco;
1131 <<
"######################################\n" 1133 <<
"######################################";
1225 TH1F::SetDefaultSumw2(kTRUE);
1227 h_lumiFromConfig = EventFeatures.
make<TH1F>(
"h_lumiFromConfig",
"luminosity from config;;luminosity of present run",1,-0.5,0.5);
1230 h_runFromConfig = EventFeatures.
make<TH1I>(
"h_runFromConfig",
"run number from config;;run number (from configuration)",
1236 h_runFromEvent = EventFeatures.
make<TH1I>(
"h_runFromEvent",
"run number from config;;run number (from event)",1,-0.5,0.5);
1238 h_nTracks = EventFeatures.
make<TH1F>(
"h_nTracks",
"number of tracks per event;n_{tracks}/event;n_{events}",300,-0.5,299.5);
1239 h_nClus = EventFeatures.
make<TH1F>(
"h_nClus",
"number of track clusters;n_{clusters}/event;n_{events}",50,-0.5,49.5);
1240 h_nOfflineVertices = EventFeatures.
make<TH1F>(
"h_nOfflineVertices",
"number of offline reconstructed vertices;n_{vertices}/event;n_{events}",50,-0.5,49.5);
1241 h_runNumber = EventFeatures.
make<TH1F>(
"h_runNumber",
"run number;run number;n_{events}",100000,250000.,350000.);
1242 h_xOfflineVertex = EventFeatures.
make<TH1F>(
"h_xOfflineVertex",
"x-coordinate of offline vertex;x_{vertex};n_{events}",100,-0.1,0.1);
1243 h_yOfflineVertex = EventFeatures.
make<TH1F>(
"h_yOfflineVertex",
"y-coordinate of offline vertex;y_{vertex};n_{events}",100,-0.1,0.1);
1244 h_zOfflineVertex = EventFeatures.
make<TH1F>(
"h_zOfflineVertex",
"z-coordinate of offline vertex;z_{vertex};n_{events}",100,-30.,30.);
1245 h_xErrOfflineVertex = EventFeatures.
make<TH1F>(
"h_xErrOfflineVertex",
"x-coordinate error of offline vertex;err_{x}^{vtx};n_{events}",100,0.,0.01);
1246 h_yErrOfflineVertex = EventFeatures.
make<TH1F>(
"h_yErrOfflineVertex",
"y-coordinate error of offline vertex;err_{y}^{vtx};n_{events}",100,0.,0.01);
1247 h_zErrOfflineVertex = EventFeatures.
make<TH1F>(
"h_zErrOfflineVertex",
"z-coordinate error of offline vertex;err_{z}^{vtx};n_{events}",100,0.,10.);
1248 h_BSx0 = EventFeatures.
make<TH1F>(
"h_BSx0",
"x-coordinate of reco beamspot;x^{BS}_{0};n_{events}",100,-0.1,0.1);
1249 h_BSy0 = EventFeatures.
make<TH1F>(
"h_BSy0",
"y-coordinate of reco beamspot;y^{BS}_{0};n_{events}",100,-0.1,0.1);
1250 h_BSz0 = EventFeatures.
make<TH1F>(
"h_BSz0",
"z-coordinate of reco beamspot;z^{BS}_{0};n_{events}",100,-1.,1.);
1251 h_Beamsigmaz = EventFeatures.
make<TH1F>(
"h_Beamsigmaz",
"z-coordinate beam width;#sigma_{Z}^{beam};n_{events}",100,0.,1.);
1252 h_BeamWidthX = EventFeatures.
make<TH1F>(
"h_BeamWidthX",
"x-coordinate beam width;#sigma_{X}^{beam};n_{events}",100,0.,0.01);
1253 h_BeamWidthY = EventFeatures.
make<TH1F>(
"h_BeamWidthY",
"y-coordinate beam width;#sigma_{Y}^{beam};n_{events}",100,0.,0.01);
1255 h_etaMax = EventFeatures.
make<TH1F>(
"etaMax",
"etaMax",1,-0.5,0.5);
1256 h_nbins = EventFeatures.
make<TH1F>(
"nbins",
"nbins",1,-0.5,0.5);
1257 h_nLadders = EventFeatures.
make<TH1F>(
"nladders",
"n. ladders",1,-0.5,0.5);
1262 h_probePt_ = ProbeFeatures.
make<TH1F>(
"h_probePt",
"p_{T} of probe track;track p_{T} (GeV); tracks",100,0.,50.);
1263 h_probeP_ = ProbeFeatures.
make<TH1F>(
"h_probeP",
"momentum of probe track;track p (GeV); tracks",100,0.,100.);
1264 h_probeEta_ = ProbeFeatures.
make<TH1F>(
"h_probeEta",
"#eta of the probe track;track #eta;tracks",54,-2.8,2.8);
1265 h_probePhi_ = ProbeFeatures.
make<TH1F>(
"h_probePhi",
"#phi of probe track;track #phi (rad);tracks",100,-3.15,3.15);
1267 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);
1268 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.);
1270 h_probeChi2_ = ProbeFeatures.
make<TH1F>(
"h_probeChi2",
"#chi^{2} of probe track;track #chi^{2}; tracks",100,0.,100.);
1271 h_probeNormChi2_ = ProbeFeatures.
make<TH1F>(
"h_probeNormChi2",
" normalized #chi^{2} of probe track;track #chi^{2}/ndof; tracks",100,0.,10.);
1272 h_probeCharge_ = ProbeFeatures.
make<TH1F>(
"h_probeCharge",
"charge of profe track;track charge Q;tracks",3,-1.5,1.5);
1273 h_probeQoverP_ = ProbeFeatures.
make<TH1F>(
"h_probeQoverP",
"q/p of probe track; track Q/p (GeV^{-1});tracks",200,-1.,1.);
1274 h_probedzRecoV_ = ProbeFeatures.
make<TH1F>(
"h_probedzRecoV",
"d_{z}(V_{offline}) of probe track;track d_{z}(V_{off}) (cm);tracks",200,-1.,1.);
1275 h_probedxyRecoV_ = ProbeFeatures.
make<TH1F>(
"h_probedxyRecoV",
"d_{xy}(V_{offline}) of probe track;track d_{xy}(V_{off}) (cm);tracks",200,-1.,1.);
1276 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);
1277 h_probesignIP2DRefitV_ = ProbeFeatures.
make<TH1F>(
"h_probesignIPRefitV",
"ip_{2D}(V_{refit}) of probe track;track ip_{2D}(V_{fit}) (cm);tracks",200,-1.,1.);
1278 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);
1280 h_probez0RefitV_ = ProbeFeatures.
make<TH1F>(
"h_probez0RefitV",
"z_{0}(V_{refit}) of probe track;track z_{0}(V_{fit}) (cm);tracks",200,-1.,1.);
1281 h_probed0RefitV_ = ProbeFeatures.
make<TH1F>(
"h_probed0RefitV",
"d_{0}(V_{refit}) of probe track;track d_{0}(V_{fit}) (cm);tracks",200,-1.,1.);
1283 h_probed3DRefitV_ = ProbeFeatures.
make<TH1F>(
"h_probed3DRefitV",
"d_{3D}(V_{refit}) of probe track;track d_{3D}(V_{fit}) (cm);tracks",200,0.,1.);
1284 h_probereszRefitV_ = ProbeFeatures.
make<TH1F>(
"h_probeReszRefitV",
"z_{track} -z_{V_{refit}};track res_{z}(V_{refit}) (cm);tracks",200,-1.,1.);
1286 h_probeRecoVSigZ_ = ProbeFeatures.
make<TH1F>(
"h_probeRecoVSigZ" ,
"Longitudinal DCA Significance (reco);d_{z}(V_{off})/#sigma_{dz};tracks",100,-8,8);
1287 h_probeRecoVSigXY_ = ProbeFeatures.
make<TH1F>(
"h_probeRecoVSigXY" ,
"Transverse DCA Significance (reco);d_{xy}(V_{off})/#sigma_{dxy};tracks",100,-8,8);
1288 h_probeRefitVSigZ_ = ProbeFeatures.
make<TH1F>(
"h_probeRefitVSigZ" ,
"Longitudinal DCA Significance (refit);d_{z}(V_{fit})/#sigma_{dz};tracks",100,-8,8);
1289 h_probeRefitVSigXY_= ProbeFeatures.
make<TH1F>(
"h_probeRefitVSigXY",
"Transverse DCA Significance (refit);d_{xy}(V_{fit})/#sigma_{dxy};tracks",100,-8,8);
1290 h_probeRefitVSig3D_= ProbeFeatures.
make<TH1F>(
"h_probeRefitVSig3D",
"3D DCA Significance (refit);d_{3D}/#sigma_{3D};tracks",100,0.,20.);
1291 h_probeRefitVLogSig3D_ = ProbeFeatures.
make<TH1F>(
"h_probeRefitVLogSig3D",
"log_{10}(3D DCA-Significance) (refit);log_{10}(d_{3D}/#sigma_{3D});tracks",100,-5.,4.);
1292 h_probeRefitVSigResZ_ = ProbeFeatures.
make<TH1F>(
"h_probeRefitVSigResZ" ,
"Longitudinal residual significance (refit);(z_{track} -z_{V_{fit}})/#sigma_{res_{z}};tracks",100,-8,8);
1294 h_probeHits_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechits" ,
"N_{hits} ;N_{hits} ;tracks",40,-0.5,39.5);
1295 h_probeHits1D_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechits1D" ,
"N_{hits} 1D ;N_{hits} 1D ;tracks",40,-0.5,39.5);
1296 h_probeHits2D_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechits2D" ,
"N_{hits} 2D ;N_{hits} 2D ;tracks",40,-0.5,39.5);
1297 h_probeHitsInTIB_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTIB" ,
"N_{hits} TIB ;N_{hits} TIB;tracks",40,-0.5,39.5);
1298 h_probeHitsInTOB_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTOB" ,
"N_{hits} TOB ;N_{hits} TOB;tracks",40,-0.5,39.5);
1299 h_probeHitsInTID_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTID" ,
"N_{hits} TID ;N_{hits} TID;tracks",40,-0.5,39.5);
1300 h_probeHitsInTEC_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTEC" ,
"N_{hits} TEC ;N_{hits} TEC;tracks",40,-0.5,39.5);
1301 h_probeHitsInBPIX_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsBPIX",
"N_{hits} BPIX;N_{hits} BPIX;tracks",40,-0.5,39.5);
1302 h_probeHitsInFPIX_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsFPIX",
"N_{hits} FPIX;N_{hits} FPIX;tracks",40,-0.5,39.5);
1304 h_probeL1Ladder_ = ProbeFeatures.
make<TH1F>(
"h_probeL1Ladder",
"Ladder number (L1 hit); ladder number",22,-1.5,20.5);
1305 h_probeL1Module_ = ProbeFeatures.
make<TH1F>(
"h_probeL1Module",
"Module number (L1 hit); module number",10,-1.5,8.5);
1310 h_fitVtxNtracks_ = RefitVertexFeatures.make<TH1F>(
"h_fitVtxNtracks" ,
"N_{trks} used in vertex fit;N^{fit}_{tracks};vertices" ,100,-0.5,99.5);
1311 h_fitVtxNdof_ = RefitVertexFeatures.make<TH1F>(
"h_fitVtxNdof" ,
"N_{DOF} of vertex fit;N_{DOF} of refit vertex;vertices" ,100,-0.5,99.5);
1312 h_fitVtxChi2_ = RefitVertexFeatures.make<TH1F>(
"h_fitVtxChi2" ,
"#chi^{2} of vertex fit;vertex #chi^{2};vertices" ,100,-0.5,99.5);
1313 h_fitVtxChi2ndf_ = RefitVertexFeatures.make<TH1F>(
"h_fitVtxChi2ndf" ,
"#chi^{2}/ndf of vertex fit;vertex #chi^{2}/ndf;vertices" ,100,-0.5,9.5);
1314 h_fitVtxChi2Prob_ = RefitVertexFeatures.make<TH1F>(
"h_fitVtxChi2Prob" ,
"Prob(#chi^{2},ndf) of vertex fit;Prob(#chi^{2},ndf);vertices",40,0.,1.);
1315 h_fitVtxTrackWeights_ = RefitVertexFeatures.make<TH1F>(
"h_fitVtxTrackWeights",
"track weights associated to track;track weights;tracks",40,0.,1.);
1316 h_fitVtxTrackAverageWeight_ = RefitVertexFeatures.make<TH1F>(
"h_fitVtxTrackAverageWeight_",
"average track weight per vertex;#LT track weight #GT;vertices",40,0.,1.);
1321 h_recoVtxNtracks_ = RecoVertexFeatures.
make<TH1F>(
"h_recoVtxNtracks" ,
"N^{vtx}_{trks};N^{vtx}_{trks};vertices" ,100,-0.5,99.5);
1322 h_recoVtxChi2ndf_ = RecoVertexFeatures.
make<TH1F>(
"h_recoVtxChi2ndf" ,
"#chi^{2}/ndf vtx;#chi^{2}/ndf vtx;vertices" ,10,-0.5,9.5);
1323 h_recoVtxChi2Prob_ = RecoVertexFeatures.
make<TH1F>(
"h_recoVtxChi2Prob" ,
"Prob(#chi^{2},ndf);Prob(#chi^{2},ndf);vertices",40,0.,1.);
1324 h_recoVtxSumPt_ = RecoVertexFeatures.
make<TH1F>(
"h_recoVtxSumPt" ,
"Sum(p^{trks}_{T});Sum(p^{trks}_{T});vertices" ,100,0.,200.);
1494 for (
int j=0; j<
nBins_; ++j ) {
1500 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy};tracks",etaF,etaL,phiF,phiL),
1504 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z};tracks",etaF,etaL,phiF,phiL),
1508 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{3D};tracks",etaF,etaL,phiF,phiL),
1512 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy}/#sigma_{d_{xy}};tracks",etaF,etaL,phiF,phiL),
1516 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z}/#sigma_{d_{z}};tracks",etaF,etaL,phiF,phiL),
1520 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{3D}/#sigma_{d_{3D}};tracks",etaF,etaL,phiF,phiL),
1530 a_dxyVsPhi = BiasVsParameter.make<TH2F>(
"h2_dxy_vs_phi",
"d_{xy} vs track #phi;track #phi [rad];track d_{xy}(PV) [#mum]",
1533 a_dzVsPhi = BiasVsParameter.make<TH2F>(
"h2_dz_vs_phi",
"d_{z} vs track #phi;track #phi [rad];track d_{z}(PV) [#mum]",
1536 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}}",
1539 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}}",
1542 a_dxyVsEta = BiasVsParameter.make<TH2F>(
"h2_dxy_vs_eta",
"d_{xy} vs track #eta;track #eta;track d_{xy}(PV) [#mum]",
1545 a_dzVsEta = BiasVsParameter.make<TH2F>(
"h2_dz_vs_eta",
"d_{z} vs track #eta;track #eta;track d_{z}(PV) [#mum]",
1548 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}}",
1551 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}}",
1562 double highedge=nBins_-0.5;
1563 double lowedge=-0.5;
1568 "#LT d_{xy} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy} #GT [#mum]",
1569 nBins_,lowedge,highedge);
1572 "#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{xy}} [#mum]",
1573 nBins_,lowedge,highedge);
1576 "#LT d_{z} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z} #GT [#mum]",
1577 nBins_,lowedge,highedge);
1580 nBins_,lowedge,highedge);
1583 "#LT d_{xy} #GT vs #eta sector;#eta (sector);#LT d_{xy} #GT [#mum]",
1584 nBins_,lowedge,highedge);
1587 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{xy}} [#mum]",
1588 nBins_,lowedge,highedge);
1591 "#LT d_{z} #GT vs #eta sector;#eta (sector);#LT d_{z} #GT [#mum]" 1592 ,
nBins_,lowedge,highedge);
1595 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{z}} [#mum]",
1596 nBins_,lowedge,highedge);
1599 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy}/#sigma_{d_{xy}} #GT",
1600 nBins_,lowedge,highedge);
1603 "width(d_{xy}/#sigma_{d_{xy}}) vs #phi sector;#varphi (sector) [degrees]; width(d_{xy}/#sigma_{d_{xy}})",
1604 nBins_,lowedge,highedge);
1607 "#LT d_{z}/#sigma_{d_{z}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z}/#sigma_{d_{z}} #GT",
1608 nBins_,lowedge,highedge);
1611 "width(d_{z}/#sigma_{d_{z}}) vs #phi sector;#varphi (sector) [degrees];width(d_{z}/#sigma_{d_{z}})",
1612 nBins_,lowedge,highedge);
1615 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #eta sector;#eta (sector);#LT d_{xy}/#sigma_{d_{z}} #GT",
1616 nBins_,lowedge,highedge);
1619 "width(d_{xy}/#sigma_{d_{xy}}) vs #eta sector;#eta (sector);width(d_{xy}/#sigma_{d_{z}})",
1620 nBins_,lowedge,highedge);
1623 "#LT d_{z}/#sigma_{d_{z}} #GT vs #eta sector;#eta (sector);#LT d_{z}/#sigma_{d_{z}} #GT",
1624 nBins_,lowedge,highedge);
1627 "width(d_{z}/#sigma_{d_{z}}) vs #eta sector;#eta (sector);width(d_{z}/#sigma_{d_{z}})",
1628 nBins_,lowedge,highedge);
1633 "#LT d_{xy} #GT vs pT;p_{T} [GeV];#LT d_{xy} #GT [#mum]",
1637 "#sigma_{d_{xy}} vs pT;p_{T} [GeV];#sigma_{d_{xy}} [#mum]",
1641 "#LT d_{z} #GT vs pT;p_{T} [GeV];#LT d_{z} #GT [#mum]",
1649 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs pT;p_{T} [GeV];#LT d_{xy}/#sigma_{d_{xy}} #GT",
1653 "width(d_{xy}/#sigma_{d_{xy}}) vs pT;p_{T} [GeV]; width(d_{xy}/#sigma_{d_{xy}})",
1657 "#LT d_{z}/#sigma_{d_{z}} #GT vs pT;p_{T} [GeV];#LT d_{z}/#sigma_{d_{z}} #GT",
1661 "width(d_{z}/#sigma_{d_{z}}) vs pT;p_{T} [GeV];width(d_{z}/#sigma_{d_{z}})",
1666 "#LT d_{xy} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{xy} #GT [#mum]",
1670 "#sigma_{d_{xy}} vs p_{T};p_{T}(|#eta|<1.) [GeV];#sigma_{d_{xy}} [#mum]",
1674 "#LT d_{z} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{z} #GT [#mum]" 1678 "#sigma_{d_{z}} vs p_{T};p_{T}(|#eta|<1.) [GeV];#sigma_{d_{z}} [#mum]",
1682 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{xy}/#sigma_{d_{z}} #GT",
1686 "width(d_{xy}/#sigma_{d_{xy}}) vs p_{T};p_{T}(|#eta|<1.) [GeV];width(d_{xy}/#sigma_{d_{z}})",
1690 "#LT d_{z}/#sigma_{d_{z}} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{z}/#sigma_{d_{z}} #GT",
1694 "width(d_{z}/#sigma_{d_{z}}) vs p_{T};p_{T}(|#eta|<1.) [GeV];width(d_{z}/#sigma_{d_{z}})",
1700 "#LT d_{xy} #GT map;#eta (sector);#varphi (sector) [degrees]",
1704 "#LT d_{z} #GT map;#eta (sector);#varphi (sector) [degrees]",
1708 "#LT d_{xy}/#sigma_{d_{xy}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1712 "#LT d_{z}/#sigma_{d_{z}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1716 "#sigma_{d_{xy}} map;#eta (sector);#varphi (sector) [degrees]",
1720 "#sigma_{d_{z}} map;#eta (sector);#varphi (sector) [degrees]",
1724 "width(d_{xy}/#sigma_{d_{xy}}) map;#eta (sector);#varphi (sector) [degrees]",
1728 "width(d_{z}/#sigma_{d_{z}}) map;#eta (sector);#varphi (sector) [degrees]",
1734 "Median of d_{xy} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}) [#mum]",
1735 nBins_,lowedge,highedge);
1738 "Median absolute deviation of d_{xy} vs #phi sector;#varphi (sector) [degrees];MAD(d_{xy}) [#mum]",
1739 nBins_,lowedge,highedge);
1742 "Median of d_{z} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}) [#mum]",
1743 nBins_,lowedge,highedge);
1746 "Median absolute deviation of d_{z} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}) [#mum]",
1747 nBins_,lowedge,highedge);
1750 "Median of d_{xy} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}) [#mum]",
1751 nBins_,lowedge,highedge);
1754 "Median absolute deviation of d_{xy} vs #eta sector;#eta (sector);MAD(d_{xy}) [#mum]",
1755 nBins_,lowedge,highedge);
1758 "Median of d_{z} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}) [#mum]",
1759 nBins_,lowedge,highedge);
1762 "Median absolute deviation of d_{z} vs #eta sector;#eta (sector);MAD(d_{z}) [#mum]",
1763 nBins_,lowedge,highedge);
1766 "Median of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}/#sigma_{d_{xy}})",
1767 nBins_,lowedge,highedge);
1770 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees]; MAD(d_{xy}/#sigma_{d_{xy}})",
1771 nBins_,lowedge,highedge);
1774 "Median of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
1775 nBins_,lowedge,highedge);
1778 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}/#sigma_{d_{z}})",
1779 nBins_,lowedge,highedge);
1782 "Median of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}/#sigma_{d_{z}})",
1783 nBins_,lowedge,highedge);
1786 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);MAD(d_{xy}/#sigma_{d_{z}})",
1787 nBins_,lowedge,highedge);
1790 "Median of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
1791 nBins_,lowedge,highedge);
1794 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);MAD(d_{z}/#sigma_{d_{z}})",
1795 nBins_,lowedge,highedge);
1839 for (
int j=0; j<
nBins_; ++j ) {
1845 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy} [#mum];tracks",etaF,etaL,phiF,phiL),
1849 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z} [#mum];tracks",etaF,etaL,phiF,phiL),
1853 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy}/#sigma_{d_{xy}};tracks",etaF,etaL,phiF,phiL),
1857 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z}/#sigma_{d_{z}};tracks",etaF,etaL,phiF,phiL),
1875 "#LT d_{xy} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy} #GT [#mum]",
1876 nBins_,lowedge,highedge);
1879 "#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{xy}} [#mum]",
1880 nBins_,lowedge,highedge);
1883 "#LT d_{z} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z} #GT [#mum]",
1884 nBins_,lowedge,highedge);
1887 "#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{z}} [#mum]",
1888 nBins_,lowedge,highedge);
1891 "#LT d_{xy} #GT vs #eta sector;#eta (sector);#LT d_{xy} #GT [#mum]",
1892 nBins_,lowedge,highedge);
1895 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{xy}} [#mum]",
1896 nBins_,lowedge,highedge);
1899 "#LT d_{z} #GT vs #eta sector;#eta (sector);#LT d_{z} #GT [#mum]",
1900 nBins_,lowedge,highedge);
1903 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{z}} [#mum]",
1904 nBins_,lowedge,highedge);
1907 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy}/#sigma_{d_{xy}} #GT",
1908 nBins_,lowedge,highedge);
1911 "width(d_{xy}/#sigma_{d_{xy}}) vs #phi sector;#varphi (sector) [degrees]; width(d_{xy}/#sigma_{d_{xy}})",
1912 nBins_,lowedge,highedge);
1915 "#LT d_{z}/#sigma_{d_{z}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z}/#sigma_{d_{z}} #GT",
1916 nBins_,lowedge,highedge);
1919 "width(d_{z}/#sigma_{d_{z}}) vs #phi sector;#varphi (sector) [degrees];width(d_{z}/#sigma_{d_{z}})",
1920 nBins_,lowedge,highedge);
1923 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #eta sector;#eta (sector);#LT d_{xy}/#sigma_{d_{z}} #GT",
1924 nBins_,lowedge,highedge);
1927 "width(d_{xy}/#sigma_{d_{xy}}) vs #eta sector;#eta (sector);width(d_{xy}/#sigma_{d_{z}})",
1928 nBins_,lowedge,highedge);
1931 "#LT d_{z}/#sigma_{d_{z}} #GT vs #eta sector;#eta (sector);#LT d_{z}/#sigma_{d_{z}} #GT",
1932 nBins_,lowedge,highedge);
1935 "width(d_{z}/#sigma_{d_{z}}) vs #eta sector;#eta (sector);width(d_{z}/#sigma_{d_{z}})",
1936 nBins_,lowedge,highedge);
1941 "#LT d_{xy} #GT map;#eta (sector);#varphi (sector) [degrees]",
1945 "#LT d_{z} #GT map;#eta (sector);#varphi (sector) [degrees]",
1949 "#LT d_{xy}/#sigma_{d_{xy}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1953 "#LT d_{z}/#sigma_{d_{z}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1957 "#sigma_{d_{xy}} map;#eta (sector);#varphi (sector) [degrees]",
1961 "#sigma_{d_{z}} map;#eta (sector);#varphi (sector) [degrees]",
1965 "width(d_{xy}/#sigma_{d_{xy}}) map;#eta (sector);#varphi (sector) [degrees]",
1969 "width(d_{z}/#sigma_{d_{z}}) map;#eta (sector);#varphi (sector) [degrees]",
1975 "Median of d_{xy} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}) [#mum]",
1976 nBins_,lowedge,highedge);
1979 "Median absolute deviation of d_{xy} vs #phi sector;#varphi (sector) [degrees];MAD(d_{xy}) [#mum]",
1980 nBins_,lowedge,highedge);
1983 "Median of d_{z} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}) [#mum]",
1984 nBins_,lowedge,highedge);
1987 "Median absolute deviation of d_{z} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}) [#mum]",
1988 nBins_,lowedge,highedge);
1991 "Median of d_{xy} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}) [#mum]",
1992 nBins_,lowedge,highedge);
1995 "Median absolute deviation of d_{xy} vs #eta sector;#eta (sector);MAD(d_{xy}) [#mum]",
1996 nBins_,lowedge,highedge);
1999 "Median of d_{z} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}) [#mum]",
2000 nBins_,lowedge,highedge);
2003 "Median absolute deviation of d_{z} vs #eta sector;#eta (sector);MAD(d_{z}) [#mum]",
2004 nBins_,lowedge,highedge);
2007 "Median of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}/#sigma_{d_{xy}})",
2008 nBins_,lowedge,highedge);
2011 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees]; MAD(d_{xy}/#sigma_{d_{xy}})",
2012 nBins_,lowedge,highedge);
2015 "Median of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
2016 nBins_,lowedge,highedge);
2019 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}/#sigma_{d_{z}})",
2020 nBins_,lowedge,highedge);
2023 "Median of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}/#sigma_{d_{z}})",
2024 nBins_,lowedge,highedge);
2027 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);MAD(d_{xy}/#sigma_{d_{z}})",
2028 nBins_,lowedge,highedge);
2031 "Median of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
2032 nBins_,lowedge,highedge);
2035 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);MAD(d_{z}/#sigma_{d_{z}})",
2036 nBins_,lowedge,highedge);
2045 <<
"######################################\n" 2046 <<
"# PrimaryVertexValidation::endJob()\n" 2047 <<
"# Number of analyzed events: "<<
Nevt_<<
"\n" 2048 <<
"######################################";
2053 "#LT d_{xy} #GT vs modZ;module number (Z);#LT d_{xy} #GT [#mum]",
2057 "#sigma_{d_{xy}} vs modZ;module number (Z);#sigma_{d_{xy}} [#mum]",
2061 "#LT d_{z} #GT vs modZ;module number (Z);#LT d_{z} #GT [#mum]",
2065 "#sigma_{d_{z}} vs modZ;module number (Z);#sigma_{d_{z}} [#mum]",
2069 "#LT d_{xy} #GT vs ladder;ladder number (#phi);#LT d_{xy} #GT [#mum]",
2073 "#sigma_{d_{xy}} vs ladder;ladder number (#phi);#sigma_{d_{xy}} [#mum]",
2077 "#LT d_{z} #GT vs ladder;ladder number (#phi);#LT d_{z} #GT [#mum]" 2081 "#sigma_{d_{z}} vs ladder;ladder number (#phi);#sigma_{d_{z}} [#mum]",
2085 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs modZ;module number (Z);#LT d_{xy}/#sigma_{d_{xy}} #GT",
2089 "width(d_{xy}/#sigma_{d_{xy}}) vs modZ;module number (Z); width(d_{xy}/#sigma_{d_{xy}})",
2093 "#LT d_{z}/#sigma_{d_{z}} #GT vs modZ;module number (Z);#LT d_{z}/#sigma_{d_{z}} #GT",
2097 "width(d_{z}/#sigma_{d_{z}}) vs pT;module number (Z);width(d_{z}/#sigma_{d_{z}})",
2101 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs ladder;ladder number (#phi);#LT d_{xy}/#sigma_{d_{z}} #GT",
2105 "width(d_{xy}/#sigma_{d_{xy}}) vs ladder;ladder number (#phi);width(d_{xy}/#sigma_{d_{z}})",
2109 "#LT d_{z}/#sigma_{d_{z}} #GT vs ladder;ladder number (#phi);#LT d_{z}/#sigma_{d_{z}} #GT",
2113 "width(d_{z}/#sigma_{d_{z}}) vs ladder;ladder number (#phi);width(d_{z}/#sigma_{d_{z}})",
2285 bool isOn = (average_current > 2000.);
2288 return ( (isOn && !is0T) || (!isOn && is0T) );
2373 char phibincenter[129];
2375 sprintf(phibincenter,
"%.f",(phiBins[
i]+phiBins[
i+1])/2.);
2377 char etabincenter[129];
2379 sprintf(etabincenter,
"%.1f",(etaBins[
i]+etaBins[
i+1])/2.);
2387 trendPlot->SetBinContent(i+1,mean_);
2388 trendPlot->SetBinError(i+1,meanErr_);
2395 trendPlot->SetBinContent(i+1,width_);
2396 trendPlot->SetBinError(i+1,widthErr_);
2403 trendPlot->SetBinContent(i+1,median_);
2404 trendPlot->SetBinError(i+1,medianErr_);
2411 trendPlot->SetBinContent(i+1,mad_);
2412 trendPlot->SetBinError(i+1,madErr_);
2416 edm::LogWarning(
"PrimaryVertexValidation")<<
"fillTrendPlot() "<<fitPar_<<
" unknown estimator!"<<std::endl;
2420 if(var_.find(
"eta") != std::string::npos){
2421 trendPlot->GetXaxis()->SetBinLabel(
i+1,etabincenter);
2422 }
else if(var_.find(
"phi") != std::string::npos){
2423 trendPlot->GetXaxis()->SetBinLabel(
i+1,phibincenter);
2425 edm::LogWarning(
"PrimaryVertexValidation")<<
"fillTrendPlot() "<<var_<<
" unknown track parameter!"<<std::endl;
2435 for(
auto iterator = h.begin(); iterator != h.end(); iterator++) {
2444 float mean_ = myFit.first.value();
2445 float meanErr_ = myFit.first.error();
2446 trendPlot->SetBinContent(bin,mean_);
2447 trendPlot->SetBinError(bin,meanErr_);
2452 float width_ = myFit.second.value();
2453 float widthErr_ = myFit.second.error();
2454 trendPlot->SetBinContent(bin,width_);
2455 trendPlot->SetBinError(bin,widthErr_);
2462 trendPlot->SetBinContent(bin,median_);
2463 trendPlot->SetBinError(bin,medianErr_);
2470 trendPlot->SetBinContent(bin,mad_);
2471 trendPlot->SetBinError(bin,madErr_);
2475 edm::LogWarning(
"PrimaryVertexValidation")<<
"fillTrendPlotByIndex() "<<fitPar_<<
" unknown estimator!"<<std::endl;
2479 char bincenter[129];
2482 sprintf(bincenter,
"%.1f",(etaBins[bin-1]+etaBins[bin])/2.);
2483 trendPlot->GetXaxis()->SetBinLabel(bin,bincenter);
2486 sprintf(bincenter,
"%.f",(phiBins[bin-1]+phiBins[bin])/2.);
2487 trendPlot->GetXaxis()->SetBinLabel(bin,bincenter);
2503 char phibincenter[129];
2505 sprintf(phibincenter,
"%.f",(phiBins[
i]+phiBins[
i+1])/2.);
2507 trendMap->GetYaxis()->SetBinLabel(
i+1,phibincenter);
2509 for (
int j=0; j<
nBins_; ++j ) {
2511 char etabincenter[129];
2513 sprintf(etabincenter,
"%.1f",(etaBins[j]+etaBins[j+1])/2.);
2515 if(
i==0) { trendMap->GetXaxis()->SetBinLabel(j+1,etabincenter); }
2523 trendMap->SetBinContent(j+1,
i+1,mean_);
2524 trendMap->SetBinError(j+1,
i+1,meanErr_);
2531 trendMap->SetBinContent(j+1,
i+1,width_);
2532 trendMap->SetBinError(j+1,
i+1,widthErr_);
2539 trendMap->SetBinContent(j+1,
i+1,median_);
2540 trendMap->SetBinError(j+1,
i+1,medianErr_);
2547 trendMap->SetBinContent(j+1,
i+1,mad_);
2548 trendMap->SetBinError(j+1,
i+1,madErr_);
2552 edm::LogWarning(
"PrimaryVertexValidation:") <<
" fillMap() "<<fitPar_<<
" unknown estimator!"<<std::endl;
2574 double vzErr =0.0, vxErr=0.0, vyErr=0.0;
2580 double dxy=0.0,
dz=0.0, dxysigma=0.0, dzsigma=0.0;
2581 dxy = track.
dxy(vtxPoint);
2582 dz = track.
dz(vtxPoint);
2587 if(
std::abs(dxy/dxysigma) > dxyErrMax_)
return false;
2588 if(
std::abs(
dz/dzsigma) > dzErrMax_)
return false;
2589 if(track.
ptError() / track.
pt() > ptErrMax_)
return false;
2600 TH1F::SetDefaultSumw2(kTRUE);
2602 std::map<std::string, TH1*>
h;
2606 for(
const auto &
type : types){
2607 h[
"pseudorapidity_"+
type] =dir.
make <TH1F>((
"rapidity_"+
type).c_str(),
"track pseudorapidity; track #eta; tracks",100,-3., 3.);
2608 h[
"z0_"+
type] = dir.
make<TH1F>((
"z0_"+
type).c_str(),
"track z_{0};track z_{0} (cm);tracks",80,-40., 40.);
2609 h[
"phi_"+
type] = dir.
make<TH1F>((
"phi_"+
type).c_str(),
"track #phi; track #phi;tracks",80,-
M_PI,
M_PI);
2610 h[
"eta_"+
type] = dir.
make<TH1F>((
"eta_"+
type).c_str(),
"track #eta; track #eta;tracks",80,-4., 4.);
2611 h[
"pt_"+
type] = dir.
make<TH1F>((
"pt_"+
type).c_str(),
"track p_{T}; track p_{T} [GeV];tracks",100,0., 20.);
2612 h[
"p_"+
type] = dir.
make<TH1F>((
"p_"+
type).c_str(),
"track p; track p [GeV];tracks",100,0., 20.);
2613 h[
"found_"+
type] = dir.
make<TH1F>((
"found_"+
type).c_str(),
"n. found hits;n^{found}_{hits};tracks",30, 0., 30.);
2614 h[
"lost_"+
type] = dir.
make<TH1F>((
"lost_"+
type).c_str(),
"n. lost hits;n^{lost}_{hits};tracks",20, 0., 20.);
2615 h[
"nchi2_"+
type] = dir.
make<TH1F>((
"nchi2_"+
type).c_str(),
"normalized track #chi^{2};track #chi^{2}/ndf;tracks",100, 0., 20.);
2616 h[
"rstart_"+
type] = dir.
make<TH1F>((
"rstart_"+
type).c_str(),
"track start radius; track innermost radius r (cm);tracks",100, 0., 20.);
2617 h[
"expectedInner_"+
type] = dir.
make<TH1F>((
"expectedInner_"+
type).c_str(),
"n. expected inner hits;n^{expected}_{inner};tracks",10, 0., 10.);
2618 h[
"expectedOuter_"+
type] = dir.
make<TH1F>((
"expectedOuter_"+
type).c_str(),
"n. expected outer hits;n^{expected}_{outer};tracks ",10, 0., 10.);
2619 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.);
2620 h[
"logtresz_"+
type] = dir.
make<TH1F>((
"logtresz_"+
type).c_str(),
"log10(track z resolution/#mum);log10(track z resolution/#mum);tracks",100, 0., 5.);
2621 h[
"tpullxy_"+
type] = dir.
make<TH1F>((
"tpullxy_"+
type).c_str(),
"track r-#phi pull;pull_{r-#phi};tracks",100, -10., 10.);
2622 h[
"tpullz_"+
type] = dir.
make<TH1F>((
"tpullz_"+
type).c_str(),
"track r-z pull;pull_{r-z};tracks",100, -50., 50.);
2623 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.);
2624 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.);
2625 h[
"lvseta_"+
type] = dir.
make<TH2F>((
"lvseta_"+
type).c_str(),
"cluster length vs #eta;track #eta;cluster length",60,-3., 3., 20, 0., 20);
2626 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);
2627 h[
"restrkz_"+
type] = dir.
make<TH1F>((
"restrkz_"+
type).c_str(),
"z-residuals (track vs vertex);res_{z} (cm);tracks", 200, -5., 5.);
2628 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);
2629 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);
2630 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.);
2631 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.);
2632 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.);
2633 h[
"sigmatrkz0_"+
type] = dir.
make<TH1F>((
"sigmatrkz0_"+
type).c_str(),
"z-resolution (excluding beam);#sigma^{trk}_{z_{0}} (cm);tracks", 100, 0., 5.);
2634 h[
"sigmatrkz_"+
type] = dir.
make<TH1F>((
"sigmatrkz_"+
type).c_str(),
"z-resolution (including beam);#sigma^{trk}_{z} (cm);tracks", 100,0., 5.);
2635 h[
"nbarrelhits_"+
type] = dir.
make<TH1F>((
"nbarrelhits_"+
type).c_str(),
"number of pixel barrel hits;n. hits Barrel Pixel;tracks", 10, 0., 10.);
2636 h[
"nbarrelLayers_"+
type] = dir.
make<TH1F>((
"nbarrelLayers_"+
type).c_str(),
"number of pixel barrel layers;n. layers Barrel Pixel;tracks", 10, 0., 10.);
2637 h[
"nPxLayers_"+
type] = dir.
make<TH1F>((
"nPxLayers_"+
type).c_str(),
"number of pixel layers (barrel+endcap);n. Pixel layers;tracks", 10, 0., 10.);
2638 h[
"nSiLayers_"+
type] = dir.
make<TH1F>((
"nSiLayers_"+
type).c_str(),
"number of Tracker layers;n. Tracker layers;tracks", 20, 0., 20.);
2639 h[
"trackAlgo_"+
type] = dir.
make<TH1F>((
"trackAlgo_"+
type).c_str(),
"track algorithm;track algo;tracks", 30, 0., 30.);
2640 h[
"trackQuality_"+
type] = dir.
make<TH1F>((
"trackQuality_"+
type).c_str(),
"track quality;track quality;tracks", 7, -1., 6.);
2651 unsigned int theNOfBins,
2656 TH1F::SetDefaultSumw2(kTRUE);
2658 auto hash = std::make_pair(resType,varType);
2668 std::vector<TH1F*>
h;
2669 h.reserve(theNOfBins);
2671 if (theNOfBins==0) {
2672 edm::LogError(
"PrimaryVertexValidation") <<
"bookResidualsHistogram() The number of bins cannot be identically 0" << std::endl;
2683 for(
unsigned int i=0;
i<theNOfBins;
i++){
2686 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());
2688 TH1F* htemp = dir.
make<TH1F>(Form(
"histo_%s_%s_plot%i",s_resType.c_str(),s_varType.c_str(),
i),
2704 using namespace reco;
2762 double q=
sqrt(1.-2.*kappa*D0);
2787 int longesthit=0, nbarrel=0;
2789 if ((**hit).isValid() && (**hit).geographicalId().det() ==
DetId::Tracker ){
2797 if (clust->sizeY()-longesthit>0) longesthit=clust->sizeY();
2798 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
virtual char const * what() const
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_]
const DetContainer & dets() const
Returm a vector of all GeomDet (including all GeomDetUnits)
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_]
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_
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_
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.
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
int numberOfHits(HitCategory category) const
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_]