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

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

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

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

171 { return m_n1; }

◆ n2()

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

Definition at line 172 of file TrackerInfo.h.

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

172 { 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 165 of file TrackerInfo.h.

◆ operator[]() [2/2]

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

Definition at line 166 of file TrackerInfo.h.

◆ rerect()

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

Definition at line 156 of file TrackerInfo.h.

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

◆ vector() [1/2]

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

Definition at line 168 of file TrackerInfo.h.

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

◆ vector() [2/2]

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

Definition at line 169 of file TrackerInfo.h.

169 { return m_vec; }
std::vector< T > m_vec
Definition: TrackerInfo.h:177

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