ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
ZRObject Class Reference

#include <ZRObject.h>

Inheritance diagram for ZRObject:
Collaboration diagram for ZRObject:

Public Member Functions

 ZRObject ()
 
 ZRObject (double rmin, double rmax, double zmin, double zmax)
 
 ZRObject (double rmin, double rmax, double zmin, double zmax, double z2min, double z2max)
 
virtual ~ZRObject ()=default
 
virtual bool inRoI (const RegSelRoI &roi) const
 
double rMin () const
 
double rMax () const
 
double zMin () const
 
double zMax () const
 
double z2Min () const
 
double z2Max () const
 
double rMin (double rmin)
 
double rMax (double rmax)
 
double zMin (double zmin)
 
double zMax (double zmax)
 
double z2Min (double zmin)
 
double z2Max (double zmax)
 
bool enabled () const
 
bool enable ()
 
bool disable ()
 
double _etaMin (double z=0) const
 
double _etaMax (double z=0) const
 

Protected Attributes

double m_rMin
 
double m_rMax
 
double m_zMin
 
double m_zMax
 
double m_z2Min
 
double m_z2Max
 
bool m_enabled
 

Detailed Description

Definition at line 41 of file ZRObject.h.

Constructor & Destructor Documentation

◆ ZRObject() [1/3]

ZRObject::ZRObject ( )
inline

Definition at line 45 of file ZRObject.h.

45  : m_rMin(0), m_rMax(0),
46  m_zMin(0), m_zMax(0),
47  m_z2Min(0), m_z2Max(0), m_enabled(false)
48  { }

◆ ZRObject() [2/3]

ZRObject::ZRObject ( double  rmin,
double  rmax,
double  zmin,
double  zmax 
)
inline

Definition at line 50 of file ZRObject.h.

50  :
51  m_rMin(rmin<rmax?rmin:rmax), m_rMax(rmax>rmin?rmax:rmin),
54  m_enabled(true)
55  { }

◆ ZRObject() [3/3]

ZRObject::ZRObject ( double  rmin,
double  rmax,
double  zmin,
double  zmax,
double  z2min,
double  z2max 
)
inline

Definition at line 57 of file ZRObject.h.

59  :
60  m_rMin(rmin<rmax?rmin:rmax), m_rMax(rmax>rmin?rmax:rmin),
62  m_z2Min(z2min<z2max?z2min:z2max), m_z2Max(z2max>z2min?z2max:z2min),
63  m_enabled(true)
64  { }

◆ ~ZRObject()

virtual ZRObject::~ZRObject ( )
virtualdefault

Member Function Documentation

◆ _etaMax()

double ZRObject::_etaMax ( double  z = 0) const
inline

Definition at line 109 of file ZRObject.h.

109  {
110  double eta1 = calceta( rMin(), zMax()-z);
111  double eta2 = calceta( rMax(), z2Max()-z);
112  if ( eta1>eta2 ) return eta1;
113  else return eta2;
114  }

◆ _etaMin()

double ZRObject::_etaMin ( double  z = 0) const
inline

Definition at line 102 of file ZRObject.h.

102  {
103  double eta1 = calceta( rMin(), zMin()-z);
104  double eta2 = calceta( rMax(), z2Min()-z);
105  if ( eta1<eta2 ) return eta1;
106  else return eta2;
107  }

◆ disable()

bool ZRObject::disable ( )
inline

Definition at line 100 of file ZRObject.h.

100 { return m_enabled=false; }

◆ enable()

bool ZRObject::enable ( )
inline

Definition at line 99 of file ZRObject.h.

99 { return m_enabled=true; }

◆ enabled()

bool ZRObject::enabled ( ) const
inline

Definition at line 98 of file ZRObject.h.

98 { return m_enabled; }

◆ inRoI()

virtual bool ZRObject::inRoI ( const RegSelRoI roi) const
inlinevirtual

Reimplemented in RegSelModule.

Definition at line 71 of file ZRObject.h.

71  {
72  if ( !enabled() ) return false;
73  if ( (roi.getzMax(rMin())<zMin() && roi.getzMax(rMax())<z2Min()) ||
74  (roi.getzMin(rMin())>zMax() && roi.getzMin(rMax())>z2Max()) ) {
75  return false;
76  }
77  return true;
78  }

◆ rMax() [1/2]

double ZRObject::rMax ( ) const
inline

Definition at line 81 of file ZRObject.h.

81 { return m_rMax; }

◆ rMax() [2/2]

double ZRObject::rMax ( double  rmax)
inline

Definition at line 90 of file ZRObject.h.

