ATLAS Offline Software
InnerDetector
InDetConditions
TRT_ConditionsData
TRT_ConditionsData
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
16
#include "
TRT_ConditionsData/LinearPacker.h
"
17
18
namespace
TRTCond
19
{
22
class
StrawT0
23
{
24
private
:
25
unsigned
char
m_packedt0
;
26
unsigned
char
m_packedt0err
;
27
28
public
:
30
StrawT0
() :
m_packedt0
(0),
m_packedt0err
(255) {}
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
Generated on Sun Dec 22 2024 21:18:36 for ATLAS Offline Software by
1.8.18