ATLAS Offline Software
Loading...
Searching...
No Matches
Ntup.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// Ntup.h
8// Header file for class AthEx::Ntup
9// Author: S.Binet<binet@cern.ch>
11#ifndef ATHEXHISTNTUP_ATHEXNTUP_H
12#define ATHEXHISTNTUP_ATHEXNTUP_H 1
13
14// STL includes
15#include <string>
16#include <vector>
17
18// FrameWork includes
20#include "GaudiKernel/ITHistSvc.h"
21#include "GaudiKernel/ServiceHandle.h"
22
23//#include "TTree.h"
24// fwd declares
25class TTree;
26
27namespace AthEx {
28
29class Ntup
30 : public ::AthAlgorithm
31{
32
34 // Public methods:
36 public:
37
38 // Copy constructor:
39
41 Ntup( const std::string& name, ISvcLocator* pSvcLocator );
42
44 virtual ~Ntup();
45
46 // Assignment operator:
47 //Ntup &operator=(const Ntup &alg);
48
49 // Athena algorithm's Hooks
50 virtual StatusCode initialize();
51 virtual StatusCode execute();
52 virtual StatusCode finalize();
53
55 // Private data:
57 private:
58
61
64
65 // n-tuple data members
66 unsigned int m_size;
67 unsigned int m_run;
68 unsigned int m_event;
69 std::vector<long> m_rundata;
70
72 TTree* m_ntuple;
73
75 std::string m_evtInfoName;
76
77};
78
79} //> namespace AthEx
80
81#endif //> !ATHEXHISTNTUP_ATHEXNTUP_H
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Ntup()
Default constructor:
virtual StatusCode execute()
Definition Ntup.cxx:91
std::string m_evtInfoName
key to the event-info
Definition Ntup.h:75
virtual StatusCode finalize()
Definition Ntup.cxx:84
Ntup(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition Ntup.cxx:34
unsigned int m_run
Definition Ntup.h:67
TTree * m_ntuple
pointer to the n-tuple
Definition Ntup.h:72
std::vector< long > m_rundata
Definition Ntup.h:69
virtual StatusCode initialize()
Definition Ntup.cxx:60
unsigned int m_event
Definition Ntup.h:68
unsigned int m_size
Definition Ntup.h:66
virtual ~Ntup()
Destructor:
Definition Ntup.cxx:55
ServiceHandle< ITHistSvc > m_ntsvc
handle to the n-tuple svc
Definition Ntup.h:63
Definition Hist.h:25