test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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

virtual void centerOn (double eta, double phi) override
 
 NumCrystalVeto (Direction dir, double iR)
 
virtual 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 26 of file IsoDepositVetoFactory.cc.

Constructor & Destructor Documentation

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

Member Function Documentation

virtual 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 36 of file IsoDepositVetoFactory.cc.

References vetoDir_.

virtual 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 29 of file IsoDepositVetoFactory.cc.

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

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

Member Data Documentation

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

Definition at line 38 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().