ATLAS Offline Software
Loading...
Searching...
No Matches
InDetToXAODClusterConversion.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
12
13#ifndef INDETRIOMAKER_INDETTOXAODCLUSTERCONVERSION_H
14#define INDETRIOMAKER_INDETTOXAODCLUSTERCONVERSION_H
15//STL
16#include <string>
17
18//Gaudi
19#include "GaudiKernel/ToolHandle.h"
20
21// Base class
25
26//InDet
27//can't fwd declare this, needed for typedef to Pixel_RDO_Container
34
37
38class PixelID;
39class SCT_ID;
40class HGTD_ID;
41
42namespace InDet {
43
45public:
46
48 InDetToXAODClusterConversion(const std::string &name,ISvcLocator *pSvcLocator);
49
50 //@name Usual algorithm methods
52 virtual StatusCode initialize() override;
53 virtual StatusCode execute(const EventContext& ctx) const override;
56
61
62private:
63 StatusCode convertPixelClusters(const EventContext& ctx) const;
64 StatusCode convertStripClusters(const EventContext& ctx) const;
65 StatusCode convertHgtdClusters(const EventContext& ctx) const;
66
67private:
68 const PixelID* m_pixelID {};
69 const SCT_ID* m_stripID {};
70 const HGTD_ID* m_hgtdID {};
71
72 SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_pixelDetEleCollKey{this, "PixelDetEleCollKey", "ITkPixelDetectorElementCollection", "Key of SiDetectorElementCollection for Pixel"};
73 SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> m_stripDetEleCollKey{this, "StripDetEleCollKey", "ITkStripDetectorElementCollection", "Key of SiDetectorElementCollection for Strip"};
74 SG::ReadCondHandleKey<InDetDD::HGTD_DetectorElementCollection> m_HGTDDetEleCollKey{this, "HGTDDetEleCollKey", "HGTD_DetectorElementCollection", "Key of HGTD_DetectorElementCollection for HGTD"};
75
76 SG::ReadHandleKey<InDet::PixelClusterContainer> m_inputPixelClusterContainerKey {this, "InputPixelClustersName", "ITkPixelClusters", "name of the input InDet pixel cluster container"};
77 SG::ReadHandleKey<InDet::SCT_ClusterContainer> m_inputStripClusterContainerKey {this, "InputStripClustersName", "ITkStripClusters", "name of the input InDet strip cluster container"};
78
79 SG::WriteHandleKey<xAOD::PixelClusterContainer> m_outputPixelClusterContainerKey {this, "OutputPixelClustersName", "ITkPixelClusters", "name of the output xAOD pixel cluster container"};
80 SG::WriteHandleKey<xAOD::StripClusterContainer> m_outputStripClusterContainerKey {this, "OutputStripClustersName", "ITkStripClusters", "name of the output xAOD strip cluster container"};
81
82 SG::ReadHandleKey<::HGTD_ClusterContainer> m_inputHgtdClusterContainerKey {this, "InputHgtdClustersName", "HGTD_Clusters", "name of the input hgtd cluster container"};
83 SG::WriteHandleKey<xAOD::HGTDClusterContainer> m_outputHgtdClusterContainerKey {this, "OutputHgtdClustersName", "HGTD_Clusters", "name of the output xAOD hgtd cluster container"};
84
85 Gaudi::Property<bool> m_processPixel {this, "ProcessPixel", false};
86 Gaudi::Property<bool> m_processStrip {this, "ProcessStrip", false};
87 Gaudi::Property<bool> m_processHgtd {this, "ProcessHgtd", false};
88 Gaudi::Property<bool> m_isITk {this, "isITk", true, "True if running in ITk"};
89};
90
91}
92
93#endif // INDETRIOMAKER_INDETTOXAODCLUSTERCONVERSION_H
94
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
This is an Identifier helper class for the HGTD subdetector.
Definition HGTD_ID.h:47
InDetToXAODClusterConversion & operator=(const InDetToXAODClusterConversion &)=delete
InDetToXAODClusterConversion(const InDetToXAODClusterConversion &)=delete
InDetToXAODClusterConversion(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
SG::ReadCondHandleKey< InDetDD::HGTD_DetectorElementCollection > m_HGTDDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_stripDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
SG::WriteHandleKey< xAOD::PixelClusterContainer > m_outputPixelClusterContainerKey
StatusCode convertStripClusters(const EventContext &ctx) const
SG::ReadHandleKey< InDet::SCT_ClusterContainer > m_inputStripClusterContainerKey
SG::WriteHandleKey< xAOD::HGTDClusterContainer > m_outputHgtdClusterContainerKey
virtual StatusCode execute(const EventContext &ctx) const override
StatusCode convertHgtdClusters(const EventContext &ctx) const
StatusCode convertPixelClusters(const EventContext &ctx) const
SG::WriteHandleKey< xAOD::StripClusterContainer > m_outputStripClusterContainerKey
SG::ReadHandleKey<::HGTD_ClusterContainer > m_inputHgtdClusterContainerKey
SG::ReadHandleKey< InDet::PixelClusterContainer > m_inputPixelClusterContainerKey
This is an Identifier helper class for the Pixel subdetector.
Definition PixelID.h:67
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
Primary Vertex Finder.