ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
TRTCond::StrawDx Class Reference

#include <StrawDx.h>

Collaboration diagram for TRTCond::StrawDx:

Public Member Functions

 StrawDx ()
 constructors More...
 
 StrawDx (unsigned char dx1, unsigned char dx2, unsigned char dxerr)
 
unsigned char packeddx1 () const
 access to packed dx1 values. More...
 
unsigned char packeddx2 () const
 access to packed dx2 values. More...
 
unsigned char packeddxerr () const
 access to packed dx error More...
 
bool isvalid () const
 access to validation flag More...
 
void print () const
 dump More...
 
bool operator== (const StrawDx &rhs) const
 assignment operator More...
 

Private Attributes

unsigned char m_packeddx1
 packed Rphi shift at electronics More...
 
unsigned char m_packeddx2
 packed Rphi shift at wire fixation More...
 
unsigned char m_packeddxerr
 packed error (255 if invalid) More...
 

Detailed Description

Class for endpoint data for one straw

Definition at line 28 of file StrawDx.h.

Constructor & Destructor Documentation

◆ StrawDx() [1/2]

TRTCond::StrawDx::StrawDx ( )
inline

constructors

Definition at line 38 of file StrawDx.h.

39  : m_packeddx1(0), m_packeddx2(0), m_packeddxerr(255) {}

◆ StrawDx() [2/2]

TRTCond::StrawDx::StrawDx ( unsigned char  dx1,
unsigned char  dx2,
unsigned char  dxerr 
)
inline

Definition at line 40 of file StrawDx.h.

41  : m_packeddx1(dx1), m_packeddx2(dx2), m_packeddxerr(dxerr){}

Member Function Documentation

◆ isvalid()

bool TRTCond::StrawDx::isvalid ( ) const
inline

access to validation flag

Definition at line 50 of file StrawDx.h.

50 { return m_packeddxerr != 255 ; }

◆ operator==()

bool TRTCond::StrawDx::operator== ( const StrawDx rhs) const
inline

assignment operator

Definition at line 54 of file StrawDx.h.

54  {
55  return m_packeddx1==rhs.m_packeddx1 && m_packeddx2==rhs.m_packeddx2 && m_packeddxerr==rhs.m_packeddxerr ; }

◆ packeddx1()

unsigned char TRTCond::StrawDx::packeddx1 ( ) const
inline

access to packed dx1 values.

Packing is defined by StrawDxContainer

Definition at line 44 of file StrawDx.h.

44 { return m_packeddx1 ; }

◆ packeddx2()

unsigned char TRTCond::StrawDx::packeddx2 ( ) const
inline

access to packed dx2 values.

Packing is defined by StrawDxContainer

Definition at line 46 of file StrawDx.h.

46 { return m_packeddx2 ; }

◆ packeddxerr()

unsigned char TRTCond::StrawDx::packeddxerr ( ) const
inline

access to packed dx error

Definition at line 48 of file StrawDx.h.

48 { return m_packeddxerr ; }

◆ print()

void TRTCond::StrawDx::print ( ) const
inline

dump

Definition at line 52 of file StrawDx.h.

52 { std::cout << "straw with (packed) dx = " << int(m_packeddx1) << " at -z and " << int(m_packeddx2) << " at +z " << std::endl ; }

Member Data Documentation

◆ m_packeddx1

unsigned char TRTCond::StrawDx::m_packeddx1
private

packed Rphi shift at electronics

Definition at line 31 of file StrawDx.h.

◆ m_packeddx2

unsigned char TRTCond::StrawDx::m_packeddx2
private

packed Rphi shift at wire fixation

Definition at line 32 of file StrawDx.h.

◆ m_packeddxerr

unsigned char TRTCond::StrawDx::m_packeddxerr
private

packed error (255 if invalid)

Definition at line 33 of file StrawDx.h.


The documentation for this class was generated from the following file:
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
TRTCond::StrawDx::m_packeddx2
unsigned char m_packeddx2
packed Rphi shift at wire fixation
Definition: StrawDx.h:32
TRTCond::StrawDx::m_packeddxerr
unsigned char m_packeddxerr
packed error (255 if invalid)
Definition: StrawDx.h:33
TRTCond::StrawDx::m_packeddx1
unsigned char m_packeddx1
packed Rphi shift at electronics
Definition: StrawDx.h:31