7 GlobalHandle<QVector> apHandle(
"Samples");
8 apHandle.SetChannel(chan);
10 dm.
Get(
"TutorialAveragePulse",&apHandle,input);
12 QVector
ap = apHandle.Get();
13 QVector baseline(
ap.Size());
14 baseline.Initialize(
ap[0]);
19 TGraph* apGraph =
ap.GetGraph();
22 GlobalHandle<QVector> apHandle2(
"Samples");
23 apHandle2.SetChannel(chan);
25 dm.
Set(&apHandle2,
"avg/averagepulse_normalized.txt");
void DrawAveragePulse(int chan, const char *input)
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...