ATLAS Offline Software
ITrigT1MuonRecRoiTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ITRIGT1MUONRECROITOOL_H
6 #define ITRIGT1MUONRECROITOOL_H
7 
8 #include "GaudiKernel/IAlgTool.h"
9 #include "TrigT1MuonRecRoiData.h"
10 
11 namespace LVL1 {
12 
13  class ITrigT1MuonRecRoiTool: public virtual IAlgTool {
14  public:
15 
17 
18  virtual ~ITrigT1MuonRecRoiTool()=default;
19 
21 
23  virtual StatusCode roiData(const unsigned int& roiWord, TrigT1MuonRecRoiData& data) const = 0;
24 
26  virtual StatusCode RoIsize(const unsigned int& roiWord,
27  double& etaMin, double& etaMax,
28  double& phiMin, double& phiMax) const = 0;
29 
31  virtual bool dumpRoiMap(const std::string& filename) const = 0;
32 
33  unsigned int getBitMaskValue( const unsigned int * uintValue,
34  const unsigned int mask ) const;
35 
38  };
39  void updateBitMask( const RoiWordFormat );
40 
43  };
44  MuonTriggerSystem getSystem( const unsigned int& roiWord ) const;
45 
46  unsigned int IsRun3Mask() const {return m_IsRun3Mask;}
47  unsigned int IsVetoedMask() const {return m_IsVetoedMask;}
48  unsigned int ChargeMask() const {return m_ChargeMask;}
49  unsigned int IsFirstCandMask() const {return m_IsFirstCandMask;}
50  unsigned int SectorAddressMask() const {return m_SectorAddressMask;}
51  unsigned int BarrelSectorIDMask() const {return m_BarrelSectorIDMask;}
52  unsigned int EndcapSectorIDMask() const {return m_EndcapSectorIDMask;}
53  unsigned int ForwardSectorIDMask() const {return m_ForwardSectorIDMask;}
54  unsigned int SysIDMask() const {return m_SysIDMask;}
55  unsigned int SubSysIDMask() const {return m_SubSysIDMask;}
56  unsigned int ThresholdMask() const {return m_ThresholdMask;}
57  unsigned int BarrelRoIMask() const {return m_BarrelRoIMask;}
58  unsigned int EndcapRoIMask() const {return m_EndcapRoIMask;}
59  unsigned int ForwardRoIMask() const {return m_ForwardRoIMask;}
60  unsigned int EndcapRMask() const {return m_EndcapRMask;}
61  unsigned int EndcapPhiMask() const {return m_EndcapPhiMask;}
62  unsigned int ForwardRMask() const {return m_ForwardRMask;}
63  unsigned int ForwardPhiMask() const {return m_ForwardPhiMask;}
64  unsigned int OverflowPerRoIMask() const {return m_OverflowPerRoIMask;}
65  unsigned int OverflowPerSectorMask() const {return m_OverflowPerSectorMask;}
66  unsigned int BW2Or3Mask() const {return m_BW2Or3Mask;}
67  unsigned int InnerCoinMask() const {return m_InnerCoinMask;}
68  unsigned int GoodMFMask() const {return m_GoodMFMask;}
69 
70  // etaDimLow and etaDimHigh only exist for RPCs, but without this, one cannot use the interface in MuFastDataPreparator
71  virtual bool etaDimLow (const TrigT1MuonRecRoiData& data, double& etaMin, double& etaMax) const = 0;
72  virtual bool etaDimHigh(const TrigT1MuonRecRoiData& data, double& etaMin, double& etaMax) const = 0;
73 
74  private:
75 
76  unsigned int m_IsRun3Mask{0};
77  unsigned int m_IsVetoedMask{0};
78  unsigned int m_ChargeMask{0};
79  unsigned int m_IsFirstCandMask{0};
80  unsigned int m_SectorAddressMask{0};
81  unsigned int m_BarrelSectorIDMask{0};
82  unsigned int m_EndcapSectorIDMask{0};
83  unsigned int m_ForwardSectorIDMask{0};
84  unsigned int m_SysIDMask{0};
85  unsigned int m_SubSysIDMask{0};
86  unsigned int m_ThresholdMask{0};
87  unsigned int m_BarrelRoIMask{0};
88  unsigned int m_EndcapRoIMask{0};
89  unsigned int m_ForwardRoIMask{0};
90  unsigned int m_EndcapRMask{0};
91  unsigned int m_EndcapPhiMask{0};
92  unsigned int m_ForwardRMask{0};
93  unsigned int m_ForwardPhiMask{0};
94  unsigned int m_OverflowPerRoIMask{0};
95  unsigned int m_OverflowPerSectorMask{0};
96  unsigned int m_BW2Or3Mask{0};
97  unsigned int m_InnerCoinMask{0};
98  unsigned int m_GoodMFMask{0};
99 
100  }; // end of ITrigT1MuonRecRoiTool
101 
102 } // namespace LVL1
103 
104 #endif
LVL1::ITrigT1MuonRecRoiTool::m_ForwardSectorIDMask
unsigned int m_ForwardSectorIDMask
Definition: ITrigT1MuonRecRoiTool.h:83
LVL1::ITrigT1MuonRecRoiTool::ThresholdMask
unsigned int ThresholdMask() const
Definition: ITrigT1MuonRecRoiTool.h:56
LVL1::TrigT1MuonRecRoiData
Definition: TrigT1MuonRecRoiData.h:10
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
LVL1::ITrigT1MuonRecRoiTool::m_ForwardRMask
unsigned int m_ForwardRMask
Definition: ITrigT1MuonRecRoiTool.h:92
LVL1::ITrigT1MuonRecRoiTool::m_IsFirstCandMask
unsigned int m_IsFirstCandMask
Definition: ITrigT1MuonRecRoiTool.h:79
LVL1::ITrigT1MuonRecRoiTool::InnerCoinMask
unsigned int InnerCoinMask() const
Definition: ITrigT1MuonRecRoiTool.h:67
LVL1::ITrigT1MuonRecRoiTool::m_SysIDMask
unsigned int m_SysIDMask
Definition: ITrigT1MuonRecRoiTool.h:84
LVL1::ITrigT1MuonRecRoiTool::BW2Or3Mask
unsigned int BW2Or3Mask() const
Definition: ITrigT1MuonRecRoiTool.h:66
LVL1::ITrigT1MuonRecRoiTool::ForwardRMask
unsigned int ForwardRMask() const
Definition: ITrigT1MuonRecRoiTool.h:62
LVL1::ITrigT1MuonRecRoiTool::Run3
@ Run3
Definition: ITrigT1MuonRecRoiTool.h:37
LVL1::ITrigT1MuonRecRoiTool::ITrigT1MuonRecRoiTool
ITrigT1MuonRecRoiTool()
Definition: ITrigT1MuonRecRoiTool.cxx:32
LVL1::ITrigT1MuonRecRoiTool::m_BarrelSectorIDMask
unsigned int m_BarrelSectorIDMask
Definition: ITrigT1MuonRecRoiTool.h:81
LVL1::ITrigT1MuonRecRoiTool::etaDimHigh
virtual bool etaDimHigh(const TrigT1MuonRecRoiData &data, double &etaMin, double &etaMax) const =0
LVL1::ITrigT1MuonRecRoiTool::getSystem
MuonTriggerSystem getSystem(const unsigned int &roiWord) const
Definition: ITrigT1MuonRecRoiTool.cxx:23
LVL1::ITrigT1MuonRecRoiTool::m_EndcapRMask
unsigned int m_EndcapRMask
Definition: ITrigT1MuonRecRoiTool.h:90
LVL1::ITrigT1MuonRecRoiTool::~ITrigT1MuonRecRoiTool
virtual ~ITrigT1MuonRecRoiTool()=default
LVL1::ITrigT1MuonRecRoiTool::BarrelRoIMask
unsigned int BarrelRoIMask() const
Definition: ITrigT1MuonRecRoiTool.h:57
xAOD::etaMax
etaMax
Definition: HIEventShape_v2.cxx:46
LVL1::ITrigT1MuonRecRoiTool::MuonTriggerSystem
MuonTriggerSystem
Definition: ITrigT1MuonRecRoiTool.h:41
LVL1::ITrigT1MuonRecRoiTool::m_OverflowPerRoIMask
unsigned int m_OverflowPerRoIMask
Definition: ITrigT1MuonRecRoiTool.h:94
LVL1::ITrigT1MuonRecRoiTool::GoodMFMask
unsigned int GoodMFMask() const
Definition: ITrigT1MuonRecRoiTool.h:68
LVL1::ITrigT1MuonRecRoiTool::m_EndcapRoIMask
unsigned int m_EndcapRoIMask
Definition: ITrigT1MuonRecRoiTool.h:88
LVL1::ITrigT1MuonRecRoiTool::Barrel
@ Barrel
Definition: ITrigT1MuonRecRoiTool.h:42
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::ITrigT1MuonRecRoiTool::roiData
virtual StatusCode roiData(const unsigned int &roiWord, TrigT1MuonRecRoiData &data) const =0
pure virtual function to return eta and phi coord of RoI
LVL1::ITrigT1MuonRecRoiTool::m_BW2Or3Mask
unsigned int m_BW2Or3Mask
Definition: ITrigT1MuonRecRoiTool.h:96
LVL1::ITrigT1MuonRecRoiTool::etaDimLow
virtual bool etaDimLow(const TrigT1MuonRecRoiData &data, double &etaMin, double &etaMax) const =0
LVL1::ITrigT1MuonRecRoiTool::DeclareInterfaceID
DeclareInterfaceID(ITrigT1MuonRecRoiTool, 1, 0)
python.utils.AtlRunQueryLookup.mask
string mask
Definition: AtlRunQueryLookup.py:460
LVL1::ITrigT1MuonRecRoiTool
Definition: ITrigT1MuonRecRoiTool.h:13
LVL1::ITrigT1MuonRecRoiTool::EndcapSectorIDMask
unsigned int EndcapSectorIDMask() const
Definition: ITrigT1MuonRecRoiTool.h:52
LVL1::ITrigT1MuonRecRoiTool::ChargeMask
unsigned int ChargeMask() const
Definition: ITrigT1MuonRecRoiTool.h:48
xAOD::roiWord
roiWord
Definition: TrigMissingET_v1.cxx:36
LVL1::ITrigT1MuonRecRoiTool::EndcapRMask
unsigned int EndcapRMask() const
Definition: ITrigT1MuonRecRoiTool.h:60
LVL1::ITrigT1MuonRecRoiTool::m_ChargeMask
unsigned int m_ChargeMask
Definition: ITrigT1MuonRecRoiTool.h:78
LVL1::ITrigT1MuonRecRoiTool::BarrelSectorIDMask
unsigned int BarrelSectorIDMask() const
Definition: ITrigT1MuonRecRoiTool.h:51
LVL1::ITrigT1MuonRecRoiTool::m_IsVetoedMask
unsigned int m_IsVetoedMask
Definition: ITrigT1MuonRecRoiTool.h:77
LVL1::ITrigT1MuonRecRoiTool::ForwardRoIMask
unsigned int ForwardRoIMask() const
Definition: ITrigT1MuonRecRoiTool.h:59
LVL1::ITrigT1MuonRecRoiTool::RoiWordFormat
RoiWordFormat
Definition: ITrigT1MuonRecRoiTool.h:36
TrigT1MuonRecRoiData.h
LVL1::ITrigT1MuonRecRoiTool::SysIDMask
unsigned int SysIDMask() const
Definition: ITrigT1MuonRecRoiTool.h:54
LVL1::ITrigT1MuonRecRoiTool::EndcapRoIMask
unsigned int EndcapRoIMask() const
Definition: ITrigT1MuonRecRoiTool.h:58
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LVL1::ITrigT1MuonRecRoiTool::m_IsRun3Mask
unsigned int m_IsRun3Mask
Definition: ITrigT1MuonRecRoiTool.h:76
LVL1::ITrigT1MuonRecRoiTool::dumpRoiMap
virtual bool dumpRoiMap(const std::string &filename) const =0
pure virtual function for dumping roi mapping
LVL1::ITrigT1MuonRecRoiTool::m_OverflowPerSectorMask
unsigned int m_OverflowPerSectorMask
Definition: ITrigT1MuonRecRoiTool.h:95
LVL1::ITrigT1MuonRecRoiTool::RoIsize
virtual StatusCode RoIsize(const unsigned int &roiWord, double &etaMin, double &etaMax, double &phiMin, double &phiMax) const =0
pure virtual function returns roi size
LVL1::ITrigT1MuonRecRoiTool::m_ForwardRoIMask
unsigned int m_ForwardRoIMask
Definition: ITrigT1MuonRecRoiTool.h:89
LVL1::ITrigT1MuonRecRoiTool::m_EndcapPhiMask
unsigned int m_EndcapPhiMask
Definition: ITrigT1MuonRecRoiTool.h:91
LVL1::ITrigT1MuonRecRoiTool::m_SectorAddressMask
unsigned int m_SectorAddressMask
Definition: ITrigT1MuonRecRoiTool.h:80
LVL1::ITrigT1MuonRecRoiTool::m_ForwardPhiMask
unsigned int m_ForwardPhiMask
Definition: ITrigT1MuonRecRoiTool.h:93
LVL1::ITrigT1MuonRecRoiTool::SectorAddressMask
unsigned int SectorAddressMask() const
Definition: ITrigT1MuonRecRoiTool.h:50
LVL1::ITrigT1MuonRecRoiTool::m_EndcapSectorIDMask
unsigned int m_EndcapSectorIDMask
Definition: ITrigT1MuonRecRoiTool.h:82
LVL1::ITrigT1MuonRecRoiTool::m_SubSysIDMask
unsigned int m_SubSysIDMask
Definition: ITrigT1MuonRecRoiTool.h:85
LVL1::ITrigT1MuonRecRoiTool::m_GoodMFMask
unsigned int m_GoodMFMask
Definition: ITrigT1MuonRecRoiTool.h:98
LVL1::ITrigT1MuonRecRoiTool::Forward
@ Forward
Definition: ITrigT1MuonRecRoiTool.h:42
LVL1::ITrigT1MuonRecRoiTool::IsVetoedMask
unsigned int IsVetoedMask() const
Definition: ITrigT1MuonRecRoiTool.h:47
LArCellBinning.etaMin
etaMin
Definition: LArCellBinning.py:84
LVL1::ITrigT1MuonRecRoiTool::EndcapPhiMask
unsigned int EndcapPhiMask() const
Definition: ITrigT1MuonRecRoiTool.h:61
LVL1::ITrigT1MuonRecRoiTool::OverflowPerSectorMask
unsigned int OverflowPerSectorMask() const
Definition: ITrigT1MuonRecRoiTool.h:65
LVL1::ITrigT1MuonRecRoiTool::m_InnerCoinMask
unsigned int m_InnerCoinMask
Definition: ITrigT1MuonRecRoiTool.h:97
LVL1::ITrigT1MuonRecRoiTool::Endcap
@ Endcap
Definition: ITrigT1MuonRecRoiTool.h:42
LVL1::ITrigT1MuonRecRoiTool::OverflowPerRoIMask
unsigned int OverflowPerRoIMask() const
Definition: ITrigT1MuonRecRoiTool.h:64
LVL1::ITrigT1MuonRecRoiTool::Run2
@ Run2
Definition: ITrigT1MuonRecRoiTool.h:37
CaloCellTimeCorrFiller.filename
filename
Definition: CaloCellTimeCorrFiller.py:24
LVL1::ITrigT1MuonRecRoiTool::SubSysIDMask
unsigned int SubSysIDMask() const
Definition: ITrigT1MuonRecRoiTool.h:55
LVL1::ITrigT1MuonRecRoiTool::Undef
@ Undef
Definition: ITrigT1MuonRecRoiTool.h:42
LVL1::ITrigT1MuonRecRoiTool::m_BarrelRoIMask
unsigned int m_BarrelRoIMask
Definition: ITrigT1MuonRecRoiTool.h:87
LVL1::ITrigT1MuonRecRoiTool::IsRun3Mask
unsigned int IsRun3Mask() const
Definition: ITrigT1MuonRecRoiTool.h:46
LVL1::ITrigT1MuonRecRoiTool::ForwardPhiMask
unsigned int ForwardPhiMask() const
Definition: ITrigT1MuonRecRoiTool.h:63
LVL1::ITrigT1MuonRecRoiTool::m_ThresholdMask
unsigned int m_ThresholdMask
Definition: ITrigT1MuonRecRoiTool.h:86
LVL1::ITrigT1MuonRecRoiTool::IsFirstCandMask
unsigned int IsFirstCandMask() const
Definition: ITrigT1MuonRecRoiTool.h:49
LVL1::ITrigT1MuonRecRoiTool::getBitMaskValue
unsigned int getBitMaskValue(const unsigned int *uintValue, const unsigned int mask) const
Definition: ITrigT1MuonRecRoiTool.cxx:10
LVL1::ITrigT1MuonRecRoiTool::ForwardSectorIDMask
unsigned int ForwardSectorIDMask() const
Definition: ITrigT1MuonRecRoiTool.h:53
LVL1::ITrigT1MuonRecRoiTool::updateBitMask
void updateBitMask(const RoiWordFormat)
Definition: ITrigT1MuonRecRoiTool.cxx:36