ATLAS Offline Software
Loading...
Searching...
No Matches
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
21public:
22
23 ExtractCaloGeoConstants(const std::string& name, ISvcLocator* pSvcLocator);
25
26 virtual StatusCode initialize();
27 virtual StatusCode execute();
28 virtual StatusCode finalize();
29
30private:
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 TH1F* m_h1_events{nullptr};
42};
43#endif
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
ServiceHandle< ITHistSvc > m_thistSvc
SG::ReadHandleKey< CaloTowerContainer > m_tower_container_key
Gaudi::Property< std::string > m_hist_stream
~ExtractCaloGeoConstants()=default
SG::ReadHandleKey< CaloCellContainer > m_cell_container_key
ExtractCaloGeoConstants(const std::string &name, ISvcLocator *pSvcLocator)
Property holding a SG store/key/clid from which a ReadHandle is made.