Go to the documentation of this file.00001
00002
00003 #include "TSpadicV10Analysis.h"
00004
00005 #include <stdlib.h>
00006
00007 #include "Go4EventServer.h"
00008 #include "TGo4StepFactory.h"
00009 #include "TGo4AnalysisStep.h"
00010 #include "TGo4Version.h"
00011 #include "TGo4Log.h"
00012
00013
00014
00015
00016 TSpadicV10Analysis::TSpadicV10Analysis()
00017 {
00018 }
00019
00020
00021
00022 TSpadicV10Analysis::TSpadicV10Analysis(int argc, char** argv) :
00023 TGo4Analysis(argc, argv)
00024 {
00025 if (!TGo4Version::CheckVersion(__GO4BUILDVERSION__)) {
00026 TGo4Log::Error("Go4 version mismatch");
00027 exit(-1);
00028 }
00029
00030 TGo4Log::Info("Create TSpadicV10Analysis name: %s", argv[0]);
00031
00032 TGo4StepFactory* factory = new TGo4StepFactory("Factory");
00033 factory->DefEventProcessor("SpadicV10Proc","TSpadicV10Proc");
00034 factory->DefOutputEvent("SPADICV10","TSpadicV10Event");
00035 factory->DefUserEventSource("TSpadicV10Source");
00036
00037 TGo4EventSourceParameter* sourcepar = new TGo4MbsFileParameter(Form("%s/data/test.lmd",getenv("GO4SYS")));
00038 TGo4FileStoreParameter* storepar = new TGo4FileStoreParameter(Form("%sOutput", argv[0]));
00039 storepar->SetOverwriteMode(kTRUE);
00040
00041 TGo4AnalysisStep* step = new TGo4AnalysisStep("SpadicV10", factory, sourcepar, storepar);
00042
00043 step->SetSourceEnabled(kTRUE);
00044 step->SetStoreEnabled(kFALSE);
00045 step->SetProcessEnabled(kTRUE);
00046 step->SetErrorStopEnabled(kTRUE);
00047
00048
00049
00050 AddAnalysisStep(step);
00051
00052
00053
00054
00055 }
00056
00057
00058 TSpadicV10Analysis::~TSpadicV10Analysis()
00059 {
00060 TGo4Log::Info("TSpadicV10Analysis: Delete instance");
00061 }
00062