ATLAS Offline Software
Loading...
Searching...
No Matches
RegSelROB Class Reference

#include <RegSelROB.h>

Inheritance diagram for RegSelROB:
Collaboration diagram for RegSelROB:

Public Member Functions

 RegSelROB (const RegSelModule *m)
virtual ~RegSelROB ()
void addModule (const RegSelModule *m)
double phiMin () const
double phiMax () const
uint32_t robID () const
unsigned size () const
double etaMin () const
double etaMax () const
virtual bool inRoI (const RegSelRoI &roi) const
double rMin () const
double rMin (double rmin)
double rMax () const
double rMax (double rmax)
double zMin () const
double zMin (double zmin)
double zMax () const
double zMax (double zmax)
double z2Min () const
double z2Min (double zmin)
double z2Max () const
double z2Max (double zmax)
bool enabled () const
bool enable ()
bool disable ()
double _etaMin (double z=0) const
double _etaMax (double z=0) const

Protected Member Functions

double caletaMin ()
double caletaMax ()

Protected Attributes

uint32_t m_robID
double m_phiMin
double m_phiMax
double m_etaMin
double m_etaMax
std::set< const RegSelModule * > m_modules
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 25 of file RegSelROB.h.

Constructor & Destructor Documentation

◆ RegSelROB()

RegSelROB::RegSelROB ( const RegSelModule * m)

Definition at line 18 of file RegSelROB.cxx.

18 {
19 m_robID = m->robID();
20 m_modules.insert(m);
21
22 m_phiMin = m->phiMin();
23 m_phiMax = m->phiMax();
24
25 m_rMax = m->rMax();
26 m_rMin = m->rMin();
27
28 m_zMax = m->zMax();
29 m_zMin = m->zMin();
30
31 m_etaMin = m->_etaMin();
32 m_etaMax = m->_etaMax();
33}
double m_etaMin
Definition RegSelROB.h:57
double m_phiMax
Definition RegSelROB.h:55
double m_etaMax
Definition RegSelROB.h:58
double m_phiMin
Definition RegSelROB.h:54
uint32_t m_robID
Definition RegSelROB.h:52
std::set< const RegSelModule * > m_modules
Definition RegSelROB.h:60
double m_rMin
Definition ZRObject.h:118
double m_zMin
Definition ZRObject.h:119
double m_zMax
Definition ZRObject.h:119
double m_rMax
Definition ZRObject.h:118

◆ ~RegSelROB()

virtual RegSelROB::~RegSelROB ( )
inlinevirtual

Definition at line 31 of file RegSelROB.h.

31{ }

Member Function Documentation

◆ _etaMax()

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

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 }
#define z
double calceta(double r, double z)
Definition ZRObject.h:33
double rMax() const
Definition ZRObject.h:81
double rMin() const
Definition ZRObject.h:80
double zMax() const
Definition ZRObject.h:84
double z2Max() const
Definition ZRObject.h:87
setEt setPhi setE277 setWeta2 eta1

◆ _etaMin()

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

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 }
double z2Min() const
Definition ZRObject.h:86
double zMin() const
Definition ZRObject.h:83

◆ addModule()

void RegSelROB::addModule ( const RegSelModule * m)

Definition at line 36 of file RegSelROB.cxx.

36 {
37 if ( m->robID()==m_robID ) {
38 m_modules.insert(m);
39
40 if ( m->phiMin()<phiMin() ) m_phiMin = m->phiMin();
41 if ( m->phiMax()>phiMax() ) m_phiMax = m->phiMax();
42
43 if ( m->rMax()>rMax() ) m_rMax = m->rMax();
44 if ( m->rMin()<rMin() ) m_rMin = m->rMin();
45
46 if ( m->zMax()>zMax() ) m_zMax = m->zMax();
47 if ( m->zMin()<zMin() ) m_zMin = m->zMin();
48
49 if ( m->_etaMin()<etaMin() ) m_etaMin = m->_etaMin();
50 if ( m->_etaMax()>etaMax() ) m_etaMax = m->_etaMax();
51
52 }
53}
double etaMin() const
Definition RegSelROB.h:42
double phiMax() const
Definition RegSelROB.h:36
double phiMin() const
Definition RegSelROB.h:35
double etaMax() const
Definition RegSelROB.h:43

◆ caletaMax()

double RegSelROB::caletaMax ( )
protected

◆ caletaMin()

double RegSelROB::caletaMin ( )
protected

◆ disable()

bool ZRObject::disable ( )
inlineinherited

Definition at line 100 of file ZRObject.h.

100{ return m_enabled=false; }
bool m_enabled
Definition ZRObject.h:122

◆ enable()

bool ZRObject::enable ( )
inlineinherited

Definition at line 99 of file ZRObject.h.

99{ return m_enabled=true; }

◆ enabled()

bool ZRObject::enabled ( ) const
inlineinherited

Definition at line 98 of file ZRObject.h.

98{ return m_enabled; }

◆ etaMax()

double RegSelROB::etaMax ( ) const
inline

