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

#include <WaferTree.h>

Inheritance diagram for PhiModule:
Collaboration diagram for PhiModule:

Public Member Functions

bool add (int phi, int side, Wafer &wafer)
Sideoperator[] (int phi)
int nPhiModules () const

Public Attributes

keys
 STL member.
elements
 STL member.

Detailed Description

Definition at line 43 of file WaferTree.h.

Member Function Documentation

◆ add()

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

Definition at line 22 of file WaferTree.cxx.

22 {
23 if (count(phi) == 0) {
24 insert(pair<int, Side>(phi, Side()));
25 }
26 if (!(*this)[phi].add(side, wafer)) {
27 errmsg << "; phi = " << phi;
28 return false;
29 }
30 return true;
31}
Scalar phi() const
phi method
static thread_local std::ostringstream errmsg
Definition WaferTree.h:25
bool add(int phi, int side, Wafer &wafer)
Definition WaferTree.cxx:22
int count(std::string s, const std::string &regx)
count how many occurances of a regx are in a string
Definition hcg.cxx:146

◆ nPhiModules()

int PhiModule::nPhiModules ( ) const
inline

Definition at line 47 of file WaferTree.h.

47{return size();}

◆ operator[]()

Side & PhiModule::operator[] ( int phi)
inline

Definition at line 46 of file WaferTree.h.

46{return at(phi);}

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: