38 :TNamed(name,
"This is a Go4 analysis step"),
39 fxPrevious(0), fxEventStore(0), fxEventSource(0), fxEventProcessor(0),
40 fxInputEvent(0), fxOutputEvent(0),
41 fxSourceType(sourcetype), fxStoreType(storetype), fxProcessorType(processortype),
42 fbSourceEnabled(kFALSE), fbSourceImplemented(kFALSE),
43 fbStoreEnabled(kFALSE), fbStoreImplemented(kFALSE),
44 fbProcessEnabled(kTRUE),
45 fbErrorStopEnabled(kFALSE), fbErrorStopped(kFALSE)
48 GO4TRACE((15,
"TGo4AnalysisStep::TGo4AnalysisStep(const char*, TGo4EventFactory*)",__LINE__, __FILE__));
59 :TNamed(
"Default Analysis Step",
"This is a Go4 analysis step"),
60 fxPrevious(0), fxEventStore(0), fxEventSource(0), fxEventProcessor(0),
61 fxInputEvent(0), fxOutputEvent(0),
62 fxSourceType(0), fxStoreType(0), fxProcessorType(0),
63 fbSourceEnabled(kFALSE), fbSourceImplemented(kFALSE),
64 fbStoreEnabled(kFALSE), fbStoreImplemented(kFALSE),
65 fbProcessEnabled(kTRUE),
66 fbErrorStopEnabled(kFALSE), fbErrorStopped(kFALSE)
68 GO4TRACE((15,
"TGo4AnalysisStep::TGo4AnalysisStep()",__LINE__, __FILE__));
76 GO4TRACE((15,
"TGo4AnalysisStep::~TGo4AnalysisStep()",__LINE__, __FILE__));
88 GO4TRACE((15,
"TGo4AnalysisStep::InitEventClasses()",__LINE__, __FILE__));
101 GO4TRACE((12,
"TGo4AnalysisStep::Process()",__LINE__, __FILE__));
146 GO4TRACE((14,
"TGo4AnalysisStep::Close()",__LINE__, __FILE__));
156 GO4TRACE((14,
"TGo4AnalysisStep::CloseEventStore()",__LINE__, __FILE__));
170 GO4TRACE((14,
"TGo4AnalysisStep::CloseEventSource()",__LINE__, __FILE__));
181 GO4TRACE((14,
"TGo4AnalysisStep::CloseEventProcessor()",__LINE__, __FILE__));
191 GO4TRACE((14,
"TGo4AnalysisStep::DeleteInputEvent()",__LINE__, __FILE__));
201 GO4TRACE((14,
"TGo4AnalysisStep::DeleteOutputEvent()",__LINE__, __FILE__));
213 GO4TRACE((14,
"TGo4AnalysisStep::StoreCalibration()",__LINE__, __FILE__));
252 GO4TRACE((14,
"TGo4AnalysisStep::IsMatchingPrevious(TGo4AnalysisStep*)",__LINE__, __FILE__));
259 if (prevevent==0)
return kTRUE;
261 return !strcmp(prevevent->ClassName(),
fxInputEvent->ClassName()) &&
267 GO4TRACE((12,
"TGo4AnalysisStep::GetEventStoreName()",__LINE__, __FILE__));
279 GO4TRACE((12,
"TGo4AnalysisStep::NewEventSource(Int_t)",__LINE__, __FILE__));
280 const char* sourcename =
"";
281 if (kind) sourcename = kind->GetName();
288 if(kind && kind->InheritsFrom(
"TGo4TreeSourceParameter")) {
289 SetStatusMessage(
"Did not init TGo4TreeSource, please use TGo4FileSource instead !");
297 GetName(), sourcename);
332 GO4TRACE((12,
"TGo4AnalysisStep::NewEventStore(Int_t)",__LINE__, __FILE__));
338 if(kind && kind->InheritsFrom(
"TGo4TreeStoreParameter"))
340 SetStatusMessage(
"! Did not init TGo4TreeStore, please use TGo4FileStore instead !");
368 GO4TRACE((12,
"TGo4AnalysisStep::NewEventProcessor(Int_t)",__LINE__, __FILE__));
390 GO4TRACE((11,
"TGo4AnalysisStep::CreateStatus()",__LINE__, __FILE__));
415 GO4TRACE((12,
"TGo4AnalysisStep::NewInputEvent()",__LINE__, __FILE__));
431 GO4TRACE((12,
"TGo4AnalysisStep::NewOutputEvent()",__LINE__, __FILE__));
448 GO4TRACE((11,
"TGo4AnalysisStep::SetStatus(TGo4AnalysisStepStatus*)",__LINE__, __FILE__));
Bool_t IsProcessEnabled() const
void SetProcessEnabled(Bool_t on=kTRUE)
Bool_t IsErrorStopEnabled() const
void SetStoreEnabled(Bool_t on=kTRUE)
TGo4EventStoreParameter * GetStorePar() const
Bool_t IsKeepInputEvent()
void SetOutputEvent(TGo4EventElement *event)
Bool_t IsEventSourceParam() const
TGo4EventElement * fxInputEvent
TGo4EventElement * GetOutputEvent(const char *stepname)
virtual Int_t Store(TGo4EventElement *event)=0
Bool_t IsStoreEnabled() const
TGo4EventProcessorParameter * GetProcessorPar() const
Int_t Store(TGo4Parameter *cali)
void NewEventStore(TGo4EventStoreParameter *kind)
void SetEventStore(TGo4EventStoreParameter *kind)
Bool_t fbErrorStopEnabled
void SetErrorStopped(Bool_t on)
TGo4EventElement * GetOutputEvent() const
void NewEventSource(TGo4EventSourceParameter *kind)
void SetStatus(TGo4AnalysisStepStatus *state)
TGo4EventFactory * fxEventFactory
void SetSourceEnabled(Bool_t on=kTRUE)
Bool_t RemoveEventSource(TGo4EventSource *source)
Bool_t IsSourceEnabled() const
TGo4EventElement * fxOutputEvent
Bool_t IsKeepOutputEvent()
Bool_t IsMatchingPrevious()
Bool_t RemoveEventStructure(TGo4EventElement *ev)
void SetStorePar(TGo4EventStoreParameter *kind)
TGo4EventStoreParameter * fxStoreType
void SetSourcePar(TGo4EventSourceParameter *kind)
void SetSourceEnabled(Bool_t on=kTRUE)
TGo4EventSourceParameter * GetSourcePar() const
TGo4EventSource * fxEventSource
Bool_t IsStoreEnabled() const
TGo4EventProcessor * fxEventProcessor
Bool_t IsProcessEnabled() const
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)
TGo4EventStore * fxEventStore
void SetProcessStatus(Int_t val)
virtual const char * GetActiveName()
TGo4AnalysisStep * fxPrevious
void SetStoreEnabled(Bool_t on=kTRUE)
Bool_t AddTree(TTree *tree, const char *subfolder=0)
Bool_t RemoveTree(TTree *tree, const char *stepname=0)
void CloseEventProcessor()
void SetErrorStopEnabled(Bool_t on=kTRUE)
void SetProcessEnabled(Bool_t on=kTRUE)
void SetEventSource(TGo4EventSourceParameter *kind)
virtual void InitEventClasses()
void SetEventProcessor(TGo4EventProcessorParameter *kind)
TGo4EventSourceParameter * fxSourceType
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)
TGo4EventProcessorParameter * fxProcessorType
Bool_t fbSourceImplemented
Bool_t AddEventStore(TGo4EventStore *store)
Bool_t fbStoreImplemented
static TGo4Analysis * Instance()
const char * GetEventSourceName()
Bool_t IsEventStoreParam() const
virtual TTree * GetTree()
virtual TGo4EventElement * CreateInputEvent()=0
virtual TGo4EventSource * CreateEventSource(TGo4EventSourceParameter *par)=0
TGo4EventCalibration * GetCalibration()
void SetKeepContents(Bool_t on=kTRUE)
const char * GetEventStoreName()