CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
reco::isodeposit::NumCrystalVeto Class Reference
Inheritance diagram for reco::isodeposit::NumCrystalVeto:
reco::isodeposit::AbsVeto

Public Member Functions

void centerOn (double eta, double phi) override
 
 NumCrystalVeto (Direction dir, double iR)
 
bool veto (double eta, double phi, float value) const override
 Return "true" if a deposit at specific (eta,phi) with that value must be vetoed in the sum. More...
 
- Public Member Functions inherited from reco::isodeposit::AbsVeto
virtual ~AbsVeto ()
 

Private Attributes

float iR_
 
Direction vetoDir_
 

Detailed Description

Definition at line 25 of file IsoDepositVetoFactory.cc.

Constructor & Destructor Documentation

reco::isodeposit::NumCrystalVeto::NumCrystalVeto ( Direction  dir,
double  iR 
)
inline

Member Function Documentation

void reco::isodeposit::NumCrystalVeto::centerOn ( double  eta,
double  phi 
)
inlineoverridevirtual
Relocates this veto so that the new center is at some (eta,phi).

Must be implemented on the specific AbsVeto subclass: in this mother class it just throws exception

Reimplemented from reco::isodeposit::AbsVeto.

Definition at line 35 of file IsoDepositVetoFactory.cc.

References vetoDir_.

bool reco::isodeposit::NumCrystalVeto::veto ( double  eta,
double  phi,
float  value 
) const
inlineoverridevirtual

Return "true" if a deposit at specific (eta,phi) with that value must be vetoed in the sum.

Implements reco::isodeposit::AbsVeto.

Definition at line 28 of file IsoDepositVetoFactory.cc.

References reco::isodeposit::Direction::deltaR(), reco::isodeposit::Direction::eta(), iR_, and vetoDir_.

28  {
29  if (fabs(vetoDir_.eta()) < 1.479) {
30  return (vetoDir_.deltaR(Direction(eta, phi)) < 0.0174 * iR_);
31  } else {
32  return (vetoDir_.deltaR(Direction(eta, phi)) < 0.00864 * fabs(sinh(eta)) * iR_);
33  }
34  }
double deltaR(const Direction &dir2) const

Member Data Documentation

float reco::isodeposit::NumCrystalVeto::iR_
private

Definition at line 39 of file IsoDepositVetoFactory.cc.

Referenced by veto().

Direction reco::isodeposit::NumCrystalVeto::vetoDir_
private

Definition at line 38 of file IsoDepositVetoFactory.cc.

Referenced by centerOn(), and veto().