CMS 3D CMS Logo

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

#include <IsoDepositVetos.h>

Inheritance diagram for reco::isodeposit::ThresholdVetoFromTransverse:
reco::isodeposit::AbsVeto

Public Member Functions

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

Detailed Description

Definition at line 31 of file IsoDepositVetos.h.

Constructor & Destructor Documentation

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

Member Function Documentation

void ThresholdVetoFromTransverse::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 23 of file IsoDepositVetos.cc.

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

References funct::exp(), funct::sin(), and threshold_.

20  {
21  return (value / sin(2 * atan(exp(-eta))) <= threshold_); // convert Et to E
22 }
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
Exp< T >::type exp(const T &t)
Definition: Exp.h:22

Member Data Documentation

float reco::isodeposit::ThresholdVetoFromTransverse::threshold_
private

Definition at line 38 of file IsoDepositVetos.h.

Referenced by veto().