CMS 3D CMS Logo

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

#include <IsoDepositVetos.h>

Inheritance diagram for reco::isodeposit::ConeThresholdVeto:
reco::isodeposit::AbsVeto

Public Member Functions

void centerOn (double eta, double phi) override
 
 ConeThresholdVeto (Direction dir, double dr, double threshold)
 
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_
 
float threshold_
 
Direction vetoDir_
 

Detailed Description

Definition at line 61 of file IsoDepositVetos.h.

Constructor & Destructor Documentation

◆ ConeThresholdVeto()

reco::isodeposit::ConeThresholdVeto::ConeThresholdVeto ( Direction  dir,
double  dr,
double  threshold 
)
inline

Definition at line 63 of file IsoDepositVetos.h.

Member Function Documentation

◆ centerOn()

void ConeThresholdVeto::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 42 of file IsoDepositVetos.cc.

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

References PVValHelper::eta, and vetoDir_.

◆ veto()

bool ConeThresholdVeto::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 39 of file IsoDepositVetos.cc.

39  {
40  return (value <= threshold_) || (vetoDir_.deltaR2(Direction(eta, phi)) < dR2_);
41 }

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

Member Data Documentation

◆ dR2_

float reco::isodeposit::ConeThresholdVeto::dR2_
private

Definition at line 70 of file IsoDepositVetos.h.

Referenced by veto().

◆ threshold_

float reco::isodeposit::ConeThresholdVeto::threshold_
private

Definition at line 71 of file IsoDepositVetos.h.

Referenced by veto().

◆ vetoDir_

Direction reco::isodeposit::ConeThresholdVeto::vetoDir_
private

Definition at line 69 of file IsoDepositVetos.h.

Referenced by centerOn(), and veto().

reco::isodeposit::Direction::deltaR2
double deltaR2(const Direction &dir2) const
Definition: IsoDepositDirection.h:46
PVValHelper::eta
Definition: PVValidationHelpers.h:69
reco::isodeposit::ConeThresholdVeto::dR2_
float dR2_
Definition: IsoDepositVetos.h:70
value
Definition: value.py:1
reco::isodeposit::ConeThresholdVeto::threshold_
float threshold_
Definition: IsoDepositVetos.h:71
reco::isodeposit::Direction
Definition: IsoDepositDirection.h:19
flavorHistoryFilter_cfi.dr
dr
Definition: flavorHistoryFilter_cfi.py:37
reco::isodeposit::ConeThresholdVeto::vetoDir_
Direction vetoDir_
Definition: IsoDepositVetos.h:69
remoteMonitoring_LED_IterMethod_cfg.threshold
threshold
Definition: remoteMonitoring_LED_IterMethod_cfg.py:426
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23