Object passed to the online histograms.
For each event, an instance of this type will be passed to the custom histogrammer. This class contains all detectors present, and all existing cuts and histograms.
Definition at line 28 of file TRuntimeObjects.h.
Public Member Functions | |
TRuntimeObjects (std::shared_ptr< const TFragment > frag, TList *objects, TList *gates, std::vector< TFile *> &cut_files, TDirectory *directory=nullptr, const char *name="default") | |
TRuntimeObjects (TList *objects, TList *gates, std::vector< TFile *> &cut_files, TDirectory *directory=nullptr, const char *name="default") | |
TH1 * | FillHistogram (const char *name, int bins, double low, double high, double value, double weight=1) |
TH2 * | FillHistogram (const char *name, int Xbins, double Xlow, double Xhigh, double Xvalue, int Ybins, double Ylow, double Yhigh, double Yvalue, double weight=1) |
TH1 * | FillHistogram (const std::string &name, int bins, double low, double high, double value, double weight=1) |
TH2 * | FillHistogram (const std::string &name, int Xbins, double Xlow, double Xhigh, double Xvalue, int Ybins, double Ylow, double Yhigh, double Yvalue, double weight=1) |
TDirectory * | FillHistogram (const char *dirname, const char *name, int bins, double low, double high, double value, double weight=1) |
TDirectory * | FillHistogram (const char *dirname, const char *name, int Xbins, double Xlow, double Xhigh, double Xvalue, int Ybins, double Ylow, double Yhigh, double Yvalue, double weight=1) |
TDirectory * | FillHistogram (const std::string &dirname, const std::string &name, int bins, double low, double high, double value, double weight=1) |
TDirectory * | FillHistogram (const std::string &dirname, const std::string &name, int Xbins, double Xlow, double Xhigh, double Xvalue, int Ybins, double Ylow, double Yhigh, double Yvalue, double weight=1) |
TH2 * | FillHistogramSym (const char *name, int Xbins, double Xlow, double Xhigh, double Xvalue, int Ybins, double Ylow, double Yhigh, double Yvalue) |
TH2 * | FillHistogramSym (const std::string &name, int Xbins, double Xlow, double Xhigh, double Xvalue, int Ybins, double Ylow, double Yhigh, double Yvalue) |
TDirectory * | FillHistogramSym (const char *dirname, const char *name, int Xbins, double Xlow, double Xhigh, double Xvalue, int Ybins, double Ylow, double Yhigh, double Yvalue) |
TDirectory * | FillHistogramSym (const std::string &dirname, const std::string &name, int Xbins, double Xlow, double Xhigh, double Xvalue, int Ybins, double Ylow, double Yhigh, double Yvalue) |
TProfile * | FillProfileHist (const char *name, int Xbins, double Xlow, double Xhigh, double Xvalue, double Yvalue) |
TProfile * | FillProfileHist (const std::string &name, int Xbins, double Xlow, double Xhigh, double Xvalue, double Yvalue) |
TDirectory * | FillProfileHist (const char *dirname, const char *name, int Xbins, double Xlow, double Xhigh, double Xvalue, double Yvalue) |
TDirectory * | FillProfileHist (const std::string &dirname, const std::string &name, int Xbins, double Xlow, double Xhigh, double Xvalue, double Yvalue) |
TCutG * | GetCut (const std::string &name) |
template<typename T > | |
std::shared_ptr< T > | GetDetector () |
TDirectory * | GetDirectory () const |
std::shared_ptr< const TFragment > | GetFragment () |
TList & | GetGates () |
TList * | GetGatesPtr () |
TList & | GetObjects () |
TList * | GetObjectsPtr () |
double | GetVariable (const char *name) |
void | SetDetectors (std::shared_ptr< TUnpackedEvent > det) |
void | SetDirectory (TDirectory *dir) |
void | SetFragment (std::shared_ptr< const TFragment > frag) |
Static Public Member Functions | |
static TRuntimeObjects * | Get (const std::string &name="default") |
Private Member Functions | |
ClassDefOverride (TRuntimeObjects, 0) | |
TDirectory * | FindDirectory (const char *) |
Private Attributes | |
std::vector< TFile * > & | fCut_files |
std::shared_ptr< TUnpackedEvent > | fDetectors |
TDirectory * | fDirectory |
std::shared_ptr< const TFragment > | fFrag |
TList * | fGates |
TList * | fObjects |
Static Private Attributes | |
static std::map< std::string, TRuntimeObjects * > | fRuntimeMap |
#include <TRuntimeObjects.h>
TRuntimeObjects::TRuntimeObjects | ( | std::shared_ptr< const TFragment > | frag, |
TList * | objects, | ||
TList * | gates, | ||
std::vector< TFile *> & | cut_files, | ||
TDirectory * | directory = nullptr , |
||
const char * | name = "default" |
||
) |
TRuntimeObjects::TRuntimeObjects | ( | TList * | objects, |
TList * | gates, | ||
std::vector< TFile *> & | cut_files, | ||
TDirectory * | directory = nullptr , |
||
const char * | name = "default" |
||
) |
Definition at line 40 of file TRuntimeObjects.cxx.
References fRuntimeMap.
|
private |
TH1 * TRuntimeObjects::FillHistogram | ( | const char * | name, |
int | bins, | ||
double | low, | ||
double | high, | ||
double | value, | ||
double | weight = 1 |
||
) |
Definition at line 49 of file TRuntimeObjects.cxx.
Referenced by FillHistogram(), MakeAnalysisHistograms(), and MakeFragmentHistograms().
TH2 * TRuntimeObjects::FillHistogram | ( | const char * | name, |
int | Xbins, | ||
double | Xlow, | ||
double | Xhigh, | ||
double | Xvalue, | ||
int | Ybins, | ||
double | Ylow, | ||
double | Yhigh, | ||
double | Yvalue, | ||
double | weight = 1 |
||
) |
Definition at line 55 of file TRuntimeObjects.cxx.
References FillHistogram().
Referenced by FillHistogram().
|
inline |
Definition at line 64 of file TRuntimeObjects.h.
References FillHistogram().
|
inline |
Definition at line 68 of file TRuntimeObjects.h.
References FillHistogram().
TDirectory * TRuntimeObjects::FillHistogram | ( | const char * | dirname, |
const char * | name, | ||
int | bins, | ||
double | low, | ||
double | high, | ||
double | value, | ||
double | weight = 1 |
||
) |
Definition at line 77 of file TRuntimeObjects.cxx.
References FindDirectory(), and hist.
TDirectory * TRuntimeObjects::FillHistogram | ( | const char * | dirname, |
const char * | name, | ||
int | Xbins, | ||
double | Xlow, | ||
double | Xhigh, | ||
double | Xvalue, | ||
int | Ybins, | ||
double | Ylow, | ||
double | Yhigh, | ||
double | Yvalue, | ||
double | weight = 1 |
||
) |
Definition at line 95 of file TRuntimeObjects.cxx.
References FindDirectory(), and hist.
|
inline |
Definition at line 93 of file TRuntimeObjects.h.
References FillHistogram().
|
inline |
Definition at line 98 of file TRuntimeObjects.h.
References FillHistogram().
TH2 * TRuntimeObjects::FillHistogramSym | ( | const char * | name, |
int | Xbins, | ||
double | Xlow, | ||
double | Xhigh, | ||
double | Xvalue, | ||
int | Ybins, | ||
double | Ylow, | ||
double | Yhigh, | ||
double | Yvalue | ||
) |
Definition at line 69 of file TRuntimeObjects.cxx.
Referenced by FillHistogramSym().
|
inline |
Definition at line 78 of file TRuntimeObjects.h.
References FillHistogramSym().
TDirectory * TRuntimeObjects::FillHistogramSym | ( | const char * | dirname, |
const char * | name, | ||
int | Xbins, | ||
double | Xlow, | ||
double | Xhigh, | ||
double | Xvalue, | ||
int | Ybins, | ||
double | Ylow, | ||
double | Yhigh, | ||
double | Yvalue | ||
) |
Definition at line 133 of file TRuntimeObjects.cxx.
References FindDirectory(), and hist.
|
inline |
Definition at line 109 of file TRuntimeObjects.h.
References FillHistogramSym().
TProfile * TRuntimeObjects::FillProfileHist | ( | const char * | name, |
int | Xbins, | ||
double | Xlow, | ||
double | Xhigh, | ||
double | Xvalue, | ||
double | Yvalue | ||
) |
Definition at line 62 of file TRuntimeObjects.cxx.
Referenced by FillProfileHist().
|
inline |
Definition at line 73 of file TRuntimeObjects.h.
References FillProfileHist().
TDirectory * TRuntimeObjects::FillProfileHist | ( | const char * | dirname, |
const char * | name, | ||
int | Xbins, | ||
double | Xlow, | ||
double | Xhigh, | ||
double | Xvalue, | ||
double | Yvalue | ||
) |
Definition at line 113 of file TRuntimeObjects.cxx.
References FindDirectory().
|
inline |
Definition at line 104 of file TRuntimeObjects.h.
References FillProfileHist().
|
private |
Definition at line 183 of file TRuntimeObjects.cxx.
References GetObjects().
Referenced by FillHistogram(), FillHistogramSym(), and FillProfileHist().
|
inlinestatic |
Definition at line 117 of file TRuntimeObjects.h.
References fRuntimeMap.
TCutG * TRuntimeObjects::GetCut | ( | const std::string & | name | ) |
Definition at line 164 of file TRuntimeObjects.cxx.
References fCut_files.
|
inline |
Returns a pointer to the detector of type T.
Definition at line 41 of file TRuntimeObjects.h.
References fDetectors.
Referenced by MakeAnalysisHistograms().
|
inline |
Definition at line 131 of file TRuntimeObjects.h.
References fDirectory.
|
inline |
Definition at line 46 of file TRuntimeObjects.h.
References fFrag.
Referenced by MakeFragmentHistograms().
TList & TRuntimeObjects::GetGates | ( | ) |
Definition at line 159 of file TRuntimeObjects.cxx.
References fGates.
|
inline |
Definition at line 55 of file TRuntimeObjects.h.
References fGates.
TList & TRuntimeObjects::GetObjects | ( | ) |
Definition at line 154 of file TRuntimeObjects.cxx.
References fObjects.
Referenced by FindDirectory().
|
inline |
Definition at line 54 of file TRuntimeObjects.h.
References fObjects.
double TRuntimeObjects::GetVariable | ( | const char * | name | ) |
Definition at line 178 of file TRuntimeObjects.cxx.
References GValue::Value().
|
inline |
Definition at line 127 of file TRuntimeObjects.h.
References fDetectors.
Referenced by TCompiledHistograms::Fill().
|
inline |
Definition at line 130 of file TRuntimeObjects.h.
References fDirectory.
Referenced by TCompiledHistograms::Fill().
|
inline |
Definition at line 126 of file TRuntimeObjects.h.
References fFrag.
Referenced by TCompiledHistograms::Fill().
|
private |
Definition at line 142 of file TRuntimeObjects.h.
Referenced by GetCut().
|
private |
Definition at line 137 of file TRuntimeObjects.h.
Referenced by GetDetector(), and SetDetectors().
|
private |
Definition at line 144 of file TRuntimeObjects.h.
Referenced by GetDirectory(), and SetDirectory().
|
private |
Definition at line 138 of file TRuntimeObjects.h.
Referenced by GetFragment(), and SetFragment().
|
private |
Definition at line 141 of file TRuntimeObjects.h.
Referenced by GetGates(), and GetGatesPtr().
|
private |
Definition at line 140 of file TRuntimeObjects.h.
Referenced by GetObjects(), and GetObjectsPtr().
|
staticprivate |
Definition at line 134 of file TRuntimeObjects.h.
Referenced by Get(), and TRuntimeObjects().