The Gaudi Framework  master (37c0b60a)
HistogramBase.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 HISTOGRAMSVC_BASE_H
12 #define HISTOGRAMSVC_BASE_H
13 
14 #include <GaudiKernel/Kernel.h>
15 #include <iostream>
16 
17 class TObject;
18 
19 /*
20  * Gaudi namespace declaration
21  */
22 namespace Gaudi {
23 
33  public:
35  virtual TObject* representation() const = 0;
37  virtual void adoptRepresentation( TObject* rep ) = 0;
39  virtual std::ostream& print( std::ostream& s ) const = 0;
41  virtual std::ostream& write( std::ostream& s ) const = 0;
43  virtual int write( const char* file_name ) const = 0;
44  virtual ~HistogramBase() = default;
45  }; // class
46 
47 } // namespace Gaudi
48 
49 #endif // HISTOGRAMSVC_BASE_H
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:32
std::ostream
STL class.
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:81