GRUTinizer
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TRuntimeObjects.h
Go to the documentation of this file.
1 #ifndef _RUNTIMEOBJECTS_H_
2 #define _RUNTIMEOBJECTS_H_
3 
4 #include <string>
5 
6 #include "TCutG.h"
7 #include "TDirectory.h"
8 #include "TList.h"
9 
10 #include "TUnpackedEvent.h"
11 
13 
17 class TRuntimeObjects : public TObject {
18 public:
21  TList* objects,
22  TList* variables,
23  TDirectory* directory=NULL);
24 
26  template<typename T>
28  return detectors.GetDetector<T>();
29  }
30 
31  TCutG* GetCut(const std::string& name);
32 
33  TList& GetObjects();
34  TList& GetVariables();
35 
36  void FillHistogram(std::string name,
37  int bins, double low, double high, double value);
38  void FillHistogram(std::string name,
39  int Xbins, double Xlow, double Xhigh, double Xvalue,
40  int Ybins, double Ylow, double Yhigh, double Yvalue);
41 
42  double GetVariable(const char* name);
43 
44 private:
46  TList* objects;
47  TList* variables;
48  TDirectory* directory;
49 
50 
52 };
53 
54 #endif /* _RUNTIMEOBJECTS_H_ */