1 void StoreOnDB(
const char* input,
int chan ,
int run) {
3 gSystem->Load(
"libqroot");
8 QStabParametersHandle sphandle(chan,run);
9 dm.
Get(
"FindMultipleTrendsByBruteForce",&sphandle,input);
11 if(!sphandle.IsValid()) {
12 cout<<sphandle.GetError()<<endl;
15 sphandle.SetDataset(6040);
16 sphandle.SetStabSelector(
"SelectStabPeak@");
17 sphandle.SetStabSelectorVersion(
"0");
19 const QStabParameters& sp = sphandle.Get();
28 using namespace Diana;
29 gSystem->Load(
"libqroot");
34 QStabParametersHandle sphandle(chan,run);
35 sphandle.SetDataset(dataset);
37 QError err =
dm.
Get(
"FindMultipleTrendsByBruteForce",&sphandle,
"DB");
40 if(!sphandle.IsValid()) {
41 cout<<sphandle.GetError()<<endl;
45 const QStabParameters& sp = sphandle.Get();
void StoreOnDB(const char *input, int chan, 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...