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

157 : m_n1(n1), m_n2(n2), m_vec(n1 * n2) {}
std::vector< T > m_vec
Definition: TrackerInfo.h:180
int n1() const
Definition: TrackerInfo.h:174
int n2() const
Definition: TrackerInfo.h:175

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

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

174 { return m_n1; }

◆ n2()

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

Definition at line 175 of file TrackerInfo.h.

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

175 { 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 168 of file TrackerInfo.h.

◆ operator[]() [2/2]

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

Definition at line 169 of file TrackerInfo.h.

◆ rerect()

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

Definition at line 159 of file TrackerInfo.h.

159  {
160  m_n1 = n1;
161  m_n2 = n2;
162  m_vec.resize(n1 * n2);
163  }
std::vector< T > m_vec
Definition: TrackerInfo.h:180
int n1() const
Definition: TrackerInfo.h:174
int n2() const
Definition: TrackerInfo.h:175

◆ vector() [1/2]

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

Definition at line 171 of file TrackerInfo.h.

171 { return m_vec; }
std::vector< T > m_vec
Definition: TrackerInfo.h:180

◆ vector() [2/2]

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

Definition at line 172 of file TrackerInfo.h.

172 { return m_vec; }
std::vector< T > m_vec
Definition: TrackerInfo.h:180

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