1 void StoreOnDB(
const char* input,
int chan,
int dataset,
int run) {
3 gSystem->Load(
"libqroot");
8 QStabPeakHandle sphandle;
9 sphandle.SetChannel(chan);
10 sphandle.SetDataset(dataset);
12 sphandle.SetAmpLabel(
"COF@Amplitude");
13 sphandle.SetAmpVersion(
"0");
15 dm.
Get(
"SelectStabPeak",&sphandle,input);
17 if(!sphandle.IsValid()) {
18 cout<<sphandle.GetError()<<endl;
22 const QStabPeak& sp = sphandle.Get();
31 using namespace Diana;
32 gSystem->Load(
"libqroot");
37 QStabPeakHandle sphandle;
38 sphandle.SetChannel(chan);
39 sphandle.SetDataset(dataset);
45 if(!sphandle.IsValid()) {
46 cout<<sphandle.GetError()<<endl;
50 const QStabPeak& sp = sphandle.Get();
void StoreOnDB(const char *input, int chan, int dataset, int run)
void FillFromDB(int chan, int run, int dataset)
error class with error type and description
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.
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...