14 using namespace muonisolation;
20 theDepositLabel(par.getUntrackedParameter<
string>(
"DepositLabel")),
21 theDiff_r(par.getParameter<double>(
"Diff_r")),
22 theDiff_z(par.getParameter<double>(
"Diff_z")),
23 theDR_Max(par.getParameter<double>(
"DR_Max")),
24 theDR_Veto(par.getParameter<double>(
"DR_Veto")),
25 theBeamlineOption(par.getParameter<
string>(
"BeamlineOption")),
27 theNHits_Min(par.getParameter<unsigned int>(
"NHits_Min")),
28 theChi2Ndof_Max(par.getParameter<double>(
"Chi2Ndof_Max")),
29 theChi2Prob_Min(par.getParameter<double>(
"Chi2Prob_Min")),
30 thePt_Min(par.getParameter<double>(
"Pt_Min")),
31 thePropagateTracksToRadius(par.getParameter<bool>(
"PropagateTracksToRadius")),
32 theReferenceRadius(par.getParameter<double>(
"ReferenceRadius")),
33 theVetoLeadingTrack(par.getParameter<bool>(
"VetoLeadingTrack")),
34 thePtVeto_Min(par.getParameter<double>(
"PtVeto_Min")),
35 theDR_VetoPt(par.getParameter<double>(
"DR_VetoPt"))
59 double tkDxy = tk.
dxy();
60 double s2D = fabs(tk.
dxy()) < psRadius ?
sqrt(psRadius * psRadius - tkDxy * tkDxy) : 0;
63 double dPhi = -s2D * tk.
charge() * bz / tk.
pt();
84 LogTrace(metname) <<
"***** TRACK COLLECTION SIZE: " << tracksH->size();
86 double vtx_z = muon.
vz();
87 LogTrace(metname) <<
"***** Muon vz: " << vtx_z;
98 beamPoint = beamSpotH->position();
99 LogTrace(metname) <<
"Extracted beam point at " << beamPoint << std::endl;
103 LogTrace(metname) <<
"Using beam point at " << beamPoint << std::endl;
115 LogTrace(metname) <<
"all tracks: " << tracksH->size() <<
" selected: " << sel_tracks.size();
119 TrackSelector::result_type::const_iterator tkI = sel_tracks.begin();
120 for (; tkI != sel_tracks.end(); ++tkI) {
122 LogTrace(metname) <<
"This track has: pt= " << tk->
pt() <<
", eta= " << tk->
eta() <<
", phi= " << tk->
phi();
125 double tkDr = (muonDir - dirTrk).
deltaR;
126 double tkPt = tk->
pt();
134 LogTrace(metname) <<
" Set track veto the leading track with pt " << maxPt <<
" in direction (eta,phi) "
135 << maxPtDir.
eta() <<
", " << maxPtDir.
phi();
void setVeto(const Veto &aVeto)
Set veto.
const std::string metname
theBeamSpotToken(iC.consumes< reco::BeamSpot >(iConfig.getParameter< edm::InputTag >("beamSpot")))
std::list< const reco::Track * > result_type
Global3DPoint GlobalPoint
std::vector< Track > TrackCollection
collection of Tracks
double phi() const
azimuthal angle of momentum vector
void addDeposit(double dr, double deposit)
Add deposit (ie. transverse energy or pT)
bool getData(T &iHolder) const
double eta() const
pseudorapidity of momentum vector
vector< ParameterSet > Parameters
double pt() const
track transverse momentum
void addCandEnergy(double et)
Set energy or pT attached to cand trajectory.
math::XYZPoint Point
point in the space
double vz() const
z coordinate of the reference point on track
std::vector< Veto > Vetos
muonisolation::Range< float > Range
int charge() const
track electric charge
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...