Diana Software
Functions | Variables
GlobalDataManagerExample.C File Reference

Go to the source code of this file.

Functions

gSystem Load ("libqroot")
 
dm SetOwner ("DataManagerTest")
 
hvec SetChannel (3)
 
hvec Set (vec)
 
hvec2 SetRun (753)
 
hvec2 Set (vec2)
 
dm Get ("DAQ",&rHandle,"DB")
 
newRunData SetChannelRunData (channel, chanRunData)
 
QRunDataHandle rHandle2 (newRunData.fNumber)
 
rHandle2 Set (newRunData)
 
TH1D histo ("histo","My histogram", 10,-5, 5)
 
histo Fill (1.1)
 
histo Fill (3)
 
hHandle Set (histo)
 
dm Dump (cout)
 
cout<<"***** ATTENTION: Errors below are generated intentionally ******"<< endl;QInt testInt=2;GlobalHandle< QIntintHandle2 ("MyFakeInt")
 
intHandle2 Set (testInt)
 
GlobalHandle< QIntintHandle2 ("MyFakeInt2")
 
dm Get ("MyFakeOwner",&intHandle2,"fakefile.txt")
 
 if (!intHandle2.IsValid())
 

Variables

QGlobalDataManager dm
 
QVector vec (3) = 1
 
QVector vec2 (4) = -1
 
GlobalHandle< QVectorhvec ("MyQVector")
 
GlobalHandle< QVectorhvec2 ("MyQVector2")
 
QRunDataHandle rHandle (753)
 
QRunData newRunData = rHandle.Get()
 
const int channel = newRunData.fBolometerChannels[0]
 
QChannelRunData chanRunData = newRunData.GetChannelRunData(channel)
 
chanRunData fSamplingFrequency = 250
 
dm SetrHandle2
 
QTObjectHandle< TH1D > hHandle ("MyHisto")
 
dm SetintHandle2
 
int myInt = intHandle2.Get()
 
 else
 

Function Documentation

◆ Dump()

dm Dump ( cout  )

Referenced by QModuleFactory::Init().

◆ Fill() [1/2]

histo Fill ( 1.  1)

◆ Fill() [2/2]

histo Fill ( )

◆ Get() [1/2]

dm Get ( "DAQ"  ,
rHandle,
"DB"   
)

◆ Get() [2/2]

dm Get ( "MyFakeOwner"  ,
intHandle2,
"fakefile.txt"   
)

◆ histo()

TH1D histo ( "histo"  ,
"My histogram"  ,
10  ,
5,
 
)

◆ if()

if ( !intHandle2.  IsValid())

Definition at line 88 of file GlobalDataManagerExample.C.

References intHandle2.

◆ intHandle2() [1/2]

cout<<"***** ATTENTION: Errors below are generated intentionally ******"<<endl; QInt testInt = 2; GlobalHandle<QInt> intHandle2 ( "MyFakeInt"  )

◆ intHandle2() [2/2]

GlobalHandle<QInt> intHandle2 ( "MyFakeInt2"  )

◆ Load()

gSystem Load ( "libqroot"  )

◆ rHandle2()

QRunDataHandle rHandle2 ( newRunData.  fNumber)

◆ Set() [1/5]

hHandle Set ( histo  )

◆ Set() [2/5]

rHandle2 Set ( newRunData  )

◆ Set() [3/5]

intHandle2 Set ( testInt  )

◆ Set() [4/5]

hvec Set ( vec  )

◆ Set() [5/5]

hvec2 Set ( vec2  )

◆ SetChannel()

hHandle SetChannel ( )

◆ SetChannelRunData()

newRunData SetChannelRunData ( channel  ,
chanRunData   
)

◆ SetOwner()

dm SetOwner ( "DataManagerTest"  )

◆ SetRun()

hHandle SetRun ( 753  )

Variable Documentation

◆ channel

const int channel = newRunData.fBolometerChannels[0]

◆ chanRunData

QChannelRunData chanRunData = newRunData.GetChannelRunData(channel)

◆ dm

◆ else

else
Initial value:
{
myInt = intHandle2.Get()
dm Set & intHandle2

Definition at line 90 of file GlobalDataManagerExample.C.

◆ fSamplingFrequency

chanRunData fSamplingFrequency = 250

◆ hHandle

dm Set & hHandle ( "MyHisto"  )
Examples
GlobalDataManagerExample.C.

Definition at line 67 of file GlobalDataManagerExample.C.

Referenced by MTestLight::Do().

◆ hvec

dm Set & hvec ( "MyQVector"  )
Examples
GlobalDataManagerExample.C.

Definition at line 33 of file GlobalDataManagerExample.C.

Referenced by main().

◆ hvec2

dm Set & hvec2 ( "MyQVector2"  )
Examples
GlobalDataManagerExample.C.

Definition at line 38 of file GlobalDataManagerExample.C.

◆ intHandle2

GlobalHandle<QInt> intHandle2("MyFakeInt2")
Examples
GlobalDataManagerExample.C.

Definition at line 78 of file GlobalDataManagerExample.C.

Referenced by if().

◆ myInt

myInt = intHandle2.Get()
Examples
GlobalDataManagerExample.C.

Definition at line 83 of file GlobalDataManagerExample.C.

◆ newRunData

QRunData newRunData = rHandle.Get()
Examples
GlobalDataManagerExample.C.

Definition at line 50 of file GlobalDataManagerExample.C.

Referenced by main().

◆ rHandle

dm Set & rHandle ( 753  )

◆ rHandle2

dm Set& rHandle2
Examples
GlobalDataManagerExample.C.

Definition at line 57 of file GlobalDataManagerExample.C.

◆ vec

vec[2] ( ) = 1

◆ vec2

vec2[3] ( ) = -1
Examples
GlobalDataManagerExample.C.

Definition at line 27 of file GlobalDataManagerExample.C.