| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
23 BoundedVerifier<Gaudi::Histo1DDef>::isValid
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
37 NullVerifier<Gaudi::Histo1DDef>::isValid
38 ( const Gaudi::Histo1DDef* value ) const
39 {
40 return value && value->ok() ;
41 }
42 // ============================================================================
44 typedef SimpleProperty <Gaudi::Histo1DDef> Histo1DProperty ;
45 // ============================================================================
47 typedef SimplePropertyRef<Gaudi::Histo1DDef> Histo1DPropertyRef ;
48 // ============================================================================
49
50 // ============================================================================
51 // The END
52 // ============================================================================
53 #endif // GAUDIKERNEL_HISTOPROPERTY_H
54 // ============================================================================
BoundedVerifier::isValid
bool isValid(const typename Gaudi::Utils::PropertyTypeTraits< T >::CVal value) const override
Check if the value is within bounds.
Definition: PropertyVerifier.h:81
NullVerifier::isValid
bool isValid(const typename Gaudi::Utils::PropertyTypeTraits< T >::CVal) const override
Definition: PropertyVerifier.h:59
Histo1DProperty
SimpleProperty< Gaudi::Histo1DDef > Histo1DProperty
the actual type of "histogram property"
Definition: HistoProperty.h:44
SimplePropertyRef
SimplePropertyRef templated class.
Definition: HistoProperty.h:14
BoundedVerifier
Definition: HistoProperty.h:11
SimpleProperty
SimpleProperty concrete class which implements the full Property interface.
Definition: HistoProperty.h:13
Gaudi::Histo1DDef
Simple helper class for description of 1D-histogram The class is targeted to act as the primary "hist...
Definition: HistoDef.h:30
Gaudi::Histo1DDef::ok
bool ok() const
check if all fields are "reasonable"
Definition: HistoDef.h:100
dump_component_properties.value
list value
Definition: dump_component_properties.py:12
NullVerifier
Default, always true verifier.
Definition: HistoProperty.h:12
Property.h
HistoDef.h
Histo1DPropertyRef
SimplePropertyRef< Gaudi::Histo1DDef > Histo1DPropertyRef
the actual type of "histogram property reference"
Definition: HistoProperty.h:47