Definition at line 43 of file RegSelROB.h.

43{ return m_etaMax; }

◆ etaMin()

double RegSelROB::etaMin ( ) const
inline

Definition at line 42 of file RegSelROB.h.

42{ return m_etaMin; }

◆ inRoI()

virtual bool ZRObject::inRoI ( const RegSelRoI & roi) const
inlinevirtualinherited

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 }
double getzMin() const
Definition RegSelRoI.h:44
double getzMax() const
Definition RegSelRoI.h:45
bool enabled() const
Definition ZRObject.h:98

◆ phiMax()

double RegSelROB::phiMax ( ) const
inline

Definition at line 36 of file RegSelROB.h.

36{ return m_phiMax; }

◆ phiMin()

double RegSelROB::phiMin ( ) const
inline

Definition at line 35 of file RegSelROB.h.

35{ return m_phiMin; }

◆ rMax() [1/2]

double ZRObject::rMax ( ) const
inlineinherited

Definition at line 81 of file ZRObject.h.

81{ return m_rMax; }

◆ rMax() [2/2]

double ZRObject::rMax ( double rmax)
inlineinherited

Definition at line 90 of file ZRObject.h.

90{ m_rMax = rmax; return m_rMax; }

◆ rMin() [1/2]

double ZRObject::rMin ( ) const
inlineinherited

Definition at line 80 of file ZRObject.h.

80{ return m_rMin; }

◆ rMin() [2/2]

double ZRObject::rMin ( double rmin)
inlineinherited

Definition at line 89 of file ZRObject.h.

89{ m_rMin = rmin; return m_rMin; }

◆ robID()

uint32_t RegSelROB::robID ( ) const
inline

Definition at line 38 of file RegSelROB.h.

38{ return m_robID; }

◆ size()

unsigned RegSelROB::size ( ) const
inline

Definition at line 40 of file RegSelROB.h.

40{ return m_modules.size(); }

◆ z2Max() [1/2]

double ZRObject::z2Max ( ) const
inlineinherited

Definition at line 87 of file ZRObject.h.

87{ return m_z2Max; }
double m_z2Max
Definition ZRObject.h:120

◆ z2Max() [2/2]

double ZRObject::z2Max ( double zmax)
inlineinherited

Definition at line 96 of file ZRObject.h.

◆ z2Min() [1/2]

double ZRObject::z2Min ( ) const
inlineinherited

Definition at line 86 of file ZRObject.h.

86{ return m_z2Min; }
double m_z2Min
Definition ZRObject.h:120

◆ z2Min() [2/2]

double ZRObject::z2Min ( double zmin)
inlineinherited

Definition at line 95 of file ZRObject.h.

◆ zMax() [1/2]

double ZRObject::zMax ( ) const
inlineinherited

Definition at line 84 of file ZRObject.h.

84{ return m_zMax; }

◆ zMax() [2/2]

double ZRObject::zMax ( double zmax)
inlineinherited

Definition at line 93 of file ZRObject.h.

93{ m_zMax = zmax; return m_zMax; }

◆ zMin() [1/2]

double ZRObject::zMin ( ) const
inlineinherited

Definition at line 83 of file ZRObject.h.

83{ return m_zMin; }

◆ zMin() [2/2]

double ZRObject::zMin ( double zmin)
inlineinherited

Definition at line 92 of file ZRObject.h.

92{ m_zMin = zmin; return m_zMin; }

Member Data Documentation

◆ m_enabled

bool ZRObject::m_enabled
protectedinherited

Definition at line 122 of file ZRObject.h.

◆ m_etaMax

double RegSelROB::m_etaMax
protected

Definition at line 58 of file RegSelROB.h.

◆ m_etaMin

double RegSelROB::m_etaMin
protected

Definition at line 57 of file RegSelROB.h.

◆ m_modules

std::set<const RegSelModule*> RegSelROB::m_modules
protected

Definition at line 60 of file RegSelROB.h.

◆ m_phiMax

double RegSelROB::m_phiMax
protected

Definition at line 55 of file RegSelROB.h.

◆ m_phiMin

double RegSelROB::m_phiMin
protected

Definition at line 54 of file RegSelROB.h.

◆ m_rMax

double ZRObject::m_rMax
protectedinherited

Definition at line 118 of file ZRObject.h.

◆ m_rMin

double ZRObject::m_rMin
protectedinherited

Definition at line 118 of file ZRObject.h.

◆ m_robID

uint32_t RegSelROB::m_robID
protected

Definition at line 52 of file RegSelROB.h.

◆ m_z2Max

double ZRObject::m_z2Max
protectedinherited

Definition at line 120 of file ZRObject.h.

◆ m_z2Min

double ZRObject::m_z2Min
protectedinherited

Definition at line 120 of file ZRObject.h.

◆ m_zMax

double ZRObject::m_zMax
protectedinherited

Definition at line 119 of file ZRObject.h.

◆ m_zMin

double ZRObject::m_zMin
protectedinherited

Definition at line 119 of file ZRObject.h.


The documentation for this class was generated from the following files: