ATLAS Offline Software
Loading...
Searching...
No Matches
CaloCellEnergyCorr2Ntuple.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5// CaloCellEnergyCorr2Ntuple.h
6//
7
8#ifndef CALOCONDPHYSALGS_CALOCELLENERGYCORR2NTUPLE_H
9#define CALOCONDPHYSALGS_CALOCELLENERGYCORR2NTUPLE_H
10
11#include <string>
12
13// Gaudi includes
14
16#include "GaudiKernel/ToolHandle.h"
21
22#include "GaudiKernel/ITHistSvc.h"
23#include "TTree.h"
24
26
28/* AthenaAttibuteList ctors and dtors are not thread
29 * safe leading to certain methods here not being Thread safe
30 */
31
33
34 public:
35 //Gaudi style constructor and execution methods
37 CaloCellEnergyCorr2Ntuple(const std::string& name, ISvcLocator* pSvcLocator) ATLAS_CTORDTOR_NOT_THREAD_SAFE;
40
42 virtual StatusCode initialize ATLAS_NOT_THREAD_SAFE() override;
44 virtual StatusCode execute() override;
46 virtual StatusCode finalize() override;
48 virtual StatusCode stop ATLAS_NOT_THREAD_SAFE() override;
49
50 private:
51
52 //---------------------------------------------------
53 // Member variables
54 //---------------------------------------------------
55 //=== blob storage
56 ServiceHandle<ITHistSvc> m_thistSvc{this,"THistSvc","THistSvc"};
57
59
60 std::string m_key;
61 std::string m_FolderName;
64 , "CaloDetDescrManager"
65 , "CaloDetDescrManager"
66 , "SG Key for CaloDetDescrManager in the Condition Store" };
67
68 int m_Hash;
70 float m_eta;
71 float m_phi;
74 float m_corr;
75 TTree* m_tree;
76
79
80};
81#endif
Definition of CaloDetDescrManager.
Define macros for attributes used to control the static checker.
#define ATLAS_CTORDTOR_NOT_THREAD_SAFE
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
An AttributeList represents a logical row of attributes in a metadata table.
virtual StatusCode stop ATLAS_NOT_THREAD_SAFE() override
standard Athena-Algorithm method
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
virtual StatusCode finalize() override
standard Athena-Algorithm method
~CaloCellEnergyCorr2Ntuple() ATLAS_CTORDTOR_NOT_THREAD_SAFE
Default Destructor.
virtual StatusCode initialize ATLAS_NOT_THREAD_SAFE() override
standard Athena-Algorithm method
CaloCellEnergyCorr2Ntuple(const std::string &name, ISvcLocator *pSvcLocator) ATLAS_CTORDTOR_NOT_THREAD_SAFE
Standard Athena-Algorithm Constructor.
const DataHandle< AthenaAttributeList > m_AttrListColl
virtual StatusCode execute() override
standard Athena-Algorithm method
ServiceHandle< ITHistSvc > m_thistSvc
Helper class for offline cell identifiers.
Definition CaloCell_ID.h:34
an iterator over instances of a given type in StoreGateSvc.
Definition DataHandle.h:43
void initialize()