19 using namespace muonisolation;
23 theTrackCollectionToken(iC.consumes<
TrackCollection >(par.getParameter<edm::
InputTag>(
"inputTrackCollection"))),
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;
80 double bz = bField->inInverseGeV(
GlobalPoint(0.,0.,0.)).z();
92 LogTrace(metname)<<
"***** TRACK COLLECTION SIZE: "<<tracksH->size();
94 double vtx_z = muon.
vz();
95 LogTrace(metname)<<
"***** Muon vz: "<<vtx_z;
106 beamPoint = beamSpotH->position();
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)
double eta() const
pseudorapidity of momentum vector
vector< ParameterSet > Parameters
double dPhi(double phi1, double phi2)
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
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
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
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...