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

#include <WaferTree.h>

Inheritance diagram for LayerDisk:
Collaboration diagram for LayerDisk:

Public Member Functions

bool add (int ld, int eta, int phi, int side, Wafer &wafer)
EtaModuleoperator[] (int ld)
int nLayers () const

Public Attributes

keys
 STL member.
elements
 STL member.

Detailed Description

Definition at line 57 of file WaferTree.h.

Member Function Documentation

◆ add()

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

Definition at line 44 of file WaferTree.cxx.

44 {
45 if (count(ld) == 0) {
46 insert(pair<int, EtaModule>(ld, EtaModule()));
47 }
48 if (!(*this)[ld].add(eta, phi, side, wafer)) {
49 errmsg << "; ld = " << ld;
50 return false;
51 }
52 return true;
53}
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
static thread_local std::ostringstream errmsg
Definition WaferTree.h:25
bool add(int ld, int eta, int phi, int side, Wafer &wafer)
Definition WaferTree.cxx:44
int count(std::string s, const std::string &regx)
count how many occurances of a regx are in a string
Definition hcg.cxx:146

◆ nLayers()

int LayerDisk::nLayers ( ) const
inline

Definition at line 61 of file WaferTree.h.

61{return size();}

◆ operator[]()

EtaModule & LayerDisk::operator[] ( int ld)
inline

Definition at line 60 of file WaferTree.h.

60{return at(ld);}

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: