#include <TGCNSWCoincidenceMap.h>
Definition at line 24 of file TGCNSWCoincidenceMap.h.
◆ anonymous enum
◆ ReadCW_Type
◆ TGCNSWCoincidenceMap() [1/3]
LVL1TGCTrigger::TGCNSWCoincidenceMap::TGCNSWCoincidenceMap |
( |
| ) |
|
|
privatedelete |
◆ TGCNSWCoincidenceMap() [2/3]
LVL1TGCTrigger::TGCNSWCoincidenceMap::TGCNSWCoincidenceMap |
( |
TGCArguments * |
tgcargs, |
|
|
const std::string & |
version, |
|
|
int |
side, |
|
|
int |
oct, |
|
|
int |
mod |
|
) |
| |
Definition at line 22 of file TGCNSWCoincidenceMap.cxx.
33 if(!
tgcArgs()->USE_NSW()){
return;}
52 for(
int dphi=0;dphi!=
N_dPhi;dphi++){
62 if( ( oct%2==0 &&
mod==5 ) || (oct%2==1 && (
mod==2 ||
mod==8)) ){moduleName+=
"b";}
63 else{moduleName+=
"a";}
67 if(!this->
readMap( moduleName, ReadCW_Type::EtaPhi_CW) ||
68 !this->
readMap( moduleName, ReadCW_Type::EtaDtheta_CW)
◆ ~TGCNSWCoincidenceMap()
LVL1TGCTrigger::TGCNSWCoincidenceMap::~TGCNSWCoincidenceMap |
( |
| ) |
|
|
default |
◆ TGCNSWCoincidenceMap() [3/3]
◆ getOctantId()
int LVL1TGCTrigger::TGCNSWCoincidenceMap::getOctantId |
( |
| ) |
const |
◆ getSideId()
int LVL1TGCTrigger::TGCNSWCoincidenceMap::getSideId |
( |
| ) |
const |
◆ getVersion()
const std::string& LVL1TGCTrigger::TGCNSWCoincidenceMap::getVersion |
( |
| ) |
const |
◆ 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.
◆ isForward()
bool LVL1TGCTrigger::TGCNSWCoincidenceMap::isForward |
( |
int |
module | ) |
|
◆ 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.
◆ readMap()
bool LVL1TGCTrigger::TGCNSWCoincidenceMap::readMap |
( |
const std::string & |
moduleName, |
|
|
ReadCW_Type |
cw_type |
|
) |
| |
Definition at line 129 of file TGCNSWCoincidenceMap.cxx.
131 std::string kSide[2] = {
"a",
"c"};
132 std::string kCWtype[2] = {
"EtaPhi",
"EtaDtheta"};
150 unsigned int n_Etabit=0;
151 unsigned int n_Phibit=0;
155 header >> roi >> n_Etabit >> n_Phibit;
162 for(
size_t posR=0; posR<
N_dEta ; posR++){
164 std::istringstream cont(
field);
166 if(cw_type==ReadCW_Type::EtaPhi_CW){
167 for(
size_t posPHI=0; posPHI<
N_dPhi; posPHI++){
169 std::istringstream(word) >> std::hex >>
pT;
174 if(cw_type==ReadCW_Type::EtaDtheta_CW){
175 for(
size_t posDTHETA=0; posDTHETA<
N_Dtheta; posDTHETA++){
177 std::istringstream(word) >> std::hex >>
pT;
179 if ((roi<0) or (
static_cast<size_t>(roi)>=roiIndexedVector.size())){
180 throw std::out_of_range(
"roi outside of vector limits in TGCNSWCoincidenceMap::readMap");
182 roiIndexedVector[roi]=
pT;
◆ readShift()
bool LVL1TGCTrigger::TGCNSWCoincidenceMap::readShift |
( |
| ) |
|
Definition at line 195 of file TGCNSWCoincidenceMap.cxx.
204 std::string
dbname=
"/NSW/";
211 if(!
data.is_open()){
return false;}
221 std::istringstream cont(
field);
224 std::array<int, 4> phi_shift {};
225 std::array<int, 37> eta_shift {};
228 for(
int phiN=0; phiN!=4; phiN++){
230 std::istringstream(word) >> shift;
231 phi_shift[phiN]=shift;
235 std::istringstream(word) >> shift;
236 eta_shift[etaN]=shift;
◆ setLevel()
void AthMessaging::setLevel |
( |
MSG::Level |
lvl | ) |
|
|
inherited |
◆ tgcArgs() [1/2]
TGCArguments* LVL1TGCTrigger::TGCNSWCoincidenceMap::tgcArgs |
( |
| ) |
|
|
inline |
◆ tgcArgs() [2/2]
◆ TGCNSW_pTcalcu_EtaDtheta()
int LVL1TGCTrigger::TGCNSWCoincidenceMap::TGCNSW_pTcalcu_EtaDtheta |
( |
const LVL1TGC::NSWTrigOut * |
nswOut, |
|
|
int |
RoI |
|
) |
| const |
just for now. before we finalize the strategy, we always return the lowest pT value if we can find the NSW hit
Definition at line 110 of file TGCNSWCoincidenceMap.cxx.
112 std::vector<uint8_t> nswEta_vec=nswOut->
getNSWeta();
113 std::vector<uint8_t> nswDtheta_vec=nswOut->
getNSWDtheta();
116 for(
unsigned int nswTrk_id=0;nswTrk_id!=nswEta_vec.size();nswTrk_id++){
118 int dTheta_decode=nswDtheta_vec[nswTrk_id];
119 if(eta_decode<0 || eta_decode>=
N_dEta){
continue;}
◆ TGCNSW_pTcalcu_EtaPhi()
just for now. before we finalize the strategy, we always return the lowest pT value if we can find the NSW hit
Definition at line 88 of file TGCNSWCoincidenceMap.cxx.
90 std::vector<uint8_t> nswEta_vec=nswOut->
getNSWeta();
91 std::vector<uint8_t> nswPhi_vec=nswOut->
getNSWphi();
94 for(
unsigned int nswTrk_id=0;nswTrk_id!=nswEta_vec.size();nswTrk_id++){
97 if(eta_decode<0 || eta_decode>=
N_dEta){
continue;}
98 if(phi_decode<0 || phi_decode>=
N_dPhi){
continue;}
100 if(highest_pT<
m_EtaPhi_CW[eta_decode][phi_decode][roi]){
101 highest_pT=
m_EtaPhi_CW[eta_decode][phi_decode][roi];
◆ ATLAS_THREAD_SAFE
std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_EtaDtheta_CW
std::vector<short int> LVL1TGCTrigger::TGCNSWCoincidenceMap::m_EtaDtheta_CW[N_dEta][N_Dtheta] |
|
private |
◆ m_EtaPhi_CW
std::vector<short int> LVL1TGCTrigger::TGCNSWCoincidenceMap::m_EtaPhi_CW[N_dEta][N_dPhi] |
|
private |
◆ m_imsg
std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_lvl
std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_module
int LVL1TGCTrigger::TGCNSWCoincidenceMap::m_module |
|
private |
◆ 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_NumberOfEtaRaw
◆ m_NumberOfRoI
◆ m_octant
int LVL1TGCTrigger::TGCNSWCoincidenceMap::m_octant |
|
private |
◆ m_Offset_Eta
std::vector<short int> LVL1TGCTrigger::TGCNSWCoincidenceMap::m_Offset_Eta |
|
private |
◆ m_Offset_Phi
std::vector<short int> LVL1TGCTrigger::TGCNSWCoincidenceMap::m_Offset_Phi |
|
private |
◆ m_region
◆ m_sector
int LVL1TGCTrigger::TGCNSWCoincidenceMap::m_sector |
|
private |
◆ m_side
int LVL1TGCTrigger::TGCNSWCoincidenceMap::m_side |
|
private |
◆ m_tgcArgs
TGCArguments* LVL1TGCTrigger::TGCNSWCoincidenceMap::m_tgcArgs |
|
private |
◆ m_verName
std::string LVL1TGCTrigger::TGCNSWCoincidenceMap::m_verName |
|
private |
The documentation for this class was generated from the following files: