CbmRoot
Loading...
Searching...
No Matches
PairAnalysisMetaData.h
Go to the documentation of this file.
1/* Copyright (C) 2015-2016 Justus-Liebig-Universitaet Giessen, Giessen
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Julian Book [committer] */
4
5#ifndef PAIRANALYSISMETADATA_H
6#define PAIRANALYSISMETADATA_H
8// //
9// Meta data container: //
10// information that can be used for plotting, qa, trending, .... //
11// //
12// Julian Book <Julian.Book@cern.ch> //
13// //
15
16#include <Rtypes.h>
17#include <TNamed.h>
18// #include <TCollection.h>
19#include <TList.h>
20/* #include <TParamater<Int_t>.h> */
21/* #include <TParamater<Double_t>.h> */
22
23#include <TList.h> //new
24
25class TString;
26class TList;
27class TParmameter;
28// class TVectorT<double>;
29
30class PairAnalysisMetaData : public TNamed {
31public:
33 PairAnalysisMetaData(const char* name, const char* title);
34 virtual ~PairAnalysisMetaData();
35
36 void Init();
37
38 // setter
39 void FillMeta(const char* name, Double_t val);
40 void FillMeta(const char* name, Int_t val);
41 void FillMeta(const char* name, const char* val);
42
43 void GetMeta(const char* name, Int_t* val);
44 void GetMeta(const char* name, Double_t* val);
45
46 void SetMetaData(TList& list, Bool_t setOwner = kTRUE);
47 void ResetMetaData() { fMetaList.Clear(); }
48 const TList* GetMetaData() const { return &fMetaList; }
49
50 TObject* FindObject(const char* name) const { return fMetaList.FindObject(name); }
51
52 void DrawSame(TString opt = "msb");
53
54private:
55 TList fMetaList; //-> list of parameters
56
59
60 ClassDef(PairAnalysisMetaData, 1) // Meta Data Manager
61};
62#endif
PairAnalysisMetaData(const PairAnalysisMetaData &hist)
TObject * FindObject(const char *name) const
PairAnalysisMetaData & operator=(const PairAnalysisMetaData &hist)
void SetMetaData(TList &list, Bool_t setOwner=kTRUE)
void DrawSame(TString opt="msb")
void FillMeta(const char *name, Double_t val)
void GetMeta(const char *name, Int_t *val)
const TList * GetMetaData() const