CMS 3D CMS Logo

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 std::pair< T, T > &aPair)
 
 TkTrackingRegionsMargin (const T &aLeft, const T &aRight)
 

Detailed Description

template<class T>
class TkTrackingRegionsMargin< T >

Define two (left and right) margins

Definition at line 10 of file TkTrackingRegionsMargin.h.

Constructor & Destructor Documentation

◆ TkTrackingRegionsMargin() [1/3]

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

Definition at line 12 of file TkTrackingRegionsMargin.h.

12 {}

◆ TkTrackingRegionsMargin() [2/3]

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

Definition at line 14 of file TkTrackingRegionsMargin.h.

14 : std::pair<T, T>(aLeft, aRight) {}

◆ TkTrackingRegionsMargin() [3/3]

template<class T>
TkTrackingRegionsMargin< T >::TkTrackingRegionsMargin ( const std::pair< T, T > &  aPair)
inline

Definition at line 16 of file TkTrackingRegionsMargin.h.

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

Member Function Documentation

◆ add()

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

Definition at line 22 of file TkTrackingRegionsMargin.h.

22  {
23  this->first += addLeft;
24  this->second += addRight;
25  }

Referenced by TkTrackingRegionsMargin< float >::operator+=(), and counter.Counter::register().

◆ left()

template<class T>
const T& TkTrackingRegionsMargin< T >::left ( ) const
inline

◆ operator+=()

template<class T>
void TkTrackingRegionsMargin< T >::operator+= ( const T v)
inline

Definition at line 21 of file TkTrackingRegionsMargin.h.

21 { add(v, v); }

◆ right()

template<class T>
const T& TkTrackingRegionsMargin< T >::right ( ) const
inline
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:222
findQualityFiles.v
v
Definition: findQualityFiles.py:179
TkTrackingRegionsMargin::add
void add(const T &addLeft, const T &addRight)
Definition: TkTrackingRegionsMargin.h:22
first
auto first
Definition: CAHitNtupletGeneratorKernelsImpl.h:125