@@ -176,7 +176,7 @@ namespace SingleTopTChannelLepton_miniAOD {
176176 // instantaneous luminosity
177177 // hists_["InstLumi_"] = ibooker.book1D("InstLumi", "Inst. Lumi.", 100, 0., 1.e3);
178178 // number of selected primary vertices
179- hists_[" pvMult_" ] = ibooker.book1D (" PvMult" , " N_{good pvs}" , 50 , 0 ., 50 .);
179+ hists_[" pvMult_" ] = ibooker.book1D (" PvMult" , " N_{good pvs}" , 50 , 0 ., 100 .);
180180 // pt of the leading muon
181181 hists_[" muonPt_" ] = ibooker.book1D (" MuonPt" , " pt(#mu TightId, TightIso)" , 40 , 0 ., 200 .);
182182 // muon multiplicity before std isolation
@@ -274,10 +274,16 @@ namespace SingleTopTChannelLepton_miniAOD {
274274 hists_[" muonDelZ_" ] = ibooker.book1D (" MuonDelZ" , " d_{z}(#mu)" , 50 , -25 ., 25 .);
275275 // dxy for muons (to suppress cosmics)
276276 hists_[" muonDelXY_" ] = ibooker.book2D (" MuonDelXY" , " d_{xy}(#mu)" , 50 , -0.1 , 0.1 , 50 , -0.1 , 0.1 );
277+ // dxy distribution for muons
278+ hists_[" muonDxy_" ] = ibooker.book1D (" MuonDxy" , " d_{xy}(#mu)" , 100 , -0.05 , 0.05 );
279+ // muon _dxy error
280+ hists_[" muonDxyError_" ] = ibooker.book1D (" MuonDxyError" , " d_{xy} Error (#mu)" , 100 , 0 ., 0.05 );
277281
278282 // set axes titles for dxy for muons
279283 hists_[" muonDelXY_" ]->setAxisTitle (" x [cm]" , 1 );
280284 hists_[" muonDelXY_" ]->setAxisTitle (" y [cm]" , 2 );
285+ hists_[" muonDxy_" ]->setAxisTitle (" d_{xy} [cm]" , 1 );
286+ hists_[" muonDxyError_" ]->setAxisTitle (" d_{xy} error [cm]" , 1 );
281287
282288 if (verbosity_ == VERBOSE)
283289 return ;
@@ -509,6 +515,15 @@ namespace SingleTopTChannelLepton_miniAOD {
509515 fill (" muonDelZ_" , muon->innerTrack ()->vz ()); // CB using inner track!
510516 fill (" muonDelXY_" , muon->innerTrack ()->vx (), muon->innerTrack ()->vy ());
511517
518+ // d_xy distribution
519+ if (muon->muonBestTrack ().isNonnull ()) {
520+ double dxy = muon->dB (pat::Muon::PV2D);
521+ fill (" muonDxy_" , dxy);
522+
523+ double dxyError = muon->edB (pat::Muon::PV2D);
524+ fill (" muonDxyError_" , dxyError);
525+ }
526+
512527 // apply preselection loose muon
513528 if (!muonSelect_ || (*muonSelect_)(*muon)) {
514529 // loose muon count
0 commit comments