|
ATLAS Offline Software
|
#include <TGCTriggerBWCWReader.h>
|
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...
|
|
Definition at line 14 of file TGCTriggerBWCWReader.h.
◆ anonymous enum
◆ TGCTriggerBWCWReader()
TGCTriggerBWCWReader::TGCTriggerBWCWReader |
( |
int |
lutType | ) |
|
◆ ~TGCTriggerBWCWReader()
TGCTriggerBWCWReader::~TGCTriggerBWCWReader |
( |
| ) |
|
|
default |
◆ getType()
int TGCTriggerBWCWReader::getType |
( |
int |
lDR, |
|
|
int |
hDR, |
|
|
int |
lDPhi, |
|
|
int |
hDPhi |
|
) |
| const |
|
private |
◆ initMessaging()
void AthMessaging::initMessaging |
( |
| ) |
const |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
◆ loadParameters()
Implements TGCTriggerLUTReader.
Definition at line 18 of file TGCTriggerBWCWReader.cxx.
24 for(; itr!=itr_e; ++itr) {
25 const unsigned int channel = (*itr).first;
29 std::string
file = *(
static_cast<const std::string*
>((atr[
"file"]).addressOfData()));
30 std::string
data = *(
static_cast<const std::string*
>((atr[
"data"]).addressOfData()));
31 std::string
version = *(
static_cast<const std::string*
>((atr[
"version"]).addressOfData()));
32 std::string
type = *(
static_cast<const std::string*
>((atr[
"type"]).addressOfData()));
◆ msg() [1/2]
MsgStream & AthMessaging::msg |
( |
| ) |
const |
|
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.
◆ msg() [2/2]
MsgStream & AthMessaging::msg |
( |
const MSG::Level |
lvl | ) |
const |
|
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.
180 {
return msg() << lvl; }
◆ msgLvl()
bool AthMessaging::msgLvl |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
Test the output level.
- Parameters
-
lvl | The message level to test against |
- Returns
- boolean Indicating if messages at given level will be printed
- Return values
-
true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
◆ readLUT()
Implements TGCTriggerLUTReader.
Definition at line 54 of file TGCTriggerBWCWReader.cxx.
56 const int numberOfCoincidenceType = 4;
59 { 0, 1, 2, 2, 3, 4, 5, 5, 6, 7, 8, 8 };
61 {
"0a",
"1a",
"2a",
"2b",
"3a",
"4a",
"5a",
"5b",
"6a",
"7a",
"8a",
"8b"};
64 {
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7"};
65 const std::string coincidenceTypeName[numberOfCoincidenceType] = {
"HH",
"HL",
"LH",
"LL"};
79 uint32_t phimod2 = moduleName[iModule].find(
'b') != std::string::npos ? 1 : 0;
83 for(
int iCoinType=0; iCoinType!=numberOfCoincidenceType; iCoinType++){
87 fn =
"RPhiCoincidenceMapRun3_" + sideName[iSide] + octantName[iOctant]
88 + moduleName[iModule] + coincidenceTypeName[iCoinType] +
".db";
90 fn =
"RPhiCoincidenceMapRun3_" + moduleName[iModule] + coincidenceTypeName[iCoinType] +
".db";
93 bool Forward_type1=(moduleName[iModule]==
"2b"||moduleName[iModule]==
"5a"||moduleName[iModule]==
"8b");
94 bool Forward_type2=(moduleName[iModule]==
"2a"||moduleName[iModule]==
"5b"||moduleName[iModule]==
"8a");
96 if(iOctant%2==0 && Forward_type1){
continue;}
97 if(iOctant%2==1 && Forward_type2){
continue;}
99 int lDR, hDR, lDPhi, hDPhi;
109 std::istringstream
header(buf);
112 header >> roi >> lDR >> hDR >> lDPhi >> hDPhi;
128 uint32_t theaddr = octaddr + modaddr + cwaddr + draddr + iphi;
130 if (
pt ==
'X')
continue;
◆ setLevel()
void AthMessaging::setLevel |
( |
MSG::Level |
lvl | ) |
|
|
inherited |
◆ subSectorAdd()
int TGCTriggerBWCWReader::subSectorAdd |
( |
int |
ssid, |
|
|
int |
modid, |
|
|
int |
phimod2, |
|
|
int |
type |
|
) |
| const |
|
private |
◆ ATLAS_THREAD_SAFE
std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_imsg
std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_lutType
int TGCTriggerLUTReader::m_lutType {0} |
|
protectedinherited |
◆ m_lvl
std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_msg_tls
boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
◆ m_nm
std::string AthMessaging::m_nm |
|
privateinherited |
The documentation for this class was generated from the following files:
std::atomic< MSG::Level > m_lvl
Current logging level.
static constexpr uint8_t PHIMOD2_MASK
Mask for extracting the phi(F or B) from the GLOBALADDR.
char data[hepevt_bytes_allocation_ATLAS]
TGCTriggerLUTReader(int lutType)
std::vector< std::string > m_file[LUT_NUM]
std::unordered_map< uint32_t, int8_t > m_ptmap_bw
std::string getData(int cwtype, std::string file) const
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
static constexpr uint8_t ROI_SHIFT
Bit position of the module number bits in the GLOBALADDR.
IMessageSvc * getMessageSvc(bool quiet=false)
static constexpr uint8_t TYPE_SHIFT
Bit position of the octant bits in the GLOBALADDR.
std::string getType(int cwtype, int channel=0) const
int getType(int lDR, int hDR, int lDPhi, int hDPhi) const
static constexpr uint8_t DR_MASK
Mask for extracting the deltaR from the GLOBALADDR.
AthMessaging()
Default constructor:
static constexpr uint8_t DPHI_HIGH_RANGE
Range of DPhi in the BW coincidence window for 3-station.
static constexpr uint8_t OCTANT_MASK
Mask for extracting the octant from the GLOBALADDR.
static constexpr uint8_t DR_HIGH_RANGE
Range of DR in the BW coincidence window for 3-station.
std::vector< std::string > m_type[LUT_NUM]
std::vector< std::string > m_data[LUT_NUM]
static constexpr uint8_t DR_SHIFT
Bit position of the deltaR bits in the GLOBALADDR.
static constexpr uint8_t OCTANT_SHIFT
Bit position of the octant bits in the GLOBALADDR.
MsgStream & msg() const
The standard message stream.
std::vector< std::string > m_version[LUT_NUM]
static constexpr uint8_t MODULE_MASK
Mask for extracting the module number from the GLOBALADDR.
static constexpr uint8_t SIDE_SHIFT
Bit position of the side bit in the GLOBALADDR.
int ir
counter of the current depth
ChanAttrListMap::const_iterator const_iterator
std::string m_nm
Message source name.
static constexpr uint8_t TYPE_MASK
Mask for extracting the octant from the GLOBALADDR.
static constexpr uint8_t SIDE_MASK
Mask for extracting the side from the GLOBALADDR.
void initMessaging() const
Initialize our message level and MessageSvc.
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
static constexpr uint8_t MODULE_SHIFT
Bit position of the module number bits in the GLOBALADDR.
std::map< std::string, std::string > m_datamap[LUT_NUM]
static constexpr uint8_t ROI_MASK
Mask for extracting the module number from the GLOBALADDR.
static constexpr uint8_t PHIMOD2_SHIFT
Bit position of the module number bits in the GLOBALADDR.