The Gaudi Framework  master (b9786168)
Loading...
Searching...
No Matches
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
14
15namespace 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
Common base class for all histograms Use is solely functional to minimize dynamic_casts inside Histog...
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition __init__.py:1
T * getRepresentation(const Q &hist)