27 namespace egammaisolation {
47 <<
"This Function is not implemented, bad IsoDeposit Returned";
90 using namespace egammaisolation;
94 : theTrackCollectionToken(iC.consumes<
View<
Track> >(par.getParameter<edm::
InputTag>(
"inputTrackCollection"))),
95 theDepositLabel(par.getUntrackedParameter<std::
string>(
"DepositLabel")),
96 theDiff_r(par.getParameter<double>(
"Diff_r")),
97 theDiff_z(par.getParameter<double>(
"Diff_z")),
98 theDR_Max(par.getParameter<double>(
"DR_Max")),
99 theDR_Veto(par.getParameter<double>(
"DR_Veto")),
100 theBeamlineOption(par.getParameter<std::
string>(
"BeamlineOption")),
102 theNHits_Min(par.getParameter<unsigned int>(
"NHits_Min")),
103 theChi2Ndof_Max(par.getParameter<double>(
"Chi2Ndof_Max")),
104 theChi2Prob_Min(par.getParameter<double>(
"Chi2Prob_Min")),
105 thePt_Min(par.getParameter<double>(
"Pt_Min")),
106 dzOptionString(par.getParameter<std::
string>(
"dzOption")) {
146 if (beamSpotH.isValid()) {
147 beamPoint = beamSpotH->position();
182 dzCut = elec->
gsfTrack()->dz() - itrTr.dz();
185 dzCut = elec->
gsfTrack()->vz() - itrTr.vz();
188 dzCut = elec->
gsfTrack()->dz(beamPoint) - itrTr.dz(beamPoint);
191 dzCut = itrTr.dz(elec->
gsfTrack()->vertex());
194 dzCut = elec->
gsfTrack()->vz() - itrTr.vz();
200 dzCut = itrTr.dz() - candTk.
vertex().z();
203 dzCut = itrTr.vz() - candTk.
vertex().z();
206 dzCut = itrTr.dz(beamPoint) - candTk.
vertex().z();
209 dzCut = itrTr.dz(candTk.
vertex());
212 dzCut = itrTr.vz() - candTk.
vertex().z();
220 if (fabs(itrTr.dxy(beamPoint)) >
theDiff_r)
void setVeto(const Veto &aVeto)
Set veto.
virtual double et() const =0
transverse energy
const std::string metname
theBeamSpotToken(iC.consumes< reco::BeamSpot >(iConfig.getParameter< edm::InputTag >("beamSpot")))
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)
GsfTrackRef gsfTrack() const override
reference to a GsfTrack
double eta() const
pseudorapidity of momentum vector
void addCandEnergy(double et)
Set energy or pT attached to cand trajectory.
bool get(ProductID const &oid, Handle< PROD > &result) const
float ChiSquaredProbability(double chiSquared, double nrDOF)
virtual const Point & vertex() const =0
vertex position
math::XYZPoint Point
point in the space
reco::IsoDeposit IsoDeposit
std::vector< Veto > Vetos
#define DEFINE_EDM_PLUGIN(factory, type, name)
Log< level::Warning, false > LogWarning
virtual bool isElectron() const =0
double deltaR(const Direction &dir2) const
virtual double phi() const =0
momentum azimuthal angle
virtual double eta() const =0
momentum pseudorapidity