90 { m_rMax = rmax; return m_rMax; }

◆ rMin() [1/2]

double ZRObject::rMin ( ) const
inline

Definition at line 80 of file ZRObject.h.

80 { return m_rMin; }

◆ rMin() [2/2]

double ZRObject::rMin ( double  rmin)
inline

Definition at line 89 of file ZRObject.h.

89 { m_rMin = rmin; return m_rMin; }

◆ z2Max() [1/2]

double ZRObject::z2Max ( ) const
inline

Definition at line 87 of file ZRObject.h.

87 { return m_z2Max; }

◆ z2Max() [2/2]

double ZRObject::z2Max ( double  zmax)
inline

Definition at line 96 of file ZRObject.h.

96 { m_z2Max = zmax; return m_z2Max; }

◆ z2Min() [1/2]

double ZRObject::z2Min ( ) const
inline

Definition at line 86 of file ZRObject.h.

86 { return m_z2Min; }

◆ z2Min() [2/2]

double ZRObject::z2Min ( double  zmin)
inline

Definition at line 95 of file ZRObject.h.

95 { m_z2Min = zmin; return m_z2Min; }

◆ zMax() [1/2]

double ZRObject::zMax ( ) const
inline

Definition at line 84 of file ZRObject.h.

84 { return m_zMax; }

◆ zMax() [2/2]

double ZRObject::zMax ( double  zmax)
inline

Definition at line 93 of file ZRObject.h.

93 { m_zMax = zmax; return m_zMax; }

◆ zMin() [1/2]

double ZRObject::zMin ( ) const
inline

Definition at line 83 of file ZRObject.h.

83 { return m_zMin; }

◆ zMin() [2/2]

double ZRObject::zMin ( double  zmin)
inline

Definition at line 92 of file ZRObject.h.

92 { m_zMin = zmin; return m_zMin; }

Member Data Documentation

◆ m_enabled

bool ZRObject::m_enabled
protected

Definition at line 122 of file ZRObject.h.

◆ m_rMax

double ZRObject::m_rMax
protected

Definition at line 118 of file ZRObject.h.

◆ m_rMin

double ZRObject::m_rMin
protected

Definition at line 118 of file ZRObject.h.

◆ m_z2Max

double ZRObject::m_z2Max
protected

Definition at line 120 of file ZRObject.h.

◆ m_z2Min

double ZRObject::m_z2Min
protected

Definition at line 120 of file ZRObject.h.

◆ m_zMax

double ZRObject::m_zMax
protected

Definition at line 119 of file ZRObject.h.

◆ m_zMin

double ZRObject::m_zMin
protected

Definition at line 119 of file ZRObject.h.


The documentation for this class was generated from the following file:
ZRObject::z2Min
double z2Min() const
Definition: ZRObject.h:86
ParticleGun_SamplingFraction.eta2
eta2
Definition: ParticleGun_SamplingFraction.py:96
PixelAthClusterMonAlgCfg.zmin
zmin
Definition: PixelAthClusterMonAlgCfg.py:169
ZRObject::m_zMax
double m_zMax
Definition: ZRObject.h:119
ZRObject::m_z2Max
double m_z2Max
Definition: ZRObject.h:120
ZRObject::m_enabled
bool m_enabled
Definition: ZRObject.h:122
xAOD::eta1
setEt setPhi setE277 setWeta2 eta1
Definition: TrigEMCluster_v1.cxx:41
ZRObject::rMin
double rMin() const
Definition: ZRObject.h:80
calceta
double calceta(double r, double z)
Definition: ZRObject.h:33
ZRObject::rMax
double rMax() const
Definition: ZRObject.h:81
ZRObject::m_rMax
double m_rMax
Definition: ZRObject.h:118
ZRObject::zMin
double zMin() const
Definition: ZRObject.h:83
z
#define z
PixelAthClusterMonAlgCfg.zmax
zmax
Definition: PixelAthClusterMonAlgCfg.py:169
RegSelRoI::getzMax
double getzMax() const
Definition: RegSelRoI.h:60
ZRObject::m_z2Min
double m_z2Min
Definition: ZRObject.h:120
RegSelRoI::getzMin
double getzMin() const
Definition: RegSelRoI.h:59
ZRObject::z2Max
double z2Max() const
Definition: ZRObject.h:87
ZRObject::zMax
double zMax() const
Definition: ZRObject.h:84
ZRObject::m_zMin
double m_zMin
Definition: ZRObject.h:119
ZRObject::m_rMin
double m_rMin
Definition: ZRObject.h:118
ZRObject::enabled
bool enabled() const
Definition: ZRObject.h:98