|
ATLAS Offline Software
|
Go to the documentation of this file.
14 #ifndef TRT_CONDITIONSDATA_STRAWT0CONTAINER_H
15 #define TRT_CONDITIONSDATA_STRAWT0CONTAINER_H
75 void setT0(
float t0,
float t0err) {
93 static const char*
classname() {
return "TRTCond::StrawT0Container" ; }
111 float t0 = oldt0packer.
unpack(
sd.packedt0());
112 float t0err = oldt0errpacker.
unpack(
sd.packedt0err());
113 unsigned char newpackedt0 = newt0packer.
pack(t0) ;
114 unsigned char newpackedt0err = newt0errpacker.
pack(t0err) ;
115 sd =
StrawT0( newpackedt0, newpackedt0err ) ;
117 m_t0packer = newt0packer ;
118 m_t0errpacker = newt0errpacker ;
static void erase(StrawT0 &x)
LinearPacker< float, unsigned char > m_t0errpacker
float unpackT0(const StrawT0 &sd) const
more public methods
class for storing/accessing trt t0 data
void set(const ExpandedIdentifier &id, const T &t)
set a value.
void setPackingLimits(float t0min, float t0max, float t0errmin, float t0errmax)
change the packing limits
static void print(const StrawT0 &x)
LinearPacker< float, unsigned char > m_t0packer
packing borders
static void initialize(StrawT0 &x)
float getT0(const ExpandedIdentifier &id) const
access to unpacked t0
static bool isvalid(const StrawT0 &x)
static const char * classname()
classname used to talk to iovservice
float getT0Err(const ExpandedIdentifier &id) const
access to unpacked t0 error
UnpackedType unpack(PackedType val) const
Unpack method.
static bool isequal(const StrawT0 &x, const StrawT0 &y)
void unpack(const StrawT0 &sd, float &t0, float &t0err) const
public method to unpack a StrawT0 object
float unpackT0Err(const StrawT0 &sd) const
static size_t footprint(const StrawT0 &x)
'Nested' template container for storing TRT conditions data.
void setT0(float t0, float t0err)
set the top-level t0
const T & get() const
get the default value
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
static void copy(StrawT0 &out, const StrawT0 &in)
virtual ~StrawT0ContainerTemplate()
destructor
void setT0(const ExpandedIdentifier &id, float t0, float t0err)
set t0
static StrawT0 initialvalue()
PackedType pack(UnpackedType x) const
Pack method.
Identifier for TRT detector elements in the conditions code.
macros to associate a CLID to a type
StrawT0ContainerTemplate()
constructor