ATLAS Offline Software
PixelRawDataProvider.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // Top algorithm to decode the Pixel BS
8 
9 #ifndef PIXELRAWDATABYTESTREAMCNV_PIXELRAWDATAPROVIDER_H
10 #define PIXELRAWDATABYTESTREAMCNV_PIXELRAWDATAPROVIDER_H
11 
12 // Base class
14 #include "GaudiKernel/ServiceHandle.h"
15 #include "GaudiKernel/ToolHandle.h"
21 #include <string>
22 
28 
29 // Forward declarations
30 class PixelID;
31 
33 
34  public:
35 
37  PixelRawDataProvider(const std::string &name, ISvcLocator *pSvcLocator);
38 
40  StatusCode initialize() override;
42  StatusCode execute(const EventContext& ctx) const override;
44 
45 
48 
49 private:
50  const PixelID* m_pixel_id { nullptr };
51 
52  ToolHandle<IRegSelTool> m_regionSelector { this, "RegSelTool", "RegSelTool/RegSelTool_Pixel" };
53  ServiceHandle<IROBDataProviderSvc> m_robDataProvider { this, "ROBDataProvider", "ROBDataProviderSvc" };
54  ToolHandle<IPixelRawDataProviderTool> m_rawDataTool { this, "ProviderTool", "PixelRawDataProviderTool"};
55  Gaudi::Property<bool> m_roiSeeded { this, "isRoI_Seeded", false, "Use RoI" }; // TODO, doubled information, empty RoIs collection name would be sufficent
56  SG::ReadHandleKey<TrigRoiDescriptorCollection> m_roiCollectionKey { this, "RoIs", "", "If RoI driven unpacking to be used, this is the key"};
59  SG::WriteHandleKey<IDCInDetBSErrContainer> m_bsErrorsKey { this, "BSErrorsKey", "PixelByteStreamErrs"};
61  SG::ReadCondHandleKey<PixelCablingCondData> m_condCablingKey { this, "PixelCablingCondData", "PixelCablingCondData", "Pixel cabling key"};
62 
63 };
64 
65 #endif
66 
PixelRawDataProvider::m_condCablingKey
SG::ReadCondHandleKey< PixelCablingCondData > m_condCablingKey
Definition: PixelRawDataProvider.h:61
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
PixelRawDataProvider::initialize
StatusCode initialize() override
Initialize.
Definition: PixelRawDataProvider.cxx:31
IRegSelTool.h
PixelRawDataProvider::m_rdoContainerKey
SG::WriteHandleKey< PixelRDO_Container > m_rdoContainerKey
Definition: PixelRawDataProvider.h:57
PixelCablingCondData.h
SG::UpdateHandleKey
Property holding a SG store/key/clid from which an UpdateHandle is made.
Definition: UpdateHandleKey.h:40
PixelRawDataProvider::m_rdoCacheKey
SG::UpdateHandleKey< PixelRDO_Cache > m_rdoCacheKey
Definition: PixelRawDataProvider.h:58
PixelRawDataProvider::m_pixel_id
const PixelID * m_pixel_id
Definition: PixelRawDataProvider.h:50
SG::ReadHandleKey< TrigRoiDescriptorCollection >
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
PixelRawDataProvider::m_robDataProvider
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Definition: PixelRawDataProvider.h:53
IPixelRawDataProviderTool.h
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PixelRawDataProvider::PixelRawDataProvider
PixelRawDataProvider(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: PixelRawDataProvider.cxx:16
PixelRawDataProvider::m_regionSelector
ToolHandle< IRegSelTool > m_regionSelector
Definition: PixelRawDataProvider.h:52
PixelRawDataProvider
Definition: PixelRawDataProvider.h:32
PixelRawDataProvider::m_bsErrorsKey
SG::WriteHandleKey< IDCInDetBSErrContainer > m_bsErrorsKey
Definition: PixelRawDataProvider.h:59
PixelRawDataProvider::execute
StatusCode execute(const EventContext &ctx) const override
Execute.
Definition: PixelRawDataProvider.cxx:74
ReadCondHandleKey.h
PixelRawDataProvider::m_roiSeeded
Gaudi::Property< bool > m_roiSeeded
Definition: PixelRawDataProvider.h:55
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
PixelRawDataProvider::m_roiCollectionKey
SG::ReadHandleKey< TrigRoiDescriptorCollection > m_roiCollectionKey
Definition: PixelRawDataProvider.h:56
PixelRDO_Container.h
SG::ReadCondHandleKey< PixelCablingCondData >
PixelRawDataProvider::~PixelRawDataProvider
~PixelRawDataProvider()
Don't need to override Finalize.
Definition: PixelRawDataProvider.cxx:25
IDCInDetBSErrContainer.h
PixelRawDataProvider::m_bsErrorsCacheKey
SG::UpdateHandleKey< IDCInDetBSErrContainer_Cache > m_bsErrorsCacheKey
Definition: PixelRawDataProvider.h:60
PixelRawDataProvider::m_rawDataTool
ToolHandle< IPixelRawDataProviderTool > m_rawDataTool
Definition: PixelRawDataProvider.h:54
PixelID
Definition: PixelID.h:67
TrigRoiDescriptorCollection.h
IROBDataProviderSvc.h
ServiceHandle< IROBDataProviderSvc >