ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
BFieldVector< T > Class Template Reference

#include <BFieldVector.h>

Collaboration diagram for BFieldVector< T >:

Public Member Functions

 BFieldVector ()=default
 
 BFieldVector (const BFieldVector &)=default
 
 BFieldVector (BFieldVector &&)=default
 
BFieldVectoroperator= (const BFieldVector &)=default
 
BFieldVectoroperator= (BFieldVector &&)=default
 
 ~BFieldVector ()=default
 
 BFieldVector (T Bz, T Br, T Bphi)
 
void set (T Bz, T Br, T Bphi)
 
z () const
 
r () const
 
phi () const
 
operator[] (size_t i) const
 

Private Attributes

std::array< T, 3 > m_B
 

Detailed Description

template<class T>
class BFieldVector< T >

Definition at line 21 of file BFieldVector.h.

Constructor & Destructor Documentation

◆ BFieldVector() [1/4]

template<class T >
BFieldVector< T >::BFieldVector ( )
default

◆ BFieldVector() [2/4]

template<class T >
BFieldVector< T >::BFieldVector ( const BFieldVector< T > &  )
default

◆ BFieldVector() [3/4]

template<class T >
BFieldVector< T >::BFieldVector ( BFieldVector< T > &&  )
default

◆ ~BFieldVector()

template<class T >
BFieldVector< T >::~BFieldVector ( )
default

◆ BFieldVector() [4/4]

template<class T >
BFieldVector< T >::BFieldVector ( Bz,
Br,
Bphi 
)
inline

Definition at line 36 of file BFieldVector.h.

37  : m_B{ Bz, Br, Bphi }
38  {}

Member Function Documentation

◆ operator=() [1/2]

template<class T >
BFieldVector& BFieldVector< T >::operator= ( BFieldVector< T > &&  )
default

◆ operator=() [2/2]

template<class T >
BFieldVector& BFieldVector< T >::operator= ( const BFieldVector< T > &  )
default

◆ operator[]()

template<class T >
T BFieldVector< T >::operator[] ( size_t  i) const
inline

Definition at line 47 of file BFieldVector.h.

47 { return m_B[i]; }

◆ phi()

template<class T >
T BFieldVector< T >::phi ( ) const
inline

Definition at line 45 of file BFieldVector.h.

45 { return m_B[2]; }

◆ r()

template<class T >
T BFieldVector< T >::r ( ) const
inline

Definition at line 44 of file BFieldVector.h.

44 { return m_B[1]; }

◆ set()

template<class T >
void BFieldVector< T >::set ( Bz,
Br,
Bphi 
)
inline

Definition at line 40 of file BFieldVector.h.

40 { m_B = { Bz, Br, Bphi }; }

◆ z()

template<class T >
T BFieldVector< T >::z ( ) const
inline

Definition at line 43 of file BFieldVector.h.

43 { return m_B[0]; }

Member Data Documentation

◆ m_B

template<class T >
std::array<T, 3> BFieldVector< T >::m_B
private

Definition at line 50 of file BFieldVector.h.


The documentation for this class was generated from the following file:
Br
Definition: VP1BPhysConvertor.h:14
lumiFormat.i
int i
Definition: lumiFormat.py:85
BFieldVector::m_B
std::array< T, 3 > m_B
Definition: BFieldVector.h:50