67 storeNtuple_(iConfig.getParameter<bool>(
"storeNtuple")),
68 lightNtupleSwitch_(iConfig.getParameter<bool>(
"isLightNtuple")),
69 useTracksFromRecoVtx_(iConfig.getParameter<bool>(
"useTracksFromRecoVtx")),
70 vertexZMax_(iConfig.getUntrackedParameter<double>(
"vertexZMax",99.)),
71 askFirstLayerHit_(iConfig.getParameter<bool>(
"askFirstLayerHit")),
72 ptOfProbe_(iConfig.getUntrackedParameter<double>(
"probePt",0.)),
73 etaOfProbe_(iConfig.getUntrackedParameter<double>(
"probeEta",2.4)),
74 nBins_(iConfig.getUntrackedParameter<int>(
"numberOfBins",24)),
75 debug_(iConfig.getParameter<bool>(
"Debug")),
76 runControl_(iConfig.getUntrackedParameter<bool>(
"runControl",
false))
84 std::vector<unsigned int> defaultRuns;
85 defaultRuns.push_back(0);
104 if (clusteringAlgorithm==
"gap"){
106 }
else if(clusteringAlgorithm==
"DA"){
109 throw VertexException(
"PrimaryVertexProducerAlgorithm: unknown clustering algorithm: " + clusteringAlgorithm);
131 using namespace reco;
132 using namespace IPTools;
138 bool passesRunControl =
false;
146 passesRunControl =
true;
150 if (!passesRunControl)
return;
181 double fBfield_=((*theB_).field()->inTesla(
GlobalPoint(0.,0.,0.))).
z();
200 LogTrace(
"PrimaryVertexValidation")<<
"caught std::exception "<<er.
what()<<std::endl;
203 std::vector<Vertex> vsorted = *(
vertices);
209 if( vsorted.size() == 0)
return;
213 if ( vsorted[0].isValid() ) {
230 unsigned int vertexCollectionSize = vsorted.size();
233 for (
unsigned int i=0;
i<vertexCollectionSize;
i++) {
234 const Vertex& vertex = vsorted.at(
i);
235 if (vertex.
isValid()) nvvertex++;
246 double chi2prob = 0.;
248 if (!vsorted.at(0).isFake()) {
254 chi2prob = TMath::Prob(pv.
chi2(),(int)pv.
ndof());
261 double pt = (**itrk).pt();
266 double dxyRes = (**itrk).dxy(myVertex);
267 double dzRes = (**itrk).dz(myVertex);
269 double dxy_err = (**itrk).dxyError();
270 double dz_err = (**itrk).dzError();
272 float trackphi = ((**itrk).phi())*(180/
TMath::Pi());
273 float tracketa = (**itrk).eta();
281 float etaL=-2.5+(
i+1)*etaSect_;
283 if(tracketa >= etaF && tracketa < etaL ){
292 if(trackphi >= phiF && trackphi < phiL ){
302 float etaK=-2.5+(
j+1)*etaSect_;
304 if(tracketa >= etaJ && tracketa < etaK ){
331 if ( beamSpotHandle.isValid() ) {
367 edm::LogInfo(
"PrimaryVertexValidation")<<
" looping over "<<trackCollectionHandle->size()<<
"tracks";
369 h_nTracks->Fill(trackCollectionHandle->size());
375 std::vector<TransientTrack> t_tks;
377 for(TrackCollection::const_iterator track = trackCollectionHandle->begin(); track!= trackCollectionHandle->end(); ++track, ++
k){
386 edm::LogInfo(
"PrimaryVertexValidation") <<
"Found: " << t_tks.size() <<
" reconstructed tracks";
402 edm::LogInfo(
"PrimaryVertexValidation")<<
" looping over: "<<
clusters.size() <<
" clusters from " << t_tks.size() <<
" selected tracks";
412 for (vector< vector<TransientTrack> >::const_iterator iclus =
clusters.begin(); iclus !=
clusters.end(); iclus++) {
417 for(vector<TransientTrack>::const_iterator theTTrack = iclus->begin(); theTTrack!= iclus->end(); ++theTTrack, ++
i)
424 const Track & theTrack = theTTrack->track();
464 if((*iHit)->isValid()) {
466 if (this->
isHit2D(**iHit)) {++nRecHit2D;}
469 int type =(*iHit)->geographicalId().subdetId();
475 if(type==
int(
kBPIX)){++nhitinBPIX;}
476 if(type==
int(
kFPIX)){++nhitinFPIX;}
503 vector<TransientTrack> theFinalTracks;
504 theFinalTracks.clear();
506 for(vector<TransientTrack>::const_iterator tk = iclus->begin(); tk!= iclus->end(); ++tk){
510 if( tk == theTTrack )
continue;
512 theFinalTracks.push_back((*tk));
517 if(theFinalTracks.size() > 1){
520 edm::LogInfo(
"PrimaryVertexValidation")<<
"Transient Track Collection size: "<<theFinalTracks.size();
529 double totalTrackWeights=0;
530 if(theFittedVertex.
isValid ()){
534 for(
size_t rtracks= 0; rtracks < theFinalTracks.size(); rtracks++){
536 totalTrackWeights+= theFittedVertex.
trackWeight(theFinalTracks[rtracks]);
546 const Vertex vertex = theFittedVertex;
567 double dxyFromMyVertex = theTrack.
dxy(myVertex);
568 double dzFromMyVertex = theTrack.
dz(myVertex);
579 double s_ip2dpv_corr = s_ip2dpv.second.value();
580 double s_ip2dpv_err = s_ip2dpv.second.error();
589 double s_ip3dpv_corr = s_ip3dpv.second.value();
590 double s_ip3dpv_err = s_ip3dpv.second.error();
594 double ip3d_corr = ip3dpv.second.value();
595 double ip3d_err = ip3dpv.second.error();
603 double z0 = traj.perigeeParameters().longitudinalImpactParameter();
604 double z0_error = traj.perigeeError().longitudinalImpactParameterError();
623 float tracketa = theTrack.
eta();
624 float trackpt = theTrack.
pt();
653 float dxyRecoV = theTrack.
dz(theRecoVertex);
654 float dzRecoV = theTrack.
dxy(theRecoVertex);
658 double zTrack=(theTTrack->stateAtBeamLine().trackStateAtPCA()).
position().z();
659 double zVertex=theFittedVertex.
position().
z();
660 double tantheta=
tan((theTTrack->stateAtBeamLine().trackStateAtPCA()).momentum().theta());
663 double restrkz = zTrack-zVertex;
664 double pulltrkz = (zTrack-zVertex)/TMath::Sqrt(dz2);
689 n_dxyVsPhi->Fill(trackphi,dxyFromMyVertex/s_ip2dpv_err);
692 a_dxyVsEta->Fill(tracketa,dxyFromMyVertex*cmToum);
694 n_dxyVsEta->Fill(tracketa,dxyFromMyVertex/s_ip2dpv_err);
698 for(
int i=0; i<
nBins_; i++){
704 float etaL=-2.5+(i+1)*etaSect_;
706 if(tracketa >= etaF && tracketa < etaL ){
723 if(trackphi >= phiF && trackphi < phiL ){
740 float etaK=-2.5+(
j+1)*etaSect_;
742 if(tracketa >= etaJ && tracketa < etaK ){
757 edm::LogInfo(
"PrimaryVertexValidation")<<
" myVertex.x()= "<<myVertex.x()<<
"\n"
758 <<
" myVertex.y()= "<<myVertex.y()<<
" \n"
759 <<
" myVertex.z()= "<<myVertex.z()<<
" \n"
760 <<
" theTrack.dz(myVertex)= "<<theTrack.
dz(myVertex)<<
" \n"
761 <<
" zPCA -myVertex.z() = "<<(theTrack.
vertex().z() -myVertex.z());
769 LogTrace(
"PrimaryVertexValidation")<<
"caught std::exception "<<er.
what()<<std::endl;
776 edm::LogInfo(
"PrimaryVertexValidation")<<
"Not enough tracks to make a vertex. Returns no vertex info";
783 edm::LogInfo(
"PrimaryVertexValidation")<<
"Track "<<i<<
" : pT = "<<theTrack.
pt();
805 if (detId.subdetId() ==
kBPIX || detId.subdetId() ==
kFPIX) {
808 if (dynamic_cast<const SiStripRecHit2D*>(&hit))
return false;
809 else if (dynamic_cast<const SiStripMatchedRecHit2D*>(&hit))
return true;
810 else if (dynamic_cast<const ProjectedSiStripRecHit2D*>(&hit))
return false;
812 edm::LogError(
"UnkownType") <<
"@SUB=AlignmentTrackSelector::isHit2D"
813 <<
"Tracker hit not in pixel and neither SiStripRecHit2D nor "
814 <<
"SiStripMatchedRecHit2D nor ProjectedSiStripRecHit2D.";
819 edm::LogWarning(
"DetectorMismatch") <<
"@SUB=AlignmentTrackSelector::isHit2D"
820 <<
"Hit not in tracker with 'official' dimension >=2.";
830 using namespace reco;
832 for (
int i=0;
i<
p.numberOfHits(HitPattern::TRACK_HITS);
i++) {
833 uint32_t
pattern =
p.getHitPattern(HitPattern::TRACK_HITS,
i);
834 if (
p.pixelBarrelHitFilter(pattern) ||
p.pixelEndcapHitFilter(pattern) ) {
835 if (
p.getLayer(pattern) == 1) {
836 if (
p.validHitFilter(pattern)) {
849 <<
"######################################\n"
851 <<
"######################################";
944 TH1F::SetDefaultSumw2(kTRUE);
946 h_nTracks = EventFeatures.
make<TH1F>(
"h_nTracks",
"number of tracks per event;n_{tracks}/event;n_{events}",300,-0.5,299.5);
947 h_nClus = EventFeatures.
make<TH1F>(
"h_nClus",
"number of track clusters;n_{clusters}/event;n_{events}",50,-0.5,49.5);
948 h_nOfflineVertices = EventFeatures.
make<TH1F>(
"h_nOfflineVertices",
"number of offline reconstructed vertices;n_{vertices}/event;n_{events}",50,-0.5,49.5);
949 h_runNumber = EventFeatures.
make<TH1F>(
"h_runNumber",
"run number;run number;n_{events}",100000,150000.,250000.);
950 h_xOfflineVertex = EventFeatures.
make<TH1F>(
"h_xOfflineVertex",
"x-coordinate of offline vertex;x_{vertex};n_{events}",100,-0.1,0.1);
951 h_yOfflineVertex = EventFeatures.
make<TH1F>(
"h_yOfflineVertex",
"y-coordinate of offline vertex;y_{vertex};n_{events}",100,-0.1,0.1);
952 h_zOfflineVertex = EventFeatures.
make<TH1F>(
"h_zOfflineVertex",
"z-coordinate of offline vertex;z_{vertex};n_{events}",100,-30.,30.);
953 h_xErrOfflineVertex = EventFeatures.
make<TH1F>(
"h_xErrOfflineVertex",
"x-coordinate error of offline vertex;err_{x}^{vtx};n_{events}",100,0.,0.01);
954 h_yErrOfflineVertex = EventFeatures.
make<TH1F>(
"h_yErrOfflineVertex",
"y-coordinate error of offline vertex;err_{y}^{vtx};n_{events}",100,0.,0.01);
955 h_zErrOfflineVertex = EventFeatures.
make<TH1F>(
"h_zErrOfflineVertex",
"z-coordinate error of offline vertex;err_{z}^{vtx};n_{events}",100,0.,10.);
956 h_BSx0 = EventFeatures.
make<TH1F>(
"h_BSx0",
"x-coordinate of reco beamspot;x^{BS}_{0};n_{events}",100,-0.1,0.1);
957 h_BSy0 = EventFeatures.
make<TH1F>(
"h_BSy0",
"y-coordinate of reco beamspot;y^{BS}_{0};n_{events}",100,-0.1,0.1);
958 h_BSz0 = EventFeatures.
make<TH1F>(
"h_BSz0",
"z-coordinate of reco beamspot;z^{BS}_{0};n_{events}",100,-1.,1.);
959 h_Beamsigmaz = EventFeatures.
make<TH1F>(
"h_Beamsigmaz",
"z-coordinate beam width;#sigma_{Z}^{beam};n_{events}",100,0.,1.);
960 h_BeamWidthX = EventFeatures.
make<TH1F>(
"h_BeamWidthX",
"x-coordinate beam width;#sigma_{X}^{beam};n_{events}",100,0.,0.01);
961 h_BeamWidthY = EventFeatures.
make<TH1F>(
"h_BeamWidthY",
"y-coordinate beam width;#sigma_{Y}^{beam};n_{events}",100,0.,0.01);
966 h_probePt_ = ProbeFeatures.
make<TH1F>(
"h_probePt",
"p_{T} of probe track;track p_{T} (GeV); tracks",100,0.,50.);
967 h_probeP_ = ProbeFeatures.
make<TH1F>(
"h_probeP",
"momentum of probe track;track p (GeV); tracks",100,0.,100.);
968 h_probeEta_ = ProbeFeatures.
make<TH1F>(
"h_probeEta",
"#eta of the probe track;track #eta;tracks",54,-2.7,2.7);
969 h_probePhi_ = ProbeFeatures.
make<TH1F>(
"h_probePhi",
"#phi of probe track;track #phi (rad);tracks",100,-3.15,3.15);
971 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.7,2.7,100,-3.15,3.15);
972 h2_probeEtaPt_ = ProbeFeatures.
make<TH2F>(
"h2_probeEtaPt",
"probe track p_{T} vs #eta;#eta of probe track;track p_{T} (GeV); tracks",54,-2.7,2.7,100,0.,50.);
974 h_probeChi2_ = ProbeFeatures.
make<TH1F>(
"h_probeChi2",
"#chi^{2} of probe track;track #chi^{2}; tracks",100,0.,100.);
975 h_probeNormChi2_ = ProbeFeatures.
make<TH1F>(
"h_probeNormChi2",
" normalized #chi^{2} of probe track;track #chi^{2}/ndof; tracks",100,0.,10.);
976 h_probeCharge_ = ProbeFeatures.
make<TH1F>(
"h_probeCharge",
"charge of profe track;track charge Q;tracks",3,-1.5,1.5);
977 h_probeQoverP_ = ProbeFeatures.
make<TH1F>(
"h_probeQoverP",
"q/p of probe track; track Q/p (GeV^{-1});tracks",200,-1.,1.);
978 h_probedzRecoV_ = ProbeFeatures.
make<TH1F>(
"h_probedzRecoV",
"d_{z}(V_{offline}) of probe track;track d_{z}(V_{off}) (cm);tracks",200,-1.,1.);
979 h_probedxyRecoV_ = ProbeFeatures.
make<TH1F>(
"h_probedxyRecoV",
"d_{xy}(V_{offline}) of probe track;track d_{xy}(V_{off}) (cm);tracks",200,-1.,1.);
980 h_probedzRefitV_ = ProbeFeatures.
make<TH1F>(
"h_probedzRefitV",
"d_{z}(V_{refit}) of probe track;track d_{z}(V_{fit}) (cm);tracks",200,-1.,1.);
981 h_probesignIP2DRefitV_ = ProbeFeatures.
make<TH1F>(
"h_probesignIPRefitV",
"ip_{2D}(V_{refit}) of probe track;track ip_{2D}(V_{fit}) (cm);tracks",200,-1.,1.);
982 h_probedxyRefitV_ = ProbeFeatures.
make<TH1F>(
"h_probedxyRefitV",
"d_{xy}(V_{refit}) of probe track;track d_{xy}(V_{fit}) (cm);tracks",200,-1.,1.);
984 h_probez0RefitV_ = ProbeFeatures.
make<TH1F>(
"h_probez0RefitV",
"z_{0}(V_{refit}) of probe track;track z_{0}(V_{fit}) (cm);tracks",200,-1.,1.);
985 h_probed0RefitV_ = ProbeFeatures.
make<TH1F>(
"h_probed0RefitV",
"d_{0}(V_{refit}) of probe track;track d_{0}(V_{fit}) (cm);tracks",200,-1.,1.);
987 h_probed3DRefitV_ = ProbeFeatures.
make<TH1F>(
"h_probed3DRefitV",
"d_{3D}(V_{refit}) of probe track;track d_{3D}(V_{fit}) (cm);tracks",200,0.,1.);
988 h_probereszRefitV_ = ProbeFeatures.
make<TH1F>(
"h_probeReszRefitV",
"z_{track} -z_{V_{refit}};track res_{z}(V_{refit}) (cm);tracks",200,-1.,1.);
990 h_probeRecoVSigZ_ = ProbeFeatures.
make<TH1F>(
"h_probeRecoVSigZ" ,
"Longitudinal DCA Significance (reco);d_{z}(V_{off})/#sigma_{dz};tracks",100,-8,8);
991 h_probeRecoVSigXY_ = ProbeFeatures.
make<TH1F>(
"h_probeRecoVSigXY" ,
"Transverse DCA Significance (reco);d_{xy}(V_{off})/#sigma_{dxy};tracks",100,-8,8);
992 h_probeRefitVSigZ_ = ProbeFeatures.
make<TH1F>(
"h_probeRefitVSigZ" ,
"Longitudinal DCA Significance (refit);d_{z}(V_{fit})/#sigma_{dz};tracks",100,-8,8);
993 h_probeRefitVSigXY_= ProbeFeatures.
make<TH1F>(
"h_probeRefitVSigXY",
"Transverse DCA Significance (refit);d_{xy}(V_{fit})/#sigma_{dxy};tracks",100,-8,8);
994 h_probeRefitVSig3D_= ProbeFeatures.
make<TH1F>(
"h_probeRefitVSig3D",
"3D DCA Significance (refit);d_{3D}/#sigma_{3D};tracks",100,0.,20.);
995 h_probeRefitVLogSig3D_ = ProbeFeatures.
make<TH1F>(
"h_probeRefitVLogSig3D",
"log_{10}(3D DCA-Significance) (refit);log_{10}(d_{3D}/#sigma_{3D});tracks",100,-5.,4.);
996 h_probeRefitVSigResZ_ = ProbeFeatures.
make<TH1F>(
"h_probeRefitVSigResZ" ,
"Longitudinal residual significance (refit);(z_{track} -z_{V_{fit}})/#sigma_{res_{z}};tracks",100,-8,8);
998 h_probeHits_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechits" ,
"N_{hits} ;N_{hits} ;tracks",40,-0.5,39.5);
999 h_probeHits1D_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechits1D" ,
"N_{hits} 1D ;N_{hits} 1D ;tracks",40,-0.5,39.5);
1000 h_probeHits2D_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechits2D" ,
"N_{hits} 2D ;N_{hits} 2D ;tracks",40,-0.5,39.5);
1001 h_probeHitsInTIB_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTIB" ,
"N_{hits} TIB ;N_{hits} TIB;tracks",40,-0.5,39.5);
1002 h_probeHitsInTOB_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTOB" ,
"N_{hits} TOB ;N_{hits} TOB;tracks",40,-0.5,39.5);
1003 h_probeHitsInTID_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTID" ,
"N_{hits} TID ;N_{hits} TID;tracks",40,-0.5,39.5);
1004 h_probeHitsInTEC_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsTEC" ,
"N_{hits} TEC ;N_{hits} TEC;tracks",40,-0.5,39.5);
1005 h_probeHitsInBPIX_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsBPIX",
"N_{hits} BPIX;N_{hits} BPIX;tracks",40,-0.5,39.5);
1006 h_probeHitsInFPIX_ = ProbeFeatures.
make<TH1F>(
"h_probeNRechitsFPIX",
"N_{hits} FPIX;N_{hits} FPIX;tracks",40,-0.5,39.5);
1010 h_fitVtxNtracks_ = RefitVertexFeatures.
make<TH1F>(
"h_fitVtxNtracks" ,
"N_{trks} used in vertex fit;N^{fit}_{tracks};vertices" ,100,-0.5,99.5);
1011 h_fitVtxNdof_ = RefitVertexFeatures.
make<TH1F>(
"h_fitVtxNdof" ,
"N_{DOF} of vertex fit;N_{DOF} of refit vertex;vertices" ,100,-0.5,99.5);
1012 h_fitVtxChi2_ = RefitVertexFeatures.
make<TH1F>(
"h_fitVtxChi2" ,
"#chi^{2} of vertex fit;vertex #chi^{2};vertices" ,100,-0.5,99.5);
1013 h_fitVtxChi2ndf_ = RefitVertexFeatures.
make<TH1F>(
"h_fitVtxChi2ndf" ,
"#chi^{2}/ndf of vertex fit;vertex #chi^{2}/ndf;vertices" ,100,-0.5,9.5);
1014 h_fitVtxChi2Prob_ = RefitVertexFeatures.
make<TH1F>(
"h_fitVtxChi2Prob" ,
"Prob(#chi^{2},ndf) of vertex fit;Prob(#chi^{2},ndf);vertices",40,0.,1.);
1015 h_fitVtxTrackWeights_ = RefitVertexFeatures.
make<TH1F>(
"h_fitVtxTrackWeights",
"track weights associated to track;track weights;tracks",40,0.,1.);
1016 h_fitVtxTrackAverageWeight_ = RefitVertexFeatures.
make<TH1F>(
"h_fitVtxTrackAverageWeight_",
"average track weight per vertex;#LT track weight #GT;vertices",40,0.,1.);
1021 h_recoVtxNtracks_ = RecoVertexFeatures.
make<TH1F>(
"h_recoVtxNtracks" ,
"N^{vtx}_{trks};N^{vtx}_{trks};vertices" ,100,-0.5,99.5);
1022 h_recoVtxChi2ndf_ = RecoVertexFeatures.
make<TH1F>(
"h_recoVtxChi2ndf" ,
"#chi^{2}/ndf vtx;#chi^{2}/ndf vtx;vertices" ,10,-0.5,9.5);
1023 h_recoVtxChi2Prob_ = RecoVertexFeatures.
make<TH1F>(
"h_recoVtxChi2Prob" ,
"Prob(#chi^{2},ndf);Prob(#chi^{2},ndf);vertices",40,0.,1.);
1024 h_recoVtxSumPt_ = RecoVertexFeatures.
make<TH1F>(
"h_recoVtxSumPt" ,
"Sum(p^{trks}_{T});Sum(p^{trks}_{T});vertices" ,100,0.,200.);
1039 float dxymax_phi = 2000;
1040 float dzmax_phi = 2000;
1041 float dxymax_eta = 3000;
1042 float dzmax_eta = 3000;
1044 float d3Dmax_phi = hypot(dxymax_phi,dzmax_phi);
1045 float d3Dmax_eta = hypot(dxymax_eta,dzmax_eta);
1047 const int mybins_ = 500;
1083 float etaL=-2.5+(
i+1)*etaSect_;
1088 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;d_{xy} [#mum];tracks",phiF,phiL),
1089 mybins_,-dxymax_phi,dxymax_phi);
1092 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;d_{xy} [#mum];tracks",etaF,etaL),
1093 mybins_,-dxymax_eta,dxymax_eta);
1098 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;IP_{2D} [#mum];tracks",phiF,phiL),
1099 mybins_,-dxymax_phi,dxymax_phi);
1102 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;IP_{2D} [#mum];tracks",etaF,etaL),
1103 mybins_,-dxymax_eta,dxymax_eta);
1108 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;IP_{3D} [#mum];tracks",phiF,phiL),
1109 mybins_,-dxymax_phi,dxymax_phi);
1112 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;IP_{3D} [#mum];tracks",etaF,etaL),
1113 mybins_,-dxymax_eta,dxymax_eta);
1118 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;d_{z} [#mum];tracks",phiF,phiL),
1119 mybins_,-dzmax_phi,dzmax_phi);
1122 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;d_{z} [#mum];tracks",etaF,etaL),
1123 mybins_,-dzmax_eta,dzmax_eta);
1129 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;z_{trk} - z_{vtx} [#mum];tracks",phiF,phiL),
1130 mybins_,-dzmax_phi,dzmax_phi);
1133 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;z_{trk} - z_{vtx} [#mum];tracks",etaF,etaL),
1134 mybins_,-dzmax_eta,dzmax_eta);
1139 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;d_{3D} [#mum];tracks",phiF,phiL),
1140 mybins_,0.,d3Dmax_phi);
1143 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;d_{3D} [#mum];tracks",etaF,etaL),
1144 mybins_,0.,d3Dmax_eta);
1149 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;d_{xy}/#sigma_{d_{xy}};tracks",phiF,phiL),
1150 mybins_,-dxymax_phi/100.,dxymax_phi/100.);
1153 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;d_{xy}/#sigma_{d_{xy}};tracks",etaF,etaL),
1154 mybins_,-dxymax_eta/100.,dxymax_eta/100.);
1159 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;IP_{2D}/#sigma_{IP_{2D}};tracks",phiF,phiL),
1160 mybins_,-dxymax_phi/100.,dxymax_phi/100.);
1163 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;IP_{2D}/#sigma_{IP_{2D}};tracks",etaF,etaL),
1164 mybins_,-dxymax_eta/100.,dxymax_eta/100.);
1169 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;IP_{3D}/#sigma_{IP_{3D}};tracks",phiF,phiL),
1170 mybins_,-dxymax_phi/100.,dxymax_phi/100.);
1173 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;IP_{3D}/#sigma_{IP_{3D}};tracks",etaF,etaL),
1174 mybins_,-dxymax_eta/100.,dxymax_eta/100.);
1179 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;d_{z}/#sigma_{d_{z}};tracks",phiF,phiL),
1180 mybins_,-dzmax_phi/100.,dzmax_phi/100.);
1183 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;d_{z}/#sigma_{d_{z}};tracks",etaF,etaL),
1184 mybins_,-dzmax_eta/100.,dzmax_eta/100.);
1189 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;(z_{trk}-z_{vtx})/#sigma_{res_{z}};tracks",phiF,phiL),
1190 mybins_,-dzmax_phi/100.,dzmax_phi/100.);
1193 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;(z_{trk}-z_{vtx})/#sigma_{res_{z}};tracks",etaF,etaL),
1194 mybins_,-dzmax_eta/100.,dzmax_eta/100.);
1199 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;d_{3D}/#sigma_{d_{3D}};tracks",phiF,phiL),
1200 mybins_,0.,d3Dmax_phi/100.);
1203 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;d_{3D}/#sigma_{d_{3D}};tracks",etaF,etaL),
1204 mybins_,0.,d3Dmax_eta/100.);
1209 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy};tracks",etaF,etaL,phiF,phiL),
1210 mybins_,-dzmax_eta,dzmax_eta);
1213 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z};tracks",etaF,etaL,phiF,phiL),
1214 mybins_,-dzmax_eta,dzmax_eta);
1217 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{3D};tracks",etaF,etaL,phiF,phiL),
1218 mybins_,0.,d3Dmax_eta);
1221 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy}/#sigma_{d_{xy}};tracks",etaF,etaL,phiF,phiL),
1222 mybins_,-dzmax_eta/100,dzmax_eta/100);
1225 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z}/#sigma_{d_{z}};tracks",etaF,etaL,phiF,phiL),
1226 mybins_,-dzmax_eta/100,dzmax_eta/100);
1229 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{3D}/#sigma_{d_{3D}};tracks",etaF,etaL,phiF,phiL),
1230 mybins_,0.,d3Dmax_eta);
1239 a_dxyVsPhi = BiasVsParameter.
make<TH2F>(
"h2_dxy_vs_phi",
"d_{xy} vs track #phi;track #phi [rad];track d_{xy}(PV) [#mum]",
1242 a_dzVsPhi = BiasVsParameter.
make<TH2F>(
"h2_dz_vs_phi",
"d_{z} vs track #phi;track #phi [rad];track d_{z}(PV) [#mum]",
1245 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}}",
1248 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}}",
1251 a_dxyVsEta = BiasVsParameter.
make<TH2F>(
"h2_dxy_vs_eta",
"d_{xy} vs track #eta;track #eta;track d_{xy}(PV) [#mum]",
1252 48,-2.5,2.5,mybins_,-dxymax_eta,dzmax_eta);
1254 a_dzVsEta = BiasVsParameter.
make<TH2F>(
"h2_dz_vs_eta",
"d_{z} vs track #eta;track #eta;track d_{z}(PV) [#mum]",
1255 48,-2.5,2.5,mybins_,-dzmax_eta,dzmax_eta);
1257 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}}",
1258 48,-2.5,2.5,mybins_,-dxymax_eta/100.,dxymax_eta/100.);
1260 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}}",
1261 48,-2.5,2.5,mybins_,-dzmax_eta/100.,dzmax_eta/100.);
1271 Double_t highedge=nBins_-0.5;
1272 Double_t lowedge=-0.5;
1277 "#LT d_{xy} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy} #GT [#mum]",
1278 nBins_,lowedge,highedge);
1281 "#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{xy}} [#mum]",
1282 nBins_,lowedge,highedge);
1285 "#LT d_{z} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z} #GT [#mum]",
1286 nBins_,lowedge,highedge);
1288 a_dzPhiWidthTrend = WidthTrendsDir.
make<TH1F>(
"widths_dz_phi",
"#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{z}} [#mum]",
1289 nBins_,lowedge,highedge);
1292 "#LT d_{xy} #GT vs #eta sector;#eta (sector);#LT d_{xy} #GT [#mum]",
1293 nBins_,lowedge,highedge);
1296 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{xy}} [#mum]",
1297 nBins_,lowedge,highedge);
1300 "#LT d_{z} #GT vs #eta sector;#eta (sector);#LT d_{z} #GT [#mum]"
1301 ,
nBins_,lowedge,highedge);
1304 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{z}} [#mum]",
1305 nBins_,lowedge,highedge);
1308 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy}/#sigma_{d_{xy}} #GT",
1309 nBins_,lowedge,highedge);
1312 "width(d_{xy}/#sigma_{d_{xy}}) vs #phi sector;#varphi (sector) [degrees]; width(d_{xy}/#sigma_{d_{xy}})",
1313 nBins_,lowedge,highedge);
1316 "#LT d_{z}/#sigma_{d_{z}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z}/#sigma_{d_{z}} #GT",
1317 nBins_,lowedge,highedge);
1320 "width(d_{z}/#sigma_{d_{z}}) vs #phi sector;#varphi (sector) [degrees];width(d_{z}/#sigma_{d_{z}})",
1321 nBins_,lowedge,highedge);
1324 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #eta sector;#eta (sector);#LT d_{xy}/#sigma_{d_{z}} #GT",
1325 nBins_,lowedge,highedge);
1328 "width(d_{xy}/#sigma_{d_{xy}}) vs #eta sector;#eta (sector);width(d_{xy}/#sigma_{d_{z}})",
1329 nBins_,lowedge,highedge);
1332 "#LT d_{z}/#sigma_{d_{z}} #GT vs #eta sector;#eta (sector);#LT d_{z}/#sigma_{d_{z}} #GT",
1333 nBins_,lowedge,highedge);
1336 "width(d_{z}/#sigma_{d_{z}}) vs #eta sector;#eta (sector);width(d_{z}/#sigma_{d_{z}})",
1337 nBins_,lowedge,highedge);
1342 "#LT d_{xy} #GT map;#eta (sector);#varphi (sector) [degrees]",
1346 "#LT d_{z} #GT map;#eta (sector);#varphi (sector) [degrees]",
1350 "#LT d_{xy}/#sigma_{d_{xy}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1354 "#LT d_{z}/#sigma_{d_{z}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1358 "#sigma_{d_{xy}} map;#eta (sector);#varphi (sector) [degrees]",
1362 "#sigma_{d_{z}} map;#eta (sector);#varphi (sector) [degrees]",
1366 "width(d_{xy}/#sigma_{d_{xy}}) map;#eta (sector);#varphi (sector) [degrees]",
1370 "width(d_{z}/#sigma_{d_{z}}) map;#eta (sector);#varphi (sector) [degrees]",
1376 "Median of d_{xy} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}) [#mum]",
1377 nBins_,lowedge,highedge);
1380 "Median absolute deviation of d_{xy} vs #phi sector;#varphi (sector) [degrees];MAD(d_{xy}) [#mum]",
1381 nBins_,lowedge,highedge);
1384 "Median of d_{z} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}) [#mum]",
1385 nBins_,lowedge,highedge);
1388 "Median absolute deviation of d_{z} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}) [#mum]",
1389 nBins_,lowedge,highedge);
1392 "Median of d_{xy} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}) [#mum]",
1393 nBins_,lowedge,highedge);
1396 "Median absolute deviation of d_{xy} vs #eta sector;#eta (sector);MAD(d_{xy}) [#mum]",
1397 nBins_,lowedge,highedge);
1400 "Median of d_{z} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}) [#mum]",
1401 nBins_,lowedge,highedge);
1404 "Median absolute deviation of d_{z} vs #eta sector;#eta (sector);MAD(d_{z}) [#mum]",
1405 nBins_,lowedge,highedge);
1408 "Median of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}/#sigma_{d_{xy}})",
1409 nBins_,lowedge,highedge);
1412 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees]; MAD(d_{xy}/#sigma_{d_{xy}})",
1413 nBins_,lowedge,highedge);
1416 "Median of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
1417 nBins_,lowedge,highedge);
1420 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}/#sigma_{d_{z}})",
1421 nBins_,lowedge,highedge);
1424 "Median of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}/#sigma_{d_{z}})",
1425 nBins_,lowedge,highedge);
1428 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);MAD(d_{xy}/#sigma_{d_{z}})",
1429 nBins_,lowedge,highedge);
1432 "Median of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
1433 nBins_,lowedge,highedge);
1436 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);MAD(d_{z}/#sigma_{d_{z}})",
1437 nBins_,lowedge,highedge);
1470 float etaL=-2.5+(
i+1)*etaSect_;
1473 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;d_{xy} [#mum];tracks",phiF,phiL),
1474 mybins_,-dxymax_phi,dxymax_phi);
1477 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;d_{xy} [#mum];tracks",etaF,etaL),
1478 mybins_,-dxymax_eta,dxymax_eta);
1481 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f #circ;d_{z} [#mum];tracks",phiF,phiL),
1482 mybins_,-dzmax_phi,dzmax_phi);
1485 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;d_{z} [#mum];tracks",etaF,etaL),
1486 mybins_,-dzmax_eta,dzmax_eta);
1489 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;d_{xy}/#sigma_{d_{xy}};tracks",phiF,phiL),
1490 mybins_,-dxymax_phi/100.,dxymax_phi/100.);
1493 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;d_{xy}/#sigma_{d_{xy}};tracks",etaF,etaL),
1494 mybins_,-dxymax_eta/100.,dxymax_eta/100.);
1497 Form(
"%.2f#circ<#varphi^{probe}_{tk}<%.2f#circ;d_{z}/#sigma_{d_{z}};tracks",phiF,phiL),
1498 mybins_,-dzmax_phi/100.,dzmax_phi/100.);
1501 Form(
"%.2f<#eta^{probe}_{tk}<%.2f;d_{z}/#sigma_{d_{z}};tracks",etaF,etaL),
1502 mybins_,-dzmax_eta/100.,dzmax_eta/100.);
1507 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy} [#mum];tracks",etaF,etaL,phiF,phiL),
1508 mybins_,-dzmax_eta,dzmax_eta);
1511 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z} [#mum];tracks",etaF,etaL,phiF,phiL),
1512 mybins_,-dzmax_eta,dzmax_eta);
1515 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{xy}/#sigma_{d_{xy}};tracks",etaF,etaL,phiF,phiL),
1516 mybins_,-dzmax_eta/100,dzmax_eta/100);
1519 Form(
"%.2f<#eta_{tk}<%.2f %.2f#circ<#varphi_{tk}<%.2f#circ;d_{z}/#sigma_{d_{z}};tracks",etaF,etaL,phiF,phiL),
1520 mybins_,-dzmax_eta/100,dzmax_eta/100);
1537 "#LT d_{xy} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy} #GT [#mum]",
1538 nBins_,lowedge,highedge);
1541 "#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{xy}} [#mum]",
1542 nBins_,lowedge,highedge);
1545 "#LT d_{z} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z} #GT [#mum]",
1546 nBins_,lowedge,highedge);
1549 "#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#sigma_{d_{z}} [#mum]",
1550 nBins_,lowedge,highedge);
1553 "#LT d_{xy} #GT vs #eta sector;#eta (sector);#LT d_{xy} #GT [#mum]",
1554 nBins_,lowedge,highedge);
1557 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{xy}} [#mum]",
1558 nBins_,lowedge,highedge);
1561 "#LT d_{z} #GT vs #eta sector;#eta (sector);#LT d_{z} #GT [#mum]",
1562 nBins_,lowedge,highedge);
1565 "#sigma_{d_{xy}} vs #eta sector;#eta (sector);#sigma_{d_{z}} [#mum]",
1566 nBins_,lowedge,highedge);
1569 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{xy}/#sigma_{d_{xy}} #GT",
1570 nBins_,lowedge,highedge);
1573 "width(d_{xy}/#sigma_{d_{xy}}) vs #phi sector;#varphi (sector) [degrees]; width(d_{xy}/#sigma_{d_{xy}})",
1574 nBins_,lowedge,highedge);
1577 "#LT d_{z}/#sigma_{d_{z}} #GT vs #phi sector;#varphi (sector) [degrees];#LT d_{z}/#sigma_{d_{z}} #GT",
1578 nBins_,lowedge,highedge);
1581 "width(d_{z}/#sigma_{d_{z}}) vs #phi sector;#varphi (sector) [degrees];width(d_{z}/#sigma_{d_{z}})",
1582 nBins_,lowedge,highedge);
1585 "#LT d_{xy}/#sigma_{d_{xy}} #GT vs #eta sector;#eta (sector);#LT d_{xy}/#sigma_{d_{z}} #GT",
1586 nBins_,lowedge,highedge);
1589 "width(d_{xy}/#sigma_{d_{xy}}) vs #eta sector;#eta (sector);width(d_{xy}/#sigma_{d_{z}})",
1590 nBins_,lowedge,highedge);
1593 "#LT d_{z}/#sigma_{d_{z}} #GT vs #eta sector;#eta (sector);#LT d_{z}/#sigma_{d_{z}} #GT",
1594 nBins_,lowedge,highedge);
1597 "width(d_{z}/#sigma_{d_{z}}) vs #eta sector;#eta (sector);width(d_{z}/#sigma_{d_{z}})",
1598 nBins_,lowedge,highedge);
1603 "#LT d_{xy} #GT map;#eta (sector);#varphi (sector) [degrees]",
1607 "#LT d_{z} #GT map;#eta (sector);#varphi (sector) [degrees]",
1611 "#LT d_{xy}/#sigma_{d_{xy}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1615 "#LT d_{z}/#sigma_{d_{z}} #GT map;#eta (sector);#varphi (sector) [degrees]",
1619 "#sigma_{d_{xy}} map;#eta (sector);#varphi (sector) [degrees]",
1623 "#sigma_{d_{z}} map;#eta (sector);#varphi (sector) [degrees]",
1627 "width(d_{xy}/#sigma_{d_{xy}}) map;#eta (sector);#varphi (sector) [degrees]",
1631 "width(d_{z}/#sigma_{d_{z}}) map;#eta (sector);#varphi (sector) [degrees]",
1637 "Median of d_{xy} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}) [#mum]",
1638 nBins_,lowedge,highedge);
1641 "Median absolute deviation of d_{xy} vs #phi sector;#varphi (sector) [degrees];MAD(d_{xy}) [#mum]",
1642 nBins_,lowedge,highedge);
1645 "Median of d_{z} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}) [#mum]",
1646 nBins_,lowedge,highedge);
1649 "Median absolute deviation of d_{z} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}) [#mum]",
1650 nBins_,lowedge,highedge);
1653 "Median of d_{xy} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}) [#mum]",
1654 nBins_,lowedge,highedge);
1657 "Median absolute deviation of d_{xy} vs #eta sector;#eta (sector);MAD(d_{xy}) [#mum]",
1658 nBins_,lowedge,highedge);
1661 "Median of d_{z} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}) [#mum]",
1662 nBins_,lowedge,highedge);
1665 "Median absolute deviation of d_{z} vs #eta sector;#eta (sector);MAD(d_{z}) [#mum]",
1666 nBins_,lowedge,highedge);
1669 "Median of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{xy}/#sigma_{d_{xy}})",
1670 nBins_,lowedge,highedge);
1673 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #phi sector;#varphi (sector) [degrees]; MAD(d_{xy}/#sigma_{d_{xy}})",
1674 nBins_,lowedge,highedge);
1677 "Median of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
1678 nBins_,lowedge,highedge);
1681 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #phi sector;#varphi (sector) [degrees];MAD(d_{z}/#sigma_{d_{z}})",
1682 nBins_,lowedge,highedge);
1685 "Median of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{xy}/#sigma_{d_{z}})",
1686 nBins_,lowedge,highedge);
1689 "Median absolute deviation of d_{xy}/#sigma_{d_{xy}} vs #eta sector;#eta (sector);MAD(d_{xy}/#sigma_{d_{z}})",
1690 nBins_,lowedge,highedge);
1693 "Median of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);#mu_{1/2}(d_{z}/#sigma_{d_{z}})",
1694 nBins_,lowedge,highedge);
1697 "Median absolute deviation of d_{z}/#sigma_{d_{z}} vs #eta sector;#eta (sector);MAD(d_{z}/#sigma_{d_{z}})",
1698 nBins_,lowedge,highedge);
1707 <<
"######################################\n"
1708 <<
"# PrimaryVertexValidation::endJob()\n"
1709 <<
"# Number of analyzed events: "<<
Nevt_<<
"\n"
1710 <<
"######################################";
1905 Double_t median = 999;
1906 int nbins = histo->GetNbinsX();
1909 double *
x =
new double[
nbins];
1910 double *
y =
new double[
nbins];
1912 x[
j] = histo->GetBinCenter(
j+1);
1913 y[
j] = histo->GetBinContent(
j+1);
1915 median = TMath::Median(nbins, x, y);
1920 std::pair<Double_t,Double_t>
result;
1921 result = std::make_pair(median,median/TMath::Sqrt(histo->GetEntries()));
1932 int nbins = histo->GetNbinsX();
1933 Double_t median =
getMedian(histo).first;
1934 Double_t x_lastBin = histo->GetBinLowEdge(nbins+1);
1935 const char *
HistoName =histo->GetName();
1936 TString Finalname = Form(
"resMed%s",HistoName);
1937 TH1F *newHisto =
new TH1F(Finalname,Finalname,nbins,0.,x_lastBin);
1938 Double_t *residuals =
new Double_t[
nbins];
1942 residuals[
j] =
TMath::Abs(median - histo->GetBinCenter(
j+1));
1943 weights[
j]=histo->GetBinContent(
j+1);
1944 newHisto->Fill(residuals[
j],weights[j]);
1947 Double_t theMAD = (
getMedian(newHisto).first)*1.4826;
1949 delete[] residuals; residuals=0;
1951 newHisto->Delete(
"");
1953 std::pair<Double_t,Double_t>
result;
1954 result = std::make_pair(theMAD,theMAD/histo->GetEntries());
1967 float mean = hist->GetMean();
1968 float sigma = hist->GetRMS();
1970 TF1
func(
"tmp",
"gaus", mean - 1.5*sigma, mean + 1.5*sigma);
1971 if (0 == hist->Fit(&func,
"QNR")) {
1972 mean = func.GetParameter(1);
1973 sigma = func.GetParameter(2);
1975 func.SetRange(mean - 2*sigma, mean + 2*sigma);
1978 if (0 == hist->Fit(&func,
"Q0LR")) {
1979 if (hist->GetFunction(func.GetName())) {
1980 hist->GetFunction(func.GetName())->ResetBit(TF1::kNotDraw);
1985 float res_mean = func.GetParameter(1);
1986 float res_width = func.GetParameter(2);
1988 float res_mean_err = func.GetParError(1);
1989 float res_width_err = func.GetParError(2);
1991 std::pair<Double_t,Double_t> resultM;
1992 std::pair<Double_t,Double_t> resultW;
1994 resultM = std::make_pair(res_mean,res_mean_err);
1995 resultW = std::make_pair(res_width,res_width_err);
1997 std::pair<std::pair<Double_t,Double_t>, std::pair<Double_t,Double_t> >
result;
1999 result = std::make_pair(resultM,resultW);
2010 char phipositionString[129];
2012 float phiposition = (-180+
i*phiInterval)+(phiInterval/2);
2013 sprintf(phipositionString,
"%.f",phiposition);
2015 char etapositionString[129];
2017 sprintf(etapositionString,
"%.1f",etaposition);
2019 if(fitPar_==
"mean"){
2021 float meanErr_ =
fitResiduals(residualsPlot[i]).first.second;
2022 trendPlot->SetBinContent(i+1,mean_);
2023 trendPlot->SetBinError(i+1,meanErr_);
2024 }
else if (fitPar_==
"width"){
2026 float widthErr_ =
fitResiduals(residualsPlot[i]).second.second;
2027 trendPlot->SetBinContent(i+1,width_);
2028 trendPlot->SetBinError(i+1,widthErr_);
2029 }
else if (fitPar_==
"median"){
2030 float median_ =
getMedian(residualsPlot[
i]).first;
2031 float medianErr_ =
getMedian(residualsPlot[i]).second;
2032 trendPlot->SetBinContent(i+1,median_);
2033 trendPlot->SetBinError(i+1,medianErr_);
2034 }
else if (fitPar_==
"mad"){
2035 float mad_ =
getMAD(residualsPlot[
i]).first;
2036 float madErr_ =
getMAD(residualsPlot[i]).second;
2037 trendPlot->SetBinContent(i+1,mad_);
2038 trendPlot->SetBinError(i+1,madErr_);
2040 std::cout<<
"PrimaryVertexValidation::fillTrendPlot() "<<fitPar_<<
" unknown estimator!"<<std::endl;
2044 trendPlot->GetXaxis()->SetBinLabel(
i+1,etapositionString);
2045 }
else if(var_==
"phi"){
2046 trendPlot->GetXaxis()->SetBinLabel(
i+1,phipositionString);
2048 std::cout<<
"PrimaryVertexValidation::fillTrendPlot() "<<var_<<
" unknown track parameter!"<<std::endl;
2060 char phipositionString[129];
2062 float phiposition = (-180+
i*phiInterval)+(phiInterval/2);
2063 sprintf(phipositionString,
"%.f",phiposition);
2065 trendMap->GetYaxis()->SetBinLabel(
i+1,phipositionString);
2069 char etapositionString[129];
2071 sprintf(etapositionString,
"%.1f",etaposition);
2073 if(
i==0) { trendMap->GetXaxis()->SetBinLabel(
j+1,etapositionString); }
2075 if(fitPar_==
"mean"){
2077 float meanErr_ =
fitResiduals(residualsMapPlot[
i][j]).first.second;
2078 trendMap->SetBinContent(j+1,
i+1,mean_);
2079 trendMap->SetBinError(j+1,
i+1,meanErr_);
2080 }
else if (fitPar_==
"width"){
2081 float width_ =
fitResiduals(residualsMapPlot[
i][
j]).second.first;
2082 float widthErr_ =
fitResiduals(residualsMapPlot[
i][j]).second.second;
2083 trendMap->SetBinContent(j+1,
i+1,width_);
2084 trendMap->SetBinError(j+1,
i+1,widthErr_);
2085 }
else if (fitPar_==
"median"){
2086 float median_ =
getMedian(residualsMapPlot[
i][
j]).first;
2087 float medianErr_ =
getMedian(residualsMapPlot[
i][j]).second;
2088 trendMap->SetBinContent(j+1,
i+1,median_);
2089 trendMap->SetBinError(j+1,
i+1,medianErr_);
2090 }
else if (fitPar_==
"mad"){
2091 float mad_ =
getMAD(residualsMapPlot[
i][
j]).first;
2092 float madErr_ =
getMAD(residualsMapPlot[
i][j]).second;
2093 trendMap->SetBinContent(j+1,
i+1,mad_);
2094 trendMap->SetBinError(j+1,
i+1,madErr_);
2096 std::cout<<
"PrimaryVertexValidation::fillMap() "<<fitPar_<<
" unknown estimator!"<<std::endl;
2118 double vzErr =0.0, vxErr=0.0, vyErr=0.0;
2124 double dxy=0.0, dz=0.0, dxysigma=0.0, dzsigma=0.0;
2125 dxy = track.
dxy(vtxPoint);
2126 dz = track.
dz(vtxPoint);
2131 if(fabs(dxy/dxysigma) > dxyErrMax_)
return false;
2132 if(fabs(dz/dzsigma) > dzErrMax_)
return false;
2133 if(track.
ptError() / track.
pt() > ptErrMax_)
return false;
2144 TH1F::SetDefaultSumw2(kTRUE);
2146 std::map<std::string, TH1*>
h;
2150 for(
int t=0;
t<2;
t++){
2151 h[
"pseudorapidity_"+types[
t]] =dir.
make <TH1F>((
"rapidity_"+types[
t]).c_str(),
"track pseudorapidity; track #eta; tracks",100,-3., 3.);
2152 h[
"z0_"+types[
t]] = dir.
make<TH1F>((
"z0_"+types[
t]).c_str(),
"track z_{0};track z_{0} (cm);tracks",80,-40., 40.);
2153 h[
"phi_"+types[
t]] = dir.
make<TH1F>((
"phi_"+types[
t]).c_str(),
"track #phi; track #phi;tracks",80,-
TMath::Pi(),
TMath::Pi());
2154 h[
"eta_"+types[
t]] = dir.
make<TH1F>((
"eta_"+types[
t]).c_str(),
"track #eta; track #eta;tracks",80,-4., 4.);
2155 h[
"pt_"+types[
t]] = dir.
make<TH1F>((
"pt_"+types[
t]).c_str(),
"track p_{T}; track p_{T} [GeV];tracks",100,0., 20.);
2156 h[
"p_"+types[
t]] = dir.
make<TH1F>((
"p_"+types[
t]).c_str(),
"track p; track p [GeV];tracks",100,0., 20.);
2157 h[
"found_"+types[
t]] = dir.
make<TH1F>((
"found_"+types[
t]).c_str(),
"n. found hits;n^{found}_{hits};tracks",30, 0., 30.);
2158 h[
"lost_"+types[
t]] = dir.
make<TH1F>((
"lost_"+types[
t]).c_str(),
"n. lost hits;n^{lost}_{hits};tracks",20, 0., 20.);
2159 h[
"nchi2_"+types[
t]] = dir.
make<TH1F>((
"nchi2_"+types[
t]).c_str(),
"normalized track #chi^{2};track #chi^{2}/ndf;tracks",100, 0., 20.);
2160 h[
"rstart_"+types[
t]] = dir.
make<TH1F>((
"rstart_"+types[
t]).c_str(),
"track start radius; track innermost radius r (cm);tracks",100, 0., 20.);
2161 h[
"expectedInner_"+types[
t]] = dir.
make<TH1F>((
"expectedInner_"+types[
t]).c_str(),
"n. expected inner hits;n^{expected}_{inner};tracks",10, 0., 10.);
2162 h[
"expectedOuter_"+types[
t]] = dir.
make<TH1F>((
"expectedOuter_"+types[
t]).c_str(),
"n. expected outer hits;n^{expected}_{outer};tracks ",10, 0., 10.);
2163 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.);
2164 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.);
2165 h[
"tpullxy_"+types[
t]] = dir.
make<TH1F>((
"tpullxy_"+types[
t]).c_str(),
"track r-#phi pull;pull_{r-#phi};tracks",100, -10., 10.);
2166 h[
"tpullz_"+types[
t]] = dir.
make<TH1F>((
"tpullz_"+types[
t]).c_str(),
"track r-z pull;pull_{r-z};tracks",100, -50., 50.);
2167 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.);
2168 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.);
2169 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);
2170 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);
2171 h[
"restrkz_"+types[
t]] = dir.
make<TH1F>((
"restrkz_"+types[
t]).c_str(),
"z-residuals (track vs vertex);res_{z} (cm);tracks", 200, -5., 5.);
2172 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);
2173 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);
2174 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.);
2175 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.);
2176 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.);
2177 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.);
2178 h[
"sigmatrkz_"+types[
t]] = dir.
make<TH1F>((
"sigmatrkz_"+types[
t]).c_str(),
"z-resolution (including beam);#sigma^{trk}_{z} (cm);tracks", 100,0., 5.);
2179 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.);
2180 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.);
2181 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.);
2182 h[
"nSiLayers_"+types[
t]] = dir.
make<TH1F>((
"nSiLayers_"+types[
t]).c_str(),
"number of Tracker layers;n. Tracker layers;tracks", 20, 0., 20.);
2183 h[
"trackAlgo_"+types[
t]] = dir.
make<TH1F>((
"trackAlgo_"+types[
t]).c_str(),
"track algorithm;track algo;tracks", 30, 0., 30.);
2184 h[
"trackQuality_"+types[
t]] = dir.
make<TH1F>((
"trackQuality_"+types[
t]).c_str(),
"track quality;track quality;tracks", 7, -1., 6.);
2196 using namespace reco;
2213 fill(h,
"logtresxy_"+ttype,
log(d0Error/0.0001)/
log(10.));
2214 fill(h,
"tpullxy_"+ttype,d0/d0Error);
2215 fill(h,
"tlogDCAxy_"+ttype,
log(fabs(d0/d0Error)));
2221 fill(h,
"logtresz_"+ttype,
log(dzError/0.0001)/
log(10.));
2222 fill(h,
"tpullz_"+ttype,dz/dzError);
2223 fill(h,
"tlogDCAz_"+ttype,
log(fabs(dz/dzError)));
2254 double q=
sqrt(1.-2.*kappa*D0);
2257 if (fabs(kappa*s0)>0.001){
2279 int longesthit=0, nbarrel=0;
2281 if ((**hit).isValid() && (**hit).geographicalId().det() ==
DetId::Tracker ){
2289 if (clust->sizeY()-longesthit>0) longesthit=clust->sizeY();
2290 if (clust->sizeY()>20.){
2294 fill(h,
"lvseta_"+ttype,tt->
track().
eta(), float(clust->sizeY()));
2301 fill(h,
"nbarrelhits_"+ttype,
float(nbarrel));
2309 h[hist->GetName()]=
hist;
2310 hist->StatOverflows(kTRUE);
2319 std::cout <<
"Trying to fill non-exiting Histogram named " << s << std::endl;
2331 std::cout <<
"Trying to fill non-exiting Histogram named " << s << 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
T getUntrackedParameter(std::string const &, T const &) const
TH1F * a_dxyPhiMedianBiasTrend
TH1F * n_dxyPhiMADBiasTrend
TH1F * a_d3DPhiResiduals[nMaxBins_]
virtual int dimension() const =0
TH1F * n_dzResidualsMap[nMaxBins_][nMaxBins_]
double d0Error() const
error on d0
TH1F * a_dzPhiMedianBiasTrend
TH1F * a_dxyEtaWidthBiasTrend
TH1F * a_IP3DEtaResiduals[nMaxBins_]
std::vector< unsigned int > runControlNumbers_
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
TH1F * a_dxyEtaMADBiasTrend
TH1F * h_probesignIP2DRefitV_
trackRef_iterator tracks_end() const
last iterator over tracks
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_]
bool getByToken(EDGetToken token, Handle< PROD > &result) const
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_]
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
TH1F * h_xErrOfflineVertex
double phi() const
azimuthal angle of momentum vector
float DOFUnbiasedVertex_[nMaxtracks_]
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
TrajectoryStateClosestToBeamLine stateAtBeamLine() 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_]
TH1F * h_probeRefitVSigResZ_
TH1F * a_dxyPhiBiasResiduals[nMaxBins_]
double qoverp_[nMaxtracks_]
TH1F * a_d3DEtaResiduals[nMaxBins_]
double IPTsigFromMyVertex_[nMaxtracks_]
const math::XYZPoint & innerPosition() const
position of the innermost hit
TrackAlgorithm algo() const
virtual std::vector< std::vector< reco::TransientTrack > > clusterize(const std::vector< reco::TransientTrack > &tracks) const =0
std::pair< Double_t, Double_t > getMedian(TH1F *histo)
TH1F * a_dzEtaMedianTrend
double theta_[nMaxtracks_]
TH1F * a_dxyPhiMedianTrend
void fillMap(TH2F *trendMap, TH1F *residualsMapPlot[100][100], TString fitPar_)
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
TH1F * a_dxyPhiMADBiasTrend
unsigned int LuminosityBlockNumber_
TH1F * a_dxyPhiWidthTrend
double zErrOfflineVertex_
TH1F * h_yErrOfflineVertex
const PerigeeTrajectoryParameters & perigeeParameters() const
int nhitsFPIX_[nMaxtracks_]
bool useTracksFromRecoVtx_
~PrimaryVertexValidation()
bool hasFirstLayerPixelHits(const reco::TransientTrack track)
TH1F * n_reszEtaResiduals[nMaxBins_]
virtual CachingVertex< N > vertex(const std::vector< reco::TransientTrack > &tracks) const =0
double chi2() const
chi-squared of the fit
TH1F * n_dzPhiMADBiasTrend
TH1F * n_dzPhiBiasResiduals[nMaxBins_]
float degreesOfFreedom() const
double yUnbiasedVertex_[nMaxtracks_]
TH1F * h_probeRecoVSigXY_
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_]
double ptError() const
error on Pt (set to 1000 TeV if charge==0 for safety)
TH1F * n_IP3DEtaResiduals[nMaxBins_]
unsigned int EventNumber_
Tan< T >::type tan(const T &t)
int nhitsTID_[nMaxtracks_]
double chi2() const
chi-squares
double zUnbiasedVertex_[nMaxtracks_]
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
float chi2normUnbiasedVertex_[nMaxtracks_]
TH1F * n_d3DResidualsMap[nMaxBins_][nMaxBins_]
T * make(const Args &...args) const
make new ROOT object
virtual std::vector< reco::TransientTrack > select(const std::vector< reco::TransientTrack > &tracks) const =0
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_]
TH1F * a_dxyEtaWidthTrend
FTS const & trackStateAtPCA() const
double pz() const
z coordinate of momentum vector
TH1F * n_dzPhiMeanBiasTrend
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
EventAuxiliary const & eventAuxiliary() const
TH1F * a_IP2DPhiResiduals[nMaxBins_]
TH1F * n_dzPhiMedianBiasTrend
TH1F * a_dzPhiResiduals[nMaxBins_]
static TrackQuality qualityByName(const std::string &name)
double xError() const
error on x
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
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
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_]
TH1F * a_dxyPhiResiduals[nMaxBins_]
TH1F * n_dxyPhiWidthTrend
bool quality(const TrackQuality) const
Track quality.
TH1F * a_dxyEtaMeanBiasTrend
TH1F * a_dxyEtaBiasResiduals[nMaxBins_]
edm::EDGetTokenT< reco::BeamSpot > theBeamspotToken
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_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_]
static const G4double kappa
TH1F * n_dzPhiMedianTrend
double normalizedChi2() const
chi-squared divided by n.d.o.f.
double dxyErrorFromMyVertex_[nMaxtracks_]
DetId geographicalId() const
volatile std::atomic< bool > shutdown_flag false
TH1F * n_dxyPhiWidthBiasTrend
trackRef_iterator tracks_begin() const
first iterator over tracks
TH1F * n_reszPhiResiduals[nMaxBins_]
float sumOfWeightsUnbiasedVertex_[nMaxtracks_]
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_]
TH1F * a_dxyEtaMedianTrend
void fillTrendPlot(TH1F *trendPlot, TH1F *residualsPlot[100], TString fitPar_, TString var_)
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_]
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
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_]