CMS 3D CMS Logo

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

#include <IsoDepositVetos.h>

Inheritance diagram for reco::isodeposit::AbsThresholdVetoFromTransverse:
reco::isodeposit::AbsVeto

Public Member Functions

 AbsThresholdVetoFromTransverse (double threshold)
 
void centerOn (double eta, double phi) override
 
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 threshold_
 

Detailed Description

Definition at line 51 of file IsoDepositVetos.h.

Constructor & Destructor Documentation

◆ AbsThresholdVetoFromTransverse()

reco::isodeposit::AbsThresholdVetoFromTransverse::AbsThresholdVetoFromTransverse ( double  threshold)
inline

Definition at line 53 of file IsoDepositVetos.h.

Member Function Documentation

◆ centerOn()

void AbsThresholdVetoFromTransverse::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 35 of file IsoDepositVetos.cc.

35 {}

◆ veto()

bool AbsThresholdVetoFromTransverse::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 32 of file IsoDepositVetos.cc.

32  {
33  return (fabs(value / sin(2 * atan(exp(-eta)))) <= threshold_); // convert Et to E
34 }

References PVValHelper::eta, JetChargeProducer_cfi::exp, funct::sin(), and threshold_.

Member Data Documentation

◆ threshold_

float reco::isodeposit::AbsThresholdVetoFromTransverse::threshold_
private

Definition at line 58 of file IsoDepositVetos.h.

Referenced by veto().

funct::sin
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
PVValHelper::eta
Definition: PVValidationHelpers.h:69
reco::isodeposit::AbsThresholdVetoFromTransverse::threshold_
float threshold_
Definition: IsoDepositVetos.h:58
value
Definition: value.py:1
JetChargeProducer_cfi.exp
exp
Definition: JetChargeProducer_cfi.py:6
remoteMonitoring_LED_IterMethod_cfg.threshold
threshold
Definition: remoteMonitoring_LED_IterMethod_cfg.py:426