ATLAS Offline Software
Loading...
Searching...
No Matches
CaloNoise2Ntuple.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 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);
35 virtual ~CaloNoise2Ntuple();
36
38 virtual StatusCode initialize() override;
40 virtual StatusCode execute() override;
42 virtual StatusCode finalize() override;
44 virtual StatusCode stop() override;
45
46 private:
47
48 //---------------------------------------------------
49 // Member variables
50 //---------------------------------------------------
51 ServiceHandle<ITHistSvc> m_thistSvc{this,"THistSvc","THistSvc"};
52
54
56 { this, "TotalNoiseKey", "totalNoise", "SG key for total noise" };
58 { this, "ElecNoiseKey", "electronicNoise", "SG key for electronic noise" };
60 { this, "PileupNoiseKey", "pileupNoise", "SG key for pileup noise" };
62 {this,"CaloDetDescrManager","CaloDetDescrManager","SG Key for CaloDetDescrManager in the Condition Store" };
63
64 std::string m_treeName;
65
68 int m_Hash;
70 float m_eta;
71 float m_phi;
73 int m_Gain;
74 float m_noise;
77 TTree* m_tree;
78
81
82};
83#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
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
SG::ReadCondHandleKey< CaloNoise > m_totalNoiseKey
virtual StatusCode stop() override
standard Athena-Algorithm method
virtual StatusCode finalize() override
standard Athena-Algorithm method
ServiceHandle< ITHistSvc > m_thistSvc
std::string m_treeName
SG::ReadCondHandleKey< CaloNoise > m_elecNoiseKey
void initialize()