CMS 3D CMS Logo

Public Member Functions | Private Attributes

reco::isodeposit::AngleConeVeto Class Reference

#include <IsoDepositVetos.h>

Inheritance diagram for reco::isodeposit::AngleConeVeto:
reco::isodeposit::AbsVeto

List of all members.

Public Member Functions

 AngleConeVeto (math::XYZVectorD dir, double angle)
 AngleConeVeto (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

float cosTheta_
math::XYZVectorD vetoDir_

Detailed Description

Definition at line 64 of file IsoDepositVetos.h.


Constructor & Destructor Documentation

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

Definition at line 54 of file IsoDepositVetos.cc.

                                                             : vetoDir_(dir.Unit()), cosTheta_(cos(angle)) {
}
AngleConeVeto::AngleConeVeto ( Direction  dir,
double  angle 
)

Member Function Documentation

void AngleConeVeto::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 63 of file IsoDepositVetos.cc.

References vetoDir_.

                                                   { 
        vetoDir_ = math::RhoEtaPhiVectorD(1, eta, phi).Unit(); 
}
bool AngleConeVeto::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 59 of file IsoDepositVetos.cc.

References cosTheta_, tmp, and vetoDir_.

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

Member Data Documentation

Definition at line 71 of file IsoDepositVetos.h.

Referenced by veto().

Definition at line 71 of file IsoDepositVetos.h.

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