ATLAS Offline Software
Loading...
Searching...
No Matches
CaloThinCellsInAODAlg.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2/*
3 * Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration.
4 */
11
12#ifndef LARCLUSTERCELLDUMPER_CALOTHINCELLSINAODALG_H
13#define LARCLUSTERCELLDUMPER_CALOTHINCELLSINAODALG_H
14
18
22
28
36{
37public:
38 using AthReentrantAlgorithm::AthReentrantAlgorithm;
39
40 virtual StatusCode initialize() override;
41 virtual StatusCode execute(const EventContext& ctx) const override;
42
43private:
44
45 const LArOnlineID* m_onlineID = nullptr;
46 const CaloCell_ID* m_caloCellId = nullptr;
47
51
52 Gaudi::Property<float> m_clusterPtCut {this, "ClusterPtCut", 1000, "Cluster pt cut in MeV."};
53 Gaudi::Property<float> m_clusterEtaCut {this, "ClusterEtaCut", 1.4, "Cluster abs(eta) cut."};
54 Gaudi::Property<bool> m_isMC {this, "isMC", false, "Input data is MC."};
55
56 SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"};
57
58 // Name of the containers being thinned.
59 SG::ReadHandleKey<LArHitContainer> m_hitsInputKey{this, "InputHitsContainerName","LArHitEMB", "SG Key of LArHitsContainer"};
60 SG::ReadHandleKey<LArDigitContainer> m_digitsInputKey{this, "InputDigitsContainerName","LArDigitContainer_MC", "SG Key of LArDigitContainer"};
61 SG::ReadHandleKey<LArRawChannelContainer> m_rawChInputKey{this, "InputRawChannelContainerName","LArRawChannels", "SG Key of LArRawChannel container"};
62 SG::ReadHandleKey<CaloCellContainer> m_caloCellInputKey{this, "InputCaloCellContainerName","AllCalo", "SG Key of CaloCell container"};
63
64 // Cluster container to be used as reference for cells being thinned
65 SG::ReadHandleKey<xAOD::CaloClusterContainer> m_clusterCntKey{this, "CaloClusterContainerKey", "CaloCalTopoClusters", "Name of the Electrons Container"};
66
67 // Output containers
68 SG::WriteHandleKey<LArHitContainer> m_hitsOutputKey{this, "OutputHitsContainerName","LArHitEMB_ClusterThinned", "SG Key of thinned LArHitEMB container"};
69 SG::WriteHandleKey<ConstLArDigitCont_t> m_digitsOutputKey{this, "OutputDigitsContainerName","LArDigitContainer_ClusterThinned", "SG Key of thinned LArDigitContainer"};
70 SG::WriteHandleKey<LArRawChannelContainer> m_rawChOutputKey{this, "OutputRawChannelContainerName","LArRawChannels_ClusterThinned", "SG Key of LArRawChannel container"};
71 SG::WriteHandleKey<ConstCaloCellCont_t> m_caloCellOutputKey{this, "OutputCaloCellContainerName","AllCalo_ClusterThinned", "SG Key of CaloCell container"};
72
73};
74
75
76#endif
DataVector adapter that acts like it holds const pointers.
Property holding a SG store/key/clid from which a ReadHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
Helper class for offline cell identifiers.
Definition CaloCell_ID.h:34
Thin calorimeter cells, digits and raw channels not associated with clusters linked to an electron,...
Gaudi::Property< float > m_clusterPtCut
SG::ReadHandleKey< LArRawChannelContainer > m_rawChInputKey
SG::ReadHandleKey< LArDigitContainer > m_digitsInputKey
const CaloCell_ID * m_caloCellId
SG::ReadHandleKey< LArHitContainer > m_hitsInputKey
virtual StatusCode initialize() override
Gaudi initialize method.
virtual StatusCode execute(const EventContext &ctx) const override
Execute the algorithm.
SG::WriteHandleKey< LArRawChannelContainer > m_rawChOutputKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
SG::WriteHandleKey< ConstCaloCellCont_t > m_caloCellOutputKey
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clusterCntKey
SG::ReadHandleKey< CaloCellContainer > m_caloCellInputKey
const LArOnlineID * m_onlineID
ConstDataVector< CaloCellContainer > ConstCaloCellCont_t
Gaudi::Property< float > m_clusterEtaCut
SG::WriteHandleKey< LArHitContainer > m_hitsOutputKey
Gaudi::Property< bool > m_isMC
ConstDataVector< LArHitContainer > ConstLArHitCont_t
ConstDataVector< LArDigitContainer > ConstLArDigitCont_t
SG::WriteHandleKey< ConstLArDigitCont_t > m_digitsOutputKey
DataVector adapter that acts like it holds const pointers.
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.