CMS 3D CMS Logo

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

Public Member Functions

void centerOn (double eta, double phi) override
 
 NumCrystalVeto (Direction dir, double iR)
 
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 iR_
 
Direction vetoDir_
 

Detailed Description

Definition at line 25 of file IsoDepositVetoFactory.cc.

Constructor & Destructor Documentation

◆ NumCrystalVeto()

reco::isodeposit::NumCrystalVeto::NumCrystalVeto ( Direction  dir,
double  iR 
)
inline

Definition at line 27 of file IsoDepositVetoFactory.cc.

27 : vetoDir_(dir), iR_(iR) {}

Member Function Documentation

◆ centerOn()

void reco::isodeposit::NumCrystalVeto::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 35 of file IsoDepositVetoFactory.cc.

35 { vetoDir_ = Direction(eta, phi); }

References PVValHelper::eta, and vetoDir_.

◆ veto()

bool reco::isodeposit::NumCrystalVeto::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 28 of file IsoDepositVetoFactory.cc.

28  {
29  if (fabs(vetoDir_.eta()) < 1.479) {
30  return (vetoDir_.deltaR(Direction(eta, phi)) < 0.0174 * iR_);
31  } else {
32  return (vetoDir_.deltaR(Direction(eta, phi)) < 0.00864 * fabs(sinh(eta)) * iR_);
33  }
34  }

References reco::isodeposit::Direction::deltaR(), reco::isodeposit::Direction::eta(), PVValHelper::eta, iR_, and vetoDir_.

Member Data Documentation

◆ iR_

float reco::isodeposit::NumCrystalVeto::iR_
private

Definition at line 39 of file IsoDepositVetoFactory.cc.

Referenced by veto().

◆ vetoDir_

Direction reco::isodeposit::NumCrystalVeto::vetoDir_
private

Definition at line 38 of file IsoDepositVetoFactory.cc.

Referenced by centerOn(), and veto().

reco::isodeposit::Direction::eta
double eta() const
Definition: IsoDepositDirection.h:34
reco::isodeposit::NumCrystalVeto::vetoDir_
Direction vetoDir_
Definition: IsoDepositVetoFactory.cc:38
PVValHelper::eta
Definition: PVValidationHelpers.h:69
reco::isodeposit::Direction::deltaR
double deltaR(const Direction &dir2) const
Definition: IsoDepositDirection.h:47
reco::isodeposit::NumCrystalVeto::iR_
float iR_
Definition: IsoDepositVetoFactory.cc:39
reco::isodeposit::Direction
Definition: IsoDepositDirection.h:19
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23