![]() |
ATLAS Offline Software
|
#include <TgcReadoutParams.h>
Public Types | |
enum | TgcReadoutArraySizes { MaxNGaps = 3, MaxNGangs = 180, MaxNStrips = 33 } |
using | GasGapIntArray = std::array< int, MaxNGaps > |
using | GasGapFloatArray = std::array< double, MaxNGaps > |
using | WiregangArray = std::array< int, MaxNGangs > |
using | StripArray = std::array< double, MaxNStrips > |
Public Member Functions | |
TgcReadoutParams () | |
Default constructor used by the MuonTPCnv tests. More... | |
TgcReadoutParams (const std::string &name, int iCh, double WireSp, const int NCHRNG, GasGapIntArray &&numWireGangs, WiregangArray &&IWGS1, WiregangArray &&IWGS2, WiregangArray &&IWGS3, double PDIST, std::vector< StripArray > &&SLARGE, std::vector< StripArray > &&SSHORT, GasGapIntArray &&numStrips) | |
Constructor implementing the strip layout per gasGap. More... | |
~TgcReadoutParams () | |
const std::string & | GetName () const |
int | chamberType () const |
int | nPhiChambers () const |
int | nGaps () const |
double | wirePitch () const |
Returns the wire pitch. More... | |
double | gangThickness () const |
int | nWireGangs (int gasGap) const |
Returns the number of wire gangs. More... | |
int | totalWires (int gasGap) const |
Returns the total number of wires in a given gang. More... | |
int | nWires (int gasGap, int gang) const |
Returns the number of wires in a given gang. More... | |
int | nSummedWires (int gasGap, int gang) const |
Returns the sum of all wires from gang [1 - i) More... | |
double | nPitchesToGang (int gasGap, int gang) const |
Returns the number of wire pitches that have to be travelled to reach gang i. More... | |
double | stripThickness () const |
int | nStrips (int gasGap) const |
double | physicalDistanceFromBase () const |
double | stripPositionOnLargeBase (int strip, int gasGap) const |
Returns the signed distance of the i-th's strip's left edge w.r.t the center of the bottom chamber edge. More... | |
double | stripPositionOnShortBase (int strip, int gasGap) const |
Returns the signed distance of the i-th's strip's left edge w.r.t. More... | |
double | stripCenter (int strip, int gasGap) const |
Returns the signed distance along the chamber edge of the strip expressed at the chamber center. More... | |
int | nStripLayers () const |
Returns the number of defined strip layers. More... | |
bool | msgLvl (const MSG::Level lvl) const |
Test the output level. More... | |
MsgStream & | msg () const |
The standard message stream. More... | |
MsgStream & | msg (const MSG::Level lvl) const |
The standard message stream. More... | |
void | setLevel (MSG::Level lvl) |
Change the current logging level. More... | |
Private Member Functions | |
bool | invalidGasGap (int gasGap) const |
bool | invalidGang (int gang) const |
void | initMessaging () const |
Initialize our message level and MessageSvc. More... | |
Private Attributes | |
std::string | m_chamberName {} |
int | m_chamberType {0} |
double | m_wirePitch {0.} |
int | m_nPhiChambers {0} |
std::array< std::vector< int >, MaxNGaps > | m_nWires {} |
Map of number of wires in a given wire gang & gas gap. More... | |
std::array< std::vector< int >, MaxNGaps > | m_nAccWires {} |
Map describing the number of all wires up to gang i in gasgap j. More... | |
GasGapIntArray | m_nStrips {make_array<int, MaxNGaps>(0)} |
GasGapIntArray | m_totalWires {make_array<int, MaxNGaps>(0)} |
double | m_physicalDistanceFromBase {-9999.} |
std::vector< StripArray > | m_stripPositionOnLargeBase {} |
These 2 arrays represent the left edges of the i-th strip in a Tgc chamber The numbers are given as the signed distance along the chamber edge measured from the center of the top edge (Large base) or of the bottom edge (Short base) More... | |
std::vector< StripArray > | m_stripPositionOnShortBase {} |
std::vector< StripArray > | m_stripPositionCenter {} |
The position of the strip center is defined as the intersector of the large and short edge strip position values. More... | |
std::string | m_nm |
Message source name. More... | |
boost::thread_specific_ptr< MsgStream > | m_msg_tls |
MsgStream instance (a std::cout like with print-out levels) More... | |
std::atomic< IMessageSvc * > | m_imsg { nullptr } |
MessageSvc pointer. More... | |
std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
Current logging level. More... | |
std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
Messaging initialized (initMessaging) More... | |
Static Private Attributes | |
static constexpr double | m_gangThickness = 0.05 * Gaudi::Units::mm |
static constexpr double | m_stripThickness = 0.03 * Gaudi::Units::mm |
Definition at line 38 of file TgcReadoutParams.h.
using MuonGM::TgcReadoutParams::GasGapFloatArray = std::array<double, MaxNGaps> |
Definition at line 44 of file TgcReadoutParams.h.
using MuonGM::TgcReadoutParams::GasGapIntArray = std::array<int, MaxNGaps> |
Definition at line 43 of file TgcReadoutParams.h.
using MuonGM::TgcReadoutParams::StripArray = std::array<double, MaxNStrips> |
Definition at line 46 of file TgcReadoutParams.h.
using MuonGM::TgcReadoutParams::WiregangArray = std::array<int, MaxNGangs> |
Definition at line 45 of file TgcReadoutParams.h.
MuonGM::TgcReadoutParams::TgcReadoutParams | ( | ) |
Default constructor used by the MuonTPCnv tests.
Definition at line 11 of file TgcReadoutParams.cxx.
MuonGM::TgcReadoutParams::TgcReadoutParams | ( | const std::string & | name, |
int | iCh, | ||
double | WireSp, | ||
const int | NCHRNG, | ||
GasGapIntArray && | numWireGangs, | ||
WiregangArray && | IWGS1, | ||
WiregangArray && | IWGS2, | ||
WiregangArray && | IWGS3, | ||
double | PDIST, | ||
std::vector< StripArray > && | SLARGE, | ||
std::vector< StripArray > && | SSHORT, | ||
GasGapIntArray && | numStrips | ||
) |
Constructor implementing the strip layout per gasGap.
name | Name of the chamber type |
iCh | Chamber type index |
WireSp | Wire pitch |
NCHRNG | Number of phi sectors |
numWireGangs | Number of wire gangs in each gas gap |
IWGS1 | Number of wires in each gang in gas gap 1 |
IWGS2 | Number of wires in each gang in gas gap 2 |
IWGS3 | Number of wires in each gang in gas gap 3 |
PDIST | Distance of the strip frame to the bottom of the chamber |
SLARGE | Position of each strip mounting point on the top of the frame |
SSHORT | Position of each strip mounting point on the bottom of the frame |
numStrip | Array representing the number of strips in each gasgap |
Position of the left strip's left edge at the chamber chamber center + the one of the
right edge
Definition at line 13 of file TgcReadoutParams.cxx.
|
default |
int MuonGM::TgcReadoutParams::chamberType | ( | ) | const |
Definition at line 80 of file TgcReadoutParams.cxx.
|
inline |
Definition at line 147 of file TgcReadoutParams.h.
|
inline |
Definition at line 149 of file TgcReadoutParams.h.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
inlineprivate |
Definition at line 141 of file TgcReadoutParams.h.
|
inlineprivate |
Definition at line 140 of file TgcReadoutParams.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 164 of file AthMessaging.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 179 of file AthMessaging.h.
|
inlineinherited |
Test the output level.
lvl | The message level to test against |
true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
int MuonGM::TgcReadoutParams::nGaps | ( | ) | const |
Definition at line 82 of file TgcReadoutParams.cxx.
int MuonGM::TgcReadoutParams::nPhiChambers | ( | ) | const |
Definition at line 81 of file TgcReadoutParams.cxx.
double MuonGM::TgcReadoutParams::nPitchesToGang | ( | int | gasGap, |
int | gang | ||
) | const |
Returns the number of wire pitches that have to be travelled to reach gang i.
Definition at line 112 of file TgcReadoutParams.cxx.
|
inline |
int MuonGM::TgcReadoutParams::nStrips | ( | int | gasGap | ) | const |
Definition at line 122 of file TgcReadoutParams.cxx.
int MuonGM::TgcReadoutParams::nSummedWires | ( | int | gasGap, |
int | gang | ||
) | const |
int MuonGM::TgcReadoutParams::nWireGangs | ( | int | gasGap | ) | const |
int MuonGM::TgcReadoutParams::nWires | ( | int | gasGap, |
int | gang | ||
) | const |
double MuonGM::TgcReadoutParams::physicalDistanceFromBase | ( | ) | const |
Definition at line 128 of file TgcReadoutParams.cxx.
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
double MuonGM::TgcReadoutParams::stripCenter | ( | int | strip, |
int | gasGap | ||
) | const |
Returns the signed distance along the chamber edge of the strip expressed at the chamber center.
Definition at line 163 of file TgcReadoutParams.cxx.
double MuonGM::TgcReadoutParams::stripPositionOnLargeBase | ( | int | strip, |
int | gasGap | ||
) | const |
Returns the signed distance of the i-th's strip's left edge w.r.t the center of the bottom chamber edge.
Definition at line 130 of file TgcReadoutParams.cxx.
double MuonGM::TgcReadoutParams::stripPositionOnShortBase | ( | int | strip, |
int | gasGap | ||
) | const |
Returns the signed distance of the i-th's strip's left edge w.r.t.
the center of the top chamber edge
Definition at line 146 of file TgcReadoutParams.cxx.
|
inline |
Definition at line 146 of file TgcReadoutParams.h.
int MuonGM::TgcReadoutParams::totalWires | ( | int | gasGap | ) | const |
Returns the total number of wires in a given gang.
Definition at line 93 of file TgcReadoutParams.cxx.
double MuonGM::TgcReadoutParams::wirePitch | ( | ) | const |
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
private |
Definition at line 115 of file TgcReadoutParams.h.
|
private |
Definition at line 116 of file TgcReadoutParams.h.
|
staticconstexprprivate |
Definition at line 143 of file TgcReadoutParams.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
mutableprivateinherited |
Current logging level.
Definition at line 138 of file AthMessaging.h.
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
private |
Map describing the number of all wires up to gang i in gasgap j.
Definition at line 123 of file TgcReadoutParams.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
private |
Definition at line 118 of file TgcReadoutParams.h.
|
private |
Definition at line 125 of file TgcReadoutParams.h.
|
private |
Map of number of wires in a given wire gang & gas gap.
Definition at line 121 of file TgcReadoutParams.h.
|
private |
Definition at line 130 of file TgcReadoutParams.h.
|
private |
The position of the strip center is defined as the intersector of the large and short edge strip position values.
Definition at line 138 of file TgcReadoutParams.h.
|
private |
These 2 arrays represent the left edges of the i-th strip in a Tgc chamber The numbers are given as the signed distance along the chamber edge measured from the center of the top edge (Large base) or of the bottom edge (Short base)
Definition at line 134 of file TgcReadoutParams.h.
|
private |
Definition at line 135 of file TgcReadoutParams.h.
|
staticconstexprprivate |
Definition at line 144 of file TgcReadoutParams.h.
|
private |
Definition at line 126 of file TgcReadoutParams.h.
|
private |
Definition at line 117 of file TgcReadoutParams.h.