test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
reco::isodeposit::ThresholdVeto Class Reference

#include <IsoDepositVetos.h>

Inheritance diagram for reco::isodeposit::ThresholdVeto:
reco::isodeposit::AbsVeto

Public Member Functions

virtual void centerOn (double eta, double phi)
 
 ThresholdVeto (double threshold)
 
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 19 of file IsoDepositVetos.h.

Constructor & Destructor Documentation

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

Definition at line 21 of file IsoDepositVetos.h.

Member Function Documentation

void ThresholdVeto::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 20 of file IsoDepositVetos.cc.

20 { }
bool ThresholdVeto::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 17 of file IsoDepositVetos.cc.

References threshold_.

17  {
18  return (value <= threshold_);
19 }

Member Data Documentation

float reco::isodeposit::ThresholdVeto::threshold_
private

Definition at line 25 of file IsoDepositVetos.h.

Referenced by veto().