ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetEventCnv
ITkPixelByteStreamCnv
src
PixelRDOValidationCommons.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ITKPIXEL_RDOVALIDATIONCOMMONS_H
6
#define ITKPIXEL_RDOVALIDATIONCOMMONS_H
7
8
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
9
#include "
StoreGate/ReadHandle.h
"
10
#include "
InDetRawData/PixelRDO_Container.h
"
11
#include "
InDetRawData/PhaseIIPixelRawDataContainer.h
"
12
#include "
InDetIdentifier/PixelID.h
"
13
14
// Common parts of the Pixel RDO validation Algs
15
16
using
TSortedRDOContainer
= std::map<Identifier, std::map<Identifier, unsigned int>>;
17
18
struct
PixelRDOValidationCommons
:
public
AthReentrantAlgorithm
19
{
20
public
:
21
using
AthReentrantAlgorithm::AthReentrantAlgorithm;
22
virtual
StatusCode
initialize
()
override
;
23
24
protected
:
25
// Concrete algorithms implements these to feed the containers of RDOs
26
virtual
StatusCode
makeSortedReferenceRDOs
(
const
EventContext & ctx,
27
TSortedRDOContainer
& reference_rdos,
size_t
& nb_reference_rdos)
const
= 0;
28
virtual
StatusCode
makeSortedMonitoredRDOs
(
const
EventContext & ctx,
29
TSortedRDOContainer
& monitored_rdos,
size_t
& nb_monitored_rdos)
const
= 0;
30
31
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
32
33
// Concrete algorithms can cell these two common cases to handle Phase-I and
34
// Phase-II RDOs
35
// Create a sorted RDOs container, legacy flavour
36
StatusCode
makeSortedRDOs
(
37
SG::ReadHandle<PixelRDO_Container>
& sg_rdos_handle,
38
TSortedRDOContainer
& sorted_rdos,
size_t
& nb_sorted_rdos)
const
;
39
// Create a sorted RDOs container, Phase-II flavour
40
StatusCode
makeSortedPhaseIIRDOs
(
41
SG::ReadHandle<PhaseIIPixelRawDataContainer>
& sg_rdos_handle,
42
TSortedRDOContainer
& sorted_rdos,
size_t
& nb_sorted_rdos)
const
;
43
44
// To make RDO IDs from constituents for the Phase-II flavour
45
const
PixelID
*
m_idHelper
{
nullptr
};
46
};
47
48
#endif
// ITKPIXEL_RDOVALIDATIONCOMMONS_H
AthReentrantAlgorithm.h
PhaseIIPixelRawDataContainer.h
PixelID.h
This is an Identifier helper class for the Pixel subdetector.
TSortedRDOContainer
std::map< Identifier, std::map< Identifier, unsigned int > > TSortedRDOContainer
Definition
PixelRDOValidationCommons.h:16
PixelRDO_Container.h
ReadHandle.h
Handle class for reading from StoreGate.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
PixelID
This is an Identifier helper class for the Pixel subdetector.
Definition
PixelID.h:69
SG::ReadHandle
Definition
StoreGate/StoreGate/ReadHandle.h:66
PixelRDOValidationCommons
Definition
PixelRDOValidationCommons.h:19
PixelRDOValidationCommons::initialize
virtual StatusCode initialize() override
Definition
PixelRDOValidationCommons.cxx:11
PixelRDOValidationCommons::makeSortedPhaseIIRDOs
StatusCode makeSortedPhaseIIRDOs(SG::ReadHandle< PhaseIIPixelRawDataContainer > &sg_rdos_handle, TSortedRDOContainer &sorted_rdos, size_t &nb_sorted_rdos) const
Definition
PixelRDOValidationCommons.cxx:149
PixelRDOValidationCommons::makeSortedMonitoredRDOs
virtual StatusCode makeSortedMonitoredRDOs(const EventContext &ctx, TSortedRDOContainer &monitored_rdos, size_t &nb_monitored_rdos) const =0
PixelRDOValidationCommons::m_idHelper
const PixelID * m_idHelper
Definition
PixelRDOValidationCommons.h:45
PixelRDOValidationCommons::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
PixelRDOValidationCommons.cxx:17
PixelRDOValidationCommons::makeSortedRDOs
StatusCode makeSortedRDOs(SG::ReadHandle< PixelRDO_Container > &sg_rdos_handle, TSortedRDOContainer &sorted_rdos, size_t &nb_sorted_rdos) const
Definition
PixelRDOValidationCommons.cxx:131
PixelRDOValidationCommons::makeSortedReferenceRDOs
virtual StatusCode makeSortedReferenceRDOs(const EventContext &ctx, TSortedRDOContainer &reference_rdos, size_t &nb_reference_rdos) const =0
Generated on
for ATLAS Offline Software by
1.17.0