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::AbsThresholdVetoFromTransverse Class Reference

#include <IsoDepositVetos.h>

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

Public Member Functions

 AbsThresholdVetoFromTransverse (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 46 of file IsoDepositVetos.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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

41 { }
bool AbsThresholdVetoFromTransverse::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 38 of file IsoDepositVetos.cc.

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

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

Member Data Documentation

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

Definition at line 52 of file IsoDepositVetos.h.

Referenced by veto().