10#include "FlowVariable.h"
12#include "DataFormatManager.h"
24 FlowVariable::~FlowVariable() {
30 FlowVirtualVariable::FlowVirtualVariable() :
FlowVariable(
"virtual",
"virtual") {}
32 FlowVirtualVariable::~FlowVirtualVariable() {}
38 Bool_t FlowTrackFieldVariable::Init(Int_t taskId) {
40 const Event*
event = dfm->GetFormat(taskId, EFormatDepth::kNonBuffered);
41 Track* track =
event->GetNewTrack();
43 if (fieldName ==
"[]")
return kFALSE;
44 SetFieldName(Hal::Std::RemoveUnits(fieldName));
45 SetFieldUnit(Hal::Std::GetUnits(fieldName));
FlowTrackFieldVariable(Int_t fieldId=0)
Double_t GetVariable(Track *p)
virtual TString GetAxisUnit()
FlowVariable(TString axisName="dummy", TString unitName="dummy")
virtual Double_t GetVariable(Track *p)
virtual TString GetAxisName()
virtual Float_t GetFieldVal(Int_t fieldID) const
virtual TString GetFieldName(Int_t fieldID) const