ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
ForwardDetectors
AFP
AFP_ByteStream2RawCnv
AFP_ByteStream2RawCnv
AFP_RawDataProvider.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 DECODER_AFP_RAWDATAPROVIDER_H
6
#define DECODER_AFP_RAWDATAPROVIDER_H 1
7
8
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
9
#include "GaudiKernel/ServiceHandle.h"
10
#include "GaudiKernel/ToolHandle.h"
11
12
#include "
ByteStreamCnvSvcBase/IROBDataProviderSvc.h
"
13
#include "
AFP_RawDataProviderTool.h
"
14
15
#include "
AFP_RawEv/AFP_ROBID.h
"
16
17
#include "eformat/ROBFragment.h"
18
19
#include <string>
20
#include <vector>
21
22
class
AFP_RawDataProvider
:
public
::AthReentrantAlgorithm
{
23
public
:
24
25
AFP_RawDataProvider
(
const
std::string &name, ISvcLocator *pSvcLocator);
26
28
virtual
~AFP_RawDataProvider
();
29
31
virtual
StatusCode
initialize
();
32
34
virtual
StatusCode
finalize
() {
return
StatusCode::SUCCESS; }
35
40
virtual
StatusCode
execute
(
const
EventContext &ctx)
const
;
41
42
private
:
43
ServiceHandle<IROBDataProviderSvc>
m_robDataProvider
;
44
ToolHandle<AFP_RawDataProviderTool>
m_rawDataTool
{
this
,
"ProviderTool"
,
"AFP_RawDataProviderTool"
};
45
47
SG::WriteHandleKey<AFP_RawContainer>
m_AFP_RawContainerKey
{
this
,
"AFP_RawContainerKey"
,
"AFP_RawData"
,
48
"Name under which AFP_RawContainer object will be saved in StoreGate"
};
49
51
const
std::vector<unsigned int>
m_robIDs
= {
AFP_ROBID::sideA
,
AFP_ROBID::sideC
,
AFP_ROBID::sideC_2016
};
52
53
};
54
55
#endif
//> !DECODER_AFP_RAWDATAPROVIDER_H
AFP_ROBID.h
AFP_RawDataProviderTool.h
AthReentrantAlgorithm.h
IROBDataProviderSvc.h
AFP_ROBID::sideC_2016
static constexpr unsigned int sideC_2016
ROB ID of stations on C side in 2016.
Definition
AFP_ROBID.h:17
AFP_ROBID::sideC
static constexpr unsigned int sideC
ROB ID of stations on C side.
Definition
AFP_ROBID.h:16
AFP_ROBID::sideA
static constexpr unsigned int sideA
ROB ID of stations on A side.
Definition
AFP_ROBID.h:15
AFP_RawDataProvider::~AFP_RawDataProvider
virtual ~AFP_RawDataProvider()
Does nothing.
Definition
AFP_RawDataProvider.cxx:20
AFP_RawDataProvider::m_robIDs
const std::vector< unsigned int > m_robIDs
vector of robIDs from which data should be processed
Definition
AFP_RawDataProvider.h:51
AFP_RawDataProvider::initialize
virtual StatusCode initialize()
Initialise tool and service.
Definition
AFP_RawDataProvider.cxx:22
AFP_RawDataProvider::finalize
virtual StatusCode finalize()
Does nothing.
Definition
AFP_RawDataProvider.h:34
AFP_RawDataProvider::m_AFP_RawContainerKey
SG::WriteHandleKey< AFP_RawContainer > m_AFP_RawContainerKey
name used to store AFP_RawContainer in StoreGate
Definition
AFP_RawDataProvider.h:47
AFP_RawDataProvider::execute
virtual StatusCode execute(const EventContext &ctx) const
Creates raw objects from bytestream.
Definition
AFP_RawDataProvider.cxx:43
AFP_RawDataProvider::AFP_RawDataProvider
AFP_RawDataProvider(const std::string &name, ISvcLocator *pSvcLocator)
Definition
AFP_RawDataProvider.cxx:13
AFP_RawDataProvider::m_robDataProvider
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Definition
AFP_RawDataProvider.h:43
AFP_RawDataProvider::m_rawDataTool
ToolHandle< AFP_RawDataProviderTool > m_rawDataTool
Definition
AFP_RawDataProvider.h:44
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
ServiceHandle
Definition
ClusterMakerTool.h:36
Generated on
for ATLAS Offline Software by
1.17.0