ATLAS Offline Software
StrawT0.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
11 // $Id: StrawT0.h,v 1.3 2007-06-13 11:10:44 hansenph Exp $
12 
13 #ifndef TRT_CONDITIONSDATA_STRAWT0_H
14 #define TRT_CONDITIONSDATA_STRAWT0_H
15 
17 
18 namespace TRTCond
19 {
22  class StrawT0
23  {
24  private:
25  unsigned char m_packedt0 ;
26  unsigned char m_packedt0err ;
27 
28  public:
31  StrawT0(unsigned char t0, unsigned char t0err) : m_packedt0(t0), m_packedt0err(t0err) {}
32 
34  unsigned char packedt0() const { return m_packedt0 ; }
36  unsigned char packedt0err() const { return m_packedt0err ; }
38  bool isvalid() const { return m_packedt0err != 255 ; }
39  void print() const { std::cout << "straw with (packed) t0 = " << int(m_packedt0) << std::endl ; }
40  bool operator==(const StrawT0& rhs) const {
41  return m_packedt0==rhs.m_packedt0 && m_packedt0err==rhs.m_packedt0err ; }
42  } ;
43 }
44 
45 #endif
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
TRTCond::StrawT0::StrawT0
StrawT0()
constructors
Definition: StrawT0.h:30
TRTCond::StrawT0
Definition: StrawT0.h:23
TRTCond::StrawT0::StrawT0
StrawT0(unsigned char t0, unsigned char t0err)
Definition: StrawT0.h:31
TRTCond::StrawT0::m_packedt0
unsigned char m_packedt0
Definition: StrawT0.h:25
TRTCond::StrawT0::print
void print() const
Definition: StrawT0.h:39
TRTCond
Definition: BasicRtRelation.cxx:8
TRTCond::StrawT0::packedt0
unsigned char packedt0() const
access to packed t0 value. packing parameters are defined by StrawT0Container
Definition: StrawT0.h:34
TRTCond::StrawT0::operator==
bool operator==(const StrawT0 &rhs) const
Definition: StrawT0.h:40
TRTCond::StrawT0::isvalid
bool isvalid() const
access to status
Definition: StrawT0.h:38
TRTCond::StrawT0::packedt0err
unsigned char packedt0err() const
access to packed t0 error
Definition: StrawT0.h:36
TRTCond::StrawT0::m_packedt0err
unsigned char m_packedt0err
Definition: StrawT0.h:26
LinearPacker.h