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

192 : m_n1(n1), m_n2(n2), m_vec(n1 * n2) {}
std::vector< T > m_vec
Definition: TrackerInfo.h:215
int n1() const
Definition: TrackerInfo.h:209
int n2() const
Definition: TrackerInfo.h:210

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

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

209 { return m_n1; }

◆ n2()

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

Definition at line 210 of file TrackerInfo.h.

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

210 { 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 203 of file TrackerInfo.h.

◆ operator[]() [2/2]

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

Definition at line 204 of file TrackerInfo.h.

◆ rerect()

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

Definition at line 194 of file TrackerInfo.h.

194  {
195  m_n1 = n1;
196  m_n2 = n2;
197  m_vec.resize(n1 * n2);
198  }
std::vector< T > m_vec
Definition: TrackerInfo.h:215
int n1() const
Definition: TrackerInfo.h:209
int n2() const
Definition: TrackerInfo.h:210

◆ vector() [1/2]

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

Definition at line 206 of file TrackerInfo.h.

206 { return m_vec; }
std::vector< T > m_vec
Definition: TrackerInfo.h:215

◆ vector() [2/2]

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

Definition at line 207 of file TrackerInfo.h.

207 { return m_vec; }
std::vector< T > m_vec
Definition: TrackerInfo.h:215

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