CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
reco::isodeposit::AngleConeVeto Class Reference

#include <IsoDepositVetos.h>

Inheritance diagram for reco::isodeposit::AngleConeVeto:
reco::isodeposit::AbsVeto

Public Member Functions

 AngleConeVeto (const math::XYZVectorD &dir, double angle)
 
 AngleConeVeto (Direction dir, double angle)
 
void centerOn (double eta, double phi) override
 
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 cosTheta_
 
math::XYZVectorD vetoDir_
 

Detailed Description

Definition at line 74 of file IsoDepositVetos.h.

Constructor & Destructor Documentation

◆ AngleConeVeto() [1/2]

AngleConeVeto::AngleConeVeto ( const math::XYZVectorD dir,
double  angle 
)

Definition at line 46 of file IsoDepositVetos.cc.

46 : vetoDir_(dir.Unit()), cosTheta_(cos(angle)) {}

◆ AngleConeVeto() [2/2]

AngleConeVeto::AngleConeVeto ( Direction  dir,
double  angle 
)

Definition at line 47 of file IsoDepositVetos.cc.

47  : vetoDir_(0, 0, 1), cosTheta_(cos(angle)) {
48  vetoDir_ = math::RhoEtaPhiVectorD(1, dir.eta(), dir.phi()).Unit();
49 }

References DeadROC_duringRun::dir, and vetoDir_.

Member Function Documentation

◆ centerOn()

void AngleConeVeto::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 54 of file IsoDepositVetos.cc.

54 { vetoDir_ = math::RhoEtaPhiVectorD(1, eta, phi).Unit(); }

References PVValHelper::eta, and vetoDir_.

◆ veto()

bool AngleConeVeto::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 50 of file IsoDepositVetos.cc.

50  {
52  return (vetoDir_.Dot(tmp.Unit()) > cosTheta_);
53 }

References cosTheta_, PVValHelper::eta, createJobs::tmp, and vetoDir_.

Member Data Documentation

◆ cosTheta_

float reco::isodeposit::AngleConeVeto::cosTheta_
private

Definition at line 83 of file IsoDepositVetos.h.

Referenced by veto().

◆ vetoDir_

math::XYZVectorD reco::isodeposit::AngleConeVeto::vetoDir_
private

Definition at line 82 of file IsoDepositVetos.h.

Referenced by AngleConeVeto(), centerOn(), and veto().

reco::isodeposit::AngleConeVeto::vetoDir_
math::XYZVectorD vetoDir_
Definition: IsoDepositVetos.h:82
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
funct::cos
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
reco::isodeposit::AngleConeVeto::cosTheta_
float cosTheta_
Definition: IsoDepositVetos.h:83
PVValHelper::eta
Definition: PVValidationHelpers.h:69
math::RhoEtaPhiVectorD
ROOT::Math::DisplacementVector3D< ROOT::Math::CylindricalEta3D< double > > RhoEtaPhiVectorD
spatial vector with cylindrical internal representation using pseudorapidity
Definition: Vector3D.h:10
angle
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23