1 int runsti(
const char *daqFile,
int nEvents,
const char *flg=
"")
4 gROOT->ProcessLine(
".L bfc.C");
8 printf(
"\n============= runsti: file=%s\n",daqFile);
9 printf(
"============= runsti: Opt =%s\n",opt.Data());
11 ians = bfc(-1,opt, daqFile,0,
"pulls.root");
12 if (ians) {printf(
"ERROR: bfc(-1,...) == %d\n",ians);
return iAns;}
14 chain->SetAttr(
"dbSnapshot",
"dbSnapshot.root",
"db");
15 chain->SetAttr(
".call",
"SetActive(0)",
"MuDst");
16 chain->SetAttr(
".call",
"SetActive(0)",
"outputStream");
17 chain->SetAttr(
".call",
"SetActive(0)",
"kink2");
18 chain->SetAttr(
".call",
"SetActive(0)",
"StTagsMaker::");
19 chain->SetAttr(
"makePulls",1,
"Sti");
20 chain->SetAttr(
"maxTotPrims",100000,
"Sti");
24 chain->SetAttr(
".Privilege",1,
"Sti" );
26 if (ians) {printf(
"ERROR: Init() == %d\n",ians);
return iAns;}
28 ians = chain->EventLoop(1);
31 int idat = chain->GetMaker(
"db")->GetDateTime().GetDate();
32 int itim = chain->GetMaker(
"db")->GetDateTime().GetTime();
33 printf(
"1stEventTimeStamp %8d.%06d\n",idat,itim);
35 ians = chain->EventLoop(nEvents-1);
36 if ((ians%10)== 2) ians=0;
37 if (ians) {printf(
"ERROR: EventLoop() == %d\n",ians);
return iAns;}