The Gaudi Framework
master (37c0b60a)
THistRead.h
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3
* *
4
* This software is distributed under the terms of the Apache version 2 licence, *
5
* copied verbatim in the file "LICENSE". *
6
* *
7
* In applying this licence, CERN does not waive the privileges and immunities *
8
* granted to it by virtue of its status as an Intergovernmental Organization *
9
* or submit itself to any jurisdiction. *
10
\***********************************************************************************/
11
#ifndef THIST_THISTREAD_H
12
#define THIST_THISTREAD_H 1
13
14
// Include files
15
#include <
GaudiKernel/Algorithm.h
>
16
#include <
GaudiKernel/ServiceHandle.h
>
17
18
class
TH1F;
19
class
ITHistSvc
;
20
class
TDirectory;
21
22
class
THistRead
:
public
Algorithm
{
23
24
public
:
25
// Constructor of this form must be provided
26
THistRead
(
const
std::string
&
name
,
ISvcLocator
* pSvcLocator );
27
28
// Three mandatory member functions of any algorithm
29
StatusCode
initialize
()
override
;
30
StatusCode
execute
()
override
;
31
StatusCode
finalize
()
override
;
32
33
private
:
34
ServiceHandle<ITHistSvc>
m_ths
{
this
,
"HistSvc"
,
"THistSvc"
};
35
};
36
37
#endif // THIST_HISTREAD_H
THistRead::execute
StatusCode execute() override
Definition:
THistRead.cpp:98
THistRead::THistRead
THistRead(const std::string &name, ISvcLocator *pSvcLocator)
Definition:
THistRead.cpp:31
std::string
STL class.
Gaudi::Algorithm::name
const std::string & name() const override
The identifying name of the algorithm object.
Definition:
Algorithm.cpp:526
ServiceHandle< ITHistSvc >
ISvcLocator
Definition:
ISvcLocator.h:46
Algorithm
Alias for backward compatibility.
Definition:
Algorithm.h:58
Algorithm.h
ServiceHandle.h
THistRead
Definition:
THistRead.h:22
StatusCode
Definition:
StatusCode.h:65
THistRead::finalize
StatusCode finalize() override
Definition:
THistRead.cpp:105
ITHistSvc
Definition:
ITHistSvc.h:34
THistRead::m_ths
ServiceHandle< ITHistSvc > m_ths
Definition:
THistRead.h:34
THistRead::initialize
StatusCode initialize() override
Definition:
THistRead.cpp:37
GaudiTestSuite
src
THist
THistRead.h
Generated on Thu Dec 19 2024 15:35:07 for The Gaudi Framework by
1.8.18