ATLAS Offline Software
TgcDataPreparator.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGL2MUONSA_TGCDATAPREPARATOR_H
6 #define TRIGL2MUONSA_TGCDATAPREPARATOR_H
7 
9 #include "GaudiKernel/ServiceHandle.h"
10 
12 #include "xAODTrigger/MuonRoI.h"
14 #include "TgcData.h"
15 #include "RecMuonRoIUtils.h"
19 
20 namespace MuonGM {
21  class TgcReadoutElement;
22 }
23 
24 // --------------------------------------------------------------------------------
25 // --------------------------------------------------------------------------------
26 
27 namespace TrigL2MuonSA {
28 
30 {
31  public:
32  struct tgcRawData
33  {
34  unsigned short int bcTag;
35  unsigned short int sswId;
36  unsigned short int slbId;
37  unsigned short int bitpos;
38  };
39 
40  public:
41 
42  TgcDataPreparator(const std::string& type,
43  const std::string& name,
44  const IInterface* parent);
45 
46  virtual StatusCode initialize() override;
47 
49  TrigL2MuonSA::TgcHits& tgcHits) const;
50 
52  TrigL2MuonSA::TgcHits& tgcHits) const;
53 
55 
56  void setRoIBasedDataAccess(bool use_RoIBasedDataAccess){ m_use_RoIBasedDataAccess = use_RoIBasedDataAccess; };
57 
58  private:
59 
60  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
61 
62  // option
64 
65  // utils
67 
69  this, "TGCPrepDataContainer", "TGC_Measurements", "Name of the TGCContainer to read in"};
70 
72 
73 };
74 
75 } // namespace TrigL2MuonSA
76 
77 #endif // TRIGL2MUONSA_TGCDATAPREPARATOR_H
TrigL2MuonSA::TgcDataPreparator::setOptions
void setOptions(const TrigL2MuonSA::TgcDataPreparatorOptions &options)
Definition: TgcDataPreparator.h:54
TrigL2MuonSA::TgcDataPreparator::m_use_RoIBasedDataAccess
bool m_use_RoIBasedDataAccess
Definition: TgcDataPreparator.h:71
MuonGM
Ensure that the Athena extensions are properly loaded.
Definition: GeoMuonHits.h:27
TrigL2MuonSA::TgcDataPreparator::tgcRawData::sswId
unsigned short int sswId
Definition: TgcDataPreparator.h:35
TrigL2MuonSA::TgcHits
std::vector< TgcHitData > TgcHits
Definition: TgcData.h:43
RecMuonRoI.h
TrigL2MuonSA::TgcDataPreparatorOptions
Definition: TgcDataPreparatorOptions.h:47
MuonPrepDataContainer.h
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
TgcDataPreparatorOptions.h
RecMuonRoIUtils.h
TrigL2MuonSA::TgcDataPreparator::initialize
virtual StatusCode initialize() override
Definition: TgcDataPreparator.cxx:23
LVL1::RecMuonRoI
This class defines the reconstructed Muon ROI.
Definition: RecMuonRoI.h:60
TrigL2MuonSA::TgcDataPreparator::tgcRawData::bitpos
unsigned short int bitpos
Definition: TgcDataPreparator.h:37
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
xAOD::MuonRoI_v1
Class describing a LVL1 muon region of interest.
Definition: MuonRoI_v1.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
TrigL2MuonSA::TgcDataPreparator::m_tgcContainerKey
SG::ReadHandleKey< Muon::TgcPrepDataContainer > m_tgcContainerKey
Definition: TgcDataPreparator.h:68
python.AtlRunQueryLib.options
options
Definition: AtlRunQueryLib.py:379
TrigL2MuonSA::TgcDataPreparator
Definition: TgcDataPreparator.h:30
TrigL2MuonSA::TgcDataPreparator::TgcDataPreparator
TgcDataPreparator(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TgcDataPreparator.cxx:13
TrigL2MuonSA::TgcDataPreparator::prepareData
StatusCode prepareData(const LVL1::RecMuonRoI *p_roi, TrigL2MuonSA::TgcHits &tgcHits) const
Definition: TgcDataPreparator.cxx:35
TrigL2MuonSA::RecMuonRoIUtils
Definition: RecMuonRoIUtils.h:14
TrigL2MuonSA::TgcDataPreparator::tgcRawData::bcTag
unsigned short int bcTag
Definition: TgcDataPreparator.h:34
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TrigL2MuonSA::TgcDataPreparator::m_options
TrigL2MuonSA::TgcDataPreparatorOptions m_options
Definition: TgcDataPreparator.h:63
TrigL2MuonSA::TgcDataPreparator::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: TgcDataPreparator.h:60
TgcData.h
TrigL2MuonSA::TgcDataPreparator::tgcRawData::slbId
unsigned short int slbId
Definition: TgcDataPreparator.h:36
TrigL2MuonSA::TgcDataPreparator::setRoIBasedDataAccess
void setRoIBasedDataAccess(bool use_RoIBasedDataAccess)
Definition: TgcDataPreparator.h:56
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
MuonRoI.h
TrigL2MuonSA::TgcDataPreparator::m_recMuonRoIUtils
TrigL2MuonSA::RecMuonRoIUtils m_recMuonRoIUtils
Definition: TgcDataPreparator.h:66
TrigRoiDescriptor.h
AthAlgTool
Definition: AthAlgTool.h:26
TrigL2MuonSA::TgcDataPreparator::tgcRawData
Definition: TgcDataPreparator.h:33
IMuonIdHelperSvc.h
TrigL2MuonSA
Definition: AlignmentBarrelLUT.h:13
ServiceHandle< Muon::IMuonIdHelperSvc >