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 151 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 153 of file TrackerInfo.h.

153 : m_n1(n1), m_n2(n2), m_vec(n1 * n2) {}
std::vector< T > m_vec
Definition: TrackerInfo.h:176
int n1() const
Definition: TrackerInfo.h:170
int n2() const
Definition: TrackerInfo.h:171

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 170 of file TrackerInfo.h.

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

170 { return m_n1; }

◆ n2()

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

Definition at line 171 of file TrackerInfo.h.

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

171 { 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 164 of file TrackerInfo.h.

◆ operator[]() [2/2]

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

Definition at line 165 of file TrackerInfo.h.

◆ rerect()

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

Definition at line 155 of file TrackerInfo.h.

155  {
156  m_n1 = n1;
157  m_n2 = n2;
158  m_vec.resize(n1 * n2);
159  }
std::vector< T > m_vec
Definition: TrackerInfo.h:176
int n1() const
Definition: TrackerInfo.h:170
int n2() const
Definition: TrackerInfo.h:171

◆ vector() [1/2]

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

Definition at line 167 of file TrackerInfo.h.

167 { return m_vec; }
std::vector< T > m_vec
Definition: TrackerInfo.h:176

◆ vector() [2/2]

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

Definition at line 168 of file TrackerInfo.h.

168 { return m_vec; }
std::vector< T > m_vec
Definition: TrackerInfo.h:176

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