36 :TNamed(name,
"This is a Go4 analysis step"),
37 fxPrevious(nullptr), fxEventStore(nullptr), fxEventSource(nullptr), fxEventProcessor(nullptr),
38 fxInputEvent(nullptr), fxOutputEvent(nullptr),
39 fxSourceType(sourcetype), fxStoreType(storetype), fxProcessorType(processortype),
40 fbSourceEnabled(kFALSE), fbSourceImplemented(kFALSE),
41 fbStoreEnabled(kFALSE), fbStoreImplemented(kFALSE),
42 fbProcessEnabled(kTRUE),
43 fbErrorStopEnabled(kFALSE), fbErrorStopped(kFALSE)
46 GO4TRACE((15,
"TGo4AnalysisStep::TGo4AnalysisStep(const char *, TGo4EventFactory *)",__LINE__, __FILE__));
57 :TNamed(
"Default Analysis Step",
"This is a Go4 analysis step"),
66 GO4TRACE((15,
"TGo4AnalysisStep::TGo4AnalysisStep()",__LINE__, __FILE__));
74 GO4TRACE((15,
"TGo4AnalysisStep::~TGo4AnalysisStep()",__LINE__, __FILE__));
86 GO4TRACE((15,
"TGo4AnalysisStep::InitEventClasses()",__LINE__, __FILE__));
99 GO4TRACE((12,
"TGo4AnalysisStep::Process()",__LINE__, __FILE__));
144 GO4TRACE((14,
"TGo4AnalysisStep::Close()",__LINE__, __FILE__));
154 GO4TRACE((14,
"TGo4AnalysisStep::CloseEventStore()",__LINE__, __FILE__));
168 GO4TRACE((14,
"TGo4AnalysisStep::CloseEventSource()",__LINE__, __FILE__));
179 GO4TRACE((14,
"TGo4AnalysisStep::CloseEventProcessor()",__LINE__, __FILE__));
189 GO4TRACE((14,
"TGo4AnalysisStep::DeleteInputEvent()",__LINE__, __FILE__));
199 GO4TRACE((14,
"TGo4AnalysisStep::DeleteOutputEvent()",__LINE__, __FILE__));
209 GO4TRACE((14,
"TGo4AnalysisStep::StoreCalibration()",__LINE__, __FILE__));
248 GO4TRACE((14,
"TGo4AnalysisStep::IsMatchingPrevious(TGo4AnalysisStep *)",__LINE__, __FILE__));
253 if (!prevevent)
return kTRUE;
255 return !strcmp(prevevent->ClassName(),
fxInputEvent->ClassName()) &&
271 GO4TRACE((12,
"TGo4AnalysisStep::NewEventSource(Int_t)",__LINE__, __FILE__));
272 const char *sourcename =
"";
273 if (kind) sourcename = kind->GetName();
280 if(kind && kind->InheritsFrom(
"TGo4TreeSourceParameter")) {
281 SetStatusMessage(
"Did not init TGo4TreeSource, please use TGo4FileSource instead !");
289 GetName(), sourcename);
324 GO4TRACE((12,
"TGo4AnalysisStep::NewEventStore(Int_t)",__LINE__, __FILE__));
330 if(kind && kind->InheritsFrom(
"TGo4TreeStoreParameter"))
332 SetStatusMessage(
"! Did not init TGo4TreeStore, please use TGo4FileStore instead !");
360 GO4TRACE((12,
"TGo4AnalysisStep::NewEventProcessor(Int_t)",__LINE__, __FILE__));
382 GO4TRACE((11,
"TGo4AnalysisStep::CreateStatus()",__LINE__, __FILE__));
407 GO4TRACE((12,
"TGo4AnalysisStep::NewInputEvent()",__LINE__, __FILE__));
423 GO4TRACE((12,
"TGo4AnalysisStep::NewOutputEvent()",__LINE__, __FILE__));
440 GO4TRACE((11,
"TGo4AnalysisStep::SetStatus(TGo4AnalysisStepStatus*)",__LINE__, __FILE__));
void SetProcessEnabled(Bool_t on=kTRUE)
void SetStoreEnabled(Bool_t on=kTRUE)
Bool_t IsKeepInputEvent() const
Bool_t IsSourceEnabled() const
void SetOutputEvent(TGo4EventElement *event)
TGo4EventElement * fxInputEvent
virtual Int_t Store(TGo4EventElement *event)=0
Int_t Store(TGo4Parameter *cali)
void NewEventStore(TGo4EventStoreParameter *kind)
void SetEventStore(TGo4EventStoreParameter *kind)
Bool_t fbErrorStopEnabled
void SetErrorStopped(Bool_t on)
void NewEventSource(TGo4EventSourceParameter *kind)
void SetStatus(TGo4AnalysisStepStatus *state)
TGo4EventFactory * fxEventFactory
Bool_t IsStoreEnabled() const
Bool_t IsEventSourceParam() const
void SetSourceEnabled(Bool_t on=kTRUE)
Bool_t RemoveEventSource(TGo4EventSource *source)
virtual const char * GetActiveName() const
TGo4EventElement * GetOutputEvent() const
Bool_t IsProcessEnabled() const
TGo4EventSourceParameter * GetSourcePar() const
TGo4EventElement * fxOutputEvent
Bool_t RemoveTree(TTree *tree, const char *stepname=nullptr)
Bool_t IsStoreEnabled() const
TGo4EventCalibration * GetCalibration() const
Bool_t RemoveEventStructure(TGo4EventElement *ev)
void SetStorePar(TGo4EventStoreParameter *kind)
Bool_t AddTree(TTree *tree, const char *subfolder=nullptr)
TGo4EventStoreParameter * fxStoreType
void SetSourcePar(TGo4EventSourceParameter *kind)
Bool_t IsProcessEnabled() const
void SetSourceEnabled(Bool_t on=kTRUE)
TGo4EventSource * fxEventSource
TGo4EventProcessor * fxEventProcessor
Bool_t RemoveEventStore(TGo4EventStore *store)
void SetStatusMessage(const char *txt)
virtual TGo4EventElement * CreateOutputEvent()=0
Bool_t AddEventStructure(TGo4EventElement *ev)
void Message(Int_t prio, const char *text,...)
Bool_t AddEventSource(TGo4EventSource *source)
TGo4AnalysisStepStatus * CreateStatus()
Bool_t AddEventProcessor(TGo4EventProcessor *pro)
void SetInputEvent(TGo4EventElement *raw)
void SetProcessorPar(TGo4EventProcessorParameter *kind)
Bool_t RemoveEventProcessor(TGo4EventProcessor *pro)
Bool_t IsKeepOutputEvent() const
Bool_t IsMatchingPrevious() const
TGo4EventStore * fxEventStore
void SetProcessStatus(Int_t val)
const char * GetEventSourceName() const
TGo4AnalysisStep * fxPrevious
void SetStoreEnabled(Bool_t on=kTRUE)
void CloseEventProcessor()
void SetErrorStopEnabled(Bool_t on=kTRUE)
TGo4EventProcessorParameter * GetProcessorPar() const
void SetProcessEnabled(Bool_t on=kTRUE)
void SetEventSource(TGo4EventSourceParameter *kind)
virtual void InitEventClasses()
void SetEventProcessor(TGo4EventProcessorParameter *kind)
const char * GetEventStoreName() const
TGo4EventSourceParameter * fxSourceType
TGo4EventStoreParameter * GetStorePar() const
virtual ~TGo4AnalysisStep()
void SetEventSource(TGo4EventSource *src)
void SetErrorStopEnabled(Bool_t on)
virtual TGo4EventProcessor * CreateEventProcessor(TGo4EventProcessorParameter *par)=0
virtual TGo4EventStore * CreateEventStore(TGo4EventStoreParameter *par)=0
void NewEventProcessor(TGo4EventProcessorParameter *kind)
TGo4EventElement * GetOutputEvent(const char *stepname) const
TGo4EventProcessorParameter * fxProcessorType
Bool_t fbSourceImplemented
Bool_t AddEventStore(TGo4EventStore *store)
Bool_t fbStoreImplemented
static TGo4Analysis * Instance()
virtual TTree * GetTree()
virtual TGo4EventElement * CreateInputEvent()=0
Bool_t IsEventStoreParam() const
virtual TGo4EventSource * CreateEventSource(TGo4EventSourceParameter *par)=0
void SetKeepContents(Bool_t on=kTRUE)
Bool_t IsErrorStopEnabled() const