Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  master (d98a2936)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
HistogramBase.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 <GaudiKernel/Kernel.h>
14 #include <iostream>
15 
16 class TObject;
17 
18 /*
19  * Gaudi namespace declaration
20  */
21 namespace Gaudi {
22 
32  public:
34  virtual TObject* representation() const = 0;
36  virtual void adoptRepresentation( TObject* rep ) = 0;
38  virtual std::ostream& print( std::ostream& s ) const = 0;
40  virtual std::ostream& write( std::ostream& s ) const = 0;
42  virtual int write( const char* file_name ) const = 0;
43  virtual ~HistogramBase() = default;
44  }; // class
45 
46 } // namespace Gaudi
Gaudi::HistogramBase::adoptRepresentation
virtual void adoptRepresentation(TObject *rep)=0
Adopt ROOT histogram representation.
Gaudi::HistogramBase::representation
virtual TObject * representation() const =0
ROOT object implementation.
gaudirun.s
string s
Definition: gaudirun.py:346
Gaudi::HistogramBase
Definition: HistogramBase.h:31
Gaudi::HistogramBase::write
virtual std::ostream & write(std::ostream &s) const =0
Write (binary) histogram to output stream.
Gaudi
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition: __init__.py:1
Gaudi::HistogramBase::write
virtual int write(const char *file_name) const =0
Write (binary) histogram to file.
Gaudi::HistogramBase::~HistogramBase
virtual ~HistogramBase()=default
Gaudi::HistogramBase::print
virtual std::ostream & print(std::ostream &s) const =0
Print histogram to output stream.
Kernel.h
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:49