CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
reco::isodeposit::ConeVeto Class Reference

#include <IsoDepositVetos.h>

Inheritance diagram for reco::isodeposit::ConeVeto:
reco::isodeposit::AbsVeto

Public Member Functions

void centerOn (double eta, double phi) override
 
 ConeVeto (const reco::IsoDeposit::Veto &veto)
 
 ConeVeto (Direction dir, double dr)
 
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 dR2_
 
Direction vetoDir_
 

Detailed Description

Definition at line 9 of file IsoDepositVetos.h.

Constructor & Destructor Documentation

◆ ConeVeto() [1/2]

reco::isodeposit::ConeVeto::ConeVeto ( Direction  dir,
double  dr 
)
inline

Definition at line 11 of file IsoDepositVetos.h.

11 : vetoDir_(dir), dR2_(dr * dr) {}

◆ ConeVeto() [2/2]

reco::isodeposit::ConeVeto::ConeVeto ( const reco::IsoDeposit::Veto veto)
inline

Definition at line 12 of file IsoDepositVetos.h.

12 : vetoDir_(veto.vetoDir), dR2_(veto.dR * veto.dR) {}

Member Function Documentation

◆ centerOn()

void ConeVeto::centerOn ( double  eta,
double  phi 
)
overridevirtual

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 12 of file IsoDepositVetos.cc.

12 { vetoDir_ = Direction(eta, phi); }

References PVValHelper::eta, and vetoDir_.

◆ veto()

bool ConeVeto::veto ( double  eta,
double  phi,
float  value 
) const
overridevirtual

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 9 of file IsoDepositVetos.cc.

9  {
10  return (vetoDir_.deltaR2(Direction(eta, phi)) < dR2_);
11 }

References reco::isodeposit::Direction::deltaR2(), dR2_, PVValHelper::eta, and vetoDir_.

Member Data Documentation

◆ dR2_

float reco::isodeposit::ConeVeto::dR2_
private

Definition at line 18 of file IsoDepositVetos.h.

Referenced by veto().

◆ vetoDir_

Direction reco::isodeposit::ConeVeto::vetoDir_
private

Definition at line 17 of file IsoDepositVetos.h.

Referenced by centerOn(), and veto().

reco::isodeposit::ConeVeto::veto
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.
Definition: IsoDepositVetos.cc:9
reco::isodeposit::ConeVeto::dR2_
float dR2_
Definition: IsoDepositVetos.h:18
reco::isodeposit::Direction::deltaR2
double deltaR2(const Direction &dir2) const
Definition: IsoDepositDirection.h:46
PVValHelper::eta
Definition: PVValidationHelpers.h:70
reco::isodeposit::ConeVeto::vetoDir_
Direction vetoDir_
Definition: IsoDepositVetos.h:17
reco::isodeposit::Direction
Definition: IsoDepositDirection.h:19
flavorHistoryFilter_cfi.dr
dr
Definition: flavorHistoryFilter_cfi.py:37
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23