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
 Testng parameter id.
 

Detailed Description

Test fixture.

Definition at line 31 of file globalLabel.cc.

Member Function Documentation

◆ registerSomeTimeDepParams()

void registerSomeTimeDepParams ( )
inlineprotected

Register some parameters as time dependent.

Definition at line 49 of file globalLabel.cc.

50 {
51 GlobalLabel::construct<VXDAlignment>(vxdSensor, paramid).registerTimeDependent(1, 100); // timeid=1 for 1..100
52 GlobalLabel::construct<CDCAlignment>(cdcWire, paramid).registerTimeDependent(1, 50); // timeid=1 for 1..50
53 GlobalLabel::construct<CDCAlignment>(cdcWire, paramid).registerTimeDependent(51, 100); // timeid=51 for 51..100
54 }
short cdcWire
Testing cdc id.
Definition: globalLabel.cc:36
int paramid
Testng parameter id.
Definition: globalLabel.cc:38
short vxdSensor
Testing vxd id.
Definition: globalLabel.cc:34

◆ setTime()

void setTime ( unsigned int  timeid)
inlineprotected

Set current time slice for time dependent params.

Definition at line 57 of file globalLabel.cc.

58 {
59 unsigned int& subrun = GlobalLabel::getCurrentTimeIntervalRef();
60 subrun = timeid;
61 }
static unsigned int & getCurrentTimeIntervalRef()
Returns reference to current time id.
Definition: GlobalLabel.h:199

◆ SetUp()

virtual void SetUp ( )
inlineprotectedvirtual

init

Definition at line 41 of file globalLabel.cc.

42 {
43 vxdSensor = VxdID(1, 2, 1).getID();
44 cdcWire = WireID(1, 4, 60).getEWire();
45 paramid = 9;
46 }
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 64 of file globalLabel.cc.

65 {
67 }
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 36 of file globalLabel.cc.

◆ paramid

int paramid
protected

Testng parameter id.

Definition at line 38 of file globalLabel.cc.

◆ vxdSensor

short vxdSensor
protected

Testing vxd id.

Definition at line 34 of file globalLabel.cc.


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