The Gaudi Framework
master (d98a2936)
HistogramUtility.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/HistogramBase.h
>
14
15
namespace
Gaudi
{
16
template
<
class
Q,
class
T>
17
T*
getRepresentation
(
const
Q& hist ) {
18
auto
p =
dynamic_cast<
const
HistogramBase
*
>
( &hist );
19
return
p ?
dynamic_cast<
T*
>
( p->representation() ) :
nullptr
;
20
}
21
}
// namespace Gaudi
Gaudi::getRepresentation
T * getRepresentation(const Q &hist)
Definition:
HistogramUtility.h:17
Gaudi::HistogramBase
Definition:
HistogramBase.h:31
HistogramBase.h
Gaudi
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition:
__init__.py:1
GaudiCommonSvc
include
GaudiCommonSvc
HistogramUtility.h
Generated on Wed Aug 13 2025 09:05:02 for The Gaudi Framework by
1.8.18