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

#include <WaferTree.h>

Inheritance diagram for BarrelEndcap:
Collaboration diagram for BarrelEndcap:

Public Member Functions

bool add (int bec, int ld, int eta, int phi, int side, Wafer &wafer, std::string &errorMessage)
 
bool add (int bec, int ld, int eta, int phi, Wafer &wafer, std::string &errorMessage)
 
LayerDiskoperator[] (int bec)
 
int nParts () const
 

Public Attributes

keys
 STL member. More...
 
elements
 STL member. More...
 

Detailed Description

Definition at line 64 of file WaferTree.h.

Member Function Documentation

◆ add() [1/2]

bool BarrelEndcap::add ( int  bec,
int  ld,
int  eta,
int  phi,
int  side,
Wafer wafer,
std::string &  errorMessage 
)

Definition at line 55 of file WaferTree.cxx.

55  {
56  errorMessage = "";
57  errmsg.str("");
58  errmsg.str().clear();
59  if (count(bec) == 0) {
60  insert(pair<int, LayerDisk>(bec, LayerDisk()));
61  }
62  if (!(*this)[bec].add(ld, eta, phi, side, wafer)) {
63  errmsg << "; bec = " << bec;
64  errorMessage = errmsg.str();
65  return false;
66  }
67  return true;
68 }

◆ add() [2/2]

bool BarrelEndcap::add ( int  bec,
int  ld,
int  eta,
int  phi,
Wafer wafer,
std::string &  errorMessage 
)

Definition at line 71 of file WaferTree.cxx.

71  {
72  return add(bec,ld,eta,phi,0,wafer,errorMessage);
73 }

◆ nParts()

int BarrelEndcap::nParts ( ) const
inline

Definition at line 69 of file WaferTree.h.

69 {return size();}

◆ operator[]()

LayerDisk& BarrelEndcap::operator[] ( int  bec)
inline

Definition at line 68 of file WaferTree.h.

68 {return at(bec);}

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:
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
ParticleGun_SamplingFraction.bec
int bec
Definition: ParticleGun_SamplingFraction.py:89
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
XMLtoHeader.count
count
Definition: XMLtoHeader.py:85
TRT::Hit::side
@ side
Definition: HitInfo.h:83
TrigJetMonitorAlgorithm.errmsg
errmsg
Definition: TrigJetMonitorAlgorithm.py:90
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
LayerDisk
Definition: WaferTree.h:57
BarrelEndcap::add
bool add(int bec, int ld, int eta, int phi, int side, Wafer &wafer, std::string &errorMessage)
Definition: WaferTree.cxx:55
geometry_dat_to_json.ld
ld
Definition: geometry_dat_to_json.py:32