ATLAS Offline Software
Loading...
Searching...
No Matches
Hist.h
Go to the documentation of this file.
1
2
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
23class TH1F;
24
25namespace AthEx {
26
27class 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
59
62
64 TH1F *m_hist;
65
67 std::string m_evtInfoName;
68
69};
70
71} //> namespace AthEx
72
73#endif //> !ATHEXHISTNTUP_ATHEXHIST_H
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
std::string m_evtInfoName
key to the event-info
Definition Hist.h:67
ServiceHandle< ITHistSvc > m_ntsvc
handle to the n-tuple svc
Definition Hist.h:61
virtual ~Hist()
Destructor:
Definition Hist.cxx:52
Hist()
Default constructor:
virtual StatusCode initialize()
Definition Hist.cxx:57
virtual StatusCode execute()
Definition Hist.cxx:84
Hist(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition Hist.cxx:34
virtual StatusCode finalize()
Definition Hist.cxx:77
TH1F * m_hist
pointer to our histogram
Definition Hist.h:64
Definition Hist.h:25
TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)