CMS 3D CMS Logo

Public Member Functions

PixelRecoRange< T > Class Template Reference

#include <PixelRecoRange.h>

Inheritance diagram for PixelRecoRange< T >:
pair

List of all members.

Public Member Functions

bool empty () const
bool hasIntersection (const PixelRecoRange< T > &r) const
bool inside (const T &value) const
PixelRecoRange< T > intersection (const PixelRecoRange< T > &r) const
max () const
mean () const
min () const
 PixelRecoRange (T aMin, T aMax)
 PixelRecoRange ()
 PixelRecoRange (const std::pair< T, T > &aPair)
void sort ()
PixelRecoRange< T > sum (const PixelRecoRange< T > &r) const

Detailed Description

template<class T>
class PixelRecoRange< T >

Define a range [aMin,aMax]

Definition at line 13 of file PixelRecoRange.h.


Constructor & Destructor Documentation

template<class T>
PixelRecoRange< T >::PixelRecoRange ( ) [inline]

Definition at line 16 of file PixelRecoRange.h.

Referenced by PixelRecoRange< float >::sum().

{ }
template<class T>
PixelRecoRange< T >::PixelRecoRange ( aMin,
aMax 
) [inline]

Definition at line 18 of file PixelRecoRange.h.

      : std::pair<T,T> (aMin,aMax) { }
template<class T>
PixelRecoRange< T >::PixelRecoRange ( const std::pair< T, T > &  aPair) [inline]

Definition at line 21 of file PixelRecoRange.h.

      : std::pair<T,T> (aPair) { }  

Member Function Documentation

template<class T>
bool PixelRecoRange< T >::empty ( void  ) const [inline]
template<class T>
bool PixelRecoRange< T >::hasIntersection ( const PixelRecoRange< T > &  r) const [inline]

Definition at line 34 of file PixelRecoRange.h.

                                                           {
    return rangesIntersect(*this,r); 
  }
template<class T>
bool PixelRecoRange< T >::inside ( const T &  value) const [inline]
template<class T>
PixelRecoRange<T> PixelRecoRange< T >::intersection ( const PixelRecoRange< T > &  r) const [inline]
template<class T>
T PixelRecoRange< T >::max ( ) const [inline]
template<class T>
T PixelRecoRange< T >::mean ( ) const [inline]
template<class T>
T PixelRecoRange< T >::min ( ) const [inline]
template<class T>
void PixelRecoRange< T >::sort ( ) [inline]
template<class T>
PixelRecoRange<T> PixelRecoRange< T >::sum ( const PixelRecoRange< T > &  r) const [inline]

Definition at line 42 of file PixelRecoRange.h.

Referenced by PixelTripletHLTGenerator::hitTriplets().

                                                           {
   if( this->empty()) return r;
   else if( r.empty()) return *this;
   else return 
          PixelRecoRange(std::min( min(),r.min()),
                         std::max( max(),r.max())
                        ); 
  }