ATLAS Offline Software
ExtractCaloGeoConstants.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef HIEVENTUTILS_EXTRACTCALOGEOCONSTANTS_H
6 #define HIEVENTUTILS_EXTRACTCALOGEOCONSTANTS_H
7 
10 #include "CaloEvent/CaloTowerContainer.h"
12 #include "GaudiKernel/ITHistSvc.h"
13 #include "GaudiKernel/ServiceHandle.h"
14 
15 #include <TMath.h>
16 #include <TH3F.h>
17 
19 {
20 
21 public:
22 
23  ExtractCaloGeoConstants(const std::string& name, ISvcLocator* pSvcLocator);
25 
26  virtual StatusCode initialize();
27  virtual StatusCode execute();
28  virtual StatusCode finalize();
29 
30 private:
31  SG::ReadHandleKey<CaloTowerContainer> m_tower_container_key{ this, "InputTowerKey", "CombinedTower", "name of input CaloTowerContainer"};
32  SG::ReadHandleKey<CaloCellContainer> m_cell_container_key{ this, "CaloCellContainerKey", "AllCalo", "name of input CaloCellContainer"};
33 
34  ServiceHandle<ITHistSvc> m_thistSvc{this, "THistSvc", "THistSvc"};
35  Gaudi::Property<std::string> m_hist_stream{this, "HistStream", "CALOGEOEXTRACTSTREAM"};
36 
37  TH3F* m_h3_w{nullptr};
38  TH3F* m_h3_eta{nullptr};
39  TH3F* m_h3_phi{nullptr};
40  TH3F* m_h3_R{nullptr};
41 };
42 #endif
ExtractCaloGeoConstants::m_tower_container_key
SG::ReadHandleKey< CaloTowerContainer > m_tower_container_key
Definition: ExtractCaloGeoConstants.h:31
ExtractCaloGeoConstants::initialize
virtual StatusCode initialize()
Definition: ExtractCaloGeoConstants.cxx:11
ExtractCaloGeoConstants::m_h3_R
TH3F * m_h3_R
Definition: ExtractCaloGeoConstants.h:40
ExtractCaloGeoConstants::m_h3_eta
TH3F * m_h3_eta
Definition: ExtractCaloGeoConstants.h:38
NavigationToken.h
SG::ReadHandleKey< CaloTowerContainer >
ExtractCaloGeoConstants::execute
virtual StatusCode execute()
Definition: ExtractCaloGeoConstants.cxx:30
AthAlgorithm.h
ExtractCaloGeoConstants::ExtractCaloGeoConstants
ExtractCaloGeoConstants(const std::string &name, ISvcLocator *pSvcLocator)
Definition: ExtractCaloGeoConstants.cxx:7
ExtractCaloGeoConstants::m_h3_phi
TH3F * m_h3_phi
Definition: ExtractCaloGeoConstants.h:39
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgorithm
Definition: AthAlgorithm.h:47
ExtractCaloGeoConstants::~ExtractCaloGeoConstants
~ExtractCaloGeoConstants()=default
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
ExtractCaloGeoConstants
Definition: ExtractCaloGeoConstants.h:19
ExtractCaloGeoConstants::m_hist_stream
Gaudi::Property< std::string > m_hist_stream
Definition: ExtractCaloGeoConstants.h:35
CaloCellContainer.h
ExtractCaloGeoConstants::m_thistSvc
ServiceHandle< ITHistSvc > m_thistSvc
Definition: ExtractCaloGeoConstants.h:34
ExtractCaloGeoConstants::finalize
virtual StatusCode finalize()
Definition: ExtractCaloGeoConstants.cxx:77
ExtractCaloGeoConstants::m_h3_w
TH3F * m_h3_w
Definition: ExtractCaloGeoConstants.h:37
ServiceHandle< ITHistSvc >
ExtractCaloGeoConstants::m_cell_container_key
SG::ReadHandleKey< CaloCellContainer > m_cell_container_key
Definition: ExtractCaloGeoConstants.h:32