Belle II Software development
GlobalLabelTest Class Reference

Test fixture. More...

Inheritance diagram for GlobalLabelTest:

Protected Member Functions

virtual void SetUp ()
 init
 
void registerSomeTimeDepParams ()
 Register some parameters as time dependent.
 
void setTime (unsigned int timeid)
 Set current time slice for time dependent params.
 
virtual void TearDown ()
 cleanup
 

Protected Attributes

short vxdSensor
 Testing vxd id.
 
short cdcWire
 Testing cdc id.
 
int paramid
 Testing parameter id.
 

Detailed Description

Test fixture.

Definition at line 28 of file globalLabel.cc.

Member Function Documentation

◆ registerSomeTimeDepParams()

void registerSomeTimeDepParams ( )
inlineprotected

Register some parameters as time dependent.

Definition at line 46 of file globalLabel.cc.

47 {
51 }
short cdcWire
Testing cdc id.
int paramid
Testing parameter id.
short vxdSensor
Testing vxd id.
static GlobalLabel construct(gidTYPE element, gidTYPE param)
Construct label for given DB object (template argument) and its element and parameter.
Definition GlobalLabel.h:81
void registerTimeDependent(gidTYPE start, gidTYPE end=maxTID)
Register this Detector element and parameter as time dependent with instance starting at "start" time...

◆ setTime()

void setTime ( unsigned int timeid)
inlineprotected

Set current time slice for time dependent params.

Definition at line 54 of file globalLabel.cc.

55 {
56 unsigned int& subrun = GlobalLabel::getCurrentTimeIntervalRef();
57 subrun = timeid;
58 }
static unsigned int & getCurrentTimeIntervalRef()
Returns reference to current time id.

◆ SetUp()

virtual void SetUp ( )
inlineprotectedvirtual

init

Definition at line 38 of file globalLabel.cc.

39 {
40 vxdSensor = VxdID(1, 2, 1).getID();
41 cdcWire = WireID(1, 4, 60).getEWire();
42 paramid = 9;
43 }

◆ TearDown()

virtual void TearDown ( )
inlineprotectedvirtual

cleanup

Definition at line 61 of file globalLabel.cc.

62 {
64 }
static void clearTimeDependentParamaters()
Forget all previously registered time dependent parameters.

Member Data Documentation

◆ cdcWire

short cdcWire
protected

Testing cdc id.

Definition at line 33 of file globalLabel.cc.

◆ paramid

int paramid
protected

Testing parameter id.

Definition at line 35 of file globalLabel.cc.

◆ vxdSensor

short vxdSensor
protected

Testing vxd id.

Definition at line 31 of file globalLabel.cc.


The documentation for this class was generated from the following file: