The Gaudi Framework
master (6507eef1)
Toggle main menu visibility
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
16
class
TObject;
17
18
/*
19
* Gaudi namespace declaration
20
*/
21
namespace
Gaudi
{
22
31
class
GAUDI_API
HistogramBase
{
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
Kernel.h
GAUDI_API
#define GAUDI_API
Definition
Kernel.h:49
Gaudi::HistogramBase
Common base class for all histograms Use is solely functional to minimize dynamic_casts inside Histog...
Definition
HistogramBase.h:31
Gaudi::HistogramBase::~HistogramBase
virtual ~HistogramBase()=default
Gaudi::HistogramBase::adoptRepresentation
virtual void adoptRepresentation(TObject *rep)=0
Adopt ROOT histogram representation.
Gaudi::HistogramBase::write
virtual int write(const char *file_name) const =0
Write (binary) histogram to file.
Gaudi::HistogramBase::write
virtual std::ostream & write(std::ostream &s) const =0
Write (binary) histogram to output stream.
Gaudi::HistogramBase::representation
virtual TObject * representation() const =0
ROOT object implementation.
Gaudi::HistogramBase::print
virtual std::ostream & print(std::ostream &s) const =0
Print 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
GaudiKernel
include
GaudiKernel
HistogramBase.h
Generated on
for The Gaudi Framework by
1.17.0