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

#include <WaferTree.h>

Inheritance diagram for EtaModule:
Collaboration diagram for EtaModule:

Public Member Functions

bool add (int eta, int phi, int side, Wafer &wafer)
PhiModuleoperator[] (int eta)
int nEtaModules () const

Public Attributes

keys
 STL member.
elements
 STL member.

Detailed Description

Definition at line 50 of file WaferTree.h.

Member Function Documentation

◆ add()

bool EtaModule::add ( int eta,
int phi,
int side,
Wafer & wafer )

Definition at line 33 of file WaferTree.cxx.

33 {
34 if (count(eta) == 0) {
35 insert(pair<int, PhiModule>(eta, PhiModule()));
36 }
37 if (!(*this)[eta].add(phi, side, wafer)) {
38 errmsg << "; eta = " << eta;
39 return false;
40 }
41 return true;
42}
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
static thread_local std::ostringstream errmsg
Definition WaferTree.h:25
bool add(int eta, int phi, int side, Wafer &wafer)
Definition WaferTree.cxx:33
int count(std::string s, const std::string &regx)
count how many occurances of a regx are in a string
Definition hcg.cxx:146

◆ nEtaModules()

int EtaModule::nEtaModules ( ) const
inline

Definition at line 54 of file WaferTree.h.

54{return size();}

◆ operator[]()

PhiModule & EtaModule::operator[] ( int eta)
inline

Definition at line 53 of file WaferTree.h.

53{return at(eta);}

Member Data Documentation

◆ elements

T std::map< K, T >::elements
inherited

STL member.

◆ keys

K std::map< K, T >::keys
inherited

STL member.


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