24 theDepositLabel(par.getUntrackedParameter<
string>(
"DepositLabel")),
25 theDiff_r(par.getParameter<double>(
"Diff_r")),
26 theDiff_z(par.getParameter<double>(
"Diff_z")),
27 theDR_Max(par.getParameter<double>(
"DR_Max")),
28 theDR_Veto(par.getParameter<double>(
"DR_Veto")),
29 theBeamlineOption(par.getParameter<
string>(
"BeamlineOption")),
30 theBeamSpotToken(iC.mayConsume<
BeamSpot>(par.getParameter<
edm::
InputTag>(
"BeamSpotLabel"))),
31 theNHits_Min(par.getParameter<unsigned
int>(
"NHits_Min")),
32 theChi2Ndof_Max(par.getParameter<double>(
"Chi2Ndof_Max")),
33 theChi2Prob_Min(par.getParameter<double>(
"Chi2Prob_Min")),
34 thePt_Min(par.getParameter<double>(
"Pt_Min")),
35 thePropagateTracksToRadius(par.getParameter<
bool>(
"PropagateTracksToRadius")),
36 theReferenceRadius(par.getParameter<double>(
"ReferenceRadius")),
37 theVetoLeadingTrack(par.getParameter<
bool>(
"VetoLeadingTrack")),
38 thePtVeto_Min(par.getParameter<double>(
"PtVeto_Min")),
39 theDR_VetoPt(par.getParameter<double>(
"DR_VetoPt"))
65 double tkDxy = tk.
dxy();
66 double s2D = fabs(tk.
dxy()) < psRadius ?
sqrt(psRadius*psRadius - tkDxy*tkDxy) : 0;
69 double dPhi = -s2D*tk.
charge()*bz/tk.
pt();
92 LogTrace(metname)<<
"***** TRACK COLLECTION SIZE: "<<tracksH->size();
94 double vtx_z = muon.
vz();
95 LogTrace(metname)<<
"***** Muon vz: "<<vtx_z;
107 LogTrace(metname)<<
"Extracted beam point at "<<beamPoint<<std::endl;
111 LogTrace(metname)<<
"Using beam point at "<<beamPoint<<std::endl;
123 LogTrace(metname)<<
"all tracks: "<<tracksH->size()<<
" selected: "<<sel_tracks.size();
128 TrackSelector::result_type::const_iterator tkI = sel_tracks.begin();
129 for (; tkI != sel_tracks.end(); ++tkI) {
131 LogTrace(metname) <<
"This track has: pt= " << tk->
pt() <<
", eta= " 132 << tk->
eta() <<
", phi= "<<tk->
phi();
135 double tkDr = (muonDir-dirTrk).
deltaR;
136 double tkPt = tk->
pt();
146 LogTrace(metname)<<
" Set track veto the leading track with pt " 147 <<maxPt<<
" in direction (eta,phi) " 148 <<maxPtDir.
eta()<<
", "<<maxPtDir.
phi();
void setVeto(const Veto &aVeto)
Set veto.
const std::string metname
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)
GlobalVector inInverseGeV(const GlobalPoint &gp) const
Field value ad specified global point, in 1/Gev.
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 deltaR(double eta1, double eta2, double phi1, double phi2)
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
const Point & position() const
position
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...