The Gaudi Framework
master (ce3a6a80)
Toggle main menu visibility
Loading...
Searching...
No Matches
NTupleAlgorithm.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/NTuple.h
>
16
17
// Forward declarations
18
19
class
NTupleAlgorithm
:
public
Algorithm
{
20
21
public
:
22
// Constructor of this form must be provided
23
NTupleAlgorithm
(
const
std::string&
name
,
ISvcLocator
* pSvcLocator );
24
25
// Three mandatory member functions of any algorithm
26
StatusCode
initialize
()
override
;
27
StatusCode
execute
()
override
;
28
StatusCode
finalize
()
override
;
29
30
private
:
31
NTuple::Tuple
*
m_tuple1
=
nullptr
;
32
NTuple::Tuple
*
m_tuple2
=
nullptr
;
33
34
NTuple::Item<long>
m_ntrk
;
35
NTuple::Item<float>
m_energy
;
36
// Items for the column wise n-tuple
37
NTuple::Array<long>
m_iNumbers
;
38
NTuple::Array<float>
m_fNumbers
;
39
NTuple::Item<long>
m_n
;
40
};
Algorithm.h
NTuple.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
NTuple::Array
Class acting as a smart pointer holding a N tuple _Item.
Definition
NTuple.h:324
NTuple::Item
Class acting as a smart pointer holding a N tuple _Item.
Definition
NTuple.h:251
NTuple::Tuple
Abstract base class which allows the user to interact with the actual N tuple implementation.
Definition
NTuple.h:380
NTupleAlgorithm::m_fNumbers
NTuple::Array< float > m_fNumbers
Definition
NTupleAlgorithm.h:38
NTupleAlgorithm::finalize
StatusCode finalize() override
Definition
NTupleAlgorithm.cpp:105
NTupleAlgorithm::m_iNumbers
NTuple::Array< long > m_iNumbers
Definition
NTupleAlgorithm.h:37
NTupleAlgorithm::NTupleAlgorithm
NTupleAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Definition
NTupleAlgorithm.cpp:25
NTupleAlgorithm::m_tuple2
NTuple::Tuple * m_tuple2
Definition
NTupleAlgorithm.h:32
NTupleAlgorithm::initialize
StatusCode initialize() override
Definition
NTupleAlgorithm.cpp:34
NTupleAlgorithm::execute
StatusCode execute() override
Definition
NTupleAlgorithm.cpp:72
NTupleAlgorithm::m_tuple1
NTuple::Tuple * m_tuple1
Definition
NTupleAlgorithm.h:31
NTupleAlgorithm::m_ntrk
NTuple::Item< long > m_ntrk
Definition
NTupleAlgorithm.h:34
NTupleAlgorithm::m_n
NTuple::Item< long > m_n
Definition
NTupleAlgorithm.h:39
NTupleAlgorithm::m_energy
NTuple::Item< float > m_energy
Definition
NTupleAlgorithm.h:35
StatusCode
This class is used for returning status codes from appropriate routines.
Definition
StatusCode.h:64
GaudiTestSuite
src
NTuples
NTupleAlgorithm.h
Generated on
for The Gaudi Framework by
1.17.0