All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HistoProperty.h
Go to the documentation of this file.
1 // $Id: HistoProperty.h,v 1.1 2007/09/26 16:13:41 marcocle Exp $
2 // ============================================================================
3 #ifndef GAUDIKERNEL_HISTOPROPERTY_H
4 #define GAUDIKERNEL_HISTOPROPERTY_H 1
5 // ============================================================================
6 // Include files
7 // ============================================================================
8 // GaudiKernel
9 // ============================================================================
10 #include "GaudiKernel/HistoDef.h"
11 #include "GaudiKernel/Property.h"
12 // ============================================================================
13 template <class TYPE> class BoundedVerifier ;
14 template <class TYPE> class NullVerifier ;
15 template <class TYPE,class VERIFIER> class SimpleProperty ;
16 template <class TYPE,class VERIFIER> class SimplePropertyRef ;
17 // ============================================================================
23 template <>
24 inline bool
26 ( const Gaudi::Histo1DDef* value ) const
27 {
28  return 0 != value && value->ok()
29  && ( ( m_hasLowerBound && ( *value < m_lowerBound ) ) ? false : true )
30  && ( ( m_hasUpperBound && ( m_upperBound < *value ) ) ? false : true ) ;
31 }
32 // ============================================================================
37 template <>
38 inline bool
40 ( const Gaudi::Histo1DDef* value ) const
41 {
42  return 0 != value && value->ok() ;
43 }
44 // ============================================================================
47 // ============================================================================
50 // ============================================================================
51 
52 // ============================================================================
53 // The END
54 // ============================================================================
55 #endif // GAUDIKERNEL_HISTOPROPERTY_H
56 // ============================================================================
bool isValid(const typename Gaudi::Utils::PropertyTypeTraits< T >::CVal value) const
Check if the value is within bounds.
SimpleProperty< Gaudi::Histo1DDef > Histo1DProperty
the actual type of "histogram property"
Definition: HistoProperty.h:46
SimplePropertyRef templated class.
Definition: HistoProperty.h:16
virtual bool isValid(const typename Gaudi::Utils::PropertyTypeTraits< T >::CVal) const
SimpleProperty concrete class which implements the full Property interface.
Definition: HistoProperty.h:15
Simple helper class for description of 1D-histogram The class is targeted to act as the primary "hist...
Definition: HistoDef.h:32
bool ok() const
check if all fields are "reasonable"
Definition: HistoDef.h:102
Default, always true verifier.
Definition: HistoProperty.h:14
SimplePropertyRef< Gaudi::Histo1DDef > Histo1DPropertyRef
the actual type of "histogram property reference"
Definition: HistoProperty.h:49