Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
#include <TGCEIFICoincidenceMap.h>
|
| TGCEIFICoincidenceMap (LVL1TGCTrigger::TGCArguments *, const SG::ReadCondHandleKey< TGCTriggerData > &readCondKey) |
|
| TGCEIFICoincidenceMap (LVL1TGCTrigger::TGCArguments *, const SG::ReadCondHandleKey< TGCTriggerData > &readCondKey, const std::string &version, int sideId=0) |
|
| TGCEIFICoincidenceMap (const TGCEIFICoincidenceMap &right) |
|
TGCEIFICoincidenceMap & | operator= (const TGCEIFICoincidenceMap &right) |
|
const LVL1TGCTrigger::TGCInnerTrackletSlot * | getInnerTrackletMask (const unsigned int input, const unsigned int ssc, const unsigned int sec) const |
|
int | getFlagPT (const unsigned int pt, const unsigned int ssc, const unsigned int sec) const |
|
int | getFlagROI (const unsigned int roi, const unsigned int ssc, const unsigned int sec) const |
|
int | getTriggerBit (const int slot, const int ssc, const int sec, const int reg, const int read, const int bit) const |
|
const std::string & | getVersion () const |
|
int | getSideId () const |
|
bool | isFullCW () const |
|
void | setFullCW (bool val) |
|
bool | readMap () |
|
void | dumpMap () const |
|
const LVL1TGCTrigger::TGCArguments * | tgcArgs () const |
|
LVL1TGCTrigger::TGCArguments * | tgcArgs () |
|
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...
|
|
Definition at line 22 of file TGCEIFICoincidenceMap.h.
◆ TGCEIFICoincidenceMap() [1/3]
Definition at line 18 of file TGCEIFICoincidenceMap.cxx.
31 for (
size_t sec=0; sec < kNEndcapTrigSector; sec++) {
32 for (
size_t ssc=0; ssc < kNMaxSSC; ssc++) {
36 m_flagPT[ssc][sec] = std::bitset<kNThresholdsR2>(0x30);
38 for (
size_t pos=0;
pos < kNRoiInSSC;
pos++){
◆ TGCEIFICoincidenceMap() [2/3]
Definition at line 48 of file TGCEIFICoincidenceMap.cxx.
63 for (
size_t sec=0; sec < kNEndcapTrigSector; sec++) {
64 for (
size_t ssc=0; ssc < kNMaxSSC; ssc++) {
68 m_flagPT[ssc][sec] = std::bitset<kNThresholdsR2>(0x30);
70 for (
size_t pos=0;
pos < kNRoiInSSC;
pos++){
77 if (!
tgcArgs()->USE_INNER())
return;
81 if (
tgcArgs()->USE_CONDDB())
return;
92 for (
size_t sec=0; sec < kNEndcapTrigSector; sec++){
93 for (
size_t ssc=0; ssc < kNMaxSSC; ssc++){
94 m_flagPT[ssc][sec] = std::bitset<kNThresholdsR2>(0x00);
◆ TGCEIFICoincidenceMap() [3/3]
Definition at line 104 of file TGCEIFICoincidenceMap.cxx.
110 for (
size_t sec=0; sec < kNEndcapTrigSector; sec++){
111 for (
size_t ssc=0; ssc < kNMaxSSC; ssc++){
115 m_flagPT[ssc][sec] = right.m_flagPT[ssc][sec];
117 for (
size_t pos=0;
pos < kNRoiInSSC;
pos++){
◆ dumpMap()
void LVL1TGC::TGCEIFICoincidenceMap::dumpMap |
( |
| ) |
const |
Definition at line 227 of file TGCEIFICoincidenceMap.cxx.
234 for (
size_t sec=0; sec < kNEndcapTrigSector; sec++){
235 for (
size_t ssc=0; ssc < kNMaxSSC; ssc++){
236 file <<
"# " << sec <<
" " << ssc <<
" ";
◆ getFlagPT()
int LVL1TGC::TGCEIFICoincidenceMap::getFlagPT |
( |
const unsigned int |
pt, |
|
|
const unsigned int |
ssc, |
|
|
const unsigned int |
sec |
|
) |
| const |
Definition at line 250 of file TGCEIFICoincidenceMap.cxx.
254 if (
pt == 0 ||
pt > kNThresholdsR2)
return -1;
255 if (ssc >= kNMaxSSC)
return 0;
256 if (sec >= kNEndcapTrigSector)
return -1;
◆ getFlagROI()
int LVL1TGC::TGCEIFICoincidenceMap::getFlagROI |
( |
const unsigned int |
roi, |
|
|
const unsigned int |
ssc, |
|
|
const unsigned int |
sec |
|
) |
| const |
Definition at line 267 of file TGCEIFICoincidenceMap.cxx.
271 if (roi >= kNRoiInSSC)
return -1;
272 if (ssc >= kNMaxSSC)
return 0;
273 if (sec >= kNEndcapTrigSector)
return -1;
◆ getInnerTrackletMask()
Definition at line 86 of file TGCEIFICoincidenceMap.h.
91 if (ssc >= kNMaxSSC)
return 0;
92 if (sec >= kNEndcapTrigSector)
return 0;
◆ getSideId()
int LVL1TGC::TGCEIFICoincidenceMap::getSideId |
( |
| ) |
const |
|
inline |
◆ getTriggerBit()
int LVL1TGC::TGCEIFICoincidenceMap::getTriggerBit |
( |
const int |
slot, |
|
|
const int |
ssc, |
|
|
const int |
sec, |
|
|
const int |
reg, |
|
|
const int |
read, |
|
|
const int |
bit |
|
) |
| const |
◆ getVersion()
const std::string& LVL1TGC::TGCEIFICoincidenceMap::getVersion |
( |
| ) |
const |
|
inline |
◆ 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.
◆ isFullCW()
bool LVL1TGC::TGCEIFICoincidenceMap::isFullCW |
( |
| ) |
const |
|
inline |
◆ 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.
◆ operator=()
Definition at line 127 of file TGCEIFICoincidenceMap.cxx.
131 if (
this != &right) {
133 for (
size_t sec=0; sec < kNEndcapTrigSector; sec++){
134 for (
size_t ssc=0; ssc < kNMaxSSC; ssc++){
138 m_flagPT[ssc][sec] = right.m_flagPT[ssc][sec];
140 for (
size_t pos=0;
pos < kNRoiInSSC;
pos++){
◆ readMap()
bool LVL1TGC::TGCEIFICoincidenceMap::readMap |
( |
| ) |
|
Definition at line 153 of file TGCEIFICoincidenceMap.cxx.
156 const std::string SideName[
kNSide] = {
"A",
"C"};
171 bool isFound =(
fullName.length() > 0 );
179 static constexpr
unsigned int BufferSize = 512;
184 unsigned int sectorId = 999;
185 unsigned int sscId = 999;
186 int use[kNThresholdsR2] = {0, 0, 0, 0, 0, 0};
187 int roi[kNRoiInSSC] = {1, 1, 1, 1, 1, 1, 1, 1};
188 std::istringstream
header(buf);
191 header >> sectorId >> sscId
192 >> use[0] >> use[1] >> use[2]
193 >> use[3] >> use[4] >> use[5]
194 >> roi[0] >> roi[1] >> roi[2] >> roi[3]
195 >> roi[4] >> roi[5] >> roi[6] >> roi[7];
198 if (sectorId >= kNEndcapTrigSector ||
201 <<
" in file " <<
dbname);
205 for (
size_t pt=0;
pt < kNThresholdsR2;
pt++){
208 for (
size_t pos=0;
pos < kNRoiInSSC;
pos++){
214 std::istringstream cont(buf);
◆ setFullCW()
void LVL1TGC::TGCEIFICoincidenceMap::setFullCW |
( |
bool |
val | ) |
|
|
inline |
◆ setLevel()
void AthMessaging::setLevel |
( |
MSG::Level |
lvl | ) |
|
|
inherited |
◆ tgcArgs() [1/2]
◆ tgcArgs() [2/2]
◆ ATLAS_THREAD_SAFE
std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_flagPT
std::bitset<kNThresholdsR2> LVL1TGC::TGCEIFICoincidenceMap::m_flagPT[kNMaxSSC][kNEndcapTrigSector] |
|
private |
◆ m_flagROI
int LVL1TGC::TGCEIFICoincidenceMap::m_flagROI[kNRoiInSSC][kNMaxSSC][kNEndcapTrigSector] |
|
private |
◆ m_fullCW
bool LVL1TGC::TGCEIFICoincidenceMap::m_fullCW |
|
private |
◆ m_imsg
std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_lvl
std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_map
◆ 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 |
◆ m_readCondKey
◆ m_side
int LVL1TGC::TGCEIFICoincidenceMap::m_side |
|
private |
◆ m_tgcArgs
◆ m_verName
std::string LVL1TGC::TGCEIFICoincidenceMap::m_verName |
|
private |
◆ N_INNER_SECTORS
constexpr unsigned int LVL1TGC::TGCEIFICoincidenceMap::N_INNER_SECTORS = 4 |
|
staticconstexprprotected |
The documentation for this class was generated from the following files:
IovVectorMap_t read(const Folder &theFolder, const SelectionCriterion &choice, const unsigned int limit=10)
std::atomic< MSG::Level > m_lvl
Current logging level.
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
static std::string FindCalibDirectory(const std::string &logical_file_name)
IMessageSvc * getMessageSvc(bool quiet=false)
std::bitset< kNThresholdsR2 > m_flagPT[kNMaxSSC][kNEndcapTrigSector]
void setLevel(MSG::Level lvl)
Change the current logging level.
unsigned short getTriggerWord() const
AthMessaging()
Default constructor:
bool getTriggerBit(const unsigned int region, const unsigned int readout, const unsigned int iBit) const
int m_flagROI[kNRoiInSSC][kNMaxSSC][kNEndcapTrigSector]
unsigned short getTrigBitEifi(int side, int slot, int ssc, int sectorId) const
LVL1TGCTrigger::TGCInnerTrackletSlot m_map[N_INNER_SECTORS][kNMaxSSC][kNEndcapTrigSector]
LVL1TGCTrigger::TGCArguments * m_tgcArgs
bool setTriggerBits(const bool val)
MsgStream & msg() const
The standard message stream.
static constexpr unsigned int N_INNER_SECTORS
const SG::ReadCondHandleKey< TGCTriggerData > & m_readCondKey
unsigned char getFlagPtEifi(int side, int ssc, int sectorId) const
#define ATH_MSG_WARNING(x)
void set_USE_INNER(bool v)
std::string m_nm
Message source name.
void setTriggerWord(unsigned int word)
void initMessaging() const
Initialize our message level and MessageSvc.
const LVL1TGCTrigger::TGCArguments * tgcArgs() const
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
unsigned char getFlagRoiEifi(int side, int ssc, int sectorId) const