10#include "PropertyMonitorXY.h"
12#include "ComplexEvent.h"
13#include "ComplexTrack.h"
15#include "DataFormatManager.h"
22#include <RtypesCore.h>
32 TH1::AddDirectory(kFALSE);
33 TString title = Form(
"%s vs %s", Hal::Std::RemoveUnits(fYaxisName).Data(), Hal::Std::RemoveUnits(fXaxisName).Data());
45 TH1::AddDirectory(kTRUE);
49 CutMonitorXY(), fXaxisName(xLabel), fYaxisName(yLabel), fFormatType(EFormatType::kReco) {
54 fXaxisName = other.fXaxisName;
55 fYaxisName = other.fYaxisName;
56 fFormatType = other.fFormatType;
62 Cout::PrintInfo(Form(
"%s is initialized ", this->ClassName()), EInfo::kDebugInfo);
68 TH1::AddDirectory(kFALSE);
70 TH1::AddDirectory(kTRUE);
95 fXaxisName = other.fXaxisName;
96 fYaxisName = other.fYaxisName;
97 fFormatType = other.fFormatType;
102 PropertyMonitorXY::~PropertyMonitorXY() {
107 PropertyMonitorXY(
"",
"", ECutUpdate::kEvent), fFieldIDX(fieldIDX), fFieldIDY(fiedIDY) {}
110 std::initializer_list<Double_t> xAxis,
112 std::initializer_list<Double_t> yAxis) :
113 PropertyMonitorXY(
"",
"", ECutUpdate::kEvent), fFieldIDX(fieldIDX), fFieldIDY(fiedIDY) {
135 PropertyMonitorXY(
",",
"", ECutUpdate::kTrack), fFieldIDX(fieldIDX), fFieldIDY(fiedIDY) {}
138 std::initializer_list<Double_t> xAxis,
140 std::initializer_list<Double_t> yAxis) :
141 PropertyMonitorXY(
"",
"", ECutUpdate::kTrack), fFieldIDX(fieldIDX), fFieldIDY(fiedIDY) {
157 if (ev->InheritsFrom(
"Hal::ComplexEvent")) {
static void PrintInfo(TString text, Hal::EInfo status)
CutMonitorXY & operator=(const CutMonitorXY &other)
void SetAxisList(std::initializer_list< Double_t > axis, Char_t opt)
virtual Package * Report() const
virtual Bool_t Init(Int_t task_id)
virtual void Update(Bool_t passed, TObject *obj)
EventFieldMonitorXY(Int_t fieldIDX=0, Int_t fieldIDY=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)
virtual Package * Report() const
virtual void CreateHistograms()
PropertyMonitorXY & operator=(const PropertyMonitorXY &other)
virtual Bool_t Init(Int_t task_id)
PropertyMonitorXY(TString xLabel="", TString yLabel="", ECutUpdate update=ECutUpdate::kEvent)
TrackFieldMonitorXY(Int_t fieldIDX=0, Int_t fieldIDY=0)
virtual Bool_t Init(Int_t task_id)
virtual void Update(Bool_t passed, TObject *obj)
void SetEvent(Event *event)
virtual Float_t GetFieldVal(Int_t fieldID) const
virtual TString GetFieldName(Int_t fieldID) const