![]() |
|
|||
File indexing completed on 2025-02-21 10:00:27
0001 /***********************************************************************************\ 0002 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations * 0003 * * 0004 * This software is distributed under the terms of the Apache version 2 licence, * 0005 * copied verbatim in the file "LICENSE". * 0006 * * 0007 * In applying this licence, CERN does not waive the privileges and immunities * 0008 * granted to it by virtue of its status as an Intergovernmental Organization * 0009 * or submit itself to any jurisdiction. * 0010 \***********************************************************************************/ 0011 #ifndef GAUDICOMMONSVC_HISTOGRAMUTILITY_H 0012 #define GAUDICOMMONSVC_HISTOGRAMUTILITY_H 1 0013 0014 #include "GaudiKernel/HistogramBase.h" 0015 0016 namespace Gaudi { 0017 template <class Q, class T> 0018 T* getRepresentation( const Q& hist ) { 0019 auto p = dynamic_cast<const HistogramBase*>( &hist ); 0020 return p ? dynamic_cast<T*>( p->representation() ) : nullptr; 0021 } 0022 } // namespace Gaudi 0023 0024 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |