HistoProperty.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_HISTOPROPERTY_H
2 #define GAUDIKERNEL_HISTOPROPERTY_H 1
3 // ============================================================================
4 // Include files
5 // ============================================================================
6 // GaudiKernel
7 // ============================================================================
8 #include "GaudiKernel/HistoDef.h"
9 #include "GaudiKernel/Property.h"
10 // ============================================================================
11 template <class TYPE> class BoundedVerifier ;
12 template <class TYPE> class NullVerifier ;
13 template <class TYPE,class VERIFIER> class SimpleProperty ;
14 template <class TYPE,class VERIFIER> class SimplePropertyRef ;
15 // ============================================================================
21 template <>
22 inline bool
24 ( const Gaudi::Histo1DDef* value ) const
25 {
26  return value && value->ok()
27  && ( ( m_hasLowerBound && ( *value < m_lowerBound ) ) ? false : true )
28  && ( ( m_hasUpperBound && ( m_upperBound < *value ) ) ? false : true ) ;
29 }
30 // ============================================================================
35 template <>
36 inline bool
38 ( const Gaudi::Histo1DDef* value ) const
39 {
40  return value && value->ok() ;
41 }
42 // ============================================================================
45 // ============================================================================
48 // ============================================================================
49 
50 // ============================================================================
51 // The END
52 // ============================================================================
53 #endif // GAUDIKERNEL_HISTOPROPERTY_H
54 // ============================================================================
bool isValid(const typename Gaudi::Utils::PropertyTypeTraits< T >::CVal value) const override
Check if the value is within bounds.
bool isValid(const typename Gaudi::Utils::PropertyTypeTraits< T >::CVal) const override
SimpleProperty< Gaudi::Histo1DDef > Histo1DProperty
the actual type of "histogram property"
Definition: HistoProperty.h:44
SimplePropertyRef templated class.
Definition: HistoProperty.h:14
SimpleProperty concrete class which implements the full Property interface.
Definition: HistoProperty.h:13
Simple helper class for description of 1D-histogram The class is targeted to act as the primary "hist...
Definition: HistoDef.h:30
bool ok() const
check if all fields are "reasonable"
Definition: HistoDef.h:100
Default, always true verifier.
Definition: HistoProperty.h:12
SimplePropertyRef< Gaudi::Histo1DDef > Histo1DPropertyRef
the actual type of "histogram property reference"
Definition: HistoProperty.h:47