StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
dbSnapshot.C
1 int dbSnapshot(const char *daqFile,int nEvents,const char *flg="")
2 {
3 int ians=0;
4 gROOT->ProcessLine(".L bfc.C");
5 
6 TString opt(flg);
7 printf("\n============= runJan: file=%s\n",daqFile);
8 printf("============= runJan: Opt =%s\n",opt.Data());
9 
10 ians = bfc(-1,opt, daqFile,0,"pulls.root");
11 if (ians) {printf("ERROR: bfc(-1,...) == %d\n",ians); return iAns;}
12 
13 chain->SetAttr("dbSnapshot","dbSnapshot.root","db");
14 ians = chain->Init();
15 if (ians) {printf("ERROR: Init() == %d\n",ians); return iAns;}
16 
17 ians = chain->EventLoop(nEvents);
18 return ians;
19 }