ATLAS Offline Software
Loading...
Searching...
No Matches
StrawDx.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4
17// $Id: StrawDx.h,v 1.2 2007-06-13 11:10:43 hansenph Exp $
18
19#ifndef TRT_CONDITIONSDATA_STRAWDX_H
20#define TRT_CONDITIONSDATA_STRAWDX_H
21
23
24namespace TRTCond
25{
28 class StrawDx
29 {
30 private:
31 unsigned char m_packeddx1 ;
32 unsigned char m_packeddx2 ;
33 unsigned char m_packeddxerr ;
34
35 public:
36
40 StrawDx(unsigned char dx1, unsigned char dx2, unsigned char dxerr)
41 : m_packeddx1(dx1), m_packeddx2(dx2), m_packeddxerr(dxerr){}
42
44 unsigned char packeddx1() const { return m_packeddx1 ; }
46 unsigned char packeddx2() const { return m_packeddx2 ; }
48 unsigned char packeddxerr() const { return m_packeddxerr ; }
50 bool isvalid() const { return m_packeddxerr != 255 ; }
52 void print() const { std::cout << "straw with (packed) dx = " << int(m_packeddx1) << " at -z and " << int(m_packeddx2) << " at +z " << std::endl ; }
54 bool operator==(const StrawDx& rhs) const {
56 } ;
57}
58
59#endif
unsigned char packeddx1() const
access to packed dx1 values.
Definition StrawDx.h:44
StrawDx()
constructors
Definition StrawDx.h:38
bool isvalid() const
access to validation flag
Definition StrawDx.h:50
unsigned char m_packeddx1
packed Rphi shift at electronics
Definition StrawDx.h:31
StrawDx(unsigned char dx1, unsigned char dx2, unsigned char dxerr)
Definition StrawDx.h:40
unsigned char packeddxerr() const
access to packed dx error
Definition StrawDx.h:48
unsigned char m_packeddx2
packed Rphi shift at wire fixation
Definition StrawDx.h:32
bool operator==(const StrawDx &rhs) const
assignment operator
Definition StrawDx.h:54
void print() const
dump
Definition StrawDx.h:52
unsigned char packeddx2() const
access to packed dx2 values.
Definition StrawDx.h:46
unsigned char m_packeddxerr
packed error (255 if invalid)
Definition StrawDx.h:33