ATLAS Offline Software
Loading...
Searching...
No Matches
CaloNoise2Ntuple.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5// CaloNoise2Ntuple.h
6//
7
8#ifndef CALOCONDPHYSALGS_CALONOISE2NTUPLE_H
9#define CALOCONDPHYSALGS_CALONOISE2NTUPLE_H
10
11#include <string>
12
13// Gaudi includes
14
16#include "GaudiKernel/ToolHandle.h"
20
21#include "GaudiKernel/ITHistSvc.h"
22#include "TTree.h"
23
25
26class CaloNoise;
27
29
30 public:
31 //Gaudi style constructor and execution methods
33 CaloNoise2Ntuple(const std::string& name, ISvcLocator* pSvcLocator);
36
38 virtual StatusCode initialize() override;
40 virtual StatusCode execute() override;
42 virtual StatusCode stop() override;
43
44 private:
45
46 //---------------------------------------------------
47 // Member variables
48 //---------------------------------------------------
49 ServiceHandle<ITHistSvc> m_thistSvc{this,"THistSvc","THistSvc"};
50
52
54 { this, "TotalNoiseKey", "totalNoise", "SG key for total noise" };
56 { this, "ElecNoiseKey", "electronicNoise", "SG key for electronic noise" };
58 { this, "PileupNoiseKey", "pileupNoise", "SG key for pileup noise" };
60 {this,"CaloDetDescrManager","CaloDetDescrManager","SG Key for CaloDetDescrManager in the Condition Store" };
61
62 Gaudi::Property<std::string> m_treeName{this, "TreeName", "mytree"};
63
64 int m_iCool{0};
65 int m_SubHash{0};
66 int m_Hash{0};
67 int m_OffId{0};
68 float m_eta{0.};
69 float m_phi{0.};
70 int m_layer{0};
71 int m_Gain{0};
72 float m_noise{0.};
73 float m_elecNoise{0.};
74 float m_pileupNoise{0.};
75 TTree* m_tree{};
76
79};
80#endif
Definition of CaloDetDescrManager.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Helper class for offline cell identifiers.
Definition CaloCell_ID.h:34
SG::ReadCondHandleKey< CaloNoise > m_pileupNoiseKey
virtual StatusCode execute() override
standard Athena-Algorithm method
const CaloCell_ID * m_calo_id
Gaudi::Property< std::string > m_treeName
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
SG::ReadCondHandleKey< CaloNoise > m_totalNoiseKey
virtual ~CaloNoise2Ntuple()
Default Destructor.
virtual StatusCode stop() override
standard Athena-Algorithm method
ServiceHandle< ITHistSvc > m_thistSvc
SG::ReadCondHandleKey< CaloNoise > m_elecNoiseKey
void initialize()