CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
mkfit::rectvec< T > Class Template Reference

#include <TrackerInfo.h>

Public Member Functions

bool check_idcs (int i1, int i2) const
 
int n1 () const
 
int n2 () const
 
const Toperator() (int i1, int i2) const
 
Toperator() (int i1, int i2)
 
const Toperator[] (int i1) const
 
Toperator[] (int i1)
 
 rectvec (int n1=0, int n2=0)
 
void rerect (int n1, int n2)
 
const std::vector< T > & vector () const
 
std::vector< T > & vector ()
 

Private Attributes

int m_n1
 
int m_n2
 
std::vector< Tm_vec
 

Detailed Description

template<typename T>
class mkfit::rectvec< T >

Definition at line 148 of file TrackerInfo.h.

Constructor & Destructor Documentation

◆ rectvec()

template<typename T>
mkfit::rectvec< T >::rectvec ( int  n1 = 0,
int  n2 = 0 
)
inline

Definition at line 150 of file TrackerInfo.h.

150 : m_n1(n1), m_n2(n2), m_vec(n1 * n2) {}
std::vector< T > m_vec
Definition: TrackerInfo.h:173
int n1() const
Definition: TrackerInfo.h:167
int n2() const
Definition: TrackerInfo.h:168

Member Function Documentation

◆ check_idcs()

template<typename T>
bool mkfit::rectvec< T >::check_idcs ( int  i1,
int  i2 
) const
inline

◆ n1()

template<typename T>
int mkfit::rectvec< T >::n1 ( ) const
inline

Definition at line 167 of file TrackerInfo.h.

Referenced by mkfit::rectvec< mkfit::TrackerInfo::Material >::rerect().

167 { return m_n1; }

◆ n2()

template<typename T>
int mkfit::rectvec< T >::n2 ( ) const
inline

Definition at line 168 of file TrackerInfo.h.

Referenced by mkfit::rectvec< mkfit::TrackerInfo::Material >::rerect().

168 { return m_n2; }

◆ operator()() [1/2]

template<typename T>
const T& mkfit::rectvec< T >::operator() ( int  i1,
int  i2 
) const
inline

◆ operator()() [2/2]

template<typename T>
T& mkfit::rectvec< T >::operator() ( int  i1,
int  i2 
)
inline

◆ operator[]() [1/2]

template<typename T>
const T* mkfit::rectvec< T >::operator[] ( int  i1) const
inline

Definition at line 161 of file TrackerInfo.h.

◆ operator[]() [2/2]

template<typename T>
T* mkfit::rectvec< T >::operator[] ( int  i1)
inline

Definition at line 162 of file TrackerInfo.h.

◆ rerect()

template<typename T>
void mkfit::rectvec< T >::rerect ( int  n1,
int  n2 
)
inline

Definition at line 152 of file TrackerInfo.h.

152  {
153  m_n1 = n1;
154  m_n2 = n2;
155  m_vec.resize(n1 * n2);
156  }
std::vector< T > m_vec
Definition: TrackerInfo.h:173
int n1() const
Definition: TrackerInfo.h:167
int n2() const
Definition: TrackerInfo.h:168

◆ vector() [1/2]

template<typename T>
const std::vector<T>& mkfit::rectvec< T >::vector ( ) const
inline

Definition at line 164 of file TrackerInfo.h.

164 { return m_vec; }
std::vector< T > m_vec
Definition: TrackerInfo.h:173

◆ vector() [2/2]

template<typename T>
std::vector<T>& mkfit::rectvec< T >::vector ( )
inline

Definition at line 165 of file TrackerInfo.h.

165 { return m_vec; }
std::vector< T > m_vec
Definition: TrackerInfo.h:173

Member Data Documentation

◆ m_n1

template<typename T>
int mkfit::rectvec< T >::m_n1
private

◆ m_n2

template<typename T>
int mkfit::rectvec< T >::m_n2
private

◆ m_vec

template<typename T>
std::vector<T> mkfit::rectvec< T >::m_vec
private