CMS 3D CMS Logo

Public Member Functions | Private Attributes

reco::isodeposit::NumCrystalVeto Class Reference

Inheritance diagram for reco::isodeposit::NumCrystalVeto:
reco::isodeposit::AbsVeto

List of all members.

Public Member Functions

virtual void centerOn (double eta, double phi)
 NumCrystalVeto (Direction dir, double iR)
virtual bool veto (double eta, double phi, float value) const
 Return "true" if a deposit at specific (eta,phi) with that value must be vetoed in the sum.

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]

Definition at line 28 of file IsoDepositVetoFactory.cc.

: vetoDir_(dir), iR_(iR) {}

Member Function Documentation

virtual void reco::isodeposit::NumCrystalVeto::centerOn ( double  eta,
double  phi 
) [inline, virtual]

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 [inline, virtual]

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_.

                                                                         {
                if( fabs(vetoDir_.eta()) < 1.479) {
                    return ( vetoDir_.deltaR(Direction(eta,phi)) < 0.0174*iR_ );
                } else {
                    return ( vetoDir_.deltaR(Direction(eta,phi)) < 0.00864*fabs(sinh(eta))*iR_ );
                }
            }

Member Data Documentation

Definition at line 38 of file IsoDepositVetoFactory.cc.

Referenced by veto().

Definition at line 38 of file IsoDepositVetoFactory.cc.

Referenced by centerOn(), and veto().