13 using namespace pf2pat;
16 : verbose_(iConfig.getUntrackedParameter<bool>(
"verbose",
false))
27 for (
unsigned i = 0;
i < toBeIsolated.size();
i++) {
31 cout <<
"to be isolated: " << toBeIso << endl;
37 cout <<
"PFIsoDepositAlgo " << endl;
51 for (
unsigned i = 0;
i < forIsolation.size();
i++) {
61 double dR = pfDir.
deltaR(dirPfc);
64 double maxDeltaRForIsoDep_ = 1;
65 if (dR > maxDeltaRForIsoDep_) {
72 cout <<
"\t" << pfc << endl;
75 isoDep.addDeposit(dirPfc, pt);
82 double smallNumber = 1
e-15;
86 else if (fabs(particle1.
energy() - particle2.
energy()) > smallNumber)
88 else if (fabs(particle1.
eta() - particle2.
eta()) > smallNumber)
90 else if (fabs(particle1.
eta() - particle2.
eta()) > smallNumber)
std::vector< Particle > ParticleCollection
const LorentzVector & p4() const final
four-momentum Lorentz vector
IsoDeposits isoDeposits_
IsoDeposits computed in the produce function.
reco::IsoDeposit buildIsoDeposit(const Particle &particle, const ParticleCollection &forIsolation) const
build the IsoDeposit for "particle"
std::vector< reco::IsoDeposit > IsoDeposits
const IsoDeposits & produce(const ParticleCollection &toBeIsolated, const ParticleCollection &forIsolation)
bool sameParticle(const Particle &particle1, const Particle &particle2) const
checks if the 2 particles are in fact the same
Particle reconstructed by the particle flow algorithm.
virtual ParticleType particleId() const
double phi() const final
momentum azimuthal angle
double deltaR(const Direction &dir2) const
math::XYZTLorentzVector XYZTLorentzVector
double energy() const final
energy
double eta() const final
momentum pseudorapidity