The Gaudi Framework  master (1304469f)
Loading...
Searching...
No Matches
THistWrite.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
16
17class TH1F;
18class ITHistSvc;
19class TDirectory;
20
21class THistWrite : public Algorithm {
22
23public:
24 // Constructor of this form must be provided
25 THistWrite( 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
32private:
33 ServiceHandle<ITHistSvc> m_ths{ this, "HistSvc", "THistSvc" };
34
35 void listKeys( TDirectory* td );
36};
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition Algorithm.h:98
const std::string & name() const override
The identifying name of the algorithm object.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition ISvcLocator.h:42
Handle to be used in lieu of naked pointers to services.
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64
ServiceHandle< ITHistSvc > m_ths
Definition THistWrite.h:33
StatusCode finalize() override
THistWrite(const std::string &name, ISvcLocator *pSvcLocator)
void listKeys(TDirectory *td)
StatusCode execute() override
StatusCode initialize() override