CMS 3D CMS Logo

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

#include <IsoDepositVetos.h>

Inheritance diagram for reco::isodeposit::AbsThresholdVeto:
reco::isodeposit::AbsVeto

Public Member Functions

 AbsThresholdVeto (double threshold)
 
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. More...
 
- Public Member Functions inherited from reco::isodeposit::AbsVeto
virtual ~AbsVeto ()
 

Private Attributes

float threshold_
 

Detailed Description

Definition at line 37 of file IsoDepositVetos.h.

Constructor & Destructor Documentation

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

Member Function Documentation

void AbsThresholdVeto::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 34 of file IsoDepositVetos.cc.

34 { }
bool AbsThresholdVeto::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 31 of file IsoDepositVetos.cc.

31  {
32  return ( fabs(value) <= threshold_);
33 }
Definition: value.py:1

Member Data Documentation

float reco::isodeposit::AbsThresholdVeto::threshold_
private

Definition at line 43 of file IsoDepositVetos.h.