CMS 3D CMS Logo

Public Member Functions | Private Attributes

reco::isodeposit::AngleCone Class Reference

#include <IsoDepositVetos.h>

Inheritance diagram for reco::isodeposit::AngleCone:
reco::isodeposit::AbsVeto

List of all members.

Public Member Functions

 AngleCone (math::XYZVectorD dir, double angle)
 AngleCone (Direction dir, double angle)
virtual void centerOn (double eta, double phi)
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

math::XYZVectorD coneDir_
float cosTheta_

Detailed Description

Definition at line 74 of file IsoDepositVetos.h.


Constructor & Destructor Documentation

AngleCone::AngleCone ( math::XYZVectorD  dir,
double  angle 
)

Definition at line 69 of file IsoDepositVetos.cc.

                                                     : coneDir_(dir.Unit()), cosTheta_(cos(angle)) {
}
AngleCone::AngleCone ( Direction  dir,
double  angle 
)

Member Function Documentation

void AngleCone::centerOn ( double  eta,
double  phi 
) [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 78 of file IsoDepositVetos.cc.

References coneDir_.

                                               { 
        coneDir_ = math::RhoEtaPhiVectorD(1, eta, phi).Unit(); 
}
bool AngleCone::veto ( double  eta,
double  phi,
float  value 
) const [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 74 of file IsoDepositVetos.cc.

References coneDir_, cosTheta_, and tmp.

                                                              {
    math::RhoEtaPhiVectorD tmp(1, eta, phi); 
    return ( coneDir_.Dot(tmp.Unit()) < cosTheta_ );
}

Member Data Documentation

Definition at line 81 of file IsoDepositVetos.h.

Referenced by AngleCone(), centerOn(), and veto().

Definition at line 81 of file IsoDepositVetos.h.

Referenced by veto().