ATLAS Offline Software
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  */
12 #ifndef LARCLUSTERCELLDUMPER_CALOTHINCELLSINAODALG_H
13 #define LARCLUSTERCELLDUMPER_CALOTHINCELLSINAODALG_H
14 
18 
22 
28 
36 {
37 public:
39 
40  virtual StatusCode initialize() override;
41  virtual StatusCode execute(const EventContext& ctx) const override;
42 
43 private:
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
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
CaloThinCellsInAODAlg::ConstCaloCellCont_t
ConstDataVector< CaloCellContainer > ConstCaloCellCont_t
Definition: CaloThinCellsInAODAlg.h:50
CaloThinCellsInAODAlg::m_caloCellOutputKey
SG::WriteHandleKey< ConstCaloCellCont_t > m_caloCellOutputKey
Definition: CaloThinCellsInAODAlg.h:71
CaloThinCellsInAODAlg::m_clusterPtCut
Gaudi::Property< float > m_clusterPtCut
Definition: CaloThinCellsInAODAlg.h:52
CaloThinCellsInAODAlg::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: CaloThinCellsInAODAlg.h:56
ConstDataVector.h
DataVector adapter that acts like it holds const pointers.
SG::ReadHandleKey< LArHitContainer >
CaloThinCellsInAODAlg::ConstLArDigitCont_t
ConstDataVector< LArDigitContainer > ConstLArDigitCont_t
Definition: CaloThinCellsInAODAlg.h:49
CaloThinCellsInAODAlg
Thin calorimeter cells, digits and raw channels not associated with clusters linked to an electron,...
Definition: CaloThinCellsInAODAlg.h:36
CaloCell_ID.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
CaloThinCellsInAODAlg::initialize
virtual StatusCode initialize() override
Gaudi initialize method.
Definition: CaloThinCellsInAODAlg.cxx:17
CaloThinCellsInAODAlg::m_caloCellId
const CaloCell_ID * m_caloCellId
Definition: CaloThinCellsInAODAlg.h:46
LArOnOffIdMapping.h
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
SG::WriteHandleKey< LArHitContainer >
CaloThinCellsInAODAlg::m_digitsOutputKey
SG::WriteHandleKey< ConstLArDigitCont_t > m_digitsOutputKey
Definition: CaloThinCellsInAODAlg.h:69
CaloThinCellsInAODAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Execute the algorithm.
Definition: CaloThinCellsInAODAlg.cxx:49
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CaloThinCellsInAODAlg::m_digitsInputKey
SG::ReadHandleKey< LArDigitContainer > m_digitsInputKey
Definition: CaloThinCellsInAODAlg.h:60
CaloThinCellsInAODAlg::m_isMC
Gaudi::Property< bool > m_isMC
Definition: CaloThinCellsInAODAlg.h:54
CaloThinCellsInAODAlg::m_clusterCntKey
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clusterCntKey
Definition: CaloThinCellsInAODAlg.h:65
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
AthReentrantAlgorithm.h
LArOnlineID
Definition: LArOnlineID.h:20
LArDigitContainer.h
CaloCellContainer.h
SG::ReadCondHandleKey< LArOnOffIdMapping >
CaloThinCellsInAODAlg::m_rawChInputKey
SG::ReadHandleKey< LArRawChannelContainer > m_rawChInputKey
Definition: CaloThinCellsInAODAlg.h:61
CaloThinCellsInAODAlg::m_rawChOutputKey
SG::WriteHandleKey< LArRawChannelContainer > m_rawChOutputKey
Definition: CaloThinCellsInAODAlg.h:70
LArHitContainer.h
ConstDataVector
DataVector adapter that acts like it holds const pointers.
Definition: ConstDataVector.h:76
CaloThinCellsInAODAlg::m_hitsInputKey
SG::ReadHandleKey< LArHitContainer > m_hitsInputKey
Definition: CaloThinCellsInAODAlg.h:59
CaloThinCellsInAODAlg::ConstLArHitCont_t
ConstDataVector< LArHitContainer > ConstLArHitCont_t
Definition: CaloThinCellsInAODAlg.h:48
CaloClusterContainer.h
CaloThinCellsInAODAlg::m_caloCellInputKey
SG::ReadHandleKey< CaloCellContainer > m_caloCellInputKey
Definition: CaloThinCellsInAODAlg.h:62
LArRawChannelContainer.h
CaloThinCellsInAODAlg::m_clusterEtaCut
Gaudi::Property< float > m_clusterEtaCut
Definition: CaloThinCellsInAODAlg.h:53
LArOnlineID.h
CaloThinCellsInAODAlg::m_hitsOutputKey
SG::WriteHandleKey< LArHitContainer > m_hitsOutputKey
Definition: CaloThinCellsInAODAlg.h:68
CaloThinCellsInAODAlg::m_onlineID
const LArOnlineID * m_onlineID
Definition: CaloThinCellsInAODAlg.h:45