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 () | |
Constructor not setting any parameters. More... | |
TgcReadoutParams (const std::string &name, int iCh, int Version, double WireSp, const int NCHRNG, GasGapIntArray &&numWireGangs, WiregangArray &&IWGS1, WiregangArray &&IWGS2, WiregangArray &&IWGS3, GasGapIntArray &&numStrips) | |
TgcReadoutParams (const std::string &name, int iCh, int Version, double WireSp, const int NCHRNG, GasGapIntArray &&numWireGangs, WiregangArray &&IWGS1, WiregangArray &&IWGS2, WiregangArray &&IWGS3, double PDIST, StripArray &&SLARGE, StripArray &&SSHORT, GasGapIntArray &&numStrips) | |
~TgcReadoutParams () | |
const std::string & | GetName () const |
int | chamberType () const |
int | readoutVersion () 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) 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) const |
Returns the signed distance of the i-th's strip's left edge w.r.t. More... | |
double | stripCenter (int strip) const |
Returns the signed distance along the chamber edge of the strip expressed at the chamber center. 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} |
int | m_readoutVersion {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.} |
StripArray | m_stripPositionOnLargeBase {make_array<double, MaxNStrips>(0)} |
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... | |
StripArray | m_stripPositionOnShortBase {make_array<double, MaxNStrips>(0)} |
StripArray | m_stripPositionCenter {make_array<double, MaxNStrips>(0)} |
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 | ( | ) |
MuonGM::TgcReadoutParams::TgcReadoutParams | ( | const std::string & | name, |
int | iCh, | ||
int | Version, | ||
double | WireSp, | ||
const int | NCHRNG, | ||
GasGapIntArray && | numWireGangs, | ||
WiregangArray && | IWGS1, | ||
WiregangArray && | IWGS2, | ||
WiregangArray && | IWGS3, | ||
GasGapIntArray && | numStrips | ||
) |
Definition at line 22 of file TgcReadoutParams.cxx.
MuonGM::TgcReadoutParams::TgcReadoutParams | ( | const std::string & | name, |
int | iCh, | ||
int | Version, | ||
double | WireSp, | ||
const int | NCHRNG, | ||
GasGapIntArray && | numWireGangs, | ||
WiregangArray && | IWGS1, | ||
WiregangArray && | IWGS2, | ||
WiregangArray && | IWGS3, | ||
double | PDIST, | ||
StripArray && | SLARGE, | ||
StripArray && | SSHORT, | ||
GasGapIntArray && | numStrips | ||
) |
Position of the left strip's left edge at the chamber chamber center + the one of the right edge
Definition at line 68 of file TgcReadoutParams.cxx.
|
default |
int MuonGM::TgcReadoutParams::chamberType | ( | ) | const |
Definition at line 101 of file TgcReadoutParams.cxx.
|
inline |
Definition at line 150 of file TgcReadoutParams.h.
|
inline |
Definition at line 152 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 144 of file TgcReadoutParams.h.
|
inlineprivate |
Definition at line 143 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 104 of file TgcReadoutParams.cxx.
int MuonGM::TgcReadoutParams::nPhiChambers | ( | ) | const |
Definition at line 103 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 138 of file TgcReadoutParams.cxx.
int MuonGM::TgcReadoutParams::nStrips | ( | int | gasGap | ) | const |
Definition at line 149 of file TgcReadoutParams.cxx.
int MuonGM::TgcReadoutParams::nSummedWires | ( | int | gasGap, |
int | gang | ||
) | const |
Returns the sum of all wires from gang [1 - i)
Definition at line 131 of file TgcReadoutParams.cxx.
int MuonGM::TgcReadoutParams::nWireGangs | ( | int | gasGap | ) | const |
Returns the number of wire gangs.
Definition at line 108 of file TgcReadoutParams.cxx.
int MuonGM::TgcReadoutParams::nWires | ( | int | gasGap, |
int | gang | ||
) | const |
Returns the number of wires in a given gang.
Definition at line 124 of file TgcReadoutParams.cxx.
double MuonGM::TgcReadoutParams::physicalDistanceFromBase | ( | ) | const |
Definition at line 156 of file TgcReadoutParams.cxx.
int MuonGM::TgcReadoutParams::readoutVersion | ( | ) | const |
Definition at line 102 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 | ) | const |
Returns the signed distance along the chamber edge of the strip expressed at the chamber center.
Definition at line 179 of file TgcReadoutParams.cxx.
double MuonGM::TgcReadoutParams::stripPositionOnLargeBase | ( | int | strip | ) | 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 158 of file TgcReadoutParams.cxx.
double MuonGM::TgcReadoutParams::stripPositionOnShortBase | ( | int | strip | ) | 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 168 of file TgcReadoutParams.cxx.
|
inline |
Definition at line 149 of file TgcReadoutParams.h.
int MuonGM::TgcReadoutParams::totalWires | ( | int | gasGap | ) | const |
Returns the total number of wires in a given gang.
Definition at line 116 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 117 of file TgcReadoutParams.h.
|
private |
Definition at line 118 of file TgcReadoutParams.h.
|
staticconstexprprivate |
Definition at line 146 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 126 of file TgcReadoutParams.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
private |
Definition at line 121 of file TgcReadoutParams.h.
|
private |
Definition at line 128 of file TgcReadoutParams.h.
|
private |
Map of number of wires in a given wire gang & gas gap.
Definition at line 124 of file TgcReadoutParams.h.
|
private |
Definition at line 133 of file TgcReadoutParams.h.
|
private |
Definition at line 119 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 141 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 137 of file TgcReadoutParams.h.
|
private |
Definition at line 138 of file TgcReadoutParams.h.
|
staticconstexprprivate |
Definition at line 147 of file TgcReadoutParams.h.
|
private |
Definition at line 129 of file TgcReadoutParams.h.
|
private |
Definition at line 120 of file TgcReadoutParams.h.