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 minPt_(iConfig.getUntrackedParameter<double>(
"minPt",1.)),
84 maxPt_(iConfig.getUntrackedParameter<double>(
"maxPt",20.)),
85 debug_(iConfig.getParameter<
bool>(
"Debug")),
86 runControl_(iConfig.getUntrackedParameter<
bool>(
"runControl",
false))
94 std::vector<unsigned int> defaultRuns;
95 defaultRuns.push_back(0);
111 if (clusteringAlgorithm==
"gap"){
113 }
else if(clusteringAlgorithm==
"DA"){
116 }
else if(clusteringAlgorithm==
"DA_vect") {
119 throw VertexException(
"PrimaryVertexProducerAlgorithm: unknown clustering algorithm: " + clusteringAlgorithm);
146 edm::LogVerbatim(
"PrimaryVertexValidation") <<
"######################################";
175 toOutput+=std::to_string(ptbin);
179 edm::LogVerbatim(
"PrimaryVertexValidation") <<
"######################################\n";
180 edm::LogVerbatim(
"PrimaryVertexValidation") <<
"The pT binning is: [" << toOutput <<
"] \n";
204 using namespace reco;
208 edm::LogWarning(
"PrimaryVertexValidation") <<
"*********************************************************************************\n" 209 <<
"* The configuration (ptOfProbe > " <<
ptOfProbe_ <<
"GeV) is not correctly set for current value of magnetic field \n" 210 <<
"* Switching it to 0. !!! \n" 211 <<
"*********************************************************************************"<< std::endl;
219 bool passesRunControl =
false;
227 passesRunControl =
true;
231 if (!passesRunControl)
return;
263 edm::LogInfo(
"tracker geometry read")<<
"There are: "<< pDD->
dets().size() <<
" detectors";
318 double fBfield_=((*theB_).field()->inTesla(
GlobalPoint(0.,0.,0.))).
z();
326 if(!trackCollectionHandle.
isValid())
return;
327 auto const &
tracks = *trackCollectionHandle;
347 LogTrace(
"PrimaryVertexValidation")<<
"caught std::exception "<<er.
what()<<std::endl;
350 std::vector<Vertex> vsorted = *(
vertices);
357 if( vsorted.empty())
return;
362 if ( vsorted[0].isValid() ) {
379 unsigned int vertexCollectionSize = vsorted.size();
382 for (
unsigned int i=0;
i<vertexCollectionSize;
i++) {
383 const Vertex& vertex = vsorted.at(
i);
384 if (vertex.
isValid()) nvvertex++;
395 double chi2prob = 0.;
397 if (!vsorted.at(0).isFake()) {
410 double pt = (**itrk).pt();
415 double dxyRes = (**itrk).dxy(myVertex);
416 double dzRes = (**itrk).dz(myVertex);
418 double dxy_err = (**itrk).dxyError();
419 double dz_err = (**itrk).dzError();
421 float trackphi = ((**itrk).phi())*(180/
M_PI);
422 float tracketa = (**itrk).eta();
432 if(tracketa >= etaF && tracketa < etaL ){
441 if(trackphi >= phiF && trackphi < phiL ){
448 for(
int j=0; j<
nBins_; j++){
453 if(tracketa >= etaJ && tracketa < etaK ){
480 if ( beamSpotHandle.
isValid() ) {
481 beamSpot = *beamSpotHandle;
521 edm::LogInfo(
"PrimaryVertexValidation")<<
" looping over "<<trackCollectionHandle->size()<<
"tracks";
523 h_nTracks->Fill(trackCollectionHandle->size());
529 std::vector<TransientTrack> t_tks;
538 edm::LogInfo(
"PrimaryVertexValidation") <<
"Found: " << t_tks.size() <<
" reconstructed tracks";
554 edm::LogInfo(
"PrimaryVertexValidation")<<
" looping over: "<< clusters.size() <<
" clusters from " << t_tks.size() <<
" selected tracks";
563 for (
const auto & iclus : clusters){
568 for(
const auto & theTTrack : iclus)
577 const Track & theTrack = theTTrack.track();
619 if((*iHit)->isValid()) {
621 if (this->
isHit2D(**iHit)) {++nRecHit2D;}
653 vector<TransientTrack> theFinalTracks;
654 theFinalTracks.clear();
656 for (
const auto & tk : iclus) {
660 if( tk == theTTrack )
continue;
662 theFinalTracks.push_back(tk);
667 if(theFinalTracks.size() > 1){
670 edm::LogInfo(
"PrimaryVertexValidation")<<
"Transient Track Collection size: "<<theFinalTracks.size();
679 double totalTrackWeights=0;
680 if(theFittedVertex.isValid ()){
683 if(theFittedVertex.hasTrackWeight()){
684 for(
const auto & theFinalTrack : theFinalTracks){
686 totalTrackWeights+= theFittedVertex.trackWeight(theFinalTrack);
694 const math::XYZPoint myVertex(theFittedVertex.position().x(),theFittedVertex.position().y(),theFittedVertex.position().z());
696 const Vertex vertex = theFittedVertex;
714 h_fitVtxChi2Prob_->Fill(TMath::Prob(theFittedVertex.totalChiSquared(),(
int)theFittedVertex.degreesOfFreedom()));
717 double dxyFromMyVertex = theTrack.
dxy(myVertex);
718 double dzFromMyVertex = theTrack.
dz(myVertex);
720 GlobalPoint vert(theFittedVertex.position().x(),theFittedVertex.position().y(),theFittedVertex.position().z());
726 double dz_err =
sqrt(
std::pow(theTrack.
dzError(), 2) + theFittedVertex.positionError().czz());
736 double s_ip2dpv_corr = s_ip2dpv.second.value();
737 double s_ip2dpv_err = s_ip2dpv.second.error();
746 double s_ip3dpv_corr = s_ip3dpv.second.value();
747 double s_ip3dpv_err = s_ip3dpv.second.error();
751 double ip3d_corr = ip3dpv.second.value();
752 double ip3d_err = ip3dpv.second.error();
760 float my_dx = refPoint.
x() - myVertex.x();
761 float my_dy = refPoint.
y() - myVertex.y();
763 float my_dx2 = cPToVtx.
x() - myVertex.x();
764 float my_dy2 = cPToVtx.
y() - myVertex.y();
766 float my_dxy =
std::sqrt(my_dx*my_dx + my_dy*my_dy);
774 edm::LogInfo(
"PrimaryVertexValidation")<<
"my_dx:" << my_dx
775 <<
" my_dy:" << my_dy
776 <<
" my_dxy:" << my_dxy
777 <<
" my_dx2:" << my_dx2
778 <<
" my_dy2:" << my_dy2
780 <<
" dxyFromVtx:" << dxyFromMyVertex <<
"\n" 781 <<
" ============================== "<<
"\n" 784 <<
"diff3:" << (my_dx - my_dx2) <<
" " << (my_dy - my_dy2) <<
"\n" 804 float trackphi = (theTrack.
phi())*(180./
M_PI);
805 float tracketa = theTrack.
eta();
806 float trackpt = theTrack.
pt();
807 float trackp = theTrack.
p();
812 int ladder_num = -1.;
813 int module_num = -1.;
814 int L1BPixHitCount = 0;
817 const DetId& detId = (*iHit)->geographicalId();
818 unsigned int subid = detId.
subdetId();
836 for(
int ipTBin=0; ipTBin<
nPtBins_; ipTBin++){
844 if(
std::abs(tracketa)<1.5 && (trackpt >= pTF && trackpt < pTL) ){
874 if(pixelOcc.first ==
true)
875 edm::LogInfo(
"PrimaryVertexValidation")<<
"has BPIx hits"<<std::endl;
876 if(pixelOcc.second ==
true)
877 edm::LogInfo(
"PrimaryVertexValidation")<<
"has FPix hits"<<std::endl;
880 if(!
doBPix_ && (pixelOcc.first ==
true))
continue;
881 if(!
doFPix_ && (pixelOcc.second ==
true))
continue;
908 float dxyRecoV = theTrack.
dz(theRecoVertex);
909 float dzRecoV = theTrack.
dxy(theRecoVertex);
913 double zTrack=(theTTrack.stateAtBeamLine().trackStateAtPCA()).
position().z();
914 double zVertex=theFittedVertex.position().z();
915 double tantheta=
tan((theTTrack.stateAtBeamLine().trackStateAtPCA()).momentum().theta());
918 double restrkz = zTrack-
zVertex;
919 double pulltrkz = (zTrack-
zVertex)/TMath::Sqrt(dz2);
944 n_dxyVsPhi->Fill(trackphi,dxyFromMyVertex/s_ip2dpv_err);
947 a_dxyVsEta->Fill(tracketa,dxyFromMyVertex*cmToum);
949 n_dxyVsEta->Fill(tracketa,dxyFromMyVertex/s_ip2dpv_err);
952 if( ladder_num > 0 && module_num > 0 ) {
954 LogDebug(
"PrimaryVertexValidation")<<
" ladder_num"<<ladder_num <<
" module_num"<<module_num <<std::endl;
965 if(L1BPixHitCount==1){
978 for(
int i=0; i<
nBins_; i++){
986 if(tracketa >= etaF && tracketa < etaL ){
1005 if(trackphi >= phiF && trackphi < phiL ){
1022 for(
int j=0; j<
nBins_; j++){
1027 if(tracketa >= etaJ && tracketa < etaK ){
1042 edm::LogInfo(
"PrimaryVertexValidation")<<
" myVertex.x()= "<<myVertex.x()<<
"\n" 1043 <<
" myVertex.y()= "<<myVertex.y()<<
" \n" 1044 <<
" myVertex.z()= "<<myVertex.z()<<
" \n" 1045 <<
" theTrack.dz(myVertex)= "<<theTrack.
dz(myVertex)<<
" \n" 1046 <<
" zPCA -myVertex.z() = "<<(theTrack.
vertex().z() -myVertex.z());
1054 LogTrace(
"PrimaryVertexValidation")<<
"caught std::exception "<<er.
what()<<std::endl;
1061 edm::LogInfo(
"PrimaryVertexValidation")<<
"Not enough tracks to make a vertex. Returns no vertex info";
1068 edm::LogInfo(
"PrimaryVertexValidation")<<
"Track "<<i<<
" : pT = "<<theTrack.
pt();
1093 if (dynamic_cast<const SiStripRecHit2D*>(&hit))
return false;
1094 else if (dynamic_cast<const SiStripMatchedRecHit2D*>(&hit))
return true;
1095 else if (dynamic_cast<const ProjectedSiStripRecHit2D*>(&hit))
return false;
1097 edm::LogError(
"UnkownType") <<
"@SUB=AlignmentTrackSelector::isHit2D" 1098 <<
"Tracker hit not in pixel and neither SiStripRecHit2D nor " 1099 <<
"SiStripMatchedRecHit2D nor ProjectedSiStripRecHit2D.";
1104 edm::LogWarning(
"DetectorMismatch") <<
"@SUB=AlignmentTrackSelector::isHit2D" 1105 <<
"Hit not in tracker with 'official' dimension >=2.";
1116 bool hasBPixHits =
false;
1117 bool hasFPixHits =
false;
1127 return std::make_pair(hasBPixHits,hasFPixHits);
1134 using namespace reco;
1153 <<
"######################################\n" 1155 <<
"######################################";
1247 TH1F::SetDefaultSumw2(kTRUE);
1249 h_lumiFromConfig = EventFeatures.
make<TH1F>(
"h_lumiFromConfig",
"luminosity from config;;luminosity of present run",1,-0.5,0.5);
1252 h_runFromConfig = EventFeatures.
make<TH1I>(
"h_runFromConfig",
"run number from config;;run number (from configuration)",
1258 h_runFromEvent = EventFeatures.
make<TH1I>(
"h_runFromEvent",
"run number from config;;run number (from event)",1,-0.5,0.5);
1259 h_nTracks = EventFeatures.
make<TH1F>(
"h_nTracks",
"number of tracks per event;n_{tracks}/event;n_{events}",300,-0.5,299.5);
1260 h_nClus = EventFeatures.
make<TH1F>(
"h_nClus",
"number of track clusters;n_{clusters}/event;n_{events}",50,-0.5,49.5);
1261 h_nOfflineVertices = EventFeatures.
make<TH1F>(
"h_nOfflineVertices",
"number of offline reconstructed vertices;n_{vertices}/event;n_{events}",50,-0.5,49.5);
1262 h_runNumber = EventFeatures.
make<TH1F>(
"h_runNumber",
"run number;run number;n_{events}",100000,250000.,350000.);
1263 h_xOfflineVertex = EventFeatures.
make<TH1F>(
"h_xOfflineVertex",
"x-coordinate of offline vertex;x_{vertex};n_{events}",100,-0.1,0.1);
1264 h_yOfflineVertex = EventFeatures.
make<TH1F>(
"h_yOfflineVertex",
"y-coordinate of offline vertex;y_{vertex};n_{events}",100,-0.1,0.1);
1265 h_zOfflineVertex = EventFeatures.
make<TH1F>(
"h_zOfflineVertex",
"z-coordinate of offline vertex;z_{vertex};n_{events}",100,-30.,30.);
1266 h_xErrOfflineVertex = EventFeatures.
make<TH1F>(
"h_xErrOfflineVertex",
"x-coordinate error of offline vertex;err_{x}^{vtx};n_{events}",100,0.,0.01);
1267 h_yErrOfflineVertex = EventFeatures.
make<TH1F>(
"h_yErrOfflineVertex",
"y-coordinate error of offline vertex;err_{y}^{vtx};n_{events}",100,0.,0.01);
1268 h_zErrOfflineVertex = EventFeatures.
make<TH1F>(
"h_zErrOfflineVertex",
"z-coordinate error of offline vertex;err_{z}^{vtx};n_{events}",100,0.,10.);
1269 h_BSx0 = EventFeatures.
make<TH1F>(
"h_BSx0",
"x-coordinate of reco beamspot;x^{BS}_{0};n_{events}",100,-0.1,0.1);
1270 h_BSy0 = EventFeatures.
make<TH1F>(
"h_BSy0",
"y-coordinate of reco beamspot;y^{BS}_{0};n_{events}",100,-0.1,0.1);
1271 h_BSz0 = EventFeatures.
make<TH1F>(
"h_BSz0",
"z-coordinate of reco beamspot;z^{BS}_{0};n_{events}",100,-1.,1.);
1272 h_Beamsigmaz = EventFeatures.
make<TH1F>(
"h_Beamsigmaz",
"z-coordinate beam width;#sigma_{Z}^{beam};n_{events}",100,0.,1.);
1273 h_BeamWidthX = EventFeatures.
make<TH1F>(
"h_BeamWidthX",
"x-coordinate beam width;#sigma_{X}^{beam};n_{events}",100,0.,0.01);
1274 h_BeamWidthY = EventFeatures.
make<TH1F>(
"h_BeamWidthY",
"y-coordinate beam width;#sigma_{Y}^{beam};n_{events}",100,0.,0.01);
1276 h_etaMax = EventFeatures.
make<TH1F>(
"etaMax",
"etaMax",1,-0.5,0.5);
1277 h_pTinfo = EventFeatures.
make<TH1F>(
"pTinfo",
"pTinfo",3,-1.5,1.5);
1278 h_pTinfo->GetXaxis()->SetBinLabel(1,
"n. bins");
1279 h_pTinfo->GetXaxis()->SetBinLabel(2,
"pT min");
1280 h_pTinfo->GetXaxis()->SetBinLabel(3,
"pT max");
1282 h_nbins = EventFeatures.
make<TH1F>(
"nbins",
"nbins",1,-0.5,0.5);
1283 h_nLadders = EventFeatures.
make<TH1F>(
"nladders",
"n. ladders",1,-0.5,0.5);
1288 h_probePt_ = ProbeFeatures.
make<TH1F>(
"h_probePt",
"p_{T} of probe track;track p_{T} (GeV); tracks",100,0.,50.);
1290 h_probeP_ = ProbeFeatures.
make<TH1F>(
"h_probeP",
"momentum of probe track;track p (GeV); tracks",100,0.,100.);
1291 h_probeEta_ = ProbeFeatures.
make<TH1F>(
"h_probeEta",
"#eta of the probe track;track #eta;tracks",54,-2.8,2.8);
1292 h_probePhi_ = ProbeFeatures.
make<TH1F>(
"h_probePhi",
"#phi of probe track;track #phi (rad);tracks",100,-3.15,3.15);
1294 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);
1295 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.);
1297 h_probeChi2_ = ProbeFeatures.
make<TH1F>(
"h_probeChi2",
"#chi^{2} of probe track;track #chi^{2}; tracks",100,0.,100.);
1298 h_probeNormChi2_ = ProbeFeatures.
make<TH1F>(
"h_probeNormChi2",
" normalized #chi^{2} of probe track;track #chi^{2}/ndof; tracks",100,0.,10.);
1299 h_probeCharge_ = ProbeFeatures.
make<TH1F>(
"h_probeCharge",
"charge of profe track;track charge Q;tracks",3,-1.5,1.5);
1300 h_probeQoverP_ = ProbeFeatures.
make<TH1F>(
"h_probeQoverP",
"q/p of probe track; track Q/p (GeV^{-1});tracks",200,-1.,1.);
1301 h_probedzRecoV_ = ProbeFeatures.
make<TH1F>(
"h_probedzRecoV",
"d_{z}(V_{offline}) of probe track;track d_{z}(V_{off}) (cm);tracks",200,-1.,1.);
1302 h_probedxyRecoV_ = ProbeFeatures.
make<TH1F>(
"h_probedxyRecoV",
"d_{xy}(V_{offline}) of probe track;track d_{xy}(V_{off}) (cm);tracks",200,-1.,1.);
1303 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);
1304 h_probesignIP2DRefitV_ = ProbeFeatures.
make<TH1F>(
"h_probesignIPRefitV",
"ip_{2D}(V_{refit}) of probe track;track ip_{2D}(V_{fit}) (cm);tracks",200,-1.,1.);
1305 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);
1307 h_probez0RefitV_ = ProbeFeatures.
make<TH1F>(
"h_probez0RefitV",
"z_{0}(V_{refit}) of probe track;track z_{0}(V_{fit}) (cm);tracks",200,-1.,1.);
1308 h_probed0RefitV_ = ProbeFeatures.
make<TH1F>(
"h_probed0RefitV",
"d_{0}(V_{refit}) of probe track;track d_{0}(V_{fit}) (cm);tracks",200,-1.,1.);
1310 h_probed3DRefitV_ = ProbeFeatures.
make<TH1F>(
"h_probed3DRefitV",
"d_{3D}(V_{refit}) of probe track;track d_{3D}(V_{fit}) (cm);tracks",200,0.,1.);
1311 h_probereszRefitV_ = ProbeFeatures.
make<TH1F>(
"h_probeReszRefitV",
"z_{track} -z_{V_{refit}};track res_{z}(V_{refit}) (cm);tracks",200,-1.,1.);
1313 h_probeRecoVSigZ_ = ProbeFeatures.
make<TH1F>(
"h_probeRecoVSigZ" ,
"Longitudinal DCA Significance (reco);d_{z}(V_{off})/#sigma_{dz};tracks",100,-8,8);
1314 h_probeRecoVSigXY_ = ProbeFeatures.
make<TH1F>(
"h_probeRecoVSigXY" ,
"Transverse DCA Significance (reco);d_{xy}(V_{off})/#sigma_{dxy};tracks",100,-8,8);
1315 h_probeRefitVSigZ_ = ProbeFeatures.
make<TH1F>(
"h_probeRefitVSigZ" ,
"Longitudinal DCA Significance (refit);d_{z}(V_{fit})/#sigma_{dz};tracks",100,-8,8);
1316 h_probeRefitVSigXY_= ProbeFeatures.
make<TH1F>(
"h_probeRefitVSigXY",
"Transverse DCA Significance (refit);d_{xy}(V_{fit})/#sigma_{dxy};tracks",100,-8,8);
1317 h_probeRefitVSig3D_= ProbeFeatures.
make<TH1F>(
"h_probeRefitVSig3D",
"3D DCA Significance (refit);d_{3D}/#sigma_{3D};tracks",100,0.,20.);
1318 h_probeRefitVLogSig3D_ = ProbeFeatures.
make<TH1F>(
"h_probeRefitVLogSig3D",
"log_{10}(3D DCA-Significance) (refit);log_{10}(d_{3D}/#sigma_{3D});tracks",100,-5.,4.);
1319 h_probeRefitVSigResZ_ = ProbeFeatures.
make<TH1F>(
"h_probeRefitVSigResZ" ,
"Longitudinal residual significance (refit);(z_{track} -z_{V_{fit}})/#sigma_{res_{z}};tracks",100,-8,8);
1321 h_probeHits_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechits" ,
"N_{hits} ;N_{hits} ;tracks",40,-0.5,39.5);
1322 h_probeHits1D_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechits1D" ,
"N_{hits} 1D ;N_{hits} 1D ;tracks",40,-0.5,39.5);
1323 h_probeHits2D_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechits2D" ,
"N_{hits} 2D ;N_{hits} 2D ;tracks",40,-0.5,39.5);
1324 h_probeHitsInTIB_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTIB" ,
"N_{hits} TIB ;N_{hits} TIB;tracks",40,-0.5,39.5);
1325 h_probeHitsInTOB_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTOB" ,
"N_{hits} TOB ;N_{hits} TOB;tracks",40,-0.5,39.5);
1326 h_probeHitsInTID_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTID" ,
"N_{hits} TID ;N_{hits} TID;tracks",40,-0.5,39.5);
1327 h_probeHitsInTEC_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTEC" ,
"N_{hits} TEC ;N_{hits} TEC;tracks",40,-0.5,39.5);
1328 h_probeHitsInBPIX_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsBPIX",
"N_{hits} BPIX;N_{hits} BPIX;tracks",40,-0.5,39.5);
1329 h_probeHitsInFPIX_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsFPIX",
"N_{hits} FPIX;N_{hits} FPIX;tracks",40,-0.5,39.5);
1331 h_probeL1Ladder_ = ProbeFeatures.
make<TH1F>(
"h_probeL1Ladder",
"Ladder number (L1 hit); ladder number",22,-1.5,20.5);
1332 h_probeL1Module_ = ProbeFeatures.
make<TH1F>(
"h_probeL1Module",
"Module number (L1 hit); module number",10,-1.5,8.5);
1337 h_fitVtxNtracks_ = RefitVertexFeatures.make<TH1F>(
"h_fitVtxNtracks" ,
"N_{trks} used in vertex fit;N^{fit}_{tracks};vertices" ,100,-0.5,99.5);
1338 h_fitVtxNdof_ = RefitVertexFeatures.make<TH1F>(
"h_fitVtxNdof" ,
"N_{DOF} of vertex fit;N_{DOF} of refit vertex;vertices" ,100,-0.5,99.5);
1339 h_fitVtxChi2_ = RefitVertexFeatures.make<TH1F>(
"h_fitVtxChi2" ,
"#chi^{2} of vertex fit;vertex #chi^{2};vertices" ,100,-0.5,99.5);
1340 h_fitVtxChi2ndf_ = RefitVertexFeatures.make<TH1F>(
"h_fitVtxChi2ndf" ,
"#chi^{2}/ndf of vertex fit;vertex #chi^{2}/ndf;vertices" ,100,-0.5,9.5);
1341 h_fitVtxChi2Prob_ = RefitVertexFeatures.make<TH1F>(
"h_fitVtxChi2Prob" ,
"Prob(#chi^{2},ndf) of vertex fit;Prob(#chi^{2},ndf);vertices",40,0.,1.);
1342 h_fitVtxTrackWeights_ = RefitVertexFeatures.make<TH1F>(
"h_fitVtxTrackWeights",
"track weights associated to track;track weights;tracks",40,0.,1.);
1343 h_fitVtxTrackAverageWeight_ = RefitVertexFeatures.make<TH1F>(
"h_fitVtxTrackAverageWeight_",
"average track weight per vertex;#LT track weight #GT;vertices",40,0.,1.);
1348 h_recoVtxNtracks_ = RecoVertexFeatures.
make<TH1F>(
"h_recoVtxNtracks" ,
"N^{vtx}_{trks};N^{vtx}_{trks};vertices" ,100,-0.5,99.5);
1349 h_recoVtxChi2ndf_ = RecoVertexFeatures.
make<TH1F>(
"h_recoVtxChi2ndf" ,
"#chi^{2}/ndf vtx;#chi^{2}/ndf vtx;vertices" ,10,-0.5,9.5);
1350 h_recoVtxChi2Prob_ = RecoVertexFeatures.
make<TH1F>(
"h_recoVtxChi2Prob" ,
"Prob(#chi^{2},ndf);Prob(#chi^{2},ndf);vertices",40,0.,1.);
1351 h_recoVtxSumPt_ = RecoVertexFeatures.
make<TH1F>(
"h_recoVtxSumPt" ,
"Sum(p^{trks}_{T});Sum(p^{trks}_{T});vertices" ,100,0.,200.);
1521 for (
int j=0; j<
nBins_; ++j ) {
1527 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy};tracks",etaF,etaL,phiF,phiL),
1531 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z};tracks",etaF,etaL,phiF,phiL),
1535 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{3D};tracks",etaF,etaL,phiF,phiL),
1539 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy}/#sigma_{d_{xy}};tracks",etaF,etaL,phiF,phiL),
1543 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z}/#sigma_{d_{z}};tracks",etaF,etaL,phiF,phiL),
1547 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{3D}/#sigma_{d_{3D}};tracks",etaF,etaL,phiF,phiL),
1557 a_dxyVsPhi = BiasVsParameter.make<TH2F>(
"h2_dxy_vs_phi",
"d_{xy} vs track #phi;track #phi [rad];track d_{xy}(PV) [#mum]",
1560 a_dzVsPhi = BiasVsParameter.make<TH2F>(
"h2_dz_vs_phi",
"d_{z} vs track #phi;track #phi [rad];track d_{z}(PV) [#mum]",
1563 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}}",
1566 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}}",
1569 a_dxyVsEta = BiasVsParameter.make<TH2F>(
"h2_dxy_vs_eta",
"d_{xy} vs track #eta;track #eta;track d_{xy}(PV) [#mum]",
1572 a_dzVsEta = BiasVsParameter.make<TH2F>(
"h2_dz_vs_eta",
"d_{z} vs track #eta;track #eta;track d_{z}(PV) [#mum]",
1575 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}}",
1578 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}}",
1589 double highedge=nBins_-0.5;
1590 double lowedge=-0.5;
1595 "#LT d_{xy} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy} #GT [#mum]",
1596 nBins_,lowedge,highedge);
1599 "#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{xy}} [#mum]",
1600 nBins_,lowedge,highedge);
1603 "#LT d_{z} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z} #GT [#mum]",
1604 nBins_,lowedge,highedge);
1607 nBins_,lowedge,highedge);
1610 "#LT d_{xy} #GT vs #eta sector;#eta (sector);#LT d_{xy} #GT [#mum]",
1611 nBins_,lowedge,highedge);
1614 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{xy}} [#mum]",
1615 nBins_,lowedge,highedge);
1618 "#LT d_{z} #GT vs #eta sector;#eta (sector);#LT d_{z} #GT [#mum]" 1619 ,
nBins_,lowedge,highedge);
1622 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{z}} [#mum]",
1623 nBins_,lowedge,highedge);
1626 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy}/#sigma_{d_{xy}} #GT",
1627 nBins_,lowedge,highedge);
1630 "width(d_{xy}/#sigma_{d_{xy}}) vs #phi sector;#varphi (sector) [degrees]; width(d_{xy}/#sigma_{d_{xy}})",
1631 nBins_,lowedge,highedge);
1634 "#LT d_{z}/#sigma_{d_{z}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z}/#sigma_{d_{z}} #GT",
1635 nBins_,lowedge,highedge);
1638 "width(d_{z}/#sigma_{d_{z}}) vs #phi sector;#varphi (sector) [degrees];width(d_{z}/#sigma_{d_{z}})",
1639 nBins_,lowedge,highedge);
1642 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #eta sector;#eta (sector);#LT d_{xy}/#sigma_{d_{z}} #GT",
1643 nBins_,lowedge,highedge);
1646 "width(d_{xy}/#sigma_{d_{xy}}) vs #eta sector;#eta (sector);width(d_{xy}/#sigma_{d_{z}})",
1647 nBins_,lowedge,highedge);
1650 "#LT d_{z}/#sigma_{d_{z}} #GT vs #eta sector;#eta (sector);#LT d_{z}/#sigma_{d_{z}} #GT",
1651 nBins_,lowedge,highedge);
1654 "width(d_{z}/#sigma_{d_{z}}) vs #eta sector;#eta (sector);width(d_{z}/#sigma_{d_{z}})",
1655 nBins_,lowedge,highedge);
1660 "#LT d_{xy} #GT vs pT;p_{T} [GeV];#LT d_{xy} #GT [#mum]",
1664 "#sigma_{d_{xy}} vs pT;p_{T} [GeV];#sigma_{d_{xy}} [#mum]",
1668 "#LT d_{z} #GT vs pT;p_{T} [GeV];#LT d_{z} #GT [#mum]",
1676 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs pT;p_{T} [GeV];#LT d_{xy}/#sigma_{d_{xy}} #GT",
1680 "width(d_{xy}/#sigma_{d_{xy}}) vs pT;p_{T} [GeV]; width(d_{xy}/#sigma_{d_{xy}})",
1684 "#LT d_{z}/#sigma_{d_{z}} #GT vs pT;p_{T} [GeV];#LT d_{z}/#sigma_{d_{z}} #GT",
1688 "width(d_{z}/#sigma_{d_{z}}) vs pT;p_{T} [GeV];width(d_{z}/#sigma_{d_{z}})",
1693 "#LT d_{xy} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{xy} #GT [#mum]",
1697 "#sigma_{d_{xy}} vs p_{T};p_{T}(|#eta|<1.) [GeV];#sigma_{d_{xy}} [#mum]",
1701 "#LT d_{z} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{z} #GT [#mum]" 1705 "#sigma_{d_{z}} vs p_{T};p_{T}(|#eta|<1.) [GeV];#sigma_{d_{z}} [#mum]",
1709 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{xy}/#sigma_{d_{z}} #GT",
1713 "width(d_{xy}/#sigma_{d_{xy}}) vs p_{T};p_{T}(|#eta|<1.) [GeV];width(d_{xy}/#sigma_{d_{z}})",
1717 "#LT d_{z}/#sigma_{d_{z}} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{z}/#sigma_{d_{z}} #GT",
1721 "width(d_{z}/#sigma_{d_{z}}) vs p_{T};p_{T}(|#eta|<1.) [GeV];width(d_{z}/#sigma_{d_{z}})",
1727 "#LT d_{xy} #GT map;#eta (sector);#varphi (sector) [degrees]",
1731 "#LT d_{z} #GT map;#eta (sector);#varphi (sector) [degrees]",
1735 "#LT d_{xy}/#sigma_{d_{xy}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1739 "#LT d_{z}/#sigma_{d_{z}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1743 "#sigma_{d_{xy}} map;#eta (sector);#varphi (sector) [degrees]",
1747 "#sigma_{d_{z}} map;#eta (sector);#varphi (sector) [degrees]",
1751 "width(d_{xy}/#sigma_{d_{xy}}) map;#eta (sector);#varphi (sector) [degrees]",
1755 "width(d_{z}/#sigma_{d_{z}}) map;#eta (sector);#varphi (sector) [degrees]",
1761 "Median of d_{xy} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}) [#mum]",
1762 nBins_,lowedge,highedge);
1765 "Median absolute deviation of d_{xy} vs #phi sector;#varphi (sector) [degrees];MAD(d_{xy}) [#mum]",
1766 nBins_,lowedge,highedge);
1769 "Median of d_{z} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}) [#mum]",
1770 nBins_,lowedge,highedge);
1773 "Median absolute deviation of d_{z} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}) [#mum]",
1774 nBins_,lowedge,highedge);
1777 "Median of d_{xy} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}) [#mum]",
1778 nBins_,lowedge,highedge);
1781 "Median absolute deviation of d_{xy} vs #eta sector;#eta (sector);MAD(d_{xy}) [#mum]",
1782 nBins_,lowedge,highedge);
1785 "Median of d_{z} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}) [#mum]",
1786 nBins_,lowedge,highedge);
1789 "Median absolute deviation of d_{z} vs #eta sector;#eta (sector);MAD(d_{z}) [#mum]",
1790 nBins_,lowedge,highedge);
1793 "Median of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}/#sigma_{d_{xy}})",
1794 nBins_,lowedge,highedge);
1797 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees]; MAD(d_{xy}/#sigma_{d_{xy}})",
1798 nBins_,lowedge,highedge);
1801 "Median of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
1802 nBins_,lowedge,highedge);
1805 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}/#sigma_{d_{z}})",
1806 nBins_,lowedge,highedge);
1809 "Median of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}/#sigma_{d_{z}})",
1810 nBins_,lowedge,highedge);
1813 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);MAD(d_{xy}/#sigma_{d_{z}})",
1814 nBins_,lowedge,highedge);
1817 "Median of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
1818 nBins_,lowedge,highedge);
1821 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);MAD(d_{z}/#sigma_{d_{z}})",
1822 nBins_,lowedge,highedge);
1866 for (
int j=0; j<
nBins_; ++j ) {
1872 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy} [#mum];tracks",etaF,etaL,phiF,phiL),
1876 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z} [#mum];tracks",etaF,etaL,phiF,phiL),
1880 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy}/#sigma_{d_{xy}};tracks",etaF,etaL,phiF,phiL),
1884 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z}/#sigma_{d_{z}};tracks",etaF,etaL,phiF,phiL),
1902 "#LT d_{xy} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy} #GT [#mum]",
1903 nBins_,lowedge,highedge);
1906 "#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{xy}} [#mum]",
1907 nBins_,lowedge,highedge);
1910 "#LT d_{z} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z} #GT [#mum]",
1911 nBins_,lowedge,highedge);
1914 "#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{z}} [#mum]",
1915 nBins_,lowedge,highedge);
1918 "#LT d_{xy} #GT vs #eta sector;#eta (sector);#LT d_{xy} #GT [#mum]",
1919 nBins_,lowedge,highedge);
1922 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{xy}} [#mum]",
1923 nBins_,lowedge,highedge);
1926 "#LT d_{z} #GT vs #eta sector;#eta (sector);#LT d_{z} #GT [#mum]",
1927 nBins_,lowedge,highedge);
1930 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{z}} [#mum]",
1931 nBins_,lowedge,highedge);
1934 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy}/#sigma_{d_{xy}} #GT",
1935 nBins_,lowedge,highedge);
1938 "width(d_{xy}/#sigma_{d_{xy}}) vs #phi sector;#varphi (sector) [degrees]; width(d_{xy}/#sigma_{d_{xy}})",
1939 nBins_,lowedge,highedge);
1942 "#LT d_{z}/#sigma_{d_{z}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z}/#sigma_{d_{z}} #GT",
1943 nBins_,lowedge,highedge);
1946 "width(d_{z}/#sigma_{d_{z}}) vs #phi sector;#varphi (sector) [degrees];width(d_{z}/#sigma_{d_{z}})",
1947 nBins_,lowedge,highedge);
1950 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #eta sector;#eta (sector);#LT d_{xy}/#sigma_{d_{z}} #GT",
1951 nBins_,lowedge,highedge);
1954 "width(d_{xy}/#sigma_{d_{xy}}) vs #eta sector;#eta (sector);width(d_{xy}/#sigma_{d_{z}})",
1955 nBins_,lowedge,highedge);
1958 "#LT d_{z}/#sigma_{d_{z}} #GT vs #eta sector;#eta (sector);#LT d_{z}/#sigma_{d_{z}} #GT",
1959 nBins_,lowedge,highedge);
1962 "width(d_{z}/#sigma_{d_{z}}) vs #eta sector;#eta (sector);width(d_{z}/#sigma_{d_{z}})",
1963 nBins_,lowedge,highedge);
1968 "#LT d_{xy} #GT map;#eta (sector);#varphi (sector) [degrees]",
1972 "#LT d_{z} #GT map;#eta (sector);#varphi (sector) [degrees]",
1976 "#LT d_{xy}/#sigma_{d_{xy}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1980 "#LT d_{z}/#sigma_{d_{z}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1984 "#sigma_{d_{xy}} map;#eta (sector);#varphi (sector) [degrees]",
1988 "#sigma_{d_{z}} map;#eta (sector);#varphi (sector) [degrees]",
1992 "width(d_{xy}/#sigma_{d_{xy}}) map;#eta (sector);#varphi (sector) [degrees]",
1996 "width(d_{z}/#sigma_{d_{z}}) map;#eta (sector);#varphi (sector) [degrees]",
2002 "Median of d_{xy} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}) [#mum]",
2003 nBins_,lowedge,highedge);
2006 "Median absolute deviation of d_{xy} vs #phi sector;#varphi (sector) [degrees];MAD(d_{xy}) [#mum]",
2007 nBins_,lowedge,highedge);
2010 "Median of d_{z} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}) [#mum]",
2011 nBins_,lowedge,highedge);
2014 "Median absolute deviation of d_{z} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}) [#mum]",
2015 nBins_,lowedge,highedge);
2018 "Median of d_{xy} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}) [#mum]",
2019 nBins_,lowedge,highedge);
2022 "Median absolute deviation of d_{xy} vs #eta sector;#eta (sector);MAD(d_{xy}) [#mum]",
2023 nBins_,lowedge,highedge);
2026 "Median of d_{z} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}) [#mum]",
2027 nBins_,lowedge,highedge);
2030 "Median absolute deviation of d_{z} vs #eta sector;#eta (sector);MAD(d_{z}) [#mum]",
2031 nBins_,lowedge,highedge);
2034 "Median of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}/#sigma_{d_{xy}})",
2035 nBins_,lowedge,highedge);
2038 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees]; MAD(d_{xy}/#sigma_{d_{xy}})",
2039 nBins_,lowedge,highedge);
2042 "Median of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
2043 nBins_,lowedge,highedge);
2046 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}/#sigma_{d_{z}})",
2047 nBins_,lowedge,highedge);
2050 "Median of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}/#sigma_{d_{z}})",
2051 nBins_,lowedge,highedge);
2054 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);MAD(d_{xy}/#sigma_{d_{z}})",
2055 nBins_,lowedge,highedge);
2058 "Median of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
2059 nBins_,lowedge,highedge);
2062 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);MAD(d_{z}/#sigma_{d_{z}})",
2063 nBins_,lowedge,highedge);
2072 <<
"######################################\n" 2073 <<
"# PrimaryVertexValidation::endJob()\n" 2074 <<
"# Number of analyzed events: "<<
Nevt_<<
"\n" 2075 <<
"######################################";
2080 "#LT d_{xy} #GT vs modZ;module number (Z);#LT d_{xy} #GT [#mum]",
2084 "#sigma_{d_{xy}} vs modZ;module number (Z);#sigma_{d_{xy}} [#mum]",
2088 "#LT d_{z} #GT vs modZ;module number (Z);#LT d_{z} #GT [#mum]",
2092 "#sigma_{d_{z}} vs modZ;module number (Z);#sigma_{d_{z}} [#mum]",
2096 "#LT d_{xy} #GT vs ladder;ladder number (#phi);#LT d_{xy} #GT [#mum]",
2100 "#sigma_{d_{xy}} vs ladder;ladder number (#phi);#sigma_{d_{xy}} [#mum]",
2104 "#LT d_{z} #GT vs ladder;ladder number (#phi);#LT d_{z} #GT [#mum]" 2108 "#sigma_{d_{z}} vs ladder;ladder number (#phi);#sigma_{d_{z}} [#mum]",
2112 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs modZ;module number (Z);#LT d_{xy}/#sigma_{d_{xy}} #GT",
2116 "width(d_{xy}/#sigma_{d_{xy}}) vs modZ;module number (Z); width(d_{xy}/#sigma_{d_{xy}})",
2120 "#LT d_{z}/#sigma_{d_{z}} #GT vs modZ;module number (Z);#LT d_{z}/#sigma_{d_{z}} #GT",
2124 "width(d_{z}/#sigma_{d_{z}}) vs pT;module number (Z);width(d_{z}/#sigma_{d_{z}})",
2128 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs ladder;ladder number (#phi);#LT d_{xy}/#sigma_{d_{z}} #GT",
2132 "width(d_{xy}/#sigma_{d_{xy}}) vs ladder;ladder number (#phi);width(d_{xy}/#sigma_{d_{z}})",
2136 "#LT d_{z}/#sigma_{d_{z}} #GT vs ladder;ladder number (#phi);#LT d_{z}/#sigma_{d_{z}} #GT",
2140 "width(d_{z}/#sigma_{d_{z}}) vs ladder;ladder number (#phi);width(d_{z}/#sigma_{d_{z}})",
2312 bool isOn = (average_current > 2000.);
2315 return ( (isOn && !is0T) || (!isOn && is0T) );
2400 char phibincenter[129];
2402 sprintf(phibincenter,
"%.f",(phiBins[
i]+phiBins[
i+1])/2.);
2404 char etabincenter[129];
2406 sprintf(etabincenter,
"%.1f",(etaBins[
i]+etaBins[
i+1])/2.);
2414 trendPlot->SetBinContent(i+1,mean_);
2415 trendPlot->SetBinError(i+1,meanErr_);
2422 trendPlot->SetBinContent(i+1,width_);
2423 trendPlot->SetBinError(i+1,widthErr_);
2430 trendPlot->SetBinContent(i+1,median_);
2431 trendPlot->SetBinError(i+1,medianErr_);
2438 trendPlot->SetBinContent(i+1,mad_);
2439 trendPlot->SetBinError(i+1,madErr_);
2443 edm::LogWarning(
"PrimaryVertexValidation")<<
"fillTrendPlot() "<<fitPar_<<
" unknown estimator!"<<std::endl;
2447 if(var_.find(
"eta") != std::string::npos){
2448 trendPlot->GetXaxis()->SetBinLabel(
i+1,etabincenter);
2449 }
else if(var_.find(
"phi") != std::string::npos){
2450 trendPlot->GetXaxis()->SetBinLabel(
i+1,phibincenter);
2452 edm::LogWarning(
"PrimaryVertexValidation")<<
"fillTrendPlot() "<<var_<<
" unknown track parameter!"<<std::endl;
2462 for(
auto iterator = h.begin(); iterator != h.end(); iterator++) {
2471 float mean_ = myFit.first.value();
2472 float meanErr_ = myFit.first.error();
2473 trendPlot->SetBinContent(bin,mean_);
2474 trendPlot->SetBinError(bin,meanErr_);
2479 float width_ = myFit.second.value();
2480 float widthErr_ = myFit.second.error();
2481 trendPlot->SetBinContent(bin,width_);
2482 trendPlot->SetBinError(bin,widthErr_);
2489 trendPlot->SetBinContent(bin,median_);
2490 trendPlot->SetBinError(bin,medianErr_);
2497 trendPlot->SetBinContent(bin,mad_);
2498 trendPlot->SetBinError(bin,madErr_);
2502 edm::LogWarning(
"PrimaryVertexValidation")<<
"fillTrendPlotByIndex() "<<fitPar_<<
" unknown estimator!"<<std::endl;
2506 char bincenter[129];
2509 sprintf(bincenter,
"%.1f",(etaBins[bin-1]+etaBins[bin])/2.);
2510 trendPlot->GetXaxis()->SetBinLabel(bin,bincenter);
2513 sprintf(bincenter,
"%.f",(phiBins[bin-1]+phiBins[bin])/2.);
2514 trendPlot->GetXaxis()->SetBinLabel(bin,bincenter);
2530 char phibincenter[129];
2532 sprintf(phibincenter,
"%.f",(phiBins[
i]+phiBins[
i+1])/2.);
2534 trendMap->GetYaxis()->SetBinLabel(
i+1,phibincenter);
2536 for (
int j=0; j<
nBins_; ++j ) {
2538 char etabincenter[129];
2540 sprintf(etabincenter,
"%.1f",(etaBins[j]+etaBins[j+1])/2.);
2542 if(
i==0) { trendMap->GetXaxis()->SetBinLabel(j+1,etabincenter); }
2550 trendMap->SetBinContent(j+1,
i+1,mean_);
2551 trendMap->SetBinError(j+1,
i+1,meanErr_);
2558 trendMap->SetBinContent(j+1,
i+1,width_);
2559 trendMap->SetBinError(j+1,
i+1,widthErr_);
2566 trendMap->SetBinContent(j+1,
i+1,median_);
2567 trendMap->SetBinError(j+1,
i+1,medianErr_);
2574 trendMap->SetBinContent(j+1,
i+1,mad_);
2575 trendMap->SetBinError(j+1,
i+1,madErr_);
2579 edm::LogWarning(
"PrimaryVertexValidation:") <<
" fillMap() "<<fitPar_<<
" unknown estimator!"<<std::endl;
2601 double vzErr =0.0, vxErr=0.0, vyErr=0.0;
2607 double dxy=0.0,
dz=0.0, dxysigma=0.0, dzsigma=0.0;
2608 dxy = track.
dxy(vtxPoint);
2609 dz = track.
dz(vtxPoint);
2614 if(
std::abs(dxy/dxysigma) > dxyErrMax_)
return false;
2615 if(
std::abs(
dz/dzsigma) > dzErrMax_)
return false;
2616 if(track.
ptError() / track.
pt() > ptErrMax_)
return false;
2627 TH1F::SetDefaultSumw2(kTRUE);
2629 std::map<std::string, TH1*>
h;
2633 for(
const auto &
type : types){
2634 h[
"pseudorapidity_"+
type] =dir.
make <TH1F>((
"rapidity_"+
type).c_str(),
"track pseudorapidity; track #eta; tracks",100,-3., 3.);
2635 h[
"z0_"+
type] = dir.
make<TH1F>((
"z0_"+
type).c_str(),
"track z_{0};track z_{0} (cm);tracks",80,-40., 40.);
2636 h[
"phi_"+
type] = dir.
make<TH1F>((
"phi_"+
type).c_str(),
"track #phi; track #phi;tracks",80,-
M_PI,
M_PI);
2637 h[
"eta_"+
type] = dir.
make<TH1F>((
"eta_"+
type).c_str(),
"track #eta; track #eta;tracks",80,-4., 4.);
2638 h[
"pt_"+
type] = dir.
make<TH1F>((
"pt_"+
type).c_str(),
"track p_{T}; track p_{T} [GeV];tracks",100,0., 20.);
2639 h[
"p_"+
type] = dir.
make<TH1F>((
"p_"+
type).c_str(),
"track p; track p [GeV];tracks",100,0., 20.);
2640 h[
"found_"+
type] = dir.
make<TH1F>((
"found_"+
type).c_str(),
"n. found hits;n^{found}_{hits};tracks",30, 0., 30.);
2641 h[
"lost_"+
type] = dir.
make<TH1F>((
"lost_"+
type).c_str(),
"n. lost hits;n^{lost}_{hits};tracks",20, 0., 20.);
2642 h[
"nchi2_"+
type] = dir.
make<TH1F>((
"nchi2_"+
type).c_str(),
"normalized track #chi^{2};track #chi^{2}/ndf;tracks",100, 0., 20.);
2643 h[
"rstart_"+
type] = dir.
make<TH1F>((
"rstart_"+
type).c_str(),
"track start radius; track innermost radius r (cm);tracks",100, 0., 20.);
2644 h[
"expectedInner_"+
type] = dir.
make<TH1F>((
"expectedInner_"+
type).c_str(),
"n. expected inner hits;n^{expected}_{inner};tracks",10, 0., 10.);
2645 h[
"expectedOuter_"+
type] = dir.
make<TH1F>((
"expectedOuter_"+
type).c_str(),
"n. expected outer hits;n^{expected}_{outer};tracks ",10, 0., 10.);
2646 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.);
2647 h[
"logtresz_"+
type] = dir.
make<TH1F>((
"logtresz_"+
type).c_str(),
"log10(track z resolution/#mum);log10(track z resolution/#mum);tracks",100, 0., 5.);
2648 h[
"tpullxy_"+
type] = dir.
make<TH1F>((
"tpullxy_"+
type).c_str(),
"track r-#phi pull;pull_{r-#phi};tracks",100, -10., 10.);
2649 h[
"tpullz_"+
type] = dir.
make<TH1F>((
"tpullz_"+
type).c_str(),
"track r-z pull;pull_{r-z};tracks",100, -50., 50.);
2650 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.);
2651 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.);
2652 h[
"lvseta_"+
type] = dir.
make<TH2F>((
"lvseta_"+
type).c_str(),
"cluster length vs #eta;track #eta;cluster length",60,-3., 3., 20, 0., 20);
2653 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);
2654 h[
"restrkz_"+
type] = dir.
make<TH1F>((
"restrkz_"+
type).c_str(),
"z-residuals (track vs vertex);res_{z} (cm);tracks", 200, -5., 5.);
2655 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);
2656 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);
2657 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.);
2658 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.);
2659 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.);
2660 h[
"sigmatrkz0_"+
type] = dir.
make<TH1F>((
"sigmatrkz0_"+
type).c_str(),
"z-resolution (excluding beam);#sigma^{trk}_{z_{0}} (cm);tracks", 100, 0., 5.);
2661 h[
"sigmatrkz_"+
type] = dir.
make<TH1F>((
"sigmatrkz_"+
type).c_str(),
"z-resolution (including beam);#sigma^{trk}_{z} (cm);tracks", 100,0., 5.);
2662 h[
"nbarrelhits_"+
type] = dir.
make<TH1F>((
"nbarrelhits_"+
type).c_str(),
"number of pixel barrel hits;n. hits Barrel Pixel;tracks", 10, 0., 10.);
2663 h[
"nbarrelLayers_"+
type] = dir.
make<TH1F>((
"nbarrelLayers_"+
type).c_str(),
"number of pixel barrel layers;n. layers Barrel Pixel;tracks", 10, 0., 10.);
2664 h[
"nPxLayers_"+
type] = dir.
make<TH1F>((
"nPxLayers_"+
type).c_str(),
"number of pixel layers (barrel+endcap);n. Pixel layers;tracks", 10, 0., 10.);
2665 h[
"nSiLayers_"+
type] = dir.
make<TH1F>((
"nSiLayers_"+
type).c_str(),
"number of Tracker layers;n. Tracker layers;tracks", 20, 0., 20.);
2666 h[
"trackAlgo_"+
type] = dir.
make<TH1F>((
"trackAlgo_"+
type).c_str(),
"track algorithm;track algo;tracks", 30, 0., 30.);
2667 h[
"trackQuality_"+
type] = dir.
make<TH1F>((
"trackQuality_"+
type).c_str(),
"track quality;track quality;tracks", 7, -1., 6.);
2678 unsigned int theNOfBins,
2683 TH1F::SetDefaultSumw2(kTRUE);
2685 auto hash = std::make_pair(resType,varType);
2695 std::vector<TH1F*>
h;
2696 h.reserve(theNOfBins);
2698 if (theNOfBins==0) {
2699 edm::LogError(
"PrimaryVertexValidation") <<
"bookResidualsHistogram() The number of bins cannot be identically 0" << std::endl;
2710 for(
unsigned int i=0;
i<theNOfBins;
i++){
2713 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());
2715 TH1F* htemp = dir.
make<TH1F>(Form(
"histo_%s_%s_plot%i",s_resType.c_str(),s_varType.c_str(),
i),
2731 using namespace reco;
2789 double q=
sqrt(1.-2.*kappa*D0);
2814 int longesthit=0, nbarrel=0;
2816 if ((**hit).isValid() && (**hit).geographicalId().det() ==
DetId::Tracker ){
2824 if (clust->sizeY()-longesthit>0) longesthit=clust->sizeY();
2825 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_
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
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
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
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_]
std::array< float, nPtBins_+1 > mypT_bins_
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
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_]