|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "GaudiKernel/ISvcLocator.h"
10 #include "GaudiKernel/MsgStream.h"
11 #include "GaudiKernel/IMessageSvc.h"
22 m_readCondKey(readCondKey)
24 if (!
tgcArgs()->TILE_MU())
return;
25 if (
tgcArgs()->USE_CONDDB())
return;
29 ISvcLocator* svcLocator = Gaudi::svcLocator();
30 if (svcLocator->service(
"MessageSvc",
msgSvc) == StatusCode::FAILURE) {
33 MsgStream
log(
msgSvc,
"LVL1TGC::TGCTileMuCoincidenceLUT");
38 <<
" TGC TileMu CW version of " <<
m_verName <<
" is selected " <<
endmsg;
41 <<
" NOT use TileMu " <<
endmsg;
56 ISvcLocator* svcLocator = Gaudi::svcLocator();
57 if (svcLocator->service(
"MessageSvc",
msgSvc) == StatusCode::FAILURE) {
60 MsgStream
log(
msgSvc,
"LVL1TGC::TGCTileMuCoincidenceLUT");
70 bool isFound =(
fullName.length() > 0 );
79 static constexpr
unsigned int BufferSize = 256;
88 std::istringstream
header(buf);
92 header >> sideId >> sectorId >> sscId;
100 <<
" illegal parameter in database header : " <<
header.str()
113 flagpt |= (use&0x1)<<
pt;
121 roi |= (use&0x1)<<
pos;
127 std::istringstream cont(buf);
132 trigbit |= (word & 0xf)<<(
pos*4);
154 mask = readCdo->getTrigMaskTile(ssc, sec,
side);
157 std::unordered_map<uint16_t, uint16_t>::const_iterator
it =
m_trigbit.find(addr);
178 std::unordered_map<uint16_t, uint8_t>::const_iterator
it =
m_flagpt.find(addr);
181 return (ptmask>>(
pt-1)) & 0x1;
198 std::unordered_map<uint16_t, uint8_t>::const_iterator
it =
m_flagroi.find(addr);
201 return (roimask >> roi) & 0x1;
static constexpr uint8_t SECTOR_MASK
Mask for trigger sector for the (EIFI/TILE) ADDR.
std::unordered_map< uint16_t, uint16_t > m_trigbit
static constexpr uint8_t ADDR_SECTOR_SHIFT
Bit position of the trigger sector bit in the (EIFI/TILE) ADDR.
int getTrigMask(const int module, const int16_t ssc, const int16_t sec, const int16_t side) const
LVL1TGCTrigger::TGCArguments * tgcArgs()
TGCTileMuCoincidenceLUT(LVL1TGCTrigger::TGCArguments *, const SG::ReadCondHandleKey< TGCTriggerData > &readCondKey, const std::string &version="NA")
static constexpr uint8_t ADDR_SIDE_SHIFT
Bit position of the side bit in the (EIFI/TILE) ADDR.
int getFlagPT(const int pt, const int16_t ssc, const int16_t sec, const int16_t side) const
static std::string FindCalibDirectory(const std::string &logical_file_name)
setScaleOne setStatusOne setSaturated int16_t
static constexpr uint8_t SSC_MASK
Mask for SSC for the (EIFI/TILE) ADDR.
uint16_t getAddr(int16_t side, int16_t sec, int16_t ssc) const
msgSvc
Provide convenience handles for various services.
uint8_t getFlagRoiTile(int ssc, int sectorId, int side) const
const SG::ReadCondHandleKey< TGCTriggerData > & m_readCondKey
virtual ~TGCTileMuCoincidenceLUT()
std::unordered_map< uint16_t, uint8_t > m_flagpt
static constexpr uint8_t SIDE_MASK
Mask for extracting the side from the GLOBALADDR.
unsigned char getFlagPtTile(int ssc, int sectorId, int side) const
int getFlagROI(const int roi, const int16_t ssc, const int16_t sec, const int16_t side) const
std::unordered_map< uint16_t, uint8_t > m_flagroi