ATLAS Offline Software
Hist.h
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // Hist.h
8 // Header file for class AthEx::Hist
9 // Author: S.Binet<binet@cern.ch>
11 #ifndef ATHEXHISTNTUP_ATHEXHIST_H
12 #define ATHEXHISTNTUP_ATHEXHIST_H 1
13 
14 // STL includes
15 #include <string>
16 
17 // FrameWork includes
19 #include "GaudiKernel/ITHistSvc.h"
20 #include "GaudiKernel/ServiceHandle.h"
21 
22 // fwd declares
23 class TH1F;
24 
25 namespace AthEx {
26 
27 class Hist
28  : public ::AthAlgorithm
29 {
30 
32  // Public methods:
34  public:
35 
36  // Copy constructor:
37 
39  Hist( const std::string& name, ISvcLocator* pSvcLocator );
40 
42  virtual ~Hist();
43 
44  // Assignment operator:
45  //Hist &operator=(const Hist &alg);
46 
47  // Athena algorithm's Hooks
48  virtual StatusCode initialize();
49  virtual StatusCode execute();
50  virtual StatusCode finalize();
51 
53  // Private data:
55  private:
56 
58  Hist();
59 
62 
65 
67  std::string m_evtInfoName;
68 
69 };
70 
71 } //> namespace AthEx
72 
73 #endif //> !ATHEXHISTNTUP_ATHEXHIST_H
AthEx::Hist::Hist
Hist()
Default constructor:
AthEx::Hist::m_evtInfoName
std::string m_evtInfoName
key to the event-info
Definition: Hist.h:67
AthEx::Hist::m_hist
TH1F * m_hist
pointer to our histogram
Definition: Hist.h:64
AthEx::Hist::m_ntsvc
ServiceHandle< ITHistSvc > m_ntsvc
handle to the n-tuple svc
Definition: Hist.h:61
AthEx::Hist::~Hist
virtual ~Hist()
Destructor:
Definition: Hist.cxx:52
AthEx::Hist::initialize
virtual StatusCode initialize()
Definition: Hist.cxx:57
AthEx::Hist::execute
virtual StatusCode execute()
Definition: Hist.cxx:84
AthEx::Hist::finalize
virtual StatusCode finalize()
Definition: Hist.cxx:77
AthAlgorithm.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthEx
Definition: Hist.h:25
AthAlgorithm
Definition: AthAlgorithm.h:47
AthEx::Hist
Definition: Hist.h:29
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
python.TrigEgammaMonitorHelper.TH1F
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:24
ServiceHandle< ITHistSvc >