10#include "PropertyMonitorXYZ.h"
12#include "ComplexEvent.h"
13#include "ComplexTrack.h"
15#include "DataFormatManager.h"
30 TString title = Form(
"%s vs %s vs %s",
31 Hal::Std::RemoveUnits(fZaxisName).Data(),
32 Hal::Std::RemoveUnits(fYaxisName).Data(),
33 Hal::Std::RemoveUnits(fXaxisName).Data());
60 fXaxisName(xLabel), fYaxisName(yLabel), fZaxisName(zLabel), fFormatType(EFormatType::kReco) {
65 fXaxisName = other.fXaxisName;
66 fYaxisName = other.fYaxisName;
67 fZaxisName = other.fZaxisName;
68 fFormatType = other.fFormatType;
74 Cout::PrintInfo(Form(
"%s is initialized ", this->ClassName()), EInfo::kDebugInfo);
80 TH1::AddDirectory(kFALSE);
82 TH1::AddDirectory(kTRUE);
111 if (
this != &other) {
113 fXaxisName = other.fXaxisName;
114 fYaxisName = other.fYaxisName;
115 fZaxisName = other.fZaxisName;
116 fFormatType = other.fFormatType;
121 PropertyMonitorXYZ::~PropertyMonitorXYZ() {
126 PropertyMonitorXYZ(
"",
"",
"", ECutUpdate::kEvent), fFieldIDX(fieldIDX), fFieldIDY(fiedIDY), fFieldIDZ(fiedIDZ) {}
129 std::initializer_list<Double_t> xAxis,
131 std::initializer_list<Double_t> yAxis,
133 std::initializer_list<Double_t> zAxis) :
134 PropertyMonitorXYZ(
"",
"",
"", ECutUpdate::kEvent), fFieldIDX(fieldIDX), fFieldIDY(fieldDY), fFieldIDZ(fieldDZ) {
160 PropertyMonitorXYZ(
"",
"",
"", ECutUpdate::kTrack), fFieldIDX(fieldIDX), fFieldIDY(fiedIDY), fFieldIDZ(fiedIDZ) {}
163 std::initializer_list<Double_t> xAxis,
165 std::initializer_list<Double_t> yAxis,
167 std::initializer_list<Double_t> zAxis) :
168 PropertyMonitorXYZ(
"",
"",
"", ECutUpdate::kTrack), fFieldIDX(fieldIDX), fFieldIDY(fieldDY), fFieldIDZ(fieldDZ) {
186 if (ev->InheritsFrom(
"Hal::ComplexEvent")) {
static void PrintInfo(TString text, Hal::EInfo status)
CutMonitorXYZ & operator=(const CutMonitorXYZ &other)
void SetAxisList(std::initializer_list< Double_t > axis, Char_t opt)
virtual Package * Report() const
virtual void Update(Bool_t passed, TObject *obj)
virtual Bool_t Init(Int_t task_id)
EventFieldMonitorXYZ(Int_t fieldIDX=0, Int_t fieldDY=0, Int_t fieldDZ=0)
virtual EFormatType GetFormatType() const
Track * GetNewTrack() const
virtual Float_t GetFieldVal(Int_t fieldID) const
virtual Event * GetNewEvent() const
virtual TString GetFieldName(Int_t fieldID) const
void AddObject(TObject *object)
PropertyMonitorXYZ(TString xLabel="", TString yLabel="", TString zLabel="", ECutUpdate update=ECutUpdate::kEvent)
virtual void CreateHistograms()
virtual Bool_t Init(Int_t task_id)
PropertyMonitorXYZ & operator=(const PropertyMonitorXYZ &other)
virtual Package * Report() const
virtual void Update(Bool_t passed, TObject *obj)
TrackFieldMonitorXYZ(Int_t fieldIDX=0, Int_t fieldDY=0, Int_t fieldDZ=0)
virtual Bool_t Init(Int_t task_id)
void SetEvent(Event *event)
virtual Float_t GetFieldVal(Int_t fieldID) const
virtual TString GetFieldName(Int_t fieldID) const