CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
reco::isodeposit::SwitchingEcalVeto Class Reference
Inheritance diagram for reco::isodeposit::SwitchingEcalVeto:
reco::isodeposit::AbsVeto

Public Member Functions

void centerOn (double eta, double phi) override
 
 SwitchingEcalVeto (AbsVeto *veto, bool isBarrel)
 
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

bool barrel_
 
std::unique_ptr< AbsVetoveto_
 

Detailed Description

Definition at line 11 of file IsoDepositVetoFactory.cc.

Constructor & Destructor Documentation

◆ SwitchingEcalVeto()

reco::isodeposit::SwitchingEcalVeto::SwitchingEcalVeto ( AbsVeto veto,
bool  isBarrel 
)
inline

Definition at line 14 of file IsoDepositVetoFactory.cc.

14 : veto_(veto), barrel_(isBarrel) {}

Member Function Documentation

◆ centerOn()

void reco::isodeposit::SwitchingEcalVeto::centerOn ( double  eta,
double  phi 
)
inlineoverridevirtual

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 18 of file IsoDepositVetoFactory.cc.

18 { veto_->centerOn(eta, phi); }

References PVValHelper::eta, and veto_.

◆ veto()

bool reco::isodeposit::SwitchingEcalVeto::veto ( double  eta,
double  phi,
float  value 
) const
inlineoverridevirtual

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 15 of file IsoDepositVetoFactory.cc.

15  {
16  return (fabs(eta) < 1.479) == (barrel_) ? veto_->veto(eta, phi, value) : false;
17  }

References barrel_, PVValHelper::eta, and veto_.

Member Data Documentation

◆ barrel_

bool reco::isodeposit::SwitchingEcalVeto::barrel_
private

Definition at line 22 of file IsoDepositVetoFactory.cc.

Referenced by veto().

◆ veto_

std::unique_ptr<AbsVeto> reco::isodeposit::SwitchingEcalVeto::veto_
private

Definition at line 21 of file IsoDepositVetoFactory.cc.

Referenced by centerOn(), and veto().

reco::isodeposit::SwitchingEcalVeto::veto_
std::unique_ptr< AbsVeto > veto_
Definition: IsoDepositVetoFactory.cc:21
PVValHelper::eta
Definition: PVValidationHelpers.h:69
PixelPluginsPhase0_cfi.isBarrel
isBarrel
Definition: PixelPluginsPhase0_cfi.py:17
reco::isodeposit::SwitchingEcalVeto::veto
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.
Definition: IsoDepositVetoFactory.cc:15
reco::isodeposit::SwitchingEcalVeto::barrel_
bool barrel_
Definition: IsoDepositVetoFactory.cc:22
value
Definition: value.py:1