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

beamtime/cern-oct11/go4/TCernOct11UnpackProc.cxx (r4864/r2540)

Go to the documentation of this file.
00001 #include "TCernOct11UnpackProc.h"
00002 
00003 #include "TSystem.h"
00004 #include "TROOT.h"
00005 
00006 #include "TGo4Log.h"
00007 
00008 #include "TRocProc.h"
00009 #include "TSpadicProc.h"
00010 #include "TTriglogProc.h"
00011 #include "TMbsCrateProc.h"
00012 #include "TEpicsProc.h"
00013 #include "TCernOct11Param.h"
00014 
00015 //***********************************************************
00016 // this one is used in standard factory
00017 TCernOct11UnpackProc::TCernOct11UnpackProc(const char* name) : TCBMBeamtimeProc(name)
00018 {
00019    TGo4Log::Info("TCernOct11Proc: Create instance %s", name);
00020 
00021    TCernOct11Param* par = (TCernOct11Param*) MakeParameter("CernOct11Par", "TCernOct11Param");
00022 
00023    const char* setupmacro = "set_CernOct11Par.C";
00024    if (!gSystem->AccessPathName(setupmacro)) {
00025       TGo4Log::Info("Executing analysis configuration script %s", setupmacro);
00026       gROOT->ProcessLine(Form(".x %s", setupmacro));
00027    }
00028 
00029    // Add here subprocessors:
00030    if (par->UseMBS) AddSubProcessor(new TTriglogProc(Form("%s_Triglog",name), "Cher1:Cher2:S1:HodoX:HodoY:S2:Pb:Spill:Pulser"));
00031    if (par->UseMBS) AddSubProcessor(new TMbsCrateProc(Form("%s_MBS",name)));
00032    if (par->UseROCs) AddSubProcessor(new TRocProc(Form("%s_ROC",name)));
00033    if (par->UseSPADICs) AddSubProcessor(new TSpadicProc(Form("%s_SPADIC",name)));
00034    if (par->UseEPICS) AddSubProcessor(new TEpicsProc(Form("%s_EPICS",name)));
00035 }
00036 
00037 //***********************************************************
00038 TCernOct11UnpackProc::~TCernOct11UnpackProc()
00039 {
00040 }
00041 

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