25 void DoEqualDaq(
char* file=
"daq/*.daq",
int nevents = 500000,
char* name =
"equal1.root")
31 gSystem->Load(
"St_base");
32 gSystem->Load(
"StChain");
33 gSystem->Load(
"libgen_Tables");
34 gSystem->Load(
"libsim_Tables");
35 gSystem->Load(
"libglobal_Tables");
36 gSystem->Load(
"StUtilities");
37 gSystem->Load(
"StIOMaker");
38 gSystem->Load(
"StTreeMaker");
39 gSystem->Load(
"StarClassLibrary");
40 gSystem->Load(
"StEvent");
41 gSystem->Load(
"StMagF");
42 gSystem->Load(
"libgeometry_Tables");
43 gSystem->Load(
"St_Tables");
44 gSystem->Load(
"StEmcUtil");
46 gROOT->LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
47 loadSharedLibraries();
48 gSystem->Load(
"StDbUtilities");
49 gSystem->Load(
"StDbLib");
50 gSystem->Load(
"StDbBroker");
51 gSystem->Load(
"St_db_Maker");
52 gSystem->Load(
"libgeometry_Tables");
53 gSystem->Load(
"StDaqLib");
54 gSystem->Load(
"StEmcRawMaker");
55 gSystem->Load(
"StEmcADCtoEMaker");
56 gSystem->Load(
"StPreEclMaker");
57 gSystem->Load(
"StEpcMaker");
59 gSystem->Load(
"StEmcCalibrationMaker");
71 IOMk->SetBranch(
"*",0,
"0");
72 IOMk->SetBranch(
"daqBranch",0,
"r");
78 m->saveAllStEvent(kTRUE);
87 sprintf(outfile,
"/home/emc/online/emc/pedestal/equal/%s",name);
89 equal->setFile(outfile);
95 Int_t iInit = chain->Init();
96 if (iInit) chain->Fatal(iInit,
"on init");
102 EventLoop:
if (i <= nevents && istat!=2)
105 cout << endl <<
"============================ Event " << i<<
" start ============================" << endl;
108 istat = chain->
Make();
110 if (istat==2) {cout <<
"Last event processed. Status = " << istat << endl;}
111 if (istat==3) {cout <<
"Error event processed. Status = " << istat << endl;}
117 cout << endl <<
"============================ Event " << i <<
" finish ============================" << endl;
virtual void SetIOMode(Option_t *iomode="w")
number of transactions
virtual void Clear(Option_t *option="")
User defined functions.