ATLAS Offline Software
TGC_RawDataProviderToolCore.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 MUONTGC_CNVTOOLS_TGC_RAWDATAPROVIDERTOOLCORE_H
6 #define MUONTGC_CNVTOOLS_TGC_RAWDATAPROVIDERTOOLCORE_H
7 
9 #include "GaudiKernel/ServiceHandle.h"
10 #include "GaudiKernel/ToolHandle.h"
11 
12 #include "TGC_Hid2RESrcID.h"
13 #include "ByteStreamData/RawEvent.h"
18 #include "CxxUtils/CachedPointer.h"
19 
20 class TgcRdoContainer;
21 
22 namespace Muon {
23 
32  {
33  public:
35  TGC_RawDataProviderToolCore(const std::string& t, const std::string& n, const IInterface* p);
37  virtual ~TGC_RawDataProviderToolCore()=default;
38 
40  virtual StatusCode initialize();
41 
43  virtual StatusCode convertIntoContainer(const std::vector<const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment*>& vecRobs, TgcRdoContainer& tgcRdoContainer) const;
44 
45 
46  protected:
48  std::vector<const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment*> getROBData(const std::vector<IdentifierHash>& rdoIdhVect) const;
49 
50  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
52  ToolHandle<ITGC_RodDecoder> m_decoder{this,"Decoder","Muon::TGC_RodDecoderReadout/TGC_RodDecoderReadout"};
54  SG::WriteHandleKey<TgcRdoContainer> m_rdoContainerKey{ this, "RdoLocation", "TGCRDO", "Name of the TGCRDO produced by RawDataProvider"}; //MT
55 
56  unsigned int m_maxhashtoUse = 0U; //MT
57 
64 
65  const ITGCcablingSvc* getCabling() const;
66  };
67 } // end of namespace
68 
69 #endif // MUONTGC_CNVTOOLS_TGC_RAWDATAPROVIDERTOOLCORE_H
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
ITGCcablingSvc
Definition: ITGCcablingSvc.h:31
Muon::TGC_RawDataProviderToolCore::m_maxhashtoUse
unsigned int m_maxhashtoUse
Definition: TGC_RawDataProviderToolCore.h:56
Muon::TGC_RawDataProviderToolCore::TGC_RawDataProviderToolCore
TGC_RawDataProviderToolCore(const std::string &t, const std::string &n, const IInterface *p)
Default constructor.
Definition: TGC_RawDataProviderToolCore.cxx:12
Muon::TGC_RawDataProviderToolCore::m_decoder
ToolHandle< ITGC_RodDecoder > m_decoder
Decoder for ROB fragment RDO conversion.
Definition: TGC_RawDataProviderToolCore.h:52
Muon::TGC_RawDataProviderToolCore::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: TGC_RawDataProviderToolCore.h:50
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
Muon::TGC_RawDataProviderToolCore::m_cabling
CxxUtils::CachedPointer< const ITGCcablingSvc > m_cabling
TGC cabling Svc.
Definition: TGC_RawDataProviderToolCore.h:61
CachedPointer.h
Cached pointer with atomic update.
Muon::TGC_RawDataProviderToolCore::m_robDataProvider
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Rob Data Provider handle.
Definition: TGC_RawDataProviderToolCore.h:63
Muon::TGC_RawDataProviderToolCore::m_rdoContainerKey
SG::WriteHandleKey< TgcRdoContainer > m_rdoContainerKey
RDO container key.
Definition: TGC_RawDataProviderToolCore.h:54
SG::WriteHandleKey< TgcRdoContainer >
ITGCcablingSvc.h
TgcRdoContainer
Definition: TgcRdoContainer.h:25
beamspotman.n
n
Definition: beamspotman.py:731
RawEvent.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
Muon::TGC_RawDataProviderToolCore::getROBData
std::vector< const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment * > getROBData(const std::vector< IdentifierHash > &rdoIdhVect) const
Function to get the ROB data from a vector of IdentifierHash.
Definition: TGC_RawDataProviderToolCore.cxx:99
Muon::TGC_RawDataProviderToolCore::~TGC_RawDataProviderToolCore
virtual ~TGC_RawDataProviderToolCore()=default
Default destructor.
Muon::TGC_RawDataProviderToolCore::convertIntoContainer
virtual StatusCode convertIntoContainer(const std::vector< const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment * > &vecRobs, TgcRdoContainer &tgcRdoContainer) const
Method that converts the ROBFragments into the passed container.
Definition: TGC_RawDataProviderToolCore.cxx:52
Muon::TGC_RawDataProviderToolCore::m_hid2re
TGC_Hid2RESrcID m_hid2re
ID converter.
Definition: TGC_RawDataProviderToolCore.h:59
TGC_Hid2RESrcID.h
Muon::TGC_RawDataProviderToolCore
Definition: TGC_RawDataProviderToolCore.h:32
Muon::TGC_RawDataProviderToolCore::initialize
virtual StatusCode initialize()
Standard AlgTool method.
Definition: TGC_RawDataProviderToolCore.cxx:23
Muon::TGC_Hid2RESrcID
Definition: TGC_Hid2RESrcID.h:29
CxxUtils::CachedPointer< const ITGCcablingSvc >
AthAlgTool
Definition: AthAlgTool.h:26
Muon::TGC_RawDataProviderToolCore::getCabling
const ITGCcablingSvc * getCabling() const
Definition: TGC_RawDataProviderToolCore.cxx:75
ITGC_RodDecoder.h
IROBDataProviderSvc.h
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >