ATLAS Offline Software
TrigMuonRoITool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGMUONROITOOLS_TRIGMUONROITOOL_H
6 #define TRIGMUONROITOOLS_TRIGMUONROITOOL_H
7 
10 
11 #include "GaudiKernel/ServiceHandle.h"
12 
15 
16 class TrigMuonRoITool: public extends<AthAlgTool, ITrigMuonRoITool>
17 {
18  public:
19 
20  TrigMuonRoITool(const std::string& type,
21  const std::string& name,
22  const IInterface* parent);
23 
24  virtual StatusCode initialize() override;
25 
27  virtual std::unique_ptr<TrigMuonRoITool::MuonRois> decodeMuCTPi(const EventContext& ctx) const override;
28 
29 
30  private:
31 
32  SG::ReadHandleKey<MuCTPI_RDO> m_muCTPIKey{this, "MUCTPILocation", "MUCTPI_RDO", "Location of MUCTPI RDO"};
33 
37 
39  IntegerProperty m_daqMuCTPiROBid ;
40 
42  std::vector<uint32_t> m_muCTPiRobIds;
43 
45  static const uint32_t NUMBER_OF_PT_THRESHOLDS = 6; // Number of pT thresholds
46 
48  uint32_t mirodToRoIBDataWord( uint32_t data_word ) const;
49 
51  void dumpRoIBDataWord(uint32_t data_word ) const;
52 
55 };
56 
57 #endif
ITrigMuonRoITool.h
MuCTPIRoI.h
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TrigMuonRoITool::TrigMuonRoITool
TrigMuonRoITool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TrigMuonRoITool.cxx:12
TrigMuonRoITool::IIROBDataProviderSvc_t
ServiceHandle< IROBDataProviderSvc > IIROBDataProviderSvc_t
Definition: TrigMuonRoITool.h:34
TrigMuonRoITool::m_muCTPIKey
SG::ReadHandleKey< MuCTPI_RDO > m_muCTPIKey
Definition: TrigMuonRoITool.h:32
TrigMuonRoITool::m_muCTPiRobIds
std::vector< uint32_t > m_muCTPiRobIds
vectors with muCTPi ROB Ids to retrieve
Definition: TrigMuonRoITool.h:42
SG::ReadHandleKey< MuCTPI_RDO >
TrigMuonRoITool::m_daqMuCTPiROBid
IntegerProperty m_daqMuCTPiROBid
Source identifiers for ROB fragments.
Definition: TrigMuonRoITool.h:39
TrigMuonRoITool
Definition: TrigMuonRoITool.h:17
TrigMuonRoITool::decodeMuCTPi
virtual std::unique_ptr< TrigMuonRoITool::MuonRois > decodeMuCTPi(const EventContext &ctx) const override
Decoding the muCTPi RoIB and DAQ ROB and return in and out of time RoIs.
Definition: TrigMuonRoITool.cxx:45
TrigMuonRoITool::initialize
virtual StatusCode initialize() override
Definition: TrigMuonRoITool.cxx:25
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TrigMuonRoITool::mirodToRoIBDataWord
uint32_t mirodToRoIBDataWord(uint32_t data_word) const
Helper for converting a mirod DAQ data word to a muCTPi RoIB data word.
Definition: TrigMuonRoITool.cxx:213
AthAlgTool.h
TrigMuonRoITool::m_robDataProviderSvc
IIROBDataProviderSvc_t m_robDataProviderSvc
Reference to the ROBDataProviderSvc service.
Definition: TrigMuonRoITool.h:36
test_pyathena.parent
parent
Definition: test_pyathena.py:15
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TrigMuonRoITool::m_decodeMuCTPiFromROB
bool m_decodeMuCTPiFromROB
Configurable to decide how to decode muCTPi.
Definition: TrigMuonRoITool.h:54
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TrigMuonRoITool::NUMBER_OF_PT_THRESHOLDS
static const uint32_t NUMBER_OF_PT_THRESHOLDS
Number of pt Thresholds.
Definition: TrigMuonRoITool.h:45
TrigMuonRoITool::dumpRoIBDataWord
void dumpRoIBDataWord(uint32_t data_word) const
Helper to print contents of a muCTPi RoIB data word.
Definition: TrigMuonRoITool.cxx:219
IROBDataProviderSvc.h
ServiceHandle< IROBDataProviderSvc >