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")),
26 theBeamSpotToken(iC.mayConsume<
BeamSpot>(par.getParameter<
edm::
InputTag>(
"BeamSpotLabel"))),
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();
99 LogTrace(
metname) <<
"Extracted 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) {
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 Point & position() const
position
const std::string metname
std::list< const reco::Track * > result_type
Global3DPoint GlobalPoint
std::vector< Track > TrackCollection
collection of Tracks
void addDeposit(double dr, double deposit)
Add deposit (ie. transverse energy or pT)
double pt() const
track transverse momentum
int charge() const
track electric charge
vector< ParameterSet > Parameters
void addCandEnergy(double et)
Set energy or pT attached to cand trajectory.
double phi() const
azimuthal angle of momentum vector
math::XYZPoint Point
point in the space
double eta() const
pseudorapidity of momentum vector
std::vector< Veto > Vetos
muonisolation::Range< float > Range
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...