ATLAS Offline Software
Loading...
Searching...
No Matches
TGCNSWCoincidenceMap.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4
5#ifndef TGCNSWCoincidenceMap_h
6#define TGCNSWCoincidenceMap_h
7
8#include <vector>
9#include <map>
10#include <string>
11
13#include "GaudiKernel/ToolHandle.h"
15
16namespace LVL1TGC {
17class NSWTrigOut;
18}
19
20namespace LVL1TGCTrigger {
21
22class TGCArguments;
23
25
26private:
27 TGCNSWCoincidenceMap() = delete;// hide default constructor
28 enum {N_dEta=64,N_dPhi=16,N_Dtheta=32,N_PT_THRESH=15};//6bit eta,4bit phi,5bit Dtheta, 4bit pT
30 std::map<TGCRegionType,int> m_NumberOfEtaRaw = {{TGCRegionType::ENDCAP,37}, {TGCRegionType::FORWARD,16}};
32
33public:
34 TGCNSWCoincidenceMap(TGCArguments* tgcargs,const std::string& version,int side,int oct,int mod);
36
37 bool isForward( int module );
38
39 int TGCNSW_pTcalcu_EtaPhi(const LVL1TGC::NSWTrigOut *nswOut, int RoI) const;
40 int TGCNSW_pTcalcu_EtaDtheta(const LVL1TGC::NSWTrigOut *nswOut, int RoI) const;
41
42 const std::string& getVersion() const;
43 int getSideId() const;
44 int getOctantId() const;
45
46
47 // copy and assignment operator
49 bool readMap(const std::string& moduleName, ReadCW_Type cw_type);
50 bool readShift();
52 const TGCArguments* tgcArgs() const { return m_tgcArgs;}
53
54private:
55 std::vector<short int> m_EtaPhi_CW[N_dEta][N_dPhi];
56 std::vector<short int> m_EtaDtheta_CW[N_dEta][N_Dtheta];
57 std::vector<short int> m_Offset_Eta;
58 std::vector<short int> m_Offset_Phi;
59
60 std::string m_verName;
61 int m_side{};
62 int m_octant{};
63 int m_module{};
64 int m_sector{};
66
68};
69
70
71
72} // end of namespace
73
74#endif // TGCNSWCoincidenceMap_hh
75
76
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
std::vector< short int > m_EtaDtheta_CW[N_dEta][N_Dtheta]
int TGCNSW_pTcalcu_EtaPhi(const LVL1TGC::NSWTrigOut *nswOut, int RoI) const
TGCNSWCoincidenceMap(const TGCNSWCoincidenceMap &right)
std::map< TGCRegionType, int > m_NumberOfRoI
bool readMap(const std::string &moduleName, ReadCW_Type cw_type)
const TGCArguments * tgcArgs() const
int TGCNSW_pTcalcu_EtaDtheta(const LVL1TGC::NSWTrigOut *nswOut, int RoI) const
std::vector< short int > m_EtaPhi_CW[N_dEta][N_dPhi]
const std::string & getVersion() const
std::map< TGCRegionType, int > m_NumberOfEtaRaw
static constexpr unsigned int kNumberOfEndcapRoI
The number of ROIs in a endcap trigger sector.