CMS 3D CMS Logo

Public Member Functions | Private Attributes

reco::isodeposit::ThresholdVetoFromTransverse Class Reference

#include <IsoDepositVetos.h>

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

List of all members.

Public Member Functions

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

Private Attributes

float threshold_

Detailed Description

Definition at line 28 of file IsoDepositVetos.h.


Constructor & Destructor Documentation

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

Definition at line 30 of file IsoDepositVetos.h.


Member Function Documentation

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

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

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

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

Member Data Documentation

Definition at line 34 of file IsoDepositVetos.h.

Referenced by veto().