13 using namespace Diana;
14 gSystem->Load(
"libqroot");
30 GlobalHandle<QVector>
hvec(
"MyQVector");
35 GlobalHandle<QVector>
hvec2(
"MyQVector2");
60 TH1D
histo(
"histo",
"My histogram",10,-5,5);
72 cout<<
"***** ATTENTION: Errors below are generated intentionally ******"<<endl;
QRunDataHandle rHandle(753)
TH1D histo("histo","My histogram", 10,-5, 5)
GlobalHandle< QVector > hvec2("MyQVector2")
QChannelRunData chanRunData
GlobalHandle< QVector > hvec("MyQVector")
QTObjectHandle< TH1D > hHandle("MyHisto")
base types wrapped into a QObject. Currently implemented types are QInt QDouble and QFloat....
basic channel and run based info. Used in the QRunData object.
double fSamplingFrequency
sampling frequency in Hz
Object to manage I/O (DB, file, or memory) of diana global quantities.
void SetOwner(const std::string &owner)
set the module that is accessing this object
QError Set(GlobalHandle< Q > *gh, const std::string &outSource, bool printError=true) const
Set a QObject using a GlobalHandle.
QError Get(const std::string &owner, GlobalHandle< Q > *gh, const std::string &inSource, bool printError=true) const
Get an object using a global handle.
void Dump(std::ostream &o) const
Dump cached objects to stream.
global handle for QRunData
const QChannelRunData & GetChannelRunData(const int channel) const
get channel based run data quantities
std::vector< int > fBolometerChannels
Bolometers channels (thermistors glued to a crystal)
void SetChannelRunData(const int channel, const QChannelRunData &chanRunData)
set channel based run data quantities
global handle for generic TObject
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...