CMS 3D CMS Logo

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

#include <TkTrackingRegionsMargin.h>

Inheritance diagram for TkTrackingRegionsMargin< T >:

Public Member Functions

void add (const T &addLeft, const T &addRight)
 
const Tleft () const
 
void operator+= (const T &v)
 
const Tright () const
 
 TkTrackingRegionsMargin ()
 
 TkTrackingRegionsMargin (const T &aLeft, const T &aRight)
 
 TkTrackingRegionsMargin (const std::pair< T, T > &aPair)
 

Detailed Description

template<class T>
class TkTrackingRegionsMargin< T >

Define two (left and right) margins

Definition at line 9 of file TkTrackingRegionsMargin.h.

Constructor & Destructor Documentation

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

Definition at line 12 of file TkTrackingRegionsMargin.h.

12 { }
template<class T>
TkTrackingRegionsMargin< T >::TkTrackingRegionsMargin ( const T aLeft,
const T aRight 
)
inline

Definition at line 14 of file TkTrackingRegionsMargin.h.

15  : std::pair<T,T> (aLeft,aRight) { }
template<class T>
TkTrackingRegionsMargin< T >::TkTrackingRegionsMargin ( const std::pair< T, T > &  aPair)
inline

Definition at line 17 of file TkTrackingRegionsMargin.h.

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

Member Function Documentation

template<class T>
void TkTrackingRegionsMargin< T >::add ( const T addLeft,
const T addRight 
)
inline

Definition at line 24 of file TkTrackingRegionsMargin.h.

Referenced by TkTrackingRegionsMargin< float >::operator+=().

24  {
25  this->first += addLeft;
26  this->second += addRight;
27  }
U second(std::pair< T, U > const &p)
bool first
Definition: L1TdeRCT.cc:79
template<class T>
const T& TkTrackingRegionsMargin< T >::left ( ) const
inline

Definition at line 20 of file TkTrackingRegionsMargin.h.

Referenced by svgfig.Curve.Samples::__len__(), OuterHitPhiPrediction::operator()(), and operator<<().

20 { return this->first; }
bool first
Definition: L1TdeRCT.cc:79
template<class T>
void TkTrackingRegionsMargin< T >::operator+= ( const T v)
inline

Definition at line 23 of file TkTrackingRegionsMargin.h.

23 { add(v,v); }
void add(const T &addLeft, const T &addRight)
template<class T>
const T& TkTrackingRegionsMargin< T >::right ( ) const
inline

Definition at line 21 of file TkTrackingRegionsMargin.h.

Referenced by FastTSGFromL2Muon::clean(), FastTSGFromIOHit::clean(), OuterHitPhiPrediction::operator()(), and operator<<().

21 { return this->second; }
U second(std::pair< T, U > const &p)