12 using namespace muonisolation;
16 : theTrackCollectionToken(iC.consumes<
TrackCollection>(par.getParameter<edm::
InputTag>(
"inputTrackCollection"))),
17 theDepositLabel(par.getUntrackedParameter<
string>(
"DepositLabel")),
18 theDiff_r(par.getParameter<double>(
"Diff_r")),
19 theDiff_z(par.getParameter<double>(
"Diff_z")),
20 theDR_Max(par.getParameter<double>(
"DR_Max")),
21 theDR_Veto(par.getParameter<double>(
"DR_Veto")),
22 theBeamlineOption(par.getParameter<
string>(
"BeamlineOption")),
24 theNHits_Min(par.getParameter<unsigned int>(
"NHits_Min")),
25 theChi2Ndof_Max(par.getParameter<double>(
"Chi2Ndof_Max")),
26 theChi2Prob_Min(par.getParameter<double>(
"Chi2Prob_Min")),
27 thePt_Min(par.getParameter<double>(
"Pt_Min")) {}
48 deposit.setVeto(
veto(muonDir));
49 deposit.addCandEnergy(muon.
pt());
54 LogTrace(metname) <<
"***** TRACK COLLECTION SIZE: " << tracksH->size();
56 double vtx_z = muon.
vz();
57 LogTrace(metname) <<
"***** Muon vz: " << vtx_z;
68 beamPoint = beamSpotH->position();
69 LogTrace(metname) <<
"Extracted beam point at " << beamPoint << std::endl;
73 LogTrace(metname) <<
"Using beam point at " << beamPoint << std::endl;
85 LogTrace(metname) <<
"all tracks: " << tracksH->size() <<
" selected: " << sel_tracks.size();
87 TrackSelector::result_type::const_iterator tkI = sel_tracks.begin();
88 for (; tkI != sel_tracks.end(); ++tkI) {
90 LogTrace(metname) <<
"This track has: pt= " << tk->
pt() <<
", eta= " << tk->
eta() <<
", phi= " << tk->
phi();
92 deposit.addDeposit(dirTrk, tk->
pt());
const std::string metname
theBeamSpotToken(iC.consumes< reco::BeamSpot >(iConfig.getParameter< edm::InputTag >("beamSpot")))
std::list< const reco::Track * > result_type
std::vector< Track > TrackCollection
collection of Tracks
double phi() const
azimuthal angle of momentum vector
double eta() const
pseudorapidity of momentum vector
vector< ParameterSet > Parameters
double pt() const
track transverse momentum
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