ATLAS Offline Software
Loading...
Searching...
No Matches
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
13
14// Common parts of the Pixel RDO validation Algs
15
16using TSortedRDOContainer = std::map<Identifier, std::map<Identifier, unsigned int>>;
17
19{
20public:
21 using AthReentrantAlgorithm::AthReentrantAlgorithm;
22 virtual StatusCode initialize() override;
23
24protected:
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(
38 TSortedRDOContainer & sorted_rdos, size_t & nb_sorted_rdos) const;
39 // Create a sorted RDOs container, Phase-II flavour
40 StatusCode makeSortedPhaseIIRDOs(
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
This is an Identifier helper class for the Pixel subdetector.
std::map< Identifier, std::map< Identifier, unsigned int > > TSortedRDOContainer
Handle class for reading from StoreGate.
An algorithm that can be simultaneously executed in multiple threads.
This is an Identifier helper class for the Pixel subdetector.
Definition PixelID.h:69
virtual StatusCode initialize() override
StatusCode makeSortedPhaseIIRDOs(SG::ReadHandle< PhaseIIPixelRawDataContainer > &sg_rdos_handle, TSortedRDOContainer &sorted_rdos, size_t &nb_sorted_rdos) const
virtual StatusCode makeSortedMonitoredRDOs(const EventContext &ctx, TSortedRDOContainer &monitored_rdos, size_t &nb_monitored_rdos) const =0
virtual StatusCode execute(const EventContext &ctx) const override
StatusCode makeSortedRDOs(SG::ReadHandle< PixelRDO_Container > &sg_rdos_handle, TSortedRDOContainer &sorted_rdos, size_t &nb_sorted_rdos) const
virtual StatusCode makeSortedReferenceRDOs(const EventContext &ctx, TSortedRDOContainer &reference_rdos, size_t &nb_reference_rdos) const =0