68 storeNtuple_(iConfig.getParameter<bool>(
"storeNtuple")),
69 lightNtupleSwitch_(iConfig.getParameter<bool>(
"isLightNtuple")),
70 useTracksFromRecoVtx_(iConfig.getParameter<bool>(
"useTracksFromRecoVtx")),
71 vertexZMax_(iConfig.getUntrackedParameter<double>(
"vertexZMax",99.)),
72 intLumi_(iConfig.getUntrackedParameter<double>(
"intLumi",0.)),
73 askFirstLayerHit_(iConfig.getParameter<bool>(
"askFirstLayerHit")),
74 doBPix_(iConfig.getUntrackedParameter<bool>(
"doBPix",
true)),
75 doFPix_(iConfig.getUntrackedParameter<bool>(
"doFPix",
true)),
76 ptOfProbe_(iConfig.getUntrackedParameter<double>(
"probePt",0.)),
77 etaOfProbe_(iConfig.getUntrackedParameter<double>(
"probeEta",2.4)),
78 nBins_(iConfig.getUntrackedParameter<
int>(
"numberOfBins",24)),
79 debug_(iConfig.getParameter<bool>(
"Debug")),
80 runControl_(iConfig.getUntrackedParameter<bool>(
"runControl",
false))
88 std::vector<unsigned int> defaultRuns;
89 defaultRuns.push_back(0);
108 if (clusteringAlgorithm==
"gap"){
110 }
else if(clusteringAlgorithm==
"DA"){
113 }
else if(clusteringAlgorithm==
"DA_vect") {
116 throw VertexException(
"PrimaryVertexProducerAlgorithm: unknown clustering algorithm: " + clusteringAlgorithm);
138 using namespace reco;
142 edm::LogWarning(
"PrimaryVertexValidation") <<
"*********************************************************************************\n" 143 <<
"* The configuration (ptOfProbe > " <<
ptOfProbe_ <<
"GeV) is not correctly set for current value of magnetic field \n" 144 <<
"* Switching it to 0. !!! \n" 145 <<
"*********************************************************************************"<< std::endl;
153 bool passesRunControl =
false;
161 passesRunControl =
true;
165 if (!passesRunControl)
return;
197 edm::LogInfo(
"tracker geometry read")<<
"There are: "<< pDD->
dets().size() <<
" detectors";
204 edm::LogInfo(
"PrimaryVertexValidation")<<
" pixel phase1 setup ";
209 edm::LogInfo(
"PrimaryVertexValidation")<<
" pixel phase0 setup ";
230 double fBfield_=((*theB_).field()->inTesla(
GlobalPoint(0.,0.,0.))).
z();
249 LogTrace(
"PrimaryVertexValidation")<<
"caught std::exception "<<er.
what()<<std::endl;
252 std::vector<Vertex> vsorted = *(
vertices);
258 if( vsorted.size() == 0)
return;
262 if ( vsorted[0].isValid() ) {
279 unsigned int vertexCollectionSize = vsorted.size();
282 for (
unsigned int i=0;
i<vertexCollectionSize;
i++) {
283 const Vertex& vertex = vsorted.at(
i);
284 if (vertex.
isValid()) nvvertex++;
295 double chi2prob = 0.;
297 if (!vsorted.at(0).isFake()) {
310 double pt = (**itrk).pt();
315 double dxyRes = (**itrk).dxy(myVertex);
316 double dzRes = (**itrk).dz(myVertex);
318 double dxy_err = (**itrk).dxyError();
319 double dz_err = (**itrk).dzError();
321 float trackphi = ((**itrk).phi())*(180/
TMath::Pi());
322 float tracketa = (**itrk).eta();
332 if(tracketa >= etaF && tracketa < etaL ){
341 if(trackphi >= phiF && trackphi < phiL ){
348 for(
int j=0; j<
nBins_; j++){
353 if(tracketa >= etaJ && tracketa < etaK ){
380 if ( beamSpotHandle.
isValid() ) {
381 beamSpot = *beamSpotHandle;
421 edm::LogInfo(
"PrimaryVertexValidation")<<
" looping over "<<trackCollectionHandle->size()<<
"tracks";
423 h_nTracks->Fill(trackCollectionHandle->size());
429 std::vector<TransientTrack> t_tks;
431 for(TrackCollection::const_iterator
track = trackCollectionHandle->begin();
track!= trackCollectionHandle->end(); ++
track, ++
k){
440 edm::LogInfo(
"PrimaryVertexValidation") <<
"Found: " << t_tks.size() <<
" reconstructed tracks";
456 edm::LogInfo(
"PrimaryVertexValidation")<<
" looping over: "<< clusters.size() <<
" clusters from " << t_tks.size() <<
" selected tracks";
466 for (vector< vector<TransientTrack> >::const_iterator iclus = clusters.begin(); iclus != clusters.end(); iclus++) {
471 for(vector<TransientTrack>::const_iterator theTTrack = iclus->begin(); theTTrack!= iclus->end(); ++theTTrack, ++
i)
478 const Track & theTrack = theTTrack->track();
520 if((*iHit)->isValid()) {
522 if (this->
isHit2D(**iHit)) {++nRecHit2D;}
550 vector<TransientTrack> theFinalTracks;
551 theFinalTracks.clear();
553 for(vector<TransientTrack>::const_iterator tk = iclus->begin(); tk!= iclus->end(); ++tk){
557 if( tk == theTTrack )
continue;
559 theFinalTracks.push_back((*tk));
564 if(theFinalTracks.size() > 1){
567 edm::LogInfo(
"PrimaryVertexValidation")<<
"Transient Track Collection size: "<<theFinalTracks.size();
576 double totalTrackWeights=0;
577 if(theFittedVertex.
isValid ()){
581 for(
size_t rtracks= 0; rtracks < theFinalTracks.size(); rtracks++){
583 totalTrackWeights+= theFittedVertex.
trackWeight(theFinalTracks[rtracks]);
593 const Vertex vertex = theFittedVertex;
614 double dxyFromMyVertex = theTrack.
dxy(myVertex);
615 double dzFromMyVertex = theTrack.
dz(myVertex);
633 double s_ip2dpv_corr = s_ip2dpv.second.value();
634 double s_ip2dpv_err = s_ip2dpv.second.error();
643 double s_ip3dpv_corr = s_ip3dpv.second.value();
644 double s_ip3dpv_err = s_ip3dpv.second.error();
648 double ip3d_corr = ip3dpv.second.value();
649 double ip3d_err = ip3dpv.second.error();
657 float my_dx = refPoint.
x() - myVertex.x();
658 float my_dy = refPoint.
y() - myVertex.y();
660 float my_dx2 = cPToVtx.
x() - myVertex.x();
661 float my_dy2 = cPToVtx.
y() - myVertex.y();
663 float my_dxy =
std::sqrt(my_dx*my_dx + my_dy*my_dy);
671 edm::LogInfo(
"PrimaryVertexValidation")<<
"my_dx:" << my_dx
672 <<
" my_dy:" << my_dy
673 <<
" my_dxy:" << my_dxy
674 <<
" my_dx2:" << my_dx2
675 <<
" my_dy2:" << my_dy2
677 <<
" dxyFromVtx:" << dxyFromMyVertex <<
"\n" 678 <<
" ============================== "<<
"\n" 681 <<
"diff3:" << (my_dx - my_dx2) <<
" " << (my_dy - my_dy2) <<
"\n" 702 float tracketa = theTrack.
eta();
703 float trackpt = theTrack.
pt();
708 for(
int ipTBin=0; ipTBin<
nPtBins_; ipTBin++){
716 if( fabs(tracketa)<1.5 && (trackpt >= pTF && trackpt < pTL) ){
725 if(fabs(tracketa)<1.){
749 if(!
doBPix_ && (pixelOcc.first ==
true))
continue;
750 if(!
doFPix_ && (pixelOcc.second ==
true))
continue;
778 float dxyRecoV = theTrack.
dz(theRecoVertex);
779 float dzRecoV = theTrack.
dxy(theRecoVertex);
783 double zTrack=(theTTrack->stateAtBeamLine().trackStateAtPCA()).
position().z();
785 double tantheta=
tan((theTTrack->stateAtBeamLine().trackStateAtPCA()).momentum().theta());
788 double restrkz = zTrack-
zVertex;
789 double pulltrkz = (zTrack-
zVertex)/TMath::Sqrt(dz2);
814 n_dxyVsPhi->Fill(trackphi,dxyFromMyVertex/s_ip2dpv_err);
817 a_dxyVsEta->Fill(tracketa,dxyFromMyVertex*cmToum);
819 n_dxyVsEta->Fill(tracketa,dxyFromMyVertex/s_ip2dpv_err);
823 for(
int i=0; i<
nBins_; i++){
831 if(tracketa >= etaF && tracketa < etaL ){
850 if(trackphi >= phiF && trackphi < phiL ){
866 for(
int j=0; j<
nBins_; j++){
871 if(tracketa >= etaJ && tracketa < etaK ){
886 edm::LogInfo(
"PrimaryVertexValidation")<<
" myVertex.x()= "<<myVertex.x()<<
"\n" 887 <<
" myVertex.y()= "<<myVertex.y()<<
" \n" 888 <<
" myVertex.z()= "<<myVertex.z()<<
" \n" 889 <<
" theTrack.dz(myVertex)= "<<theTrack.
dz(myVertex)<<
" \n" 890 <<
" zPCA -myVertex.z() = "<<(theTrack.
vertex().z() -myVertex.z());
898 LogTrace(
"PrimaryVertexValidation")<<
"caught std::exception "<<er.
what()<<std::endl;
905 edm::LogInfo(
"PrimaryVertexValidation")<<
"Not enough tracks to make a vertex. Returns no vertex info";
912 edm::LogInfo(
"PrimaryVertexValidation")<<
"Track "<<i<<
" : pT = "<<theTrack.
pt();
937 if (dynamic_cast<const SiStripRecHit2D*>(&hit))
return false;
938 else if (dynamic_cast<const SiStripMatchedRecHit2D*>(&hit))
return true;
939 else if (dynamic_cast<const ProjectedSiStripRecHit2D*>(&hit))
return false;
941 edm::LogError(
"UnkownType") <<
"@SUB=AlignmentTrackSelector::isHit2D" 942 <<
"Tracker hit not in pixel and neither SiStripRecHit2D nor " 943 <<
"SiStripMatchedRecHit2D nor ProjectedSiStripRecHit2D.";
948 edm::LogWarning(
"DetectorMismatch") <<
"@SUB=AlignmentTrackSelector::isHit2D" 949 <<
"Hit not in tracker with 'official' dimension >=2.";
960 bool hasBPixHits =
false;
961 bool hasFPixHits =
false;
971 return std::make_pair(hasBPixHits,hasFPixHits);
978 using namespace reco;
997 <<
"######################################\n" 999 <<
"######################################";
1092 TH1F::SetDefaultSumw2(kTRUE);
1094 h_lumiFromConfig = EventFeatures.
make<TH1F>(
"h_lumiFromConfig",
"luminosity from config;;luminosity of present run",1,-0.5,0.5);
1097 h_runFromConfig = EventFeatures.
make<TH1I>(
"h_runFromConfig",
"run number from config;;run number (from configuration)",
1103 h_runFromEvent = EventFeatures.
make<TH1I>(
"h_runFromEvent",
"run number from config;;run number (from event)",1,-0.5,0.5);
1105 h_nTracks = EventFeatures.
make<TH1F>(
"h_nTracks",
"number of tracks per event;n_{tracks}/event;n_{events}",300,-0.5,299.5);
1106 h_nClus = EventFeatures.
make<TH1F>(
"h_nClus",
"number of track clusters;n_{clusters}/event;n_{events}",50,-0.5,49.5);
1107 h_nOfflineVertices = EventFeatures.
make<TH1F>(
"h_nOfflineVertices",
"number of offline reconstructed vertices;n_{vertices}/event;n_{events}",50,-0.5,49.5);
1108 h_runNumber = EventFeatures.
make<TH1F>(
"h_runNumber",
"run number;run number;n_{events}",100000,150000.,250000.);
1109 h_xOfflineVertex = EventFeatures.
make<TH1F>(
"h_xOfflineVertex",
"x-coordinate of offline vertex;x_{vertex};n_{events}",100,-0.1,0.1);
1110 h_yOfflineVertex = EventFeatures.
make<TH1F>(
"h_yOfflineVertex",
"y-coordinate of offline vertex;y_{vertex};n_{events}",100,-0.1,0.1);
1111 h_zOfflineVertex = EventFeatures.
make<TH1F>(
"h_zOfflineVertex",
"z-coordinate of offline vertex;z_{vertex};n_{events}",100,-30.,30.);
1112 h_xErrOfflineVertex = EventFeatures.
make<TH1F>(
"h_xErrOfflineVertex",
"x-coordinate error of offline vertex;err_{x}^{vtx};n_{events}",100,0.,0.01);
1113 h_yErrOfflineVertex = EventFeatures.
make<TH1F>(
"h_yErrOfflineVertex",
"y-coordinate error of offline vertex;err_{y}^{vtx};n_{events}",100,0.,0.01);
1114 h_zErrOfflineVertex = EventFeatures.
make<TH1F>(
"h_zErrOfflineVertex",
"z-coordinate error of offline vertex;err_{z}^{vtx};n_{events}",100,0.,10.);
1115 h_BSx0 = EventFeatures.
make<TH1F>(
"h_BSx0",
"x-coordinate of reco beamspot;x^{BS}_{0};n_{events}",100,-0.1,0.1);
1116 h_BSy0 = EventFeatures.
make<TH1F>(
"h_BSy0",
"y-coordinate of reco beamspot;y^{BS}_{0};n_{events}",100,-0.1,0.1);
1117 h_BSz0 = EventFeatures.
make<TH1F>(
"h_BSz0",
"z-coordinate of reco beamspot;z^{BS}_{0};n_{events}",100,-1.,1.);
1118 h_Beamsigmaz = EventFeatures.
make<TH1F>(
"h_Beamsigmaz",
"z-coordinate beam width;#sigma_{Z}^{beam};n_{events}",100,0.,1.);
1119 h_BeamWidthX = EventFeatures.
make<TH1F>(
"h_BeamWidthX",
"x-coordinate beam width;#sigma_{X}^{beam};n_{events}",100,0.,0.01);
1120 h_BeamWidthY = EventFeatures.
make<TH1F>(
"h_BeamWidthY",
"y-coordinate beam width;#sigma_{Y}^{beam};n_{events}",100,0.,0.01);
1122 h_etaMax = EventFeatures.
make<TH1F>(
"etaMax",
"etaMax",1,-0.5,0.5);
1123 h_nbins = EventFeatures.
make<TH1F>(
"nbins",
"nbins",1,-0.5,0.5);
1128 h_probePt_ = ProbeFeatures.
make<TH1F>(
"h_probePt",
"p_{T} of probe track;track p_{T} (GeV); tracks",100,0.,50.);
1129 h_probeP_ = ProbeFeatures.
make<TH1F>(
"h_probeP",
"momentum of probe track;track p (GeV); tracks",100,0.,100.);
1130 h_probeEta_ = ProbeFeatures.
make<TH1F>(
"h_probeEta",
"#eta of the probe track;track #eta;tracks",54,-2.8,2.8);
1131 h_probePhi_ = ProbeFeatures.
make<TH1F>(
"h_probePhi",
"#phi of probe track;track #phi (rad);tracks",100,-3.15,3.15);
1133 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);
1134 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.);
1136 h_probeChi2_ = ProbeFeatures.
make<TH1F>(
"h_probeChi2",
"#chi^{2} of probe track;track #chi^{2}; tracks",100,0.,100.);
1137 h_probeNormChi2_ = ProbeFeatures.
make<TH1F>(
"h_probeNormChi2",
" normalized #chi^{2} of probe track;track #chi^{2}/ndof; tracks",100,0.,10.);
1138 h_probeCharge_ = ProbeFeatures.
make<TH1F>(
"h_probeCharge",
"charge of profe track;track charge Q;tracks",3,-1.5,1.5);
1139 h_probeQoverP_ = ProbeFeatures.
make<TH1F>(
"h_probeQoverP",
"q/p of probe track; track Q/p (GeV^{-1});tracks",200,-1.,1.);
1140 h_probedzRecoV_ = ProbeFeatures.
make<TH1F>(
"h_probedzRecoV",
"d_{z}(V_{offline}) of probe track;track d_{z}(V_{off}) (cm);tracks",200,-1.,1.);
1141 h_probedxyRecoV_ = ProbeFeatures.
make<TH1F>(
"h_probedxyRecoV",
"d_{xy}(V_{offline}) of probe track;track d_{xy}(V_{off}) (cm);tracks",200,-1.,1.);
1142 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);
1143 h_probesignIP2DRefitV_ = ProbeFeatures.
make<TH1F>(
"h_probesignIPRefitV",
"ip_{2D}(V_{refit}) of probe track;track ip_{2D}(V_{fit}) (cm);tracks",200,-1.,1.);
1144 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);
1146 h_probez0RefitV_ = ProbeFeatures.
make<TH1F>(
"h_probez0RefitV",
"z_{0}(V_{refit}) of probe track;track z_{0}(V_{fit}) (cm);tracks",200,-1.,1.);
1147 h_probed0RefitV_ = ProbeFeatures.
make<TH1F>(
"h_probed0RefitV",
"d_{0}(V_{refit}) of probe track;track d_{0}(V_{fit}) (cm);tracks",200,-1.,1.);
1149 h_probed3DRefitV_ = ProbeFeatures.
make<TH1F>(
"h_probed3DRefitV",
"d_{3D}(V_{refit}) of probe track;track d_{3D}(V_{fit}) (cm);tracks",200,0.,1.);
1150 h_probereszRefitV_ = ProbeFeatures.
make<TH1F>(
"h_probeReszRefitV",
"z_{track} -z_{V_{refit}};track res_{z}(V_{refit}) (cm);tracks",200,-1.,1.);
1152 h_probeRecoVSigZ_ = ProbeFeatures.
make<TH1F>(
"h_probeRecoVSigZ" ,
"Longitudinal DCA Significance (reco);d_{z}(V_{off})/#sigma_{dz};tracks",100,-8,8);
1153 h_probeRecoVSigXY_ = ProbeFeatures.
make<TH1F>(
"h_probeRecoVSigXY" ,
"Transverse DCA Significance (reco);d_{xy}(V_{off})/#sigma_{dxy};tracks",100,-8,8);
1154 h_probeRefitVSigZ_ = ProbeFeatures.
make<TH1F>(
"h_probeRefitVSigZ" ,
"Longitudinal DCA Significance (refit);d_{z}(V_{fit})/#sigma_{dz};tracks",100,-8,8);
1155 h_probeRefitVSigXY_= ProbeFeatures.
make<TH1F>(
"h_probeRefitVSigXY",
"Transverse DCA Significance (refit);d_{xy}(V_{fit})/#sigma_{dxy};tracks",100,-8,8);
1156 h_probeRefitVSig3D_= ProbeFeatures.
make<TH1F>(
"h_probeRefitVSig3D",
"3D DCA Significance (refit);d_{3D}/#sigma_{3D};tracks",100,0.,20.);
1157 h_probeRefitVLogSig3D_ = ProbeFeatures.
make<TH1F>(
"h_probeRefitVLogSig3D",
"log_{10}(3D DCA-Significance) (refit);log_{10}(d_{3D}/#sigma_{3D});tracks",100,-5.,4.);
1158 h_probeRefitVSigResZ_ = ProbeFeatures.
make<TH1F>(
"h_probeRefitVSigResZ" ,
"Longitudinal residual significance (refit);(z_{track} -z_{V_{fit}})/#sigma_{res_{z}};tracks",100,-8,8);
1160 h_probeHits_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechits" ,
"N_{hits} ;N_{hits} ;tracks",40,-0.5,39.5);
1161 h_probeHits1D_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechits1D" ,
"N_{hits} 1D ;N_{hits} 1D ;tracks",40,-0.5,39.5);
1162 h_probeHits2D_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechits2D" ,
"N_{hits} 2D ;N_{hits} 2D ;tracks",40,-0.5,39.5);
1163 h_probeHitsInTIB_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTIB" ,
"N_{hits} TIB ;N_{hits} TIB;tracks",40,-0.5,39.5);
1164 h_probeHitsInTOB_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTOB" ,
"N_{hits} TOB ;N_{hits} TOB;tracks",40,-0.5,39.5);
1165 h_probeHitsInTID_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTID" ,
"N_{hits} TID ;N_{hits} TID;tracks",40,-0.5,39.5);
1166 h_probeHitsInTEC_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTEC" ,
"N_{hits} TEC ;N_{hits} TEC;tracks",40,-0.5,39.5);
1167 h_probeHitsInBPIX_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsBPIX",
"N_{hits} BPIX;N_{hits} BPIX;tracks",40,-0.5,39.5);
1168 h_probeHitsInFPIX_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsFPIX",
"N_{hits} FPIX;N_{hits} FPIX;tracks",40,-0.5,39.5);
1172 h_fitVtxNtracks_ = RefitVertexFeatures.
make<TH1F>(
"h_fitVtxNtracks" ,
"N_{trks} used in vertex fit;N^{fit}_{tracks};vertices" ,100,-0.5,99.5);
1173 h_fitVtxNdof_ = RefitVertexFeatures.
make<TH1F>(
"h_fitVtxNdof" ,
"N_{DOF} of vertex fit;N_{DOF} of refit vertex;vertices" ,100,-0.5,99.5);
1174 h_fitVtxChi2_ = RefitVertexFeatures.
make<TH1F>(
"h_fitVtxChi2" ,
"#chi^{2} of vertex fit;vertex #chi^{2};vertices" ,100,-0.5,99.5);
1175 h_fitVtxChi2ndf_ = RefitVertexFeatures.
make<TH1F>(
"h_fitVtxChi2ndf" ,
"#chi^{2}/ndf of vertex fit;vertex #chi^{2}/ndf;vertices" ,100,-0.5,9.5);
1176 h_fitVtxChi2Prob_ = RefitVertexFeatures.
make<TH1F>(
"h_fitVtxChi2Prob" ,
"Prob(#chi^{2},ndf) of vertex fit;Prob(#chi^{2},ndf);vertices",40,0.,1.);
1177 h_fitVtxTrackWeights_ = RefitVertexFeatures.
make<TH1F>(
"h_fitVtxTrackWeights",
"track weights associated to track;track weights;tracks",40,0.,1.);
1178 h_fitVtxTrackAverageWeight_ = RefitVertexFeatures.
make<TH1F>(
"h_fitVtxTrackAverageWeight_",
"average track weight per vertex;#LT track weight #GT;vertices",40,0.,1.);
1183 h_recoVtxNtracks_ = RecoVertexFeatures.
make<TH1F>(
"h_recoVtxNtracks" ,
"N^{vtx}_{trks};N^{vtx}_{trks};vertices" ,100,-0.5,99.5);
1184 h_recoVtxChi2ndf_ = RecoVertexFeatures.
make<TH1F>(
"h_recoVtxChi2ndf" ,
"#chi^{2}/ndf vtx;#chi^{2}/ndf vtx;vertices" ,10,-0.5,9.5);
1185 h_recoVtxChi2Prob_ = RecoVertexFeatures.
make<TH1F>(
"h_recoVtxChi2Prob" ,
"Prob(#chi^{2},ndf);Prob(#chi^{2},ndf);vertices",40,0.,1.);
1186 h_recoVtxSumPt_ = RecoVertexFeatures.
make<TH1F>(
"h_recoVtxSumPt" ,
"Sum(p^{trks}_{T});Sum(p^{trks}_{T});vertices" ,100,0.,200.);
1201 float dxymax_phi = 2000;
1202 float dzmax_phi = 2000;
1203 float dxymax_eta = 3000;
1204 float dzmax_eta = 3000;
1206 float d3Dmax_phi = hypot(dxymax_phi,dzmax_phi);
1207 float d3Dmax_eta = hypot(dxymax_eta,dzmax_eta);
1209 const int mybins_ = 500;
1280 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;d_{xy} [#mum];tracks",phiF,phiL),
1281 mybins_,-dxymax_phi,dxymax_phi);
1284 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;d_{xy} [#mum];tracks",etaF,etaL),
1285 mybins_,-dxymax_eta,dxymax_eta);
1291 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;d_{x} [#mum];tracks",phiF,phiL),
1292 mybins_,-dxymax_phi,dxymax_phi);
1295 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;d_{x} [#mum];tracks",etaF,etaL),
1296 mybins_,-dxymax_eta,dxymax_eta);
1302 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;d_{y} [#mum];tracks",phiF,phiL),
1303 mybins_,-dxymax_phi,dxymax_phi);
1306 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;d_{y} [#mum];tracks",etaF,etaL),
1307 mybins_,-dxymax_eta,dxymax_eta);
1312 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;IP_{2D} [#mum];tracks",phiF,phiL),
1313 mybins_,-dxymax_phi,dxymax_phi);
1316 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;IP_{2D} [#mum];tracks",etaF,etaL),
1317 mybins_,-dxymax_eta,dxymax_eta);
1322 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;IP_{3D} [#mum];tracks",phiF,phiL),
1323 mybins_,-dxymax_phi,dxymax_phi);
1326 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;IP_{3D} [#mum];tracks",etaF,etaL),
1327 mybins_,-dxymax_eta,dxymax_eta);
1332 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;d_{z} [#mum];tracks",phiF,phiL),
1333 mybins_,-dzmax_phi,dzmax_phi);
1336 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;d_{z} [#mum];tracks",etaF,etaL),
1337 mybins_,-dzmax_eta,dzmax_eta);
1343 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;z_{trk} - z_{vtx} [#mum];tracks",phiF,phiL),
1344 mybins_,-dzmax_phi,dzmax_phi);
1347 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;z_{trk} - z_{vtx} [#mum];tracks",etaF,etaL),
1348 mybins_,-dzmax_eta,dzmax_eta);
1353 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;d_{3D} [#mum];tracks",phiF,phiL),
1354 mybins_,0.,d3Dmax_phi);
1357 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;d_{3D} [#mum];tracks",etaF,etaL),
1358 mybins_,0.,d3Dmax_eta);
1369 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;d_{xy}/#sigma_{d_{xy}};tracks",phiF,phiL),
1370 mybins_,-dxymax_phi/100.,dxymax_phi/100.);
1373 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;d_{xy}/#sigma_{d_{xy}};tracks",etaF,etaL),
1374 mybins_,-dxymax_eta/100.,dxymax_eta/100.);
1379 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;IP_{2D}/#sigma_{IP_{2D}};tracks",phiF,phiL),
1380 mybins_,-dxymax_phi/100.,dxymax_phi/100.);
1383 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;IP_{2D}/#sigma_{IP_{2D}};tracks",etaF,etaL),
1384 mybins_,-dxymax_eta/100.,dxymax_eta/100.);
1389 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;IP_{3D}/#sigma_{IP_{3D}};tracks",phiF,phiL),
1390 mybins_,-dxymax_phi/100.,dxymax_phi/100.);
1393 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;IP_{3D}/#sigma_{IP_{3D}};tracks",etaF,etaL),
1394 mybins_,-dxymax_eta/100.,dxymax_eta/100.);
1399 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;d_{z}/#sigma_{d_{z}};tracks",phiF,phiL),
1400 mybins_,-dzmax_phi/100.,dzmax_phi/100.);
1403 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;d_{z}/#sigma_{d_{z}};tracks",etaF,etaL),
1404 mybins_,-dzmax_eta/100.,dzmax_eta/100.);
1409 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;(z_{trk}-z_{vtx})/#sigma_{res_{z}};tracks",phiF,phiL),
1410 mybins_,-dzmax_phi/100.,dzmax_phi/100.);
1413 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;(z_{trk}-z_{vtx})/#sigma_{res_{z}};tracks",etaF,etaL),
1414 mybins_,-dzmax_eta/100.,dzmax_eta/100.);
1419 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;d_{3D}/#sigma_{d_{3D}};tracks",phiF,phiL),
1420 mybins_,0.,d3Dmax_phi/100.);
1423 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;d_{3D}/#sigma_{d_{3D}};tracks",etaF,etaL),
1424 mybins_,0.,d3Dmax_eta/100.);
1431 for (
int j=0; j<
nBins_; ++j ) {
1434 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy};tracks",etaF,etaL,phiF,phiL),
1435 mybins_,-dzmax_eta,dzmax_eta);
1438 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z};tracks",etaF,etaL,phiF,phiL),
1439 mybins_,-dzmax_eta,dzmax_eta);
1442 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{3D};tracks",etaF,etaL,phiF,phiL),
1443 mybins_,0.,d3Dmax_eta);
1446 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy}/#sigma_{d_{xy}};tracks",etaF,etaL,phiF,phiL),
1447 mybins_,-dzmax_eta/100,dzmax_eta/100);
1450 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z}/#sigma_{d_{z}};tracks",etaF,etaL,phiF,phiL),
1451 mybins_,-dzmax_eta/100,dzmax_eta/100);
1454 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{3D}/#sigma_{d_{3D}};tracks",etaF,etaL,phiF,phiL),
1455 mybins_,0.,d3Dmax_eta);
1464 a_dxyVsPhi = BiasVsParameter.make<TH2F>(
"h2_dxy_vs_phi",
"d_{xy} vs track #phi;track #phi [rad];track d_{xy}(PV) [#mum]",
1467 a_dzVsPhi = BiasVsParameter.make<TH2F>(
"h2_dz_vs_phi",
"d_{z} vs track #phi;track #phi [rad];track d_{z}(PV) [#mum]",
1470 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}}",
1473 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}}",
1476 a_dxyVsEta = BiasVsParameter.make<TH2F>(
"h2_dxy_vs_eta",
"d_{xy} vs track #eta;track #eta;track d_{xy}(PV) [#mum]",
1479 a_dzVsEta = BiasVsParameter.make<TH2F>(
"h2_dz_vs_eta",
"d_{z} vs track #eta;track #eta;track d_{z}(PV) [#mum]",
1482 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}}",
1485 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}}",
1496 Double_t highedge=nBins_-0.5;
1497 Double_t lowedge=-0.5;
1502 "#LT d_{xy} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy} #GT [#mum]",
1503 nBins_,lowedge,highedge);
1506 "#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{xy}} [#mum]",
1507 nBins_,lowedge,highedge);
1510 "#LT d_{z} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z} #GT [#mum]",
1511 nBins_,lowedge,highedge);
1513 a_dzPhiWidthTrend = WidthTrendsDir.
make<TH1F>(
"widths_dz_phi",
"#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{z}} [#mum]",
1514 nBins_,lowedge,highedge);
1517 "#LT d_{xy} #GT vs #eta sector;#eta (sector);#LT d_{xy} #GT [#mum]",
1518 nBins_,lowedge,highedge);
1521 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{xy}} [#mum]",
1522 nBins_,lowedge,highedge);
1525 "#LT d_{z} #GT vs #eta sector;#eta (sector);#LT d_{z} #GT [#mum]" 1526 ,
nBins_,lowedge,highedge);
1529 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{z}} [#mum]",
1530 nBins_,lowedge,highedge);
1533 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy}/#sigma_{d_{xy}} #GT",
1534 nBins_,lowedge,highedge);
1537 "width(d_{xy}/#sigma_{d_{xy}}) vs #phi sector;#varphi (sector) [degrees]; width(d_{xy}/#sigma_{d_{xy}})",
1538 nBins_,lowedge,highedge);
1541 "#LT d_{z}/#sigma_{d_{z}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z}/#sigma_{d_{z}} #GT",
1542 nBins_,lowedge,highedge);
1545 "width(d_{z}/#sigma_{d_{z}}) vs #phi sector;#varphi (sector) [degrees];width(d_{z}/#sigma_{d_{z}})",
1546 nBins_,lowedge,highedge);
1549 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #eta sector;#eta (sector);#LT d_{xy}/#sigma_{d_{z}} #GT",
1550 nBins_,lowedge,highedge);
1553 "width(d_{xy}/#sigma_{d_{xy}}) vs #eta sector;#eta (sector);width(d_{xy}/#sigma_{d_{z}})",
1554 nBins_,lowedge,highedge);
1557 "#LT d_{z}/#sigma_{d_{z}} #GT vs #eta sector;#eta (sector);#LT d_{z}/#sigma_{d_{z}} #GT",
1558 nBins_,lowedge,highedge);
1561 "width(d_{z}/#sigma_{d_{z}}) vs #eta sector;#eta (sector);width(d_{z}/#sigma_{d_{z}})",
1562 nBins_,lowedge,highedge);
1568 "#LT d_{xy} #GT vs pT;p_{T} [GeV];#LT d_{xy} #GT [#mum]",
1572 "#sigma_{d_{xy}} vs pT;p_{T} [GeV];#sigma_{d_{xy}} [#mum]",
1576 "#LT d_{z} #GT vs pT;p_{T} [GeV];#LT d_{z} #GT [#mum]",
1579 a_dzpTWidthTrend = WidthTrendsDir.
make<TH1F>(
"widths_dz_pT",
"#sigma_{d_{z}} vs pT;p_{T} [GeV];#sigma_{d_{z}} [#mum]",
1583 "#LT d_{xy} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{xy} #GT [#mum]",
1587 "#sigma_{d_{xy}} vs p_{T};p_{T}(|#eta|<1.) [GeV];#sigma_{d_{xy}} [#mum]",
1591 "#LT d_{z} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{z} #GT [#mum]" 1595 "#sigma_{d_{z}} vs p_{T};p_{T}(|#eta|<1.) [GeV];#sigma_{d_{z}} [#mum]",
1599 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs pT;p_{T} [GeV];#LT d_{xy}/#sigma_{d_{xy}} #GT",
1603 "width(d_{xy}/#sigma_{d_{xy}}) vs pT;p_{T} [GeV]; width(d_{xy}/#sigma_{d_{xy}})",
1607 "#LT d_{z}/#sigma_{d_{z}} #GT vs pT;p_{T} [GeV];#LT d_{z}/#sigma_{d_{z}} #GT",
1611 "width(d_{z}/#sigma_{d_{z}}) vs pT;p_{T} [GeV];width(d_{z}/#sigma_{d_{z}})",
1615 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{xy}/#sigma_{d_{z}} #GT",
1619 "width(d_{xy}/#sigma_{d_{xy}}) vs p_{T};p_{T}(|#eta|<1.) [GeV];width(d_{xy}/#sigma_{d_{z}})",
1623 "#LT d_{z}/#sigma_{d_{z}} #GT vs p_{T};p_{T}(|#eta|<1.) [GeV];#LT d_{z}/#sigma_{d_{z}} #GT",
1627 "width(d_{z}/#sigma_{d_{z}}) vs p_{T};p_{T}(|#eta|<1.) [GeV];width(d_{z}/#sigma_{d_{z}})",
1633 "#LT d_{xy} #GT map;#eta (sector);#varphi (sector) [degrees]",
1637 "#LT d_{z} #GT map;#eta (sector);#varphi (sector) [degrees]",
1641 "#LT d_{xy}/#sigma_{d_{xy}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1645 "#LT d_{z}/#sigma_{d_{z}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1649 "#sigma_{d_{xy}} map;#eta (sector);#varphi (sector) [degrees]",
1653 "#sigma_{d_{z}} map;#eta (sector);#varphi (sector) [degrees]",
1657 "width(d_{xy}/#sigma_{d_{xy}}) map;#eta (sector);#varphi (sector) [degrees]",
1661 "width(d_{z}/#sigma_{d_{z}}) map;#eta (sector);#varphi (sector) [degrees]",
1667 "Median of d_{xy} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}) [#mum]",
1668 nBins_,lowedge,highedge);
1671 "Median absolute deviation of d_{xy} vs #phi sector;#varphi (sector) [degrees];MAD(d_{xy}) [#mum]",
1672 nBins_,lowedge,highedge);
1675 "Median of d_{z} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}) [#mum]",
1676 nBins_,lowedge,highedge);
1679 "Median absolute deviation of d_{z} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}) [#mum]",
1680 nBins_,lowedge,highedge);
1683 "Median of d_{xy} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}) [#mum]",
1684 nBins_,lowedge,highedge);
1687 "Median absolute deviation of d_{xy} vs #eta sector;#eta (sector);MAD(d_{xy}) [#mum]",
1688 nBins_,lowedge,highedge);
1691 "Median of d_{z} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}) [#mum]",
1692 nBins_,lowedge,highedge);
1695 "Median absolute deviation of d_{z} vs #eta sector;#eta (sector);MAD(d_{z}) [#mum]",
1696 nBins_,lowedge,highedge);
1699 "Median of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}/#sigma_{d_{xy}})",
1700 nBins_,lowedge,highedge);
1703 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees]; MAD(d_{xy}/#sigma_{d_{xy}})",
1704 nBins_,lowedge,highedge);
1707 "Median of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
1708 nBins_,lowedge,highedge);
1711 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}/#sigma_{d_{z}})",
1712 nBins_,lowedge,highedge);
1715 "Median of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}/#sigma_{d_{z}})",
1716 nBins_,lowedge,highedge);
1719 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);MAD(d_{xy}/#sigma_{d_{z}})",
1720 nBins_,lowedge,highedge);
1723 "Median of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
1724 nBins_,lowedge,highedge);
1727 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);MAD(d_{z}/#sigma_{d_{z}})",
1728 nBins_,lowedge,highedge);
1761 float etaL=-etaOfProbe_+(
i+1)*etaSect_;
1764 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;d_{xy} [#mum];tracks",phiF,phiL),
1765 mybins_,-dxymax_phi,dxymax_phi);
1768 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;d_{xy} [#mum];tracks",etaF,etaL),
1769 mybins_,-dxymax_eta,dxymax_eta);
1772 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f #circ;d_{z} [#mum];tracks",phiF,phiL),
1773 mybins_,-dzmax_phi,dzmax_phi);
1776 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;d_{z} [#mum];tracks",etaF,etaL),
1777 mybins_,-dzmax_eta,dzmax_eta);
1780 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;d_{xy}/#sigma_{d_{xy}};tracks",phiF,phiL),
1781 mybins_,-dxymax_phi/100.,dxymax_phi/100.);
1784 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;d_{xy}/#sigma_{d_{xy}};tracks",etaF,etaL),
1785 mybins_,-dxymax_eta/100.,dxymax_eta/100.);
1788 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;d_{z}/#sigma_{d_{z}};tracks",phiF,phiL),
1789 mybins_,-dzmax_phi/100.,dzmax_phi/100.);
1792 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;d_{z}/#sigma_{d_{z}};tracks",etaF,etaL),
1793 mybins_,-dzmax_eta/100.,dzmax_eta/100.);
1795 for (
int j=0; j<
nBins_; ++j ) {
1798 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy} [#mum];tracks",etaF,etaL,phiF,phiL),
1799 mybins_,-dzmax_eta,dzmax_eta);
1802 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z} [#mum];tracks",etaF,etaL,phiF,phiL),
1803 mybins_,-dzmax_eta,dzmax_eta);
1806 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy}/#sigma_{d_{xy}};tracks",etaF,etaL,phiF,phiL),
1807 mybins_,-dzmax_eta/100,dzmax_eta/100);
1810 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z}/#sigma_{d_{z}};tracks",etaF,etaL,phiF,phiL),
1811 mybins_,-dzmax_eta/100,dzmax_eta/100);
1828 "#LT d_{xy} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy} #GT [#mum]",
1829 nBins_,lowedge,highedge);
1832 "#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{xy}} [#mum]",
1833 nBins_,lowedge,highedge);
1836 "#LT d_{z} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z} #GT [#mum]",
1837 nBins_,lowedge,highedge);
1840 "#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{z}} [#mum]",
1841 nBins_,lowedge,highedge);
1844 "#LT d_{xy} #GT vs #eta sector;#eta (sector);#LT d_{xy} #GT [#mum]",
1845 nBins_,lowedge,highedge);
1848 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{xy}} [#mum]",
1849 nBins_,lowedge,highedge);
1852 "#LT d_{z} #GT vs #eta sector;#eta (sector);#LT d_{z} #GT [#mum]",
1853 nBins_,lowedge,highedge);
1856 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{z}} [#mum]",
1857 nBins_,lowedge,highedge);
1860 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy}/#sigma_{d_{xy}} #GT",
1861 nBins_,lowedge,highedge);
1864 "width(d_{xy}/#sigma_{d_{xy}}) vs #phi sector;#varphi (sector) [degrees]; width(d_{xy}/#sigma_{d_{xy}})",
1865 nBins_,lowedge,highedge);
1868 "#LT d_{z}/#sigma_{d_{z}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z}/#sigma_{d_{z}} #GT",
1869 nBins_,lowedge,highedge);
1872 "width(d_{z}/#sigma_{d_{z}}) vs #phi sector;#varphi (sector) [degrees];width(d_{z}/#sigma_{d_{z}})",
1873 nBins_,lowedge,highedge);
1876 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #eta sector;#eta (sector);#LT d_{xy}/#sigma_{d_{z}} #GT",
1877 nBins_,lowedge,highedge);
1880 "width(d_{xy}/#sigma_{d_{xy}}) vs #eta sector;#eta (sector);width(d_{xy}/#sigma_{d_{z}})",
1881 nBins_,lowedge,highedge);
1884 "#LT d_{z}/#sigma_{d_{z}} #GT vs #eta sector;#eta (sector);#LT d_{z}/#sigma_{d_{z}} #GT",
1885 nBins_,lowedge,highedge);
1888 "width(d_{z}/#sigma_{d_{z}}) vs #eta sector;#eta (sector);width(d_{z}/#sigma_{d_{z}})",
1889 nBins_,lowedge,highedge);
1894 "#LT d_{xy} #GT map;#eta (sector);#varphi (sector) [degrees]",
1898 "#LT d_{z} #GT map;#eta (sector);#varphi (sector) [degrees]",
1902 "#LT d_{xy}/#sigma_{d_{xy}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1906 "#LT d_{z}/#sigma_{d_{z}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1910 "#sigma_{d_{xy}} map;#eta (sector);#varphi (sector) [degrees]",
1914 "#sigma_{d_{z}} map;#eta (sector);#varphi (sector) [degrees]",
1918 "width(d_{xy}/#sigma_{d_{xy}}) map;#eta (sector);#varphi (sector) [degrees]",
1922 "width(d_{z}/#sigma_{d_{z}}) map;#eta (sector);#varphi (sector) [degrees]",
1928 "Median of d_{xy} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}) [#mum]",
1929 nBins_,lowedge,highedge);
1932 "Median absolute deviation of d_{xy} vs #phi sector;#varphi (sector) [degrees];MAD(d_{xy}) [#mum]",
1933 nBins_,lowedge,highedge);
1936 "Median of d_{z} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}) [#mum]",
1937 nBins_,lowedge,highedge);
1940 "Median absolute deviation of d_{z} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}) [#mum]",
1941 nBins_,lowedge,highedge);
1944 "Median of d_{xy} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}) [#mum]",
1945 nBins_,lowedge,highedge);
1948 "Median absolute deviation of d_{xy} vs #eta sector;#eta (sector);MAD(d_{xy}) [#mum]",
1949 nBins_,lowedge,highedge);
1952 "Median of d_{z} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}) [#mum]",
1953 nBins_,lowedge,highedge);
1956 "Median absolute deviation of d_{z} vs #eta sector;#eta (sector);MAD(d_{z}) [#mum]",
1957 nBins_,lowedge,highedge);
1960 "Median of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}/#sigma_{d_{xy}})",
1961 nBins_,lowedge,highedge);
1964 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees]; MAD(d_{xy}/#sigma_{d_{xy}})",
1965 nBins_,lowedge,highedge);
1968 "Median of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
1969 nBins_,lowedge,highedge);
1972 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}/#sigma_{d_{z}})",
1973 nBins_,lowedge,highedge);
1976 "Median of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}/#sigma_{d_{z}})",
1977 nBins_,lowedge,highedge);
1980 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);MAD(d_{xy}/#sigma_{d_{z}})",
1981 nBins_,lowedge,highedge);
1984 "Median of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
1985 nBins_,lowedge,highedge);
1988 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);MAD(d_{z}/#sigma_{d_{z}})",
1989 nBins_,lowedge,highedge);
1998 <<
"######################################\n" 1999 <<
"# PrimaryVertexValidation::endJob()\n" 2000 <<
"# Number of analyzed events: "<<
Nevt_<<
"\n" 2001 <<
"######################################";
2149 bool isOn = (average_current > 2000.);
2152 return ( (isOn && !is0T) || (!isOn && is0T) );
2234 Double_t median = 999;
2235 int nbins = histo->GetNbinsX();
2238 double *
x =
new double[
nbins];
2239 double *
y =
new double[
nbins];
2240 for (
int j = 0; j <
nbins; j++) {
2241 x[j] = histo->GetBinCenter(j+1);
2242 y[j] = histo->GetBinContent(j+1);
2244 median = TMath::Median(nbins, x, y);
2249 std::pair<Double_t,Double_t>
result;
2250 result = std::make_pair(median,median/TMath::Sqrt(histo->GetEntries()));
2261 int nbins = histo->GetNbinsX();
2262 Double_t median =
getMedian(histo).first;
2263 Double_t x_lastBin = histo->GetBinLowEdge(nbins+1);
2264 const char *
HistoName =histo->GetName();
2265 TString Finalname = Form(
"resMed%s",HistoName);
2266 TH1F *newHisto =
new TH1F(Finalname,Finalname,nbins,0.,x_lastBin);
2267 Double_t *residuals =
new Double_t[
nbins];
2270 for (
int j = 0; j <
nbins; j++) {
2271 residuals[j] =
TMath::Abs(median - histo->GetBinCenter(j+1));
2272 weights[j]=histo->GetBinContent(j+1);
2273 newHisto->Fill(residuals[j],weights[j]);
2276 Double_t theMAD = (
getMedian(newHisto).first)*1.4826;
2278 delete[] residuals; residuals=0;
2280 newHisto->Delete(
"");
2282 std::pair<Double_t,Double_t>
result;
2283 result = std::make_pair(theMAD,theMAD/histo->GetEntries());
2296 float mean = hist->GetMean();
2297 float sigma = hist->GetRMS();
2299 TF1
func(
"tmp",
"gaus", mean - 1.5*sigma, mean + 1.5*sigma);
2300 if (0 == hist->Fit(&func,
"QNR")) {
2301 mean = func.GetParameter(1);
2302 sigma = func.GetParameter(2);
2304 func.SetRange(mean - 2*sigma, mean + 2*sigma);
2307 if (0 == hist->Fit(&func,
"Q0LR")) {
2308 if (hist->GetFunction(func.GetName())) {
2309 hist->GetFunction(func.GetName())->ResetBit(TF1::kNotDraw);
2314 float res_mean = func.GetParameter(1);
2315 float res_width = func.GetParameter(2);
2317 float res_mean_err = func.GetParError(1);
2318 float res_width_err = func.GetParError(2);
2320 std::pair<Double_t,Double_t> resultM;
2321 std::pair<Double_t,Double_t> resultW;
2323 resultM = std::make_pair(res_mean,res_mean_err);
2324 resultW = std::make_pair(res_width,res_width_err);
2326 std::pair<std::pair<Double_t,Double_t>, std::pair<Double_t,Double_t> >
result;
2328 result = std::make_pair(resultM,resultW);
2339 char phipositionString[129];
2341 float phiposition = (-180+
i*phiInterval)+(phiInterval/2);
2342 sprintf(phipositionString,
"%.f",phiposition);
2344 char etapositionString[129];
2346 sprintf(etapositionString,
"%.1f",etaposition);
2353 float meanErr_ =
fitResiduals(residualsPlot[i]).first.second;
2354 trendPlot->SetBinContent(i+1,mean_);
2355 trendPlot->SetBinError(i+1,meanErr_);
2361 float widthErr_ =
fitResiduals(residualsPlot[i]).second.second;
2362 trendPlot->SetBinContent(i+1,width_);
2363 trendPlot->SetBinError(i+1,widthErr_);
2368 float median_ =
getMedian(residualsPlot[
i]).first;
2369 float medianErr_ =
getMedian(residualsPlot[i]).second;
2370 trendPlot->SetBinContent(i+1,median_);
2371 trendPlot->SetBinError(i+1,medianErr_);
2376 float mad_ =
getMAD(residualsPlot[
i]).first;
2377 float madErr_ =
getMAD(residualsPlot[i]).second;
2378 trendPlot->SetBinContent(i+1,mad_);
2379 trendPlot->SetBinError(i+1,madErr_);
2383 edm::LogWarning(
"PrimaryVertexValidation")<<
"fillTrendPlot() "<<fitPar_<<
" unknown estimator!"<<std::endl;
2388 trendPlot->GetXaxis()->SetBinLabel(
i+1,etapositionString);
2389 }
else if(var_==
"phi"){
2390 trendPlot->GetXaxis()->SetBinLabel(
i+1,phipositionString);
2392 std::cout<<
"PrimaryVertexValidation::fillTrendPlot() "<<var_<<
" unknown track parameter!"<<std::endl;
2402 for(
auto iterator = h.begin(); iterator != h.end(); iterator++) {
2405 std::pair<std::pair<Double_t,Double_t>, std::pair<Double_t,Double_t> > myFit =
fitResiduals((*iterator));
2411 float mean_ = myFit.first.first;
2412 float meanErr_ = myFit.first.second;
2413 trendPlot->SetBinContent(bin,mean_);
2414 trendPlot->SetBinError(bin,meanErr_);
2419 float width_ = myFit.second.first;
2420 float widthErr_ = myFit.second.second;
2421 trendPlot->SetBinContent(bin,width_);
2422 trendPlot->SetBinError(bin,widthErr_);
2427 float median_ =
getMedian(*iterator).first;
2428 float medianErr_ =
getMedian(*iterator).second;
2429 trendPlot->SetBinContent(bin,median_);
2430 trendPlot->SetBinError(bin,medianErr_);
2435 float mad_ =
getMAD(*iterator).first;
2436 float madErr_ =
getMAD(*iterator).second;
2437 trendPlot->SetBinContent(bin,mad_);
2438 trendPlot->SetBinError(bin,madErr_);
2442 edm::LogWarning(
"PrimaryVertexValidation")<<
"fillTrendPlotByIndex() "<<fitPar_<<
" unknown estimator!"<<std::endl;
2455 char phipositionString[129];
2457 float phiposition = (-180+
i*phiInterval)+(phiInterval/2);
2458 sprintf(phipositionString,
"%.f",phiposition);
2460 trendMap->GetYaxis()->SetBinLabel(
i+1,phipositionString);
2462 for (
int j=0; j<
nBins_; ++j ) {
2464 char etapositionString[129];
2466 sprintf(etapositionString,
"%.1f",etaposition);
2468 if(
i==0) { trendMap->GetXaxis()->SetBinLabel(j+1,etapositionString); }
2474 float mean_ =
fitResiduals(residualsMapPlot[
i][j]).first.first;
2475 float meanErr_ =
fitResiduals(residualsMapPlot[
i][j]).first.second;
2476 trendMap->SetBinContent(j+1,
i+1,mean_);
2477 trendMap->SetBinError(j+1,
i+1,meanErr_);
2482 float width_ =
fitResiduals(residualsMapPlot[
i][j]).second.first;
2483 float widthErr_ =
fitResiduals(residualsMapPlot[
i][j]).second.second;
2484 trendMap->SetBinContent(j+1,
i+1,width_);
2485 trendMap->SetBinError(j+1,
i+1,widthErr_);
2490 float median_ =
getMedian(residualsMapPlot[
i][j]).first;
2491 float medianErr_ =
getMedian(residualsMapPlot[
i][j]).second;
2492 trendMap->SetBinContent(j+1,
i+1,median_);
2493 trendMap->SetBinError(j+1,
i+1,medianErr_);
2498 float mad_ =
getMAD(residualsMapPlot[
i][j]).first;
2499 float madErr_ =
getMAD(residualsMapPlot[
i][j]).second;
2500 trendMap->SetBinContent(j+1,
i+1,mad_);
2501 trendMap->SetBinError(j+1,
i+1,madErr_);
2505 edm::LogWarning(
"PrimaryVertexValidation:") <<
" fillMap() "<<fitPar_<<
" unknown estimator!"<<std::endl;
2527 double vzErr =0.0, vxErr=0.0, vyErr=0.0;
2533 double dxy=0.0,
dz=0.0, dxysigma=0.0, dzsigma=0.0;
2534 dxy = track.
dxy(vtxPoint);
2535 dz = track.
dz(vtxPoint);
2540 if(fabs(dxy/dxysigma) > dxyErrMax_)
return false;
2541 if(fabs(
dz/dzsigma) > dzErrMax_)
return false;
2542 if(track.
ptError() / track.
pt() > ptErrMax_)
return false;
2553 TH1F::SetDefaultSumw2(kTRUE);
2555 std::map<std::string, TH1*>
h;
2559 for(
int t=0;
t<2;
t++){
2560 h[
"pseudorapidity_"+types[
t]] =dir.
make <TH1F>((
"rapidity_"+types[
t]).c_str(),
"track pseudorapidity; track #eta; tracks",100,-3., 3.);
2561 h[
"z0_"+types[
t]] = dir.
make<TH1F>((
"z0_"+types[
t]).c_str(),
"track z_{0};track z_{0} (cm);tracks",80,-40., 40.);
2562 h[
"phi_"+types[
t]] = dir.
make<TH1F>((
"phi_"+types[
t]).c_str(),
"track #phi; track #phi;tracks",80,-
TMath::Pi(),
TMath::Pi());
2563 h[
"eta_"+types[
t]] = dir.
make<TH1F>((
"eta_"+types[
t]).c_str(),
"track #eta; track #eta;tracks",80,-4., 4.);
2564 h[
"pt_"+types[
t]] = dir.
make<TH1F>((
"pt_"+types[
t]).c_str(),
"track p_{T}; track p_{T} [GeV];tracks",100,0., 20.);
2565 h[
"p_"+types[
t]] = dir.
make<TH1F>((
"p_"+types[
t]).c_str(),
"track p; track p [GeV];tracks",100,0., 20.);
2566 h[
"found_"+types[
t]] = dir.
make<TH1F>((
"found_"+types[
t]).c_str(),
"n. found hits;n^{found}_{hits};tracks",30, 0., 30.);
2567 h[
"lost_"+types[
t]] = dir.
make<TH1F>((
"lost_"+types[
t]).c_str(),
"n. lost hits;n^{lost}_{hits};tracks",20, 0., 20.);
2568 h[
"nchi2_"+types[
t]] = dir.
make<TH1F>((
"nchi2_"+types[
t]).c_str(),
"normalized track #chi^{2};track #chi^{2}/ndf;tracks",100, 0., 20.);
2569 h[
"rstart_"+types[
t]] = dir.
make<TH1F>((
"rstart_"+types[
t]).c_str(),
"track start radius; track innermost radius r (cm);tracks",100, 0., 20.);
2570 h[
"expectedInner_"+types[
t]] = dir.
make<TH1F>((
"expectedInner_"+types[
t]).c_str(),
"n. expected inner hits;n^{expected}_{inner};tracks",10, 0., 10.);
2571 h[
"expectedOuter_"+types[
t]] = dir.
make<TH1F>((
"expectedOuter_"+types[
t]).c_str(),
"n. expected outer hits;n^{expected}_{outer};tracks ",10, 0., 10.);
2572 h[
"logtresxy_"+types[
t]] = dir.
make<TH1F>((
"logtresxy_"+types[
t]).c_str(),
"log10(track r-#phi resolution/#mum);log10(track r-#phi resolution/#mum);tracks",100, 0., 5.);
2573 h[
"logtresz_"+types[
t]] = dir.
make<TH1F>((
"logtresz_"+types[
t]).c_str(),
"log10(track z resolution/#mum);log10(track z resolution/#mum);tracks",100, 0., 5.);
2574 h[
"tpullxy_"+types[
t]] = dir.
make<TH1F>((
"tpullxy_"+types[
t]).c_str(),
"track r-#phi pull;pull_{r-#phi};tracks",100, -10., 10.);
2575 h[
"tpullz_"+types[
t]] = dir.
make<TH1F>((
"tpullz_"+types[
t]).c_str(),
"track r-z pull;pull_{r-z};tracks",100, -50., 50.);
2576 h[
"tlogDCAxy_"+types[
t]] = dir.
make<TH1F>((
"tlogDCAxy_"+types[
t]).c_str(),
"track log_{10}(DCA_{r-#phi});track log_{10}(DCA_{r-#phi});tracks",200, -5., 3.);
2577 h[
"tlogDCAz_"+types[
t]] = dir.
make<TH1F>((
"tlogDCAz_"+types[
t]).c_str(),
"track log_{10}(DCA_{r-z});track log_{10}(DCA_{r-z});tracks",200, -5., 5.);
2578 h[
"lvseta_"+types[
t]] = dir.
make<TH2F>((
"lvseta_"+types[
t]).c_str(),
"cluster length vs #eta;track #eta;cluster length",60,-3., 3., 20, 0., 20);
2579 h[
"lvstanlambda_"+types[
t]] = dir.
make<TH2F>((
"lvstanlambda_"+types[
t]).c_str(),
"cluster length vs tan #lambda; tan#lambda;cluster length",60,-6., 6., 20, 0., 20);
2580 h[
"restrkz_"+types[
t]] = dir.
make<TH1F>((
"restrkz_"+types[
t]).c_str(),
"z-residuals (track vs vertex);res_{z} (cm);tracks", 200, -5., 5.);
2581 h[
"restrkzvsphi_"+types[
t]] = dir.
make<TH2F>((
"restrkzvsphi_"+types[
t]).c_str(),
"z-residuals (track - vertex) vs track #phi;track #phi;res_{z} (cm)", 12,-
TMath::Pi(),
TMath::Pi(),100, -0.5,0.5);
2582 h[
"restrkzvseta_"+types[
t]] = dir.
make<TH2F>((
"restrkzvseta_"+types[
t]).c_str(),
"z-residuals (track - vertex) vs track #eta;track #eta;res_{z} (cm)", 12,-3.,3.,200, -0.5,0.5);
2583 h[
"pulltrkzvsphi_"+types[
t]] = dir.
make<TH2F>((
"pulltrkzvsphi_"+types[
t]).c_str(),
"normalized z-residuals (track - vertex) vs track #phi;track #phi;res_{z}/#sigma_{res_{z}}", 12,-
TMath::Pi(),
TMath::Pi(),100, -5., 5.);
2584 h[
"pulltrkzvseta_"+types[
t]] = dir.
make<TH2F>((
"pulltrkzvseta_"+types[
t]).c_str(),
"normalized z-residuals (track - vertex) vs track #eta;track #eta;res_{z}/#sigma_{res_{z}}", 12,-3.,3.,100, -5., 5.);
2585 h[
"pulltrkz_"+types[
t]] = dir.
make<TH1F>((
"pulltrkz_"+types[
t]).c_str(),
"normalized z-residuals (track vs vertex);res_{z}/#sigma_{res_{z}};tracks", 100, -5., 5.);
2586 h[
"sigmatrkz0_"+types[
t]] = dir.
make<TH1F>((
"sigmatrkz0_"+types[
t]).c_str(),
"z-resolution (excluding beam);#sigma^{trk}_{z_{0}} (cm);tracks", 100, 0., 5.);
2587 h[
"sigmatrkz_"+types[
t]] = dir.
make<TH1F>((
"sigmatrkz_"+types[
t]).c_str(),
"z-resolution (including beam);#sigma^{trk}_{z} (cm);tracks", 100,0., 5.);
2588 h[
"nbarrelhits_"+types[
t]] = dir.
make<TH1F>((
"nbarrelhits_"+types[
t]).c_str(),
"number of pixel barrel hits;n. hits Barrel Pixel;tracks", 10, 0., 10.);
2589 h[
"nbarrelLayers_"+types[
t]] = dir.
make<TH1F>((
"nbarrelLayers_"+types[
t]).c_str(),
"number of pixel barrel layers;n. layers Barrel Pixel;tracks", 10, 0., 10.);
2590 h[
"nPxLayers_"+types[
t]] = dir.
make<TH1F>((
"nPxLayers_"+types[
t]).c_str(),
"number of pixel layers (barrel+endcap);n. Pixel layers;tracks", 10, 0., 10.);
2591 h[
"nSiLayers_"+types[
t]] = dir.
make<TH1F>((
"nSiLayers_"+types[
t]).c_str(),
"number of Tracker layers;n. Tracker layers;tracks", 20, 0., 20.);
2592 h[
"trackAlgo_"+types[
t]] = dir.
make<TH1F>((
"trackAlgo_"+types[
t]).c_str(),
"track algorithm;track algo;tracks", 30, 0., 30.);
2593 h[
"trackQuality_"+types[
t]] = dir.
make<TH1F>((
"trackQuality_"+types[
t]).c_str(),
"track quality;track quality;tracks", 7, -1., 6.);
2604 unsigned int theNOfBins,
2607 TH1F::SetDefaultSumw2(kTRUE);
2612 if(resType.Contains(
"norm")){
2614 down = down*(1/100);
2617 std::vector<TH1F*>
h;
2618 h.reserve(theNOfBins);
2620 const char* auxResType = (resType.ReplaceAll(
"_",
"")).Data();
2622 for(
unsigned int i=0;
i<theNOfBins;
i++){
2623 TH1F* htemp = dir.
make<TH1F>(Form(
"histo_%s_%s_plot%i",resType.Data(),varType.Data(),
i),
2624 Form(
"%s vs %s - bin %i;%s;tracks",auxResType,varType.Data(),
i,auxResType),
2638 using namespace reco;
2655 fill(h,
"logtresxy_"+ttype,
log(d0Error/0.0001)/
log(10.));
2656 fill(h,
"tpullxy_"+ttype,d0/d0Error);
2657 fill(h,
"tlogDCAxy_"+ttype,
log(fabs(d0/d0Error)));
2663 fill(h,
"logtresz_"+ttype,
log(dzError/0.0001)/
log(10.));
2664 fill(h,
"tpullz_"+ttype,dz/dzError);
2665 fill(h,
"tlogDCAz_"+ttype,
log(fabs(dz/dzError)));
2696 double q=
sqrt(1.-2.*kappa*D0);
2699 if (fabs(kappa*s0)>0.001){
2721 int longesthit=0, nbarrel=0;
2723 if ((**hit).isValid() && (**hit).geographicalId().det() ==
DetId::Tracker ){
2731 if (clust->sizeY()-longesthit>0) longesthit=clust->sizeY();
2732 if (clust->sizeY()>20.){
2743 fill(h,
"nbarrelhits_"+ttype,
float(nbarrel));
2751 h[hist->GetName()]=
hist;
2752 hist->StatOverflows(kTRUE);
2760 edm::LogWarning(
"PrimaryVertexValidation") <<
"Trying to fill non-existing Histogram named " << s << std::endl;
2771 edm::LogWarning(
"PrimaryVertexValidation") <<
"Trying to fill non-existing Histogram named " << s << std::endl;
2781 if(index <= h.size()){
2784 edm::LogWarning(
"PrimaryVertexValidation") <<
"Trying to fill non-existing Histogram with index " << index << std::endl;
TH1F * n_dxyPhiMedianTrend
double qoverp() const
q / p
TH1F * n_dzPhiResiduals[nMaxBins_]
virtual char const * what() const
static const std::string kSharedResource
GlobalError positionError() const
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_d3DPhiResiduals[nMaxBins_]
TH1F * n_dzResidualsMap[nMaxBins_][nMaxBins_]
static uint32_t getLayer(uint16_t pattern)
double d0Error() const
error on d0
TH1F * a_dzPhiMedianBiasTrend
GlobalPoint position() const
TH1F * a_dxyEtaWidthBiasTrend
double longitudinalImpactParameterError() const
TH1F * a_IP3DEtaResiduals[nMaxBins_]
std::vector< unsigned int > runControlNumbers_
EventAuxiliary const & eventAuxiliary() const override
bool isNonnull() const
Checks for non-null.
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
TH1F * a_dxyEtaMADBiasTrend
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)
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
TH1F * n_IP2DPhiResiduals[nMaxBins_]
TrackFilterForPVFindingBase * theTrackFilter_
TH1F * a_dxyResidualsMap[nMaxBins_][nMaxBins_]
std::map< std::string, TH1 * > hDA
TrackQuality
track quality
TH1F * n_dxyEtaBiasResiduals[nMaxBins_]
const FreeTrajectoryState & theState() const
double theta() const
polar angle
#define DEFINE_FWK_MODULE(type)
bool isValid() const
Tells whether the vertex is valid.
PrimaryVertexValidation(const edm::ParameterSet &)
std::pair< Double_t, Double_t > getMAD(TH1F *histo)
Sin< T >::type sin(const T &t)
TH1F * a_dzEtaMADBiasTrend
TH1F * n_dxyBiasResidualsMap[nMaxBins_][nMaxBins_]
float totalChiSquared() const
const HitPattern & hitPattern() 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
float DOFUnbiasedVertex_[nMaxtracks_]
std::vector< TH1F * > bookResidualsHistogram(TFileDirectory dir, unsigned int theNOfBins, TString resType, TString varType)
TH1F * a_dzPhiBiasResiduals[nMaxBins_]
TH1F * n_dzPhiWidthBiasTrend
bool passesTrackCuts(const reco::Track &track, const reco::Vertex &vertex, std::string qualityString_, double dxyErrMax_, double dzErrMax_, double ptErrMax_)
T * make(const Args &...args) const
make new ROOT object
double d3DFromMyVertex_[nMaxtracks_]
TH1F * n_dzEtaBiasResiduals[nMaxBins_]
virtual void analyze(const edm::Event &, const edm::EventSetup &)
double dxyBs_[nMaxtracks_]
double zPCA_[nMaxtracks_]
TH1F * a_dxyPhiWidthBiasTrend
float chi2ProbUnbiasedVertex_[nMaxtracks_]
double px() const
x coordinate of momentum vector
int pixelLayersWithMeasurement() const
double dxyFromMyVertex_[nMaxtracks_]
TH1F * a_dzPhiWidthBiasTrend
TH1F * h_probeRefitVSig3D_
int trackerLayersWithMeasurement() const
const Point & position() const
position
static bool pixelBarrelHitFilter(uint16_t pattern)
bool isBFieldConsistentWithMode(const edm::EventSetup &iSetup) const
TrajectoryStateClosestToBeamLine stateAtBeamLine() const
int numberOfValidStripTOBHits() const
TH1F * h_probereszRefitV_
double dzErrorFromMyVertex_[nMaxtracks_]
TH1F * n_d3DEtaResiduals[nMaxBins_]
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_]
void fillMap(TH2F *trendMap, TH1F *residualsMapPlot[100][100], statmode::estimator fitPar_)
static bool pixelEndcapHitFilter(uint16_t pattern)
TH1F * h_probeRefitVSigResZ_
TH1F * a_dxyPhiBiasResiduals[nMaxBins_]
double qoverp_[nMaxtracks_]
TH1F * a_d3DEtaResiduals[nMaxBins_]
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
std::pair< Double_t, Double_t > getMedian(TH1F *histo)
TH1F * a_dzEtaMedianTrend
double theta_[nMaxtracks_]
TH1F * a_dxyPhiMedianTrend
TH1F * a_dxypTCentralWidthTrend
double longitudinalImpactParameter() const
std::vector< TH1F * > h_norm_dxy_pT_
TH1F * a_IP2DEtaResiduals[nMaxBins_]
TH1F * a_dzPhiMeanBiasTrend
float normalisedChiSquared() const
const Point & vertex() const
reference point on the track. This method is DEPRECATED, please use referencePoint() instead ...
int tracksUsedForVertexing_[nMaxtracks_]
TH1F * h_fitVtxTrackAverageWeight_
TH1F * n_IP2DEtaResiduals[nMaxBins_]
int isGoodTrack_[nMaxtracks_]
double eta() const
pseudorapidity of momentum vector
std::pair< bool, bool > pixelHitsCheck(const reco::TransientTrack track)
TH1F * a_dxyPhiMADBiasTrend
unsigned int LuminosityBlockNumber_
TH1F * a_dxyPhiWidthTrend
int numberOfValidPixelBarrelHits() const
double zErrOfflineVertex_
TH1F * h_yErrOfflineVertex
void fillByIndex(std::vector< TH1F * > &h, unsigned int index, double x)
const PerigeeTrajectoryParameters & perigeeParameters() const
int nhitsFPIX_[nMaxtracks_]
bool useTracksFromRecoVtx_
~PrimaryVertexValidation()
bool hasFirstLayerPixelHits(const reco::TransientTrack track)
TH1F * n_reszEtaResiduals[nMaxBins_]
double chi2() const
chi-squared of the fit
TH1F * n_dzPhiMADBiasTrend
TH1F * n_dzPhiBiasResiduals[nMaxBins_]
float degreesOfFreedom() const
double yUnbiasedVertex_[nMaxtracks_]
TH1F * h_probeRecoVSigXY_
virtual int dimension() const =0
std::pair< std::pair< Double_t, Double_t >, std::pair< Double_t, Double_t > > fitResiduals(TH1 *hist)
TH1F * h_probeRefitVLogSig3D_
TH1F * h_fitVtxTrackWeights_
GlobalPoint position() const
double pt() const
track transverse momentum
double transverseImpactParameter() const
TH1F * n_dxyEtaResiduals[nMaxBins_]
Cos< T >::type cos(const T &t)
TH1F * n_dxyPhiResiduals[nMaxBins_]
static const int nPtBins_
double ptError() const
error on Pt (set to 1000 TeV if charge==0 for safety)
TH1F * n_IP3DEtaResiduals[nMaxBins_]
unsigned int EventNumber_
TH1F * a_dxPhiResiduals[nMaxBins_]
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_reszPhiResiduals[nMaxBins_]
TH1F * a_dzPhiMedianTrend
double BeamWidthX() const
beam width X
unsigned short numberOfValidHits() const
number of valid hits found
int numberOfValidStripTECHits() const
float chi2normUnbiasedVertex_[nMaxtracks_]
TH1F * n_d3DResidualsMap[nMaxBins_][nMaxBins_]
virtual CachingVertex< N > vertex(const std::vector< reco::TransientTrack > &tracks) const =0
T * make(const Args &...args) const
make new ROOT object
trackingRecHit_iterator recHitsBegin() const
Iterator to first hit on the track.
edm::EDGetTokenT< reco::VertexCollection > theVertexCollectionToken
TH1F * n_dzEtaWidthBiasTrend
TH1F * a_d3DResidualsMap[nMaxBins_][nMaxBins_]
TH1F * n_dzEtaMADBiasTrend
float trackWeight(const reco::TransientTrack &track) const
double IPLsigFromMyVertex_[nMaxtracks_]
double dzBs_[nMaxtracks_]
double yPCA_[nMaxtracks_]
void fillTrendPlotByIndex(TH1F *trendPlot, std::vector< TH1F * > &h, statmode::estimator fitPar_)
double dxdz() const
dxdz slope
TH1F * a_dxyEtaWidthTrend
FTS const & trackStateAtPCA() const
double pz() const
z coordinate of momentum vector
TH1F * a_dyPhiResiduals[nMaxBins_]
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.
TH1F * h_nOfflineVertices
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
double vz() const
z coordinate of the reference point on track
std::vector< TH1F * > h_norm_dz_pT_
TH1F * a_IP2DPhiResiduals[nMaxBins_]
GlobalPoint position() const
TH1F * n_dzPhiMedianBiasTrend
TH1F * a_dzPhiResiduals[nMaxBins_]
static TrackQuality qualityByName(const std::string &name)
double xError() const
error on x
std::vector< TH1F * > h_dz_pT_
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
std::vector< TH1F * > h_dz_Central_pT_
TH1F * n_dzEtaMeanBiasTrend
const Track & track() const
bool hasTrackWeight() 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_]
XYZPointD XYZPoint
point in space with cartesian internal representation
double sigmaZ() const
sigma z
TH1F * n_dxyPhiBiasResiduals[nMaxBins_]
int pixelBarrelLayersWithMeasurement() const
int nhitsTEC_[nMaxtracks_]
double BeamWidthY() const
beam width Y
TrackClusterizerInZ * theTrackClusterizer_
double yErrOfflineVertex_
double xPCA_[nMaxtracks_]
double xUnbiasedVertex_[nMaxtracks_]
std::vector< TH1F * > h_dxy_Central_pT_
TH1F * n_dxypTCentralWidthTrend
TH1F * a_dxyPhiResiduals[nMaxBins_]
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
int numberOfValidPixelEndcapHits() const
TH1F * a_dxyEtaMeanBiasTrend
TH1F * a_dxyEtaBiasResiduals[nMaxBins_]
edm::EDGetTokenT< reco::BeamSpot > theBeamspotToken
TH1F * n_dxypTCentralMeanTrend
edm::EDGetTokenT< reco::TrackCollection > theTrackCollectionToken
EventID const & id() const
TH1F * a_dzEtaMedianBiasTrend
Pixel cluster – collection of neighboring pixels above threshold.
double vy() const
y coordinate of the reference point on track
double dzFromMyVertex_[nMaxtracks_]
TH1F * n_IP3DPhiResiduals[nMaxBins_]
TH1F * n_dxyEtaWidthTrend
TH1F * a_dyEtaResiduals[nMaxBins_]
TH1F * a_dxyPhiMeanBiasTrend
static int position[264][3]
unsigned short found() const
Number of valid hits on track.
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
TH1F * a_dzEtaResiduals[nMaxBins_]
TH1F * h_probeHitsInBPIX_
TH1F * h_recoVtxChi2Prob_
TH1F * h_probeHitsInFPIX_
TH1F * n_dxyEtaWidthBiasTrend
TH1F * n_d3DPhiResiduals[nMaxBins_]
void fill(std::map< std::string, TH1 * > &h, std::string s, double x)
TH1F * a_dxyEtaResiduals[nMaxBins_]
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
double y0() const
y coordinate
TH1F * a_reszEtaResiduals[nMaxBins_]
TH1F * a_dxyBiasResidualsMap[nMaxBins_][nMaxBins_]
TH1F * h_zErrOfflineVertex
TH1F * a_IP3DPhiResiduals[nMaxBins_]
int charge() const
track electric charge
const Point & position() const
position
TH1F * n_dxyResidualsMap[nMaxBins_][nMaxBins_]
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
TH1F * n_dxyPhiWidthBiasTrend
trackRef_iterator tracks_begin() const
first iterator over tracks
TH1F * n_reszPhiResiduals[nMaxBins_]
void fillTrendPlot(TH1F *trendPlot, TH1F *residualsPlot[100], statmode::estimator fitPar_, TString var_)
uint16_t getHitPattern(HitCategory category, int position) const
float sumOfWeightsUnbiasedVertex_[nMaxtracks_]
TH1F * a_dxEtaResiduals[nMaxBins_]
TH1F * n_dzBiasResidualsMap[nMaxBins_][nMaxBins_]
double d3DErrorFromMyVertex_[nMaxtracks_]
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_dzEtaMedianBiasTrend
TH1F * a_dzBiasResidualsMap[nMaxBins_][nMaxBins_]
TH1F * a_dzEtaBiasResiduals[nMaxBins_]
T const * product() const
TH1F * a_dxyEtaMedianTrend
int hasRecVertex_[nMaxtracks_]
TH1F * a_dzResidualsMap[nMaxBins_][nMaxBins_]
TH1F * n_dzEtaResiduals[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_
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::map< std::string, TH1 * > bookVertexHistograms(TFileDirectory dir)
int nhitsBPIX_[nMaxtracks_]
double x0() const
x coordinate
trackingRecHit_iterator recHitsEnd() const
Iterator to last hit on the track.
double IP3DsigFromMyVertex_[nMaxtracks_]