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 {
48 GlobalLabel::construct<VXDAlignment>(vxdSensor, paramid).registerTimeDependent(1, 100); // timeid=1 for 1..100
49 GlobalLabel::construct<CDCAlignment>(cdcWire, paramid).registerTimeDependent(1, 50); // timeid=1 for 1..50
50 GlobalLabel::construct<CDCAlignment>(cdcWire, paramid).registerTimeDependent(51, 100); // timeid=51 for 51..100
51 }
short cdcWire
Testing cdc id.
Definition: globalLabel.cc:33
int paramid
Testing parameter id.
Definition: globalLabel.cc:35
short vxdSensor
Testing vxd id.
Definition: globalLabel.cc:31

◆ 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.
Definition: GlobalLabel.h:199

◆ 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 }
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:33
baseType getID() const
Get the unique id.
Definition: VxdID.h:94
Class to identify a wire inside the CDC.
Definition: WireID.h:34
unsigned short getEWire() const
Getter for encoded wire number.
Definition: WireID.h:154

◆ 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.
Definition: GlobalLabel.cc:66

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: