CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
PixelRecoRange< T > Class Template Reference

#include <InnerDeltaPhi.h>

Inheritance diagram for PixelRecoRange< T >:

Public Member Functions

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

Detailed Description

template<class T>
class PixelRecoRange< T >

Define a range [aMin,aMax]

Definition at line 12 of file InnerDeltaPhi.h.

Constructor & Destructor Documentation

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

Definition at line 16 of file PixelRecoRange.h.

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

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

Definition at line 18 of file PixelRecoRange.h.

19  : 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.

22  : 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.

34  {
35  return rangesIntersect(*this,r);
36  }
bool rangesIntersect(const Range &a, const Range &b)
template<class T>
bool PixelRecoRange< T >::inside ( const T value) const
inline

Definition at line 30 of file PixelRecoRange.h.

Referenced by MultipleScatteringGeometry::detLayers(), MSLayer::distance(), HitRCheck::operator()(), and HitZCheck::operator()().

30  {
31  return !(value < this->first || this->second < value);
32  }
U second(std::pair< T, U > const &p)
bool first
Definition: L1TdeRCT.cc:94
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

Definition at line 51 of file PixelRecoRange.h.

Referenced by PixelTripletNoTipGenerator::hitTriplets(), and ThirdHitPredictionFromInvParabola::init().

51 { if (empty() ) std::swap(this->first,this->second); }
bool empty() const
U second(std::pair< T, U > const &p)
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
bool first
Definition: L1TdeRCT.cc:94
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().

42  {
43  if( this->empty()) return r;
44  else if( r.empty()) return *this;
45  else return
47  std::max( max(),r.max())
48  );
49  }
T max() const
#define min(a, b)
Definition: mlp_lapack.h:161
bool empty() const
T min() const
const T & max(const T &a, const T &b)