21 using namespace muonisolation;
24 PixelTrackExtractor::PixelTrackExtractor(
const ParameterSet& par ) :
25 theTrackCollectionTag(par.getParameter<edm::
InputTag>(
"inputTrackCollection")),
26 theDepositLabel(par.getUntrackedParameter<
string>(
"DepositLabel")),
27 theDiff_r(par.getParameter<double>(
"Diff_r")),
28 theDiff_z(par.getParameter<double>(
"Diff_z")),
29 theDR_Max(par.getParameter<double>(
"DR_Max")),
30 theDR_Veto(par.getParameter<double>(
"DR_Veto")),
31 theBeamlineOption(par.getParameter<
string>(
"BeamlineOption")),
32 theBeamSpotLabel(par.getParameter<edm::
InputTag>(
"BeamSpotLabel")),
33 theNHits_Min(par.getParameter<unsigned int>(
"NHits_Min")),
34 theChi2Ndof_Max(par.getParameter<double>(
"Chi2Ndof_Max")),
35 theChi2Prob_Min(par.getParameter<double>(
"Chi2Prob_Min")),
36 thePt_Min(par.getParameter<double>(
"Pt_Min")),
37 thePropagateTracksToRadius(par.getParameter<bool>(
"PropagateTracksToRadius")),
38 theReferenceRadius(par.getParameter<double>(
"ReferenceRadius")),
39 theVetoLeadingTrack(par.getParameter<bool>(
"VetoLeadingTrack")),
40 thePtVeto_Min(par.getParameter<double>(
"PtVeto_Min")),
41 theDR_VetoPt(par.getParameter<double>(
"DR_VetoPt"))
67 double tkDxy = tk.
dxy();
68 double s2D = fabs(tk.
dxy()) < psRadius ?
sqrt(psRadius*psRadius - tkDxy*tkDxy) : 0;
82 double bz = bField->inInverseGeV(
GlobalPoint(0.,0.,0.)).z();
94 LogTrace(metname)<<
"***** TRACK COLLECTION SIZE: "<<tracksH->size();
96 double vtx_z = muon.
vz();
97 LogTrace(metname)<<
"***** Muon vz: "<<vtx_z;
108 beamPoint = beamSpotH->position();
109 LogTrace(metname)<<
"Extracted beam point at "<<beamPoint<<std::endl;
113 LogTrace(metname)<<
"Using beam point at "<<beamPoint<<std::endl;
125 LogTrace(metname)<<
"all tracks: "<<tracksH->size()<<
" selected: "<<sel_tracks.size();
130 TrackSelector::result_type::const_iterator tkI = sel_tracks.begin();
131 for (; tkI != sel_tracks.end(); ++tkI) {
133 LogTrace(metname) <<
"This track has: pt= " << tk->
pt() <<
", eta= "
134 << tk->
eta() <<
", phi= "<<tk->
phi();
137 double tkDr = (muonDir-dirTrk).
deltaR;
138 double tkPt = tk->
pt();
148 LogTrace(metname)<<
" Set track veto the leading track with pt "
149 <<maxPt<<
" in direction (eta,phi) "
150 <<maxPtDir.
eta()<<
", "<<maxPtDir.
phi();
void setVeto(const Veto &aVeto)
Set veto.
const std::string metname
std::list< const reco::Track * > result_type
Global3DPoint GlobalPoint
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...