ATLAS Offline Software
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 
24 namespace 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 
39  : m_packeddx1(0), m_packeddx2(0), m_packeddxerr(255) {}
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
TRTCond::StrawDx
Definition: StrawDx.h:29
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
TRTCond::StrawDx::packeddx2
unsigned char packeddx2() const
access to packed dx2 values.
Definition: StrawDx.h:46
TRTCond::StrawDx::packeddx1
unsigned char packeddx1() const
access to packed dx1 values.
Definition: StrawDx.h:44
TRTCond::StrawDx::StrawDx
StrawDx()
constructors
Definition: StrawDx.h:38
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::StrawDx
StrawDx(unsigned char dx1, unsigned char dx2, unsigned char dxerr)
Definition: StrawDx.h:40
TRTCond::StrawDx::packeddxerr
unsigned char packeddxerr() const
access to packed dx error
Definition: StrawDx.h:48
TRTCond::StrawDx::print
void print() const
dump
Definition: StrawDx.h:52
TRTCond
Definition: BasicRtRelation.cxx:8
TRTCond::StrawDx::operator==
bool operator==(const StrawDx &rhs) const
assignment operator
Definition: StrawDx.h:54
TRTCond::StrawDx::m_packeddx1
unsigned char m_packeddx1
packed Rphi shift at electronics
Definition: StrawDx.h:31
TRTCond::StrawDx::isvalid
bool isvalid() const
access to validation flag
Definition: StrawDx.h:50
LinearPacker.h