The Gaudi Framework
v41r0 (bdbe7744)
Toggle main menu visibility
Loading...
Searching...
No Matches
THistRead.h
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2025 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
#pragma once
12
13
// Include files
14
#include <
GaudiKernel/Algorithm.h
>
15
#include <
GaudiKernel/ServiceHandle.h
>
16
17
class
TH1F;
18
class
ITHistSvc
;
19
class
TDirectory;
20
21
class
THistRead
:
public
Algorithm
{
22
23
public
:
24
// Constructor of this form must be provided
25
THistRead
(
const
std::string&
name
,
ISvcLocator
* pSvcLocator );
26
27
// Three mandatory member functions of any algorithm
28
StatusCode
initialize
()
override
;
29
StatusCode
execute
()
override
;
30
StatusCode
finalize
()
override
;
31
32
private
:
33
ServiceHandle<ITHistSvc>
m_ths
{
this
,
"HistSvc"
,
"THistSvc"
};
34
};
Algorithm.h
ServiceHandle.h
Gaudi::Algorithm::Algorithm
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition
Algorithm.h:98
Gaudi::Algorithm::name
const std::string & name() const override
The identifying name of the algorithm object.
Definition
Algorithm.cpp:518
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition
ISvcLocator.h:42
ITHistSvc
Definition
ITHistSvc.h:29
ServiceHandle
Handle to be used in lieu of naked pointers to services.
Definition
ServiceHandle.h:38
StatusCode
This class is used for returning status codes from appropriate routines.
Definition
StatusCode.h:64
THistRead::initialize
StatusCode initialize() override
Definition
THistRead.cpp:37
THistRead::finalize
StatusCode finalize() override
Definition
THistRead.cpp:105
THistRead::m_ths
ServiceHandle< ITHistSvc > m_ths
Definition
THistRead.h:33
THistRead::THistRead
THistRead(const std::string &name, ISvcLocator *pSvcLocator)
Definition
THistRead.cpp:31
THistRead::execute
StatusCode execute() override
Definition
THistRead.cpp:98
GaudiTestSuite
src
THist
THistRead.h
Generated on
for The Gaudi Framework by
1.17.0