• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

onlinemonitor/spadicV10monitor/TSpadicV10Analysis.cxx (r4864/r3724)

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 // this constructor is called by go4analysis executable
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");// object name, class name
00034    factory->DefOutputEvent("SPADICV10","TSpadicV10Event"); // object name, class name
00035    factory->DefUserEventSource("TSpadicV10Source"); // object name, class name
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    // Now the first analysis step is set up.
00049    // Other steps could be created here
00050    AddAnalysisStep(step);
00051 
00052    // uncomment following line to define custom passwords for analysis server
00053    // DefineServerPasswords("CernOct11admin", "CernOct11ctrl", "CernOct11view");
00054 
00055 }
00056 
00057 //***********************************************************
00058 TSpadicV10Analysis::~TSpadicV10Analysis()
00059 {
00060    TGo4Log::Info("TSpadicV10Analysis: Delete instance");
00061 }
00062 

Generated on Tue Dec 10 2013 04:52:23 for ROCsoft by  doxygen 1.7.1