The Gaudi Framework  master (82fdf313)
Loading...
Searching...
No Matches
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
16class TObject;
17
18/*
19 * Gaudi namespace declaration
20 */
21namespace 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
#define GAUDI_API
Definition Kernel.h:49
Common base class for all histograms Use is solely functional to minimize dynamic_casts inside Histog...
virtual ~HistogramBase()=default
virtual void adoptRepresentation(TObject *rep)=0
Adopt ROOT histogram representation.
virtual int write(const char *file_name) const =0
Write (binary) histogram to file.
virtual std::ostream & write(std::ostream &s) const =0
Write (binary) histogram to output stream.
virtual TObject * representation() const =0
ROOT object implementation.
virtual std::ostream & print(std::ostream &s) const =0
Print histogram to output stream.
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition __init__.py:1