The Gaudi Framework
master (37c0b60a)
HistogramUtility.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 GAUDICOMMONSVC_HISTOGRAMUTILITY_H
12
#define GAUDICOMMONSVC_HISTOGRAMUTILITY_H 1
13
14
#include <
GaudiKernel/HistogramBase.h
>
15
16
namespace
Gaudi
{
17
template
<
class
Q,
class
T>
18
T*
getRepresentation
(
const
Q& hist ) {
19
auto
p =
dynamic_cast<
const
HistogramBase
*
>
( &hist );
20
return
p ?
dynamic_cast<
T*
>
( p->representation() ) :
nullptr
;
21
}
22
}
// namespace Gaudi
23
24
#endif
Gaudi::getRepresentation
T * getRepresentation(const Q &hist)
Definition:
HistogramUtility.h:18
Gaudi::HistogramBase
Definition:
HistogramBase.h:32
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 Thu Dec 19 2024 15:34:56 for The Gaudi Framework by
1.8.18