14 class StEventDisplayMaker;
15 StEventDisplayMaker *dsMaker = 0;
18 const char *dstFile = 0;
19 const char *xdfFile = 0;
20 const char *mdcFile = 0;
21 const char *fileList[] = {dstFile,xdfFile,mdcFile,0};
23 void doSvtBadAnodes(Int_t nevents=1,
24 const Char_t *path=
"/scratch_star5a/pp_sep2003_RFF_P03if/",
25 const Char_t *file=
"st_physics_3006053_raw_0536.MuDst.root",
26 const Char_t *fileOut =
"ntuple.root");
29 void doSvtBadAnodes(Int_t nevents,
const Char_t **fileList,
const Char_t *fileOut)
32 cout << endl << endl <<
" doEvents - input # events = " << nevents << endl;
34 while(fileList[ilist]){
35 cout <<
" doEvents - input fileList = " << fileList[ilist] << endl;
43 gSystem->Load(
"St_base");
44 gSystem->Load(
"StUtilities");
45 gSystem->Load(
"StChain");
46 gSystem->Load(
"StBFChain");
47 gSystem->Load(
"St_Tables");
49 gSystem->Load(
"libgen_Tables");
50 gSystem->Load(
"libsim_Tables");
51 gSystem->Load(
"libglobal_Tables");
52 gSystem->Load(
"geometry");
54 gSystem->Load(
"StIOMaker");
55 gSystem->Load(
"StTreeMaker");
56 gSystem->Load(
"StarClassLibrary");
58 gSystem->Load(
"StSvtClassLibrary");
59 gSystem->Load(
"StSvtDaqMaker");
60 gSystem->Load(
"StSvtCalibMaker");
69 setFiles=
new StFile(fileList);
71 gSystem->Load(
"StChallenger");
72 setFiles = StChallenger::Challenge();
76 "-q",
"mRunNumber=1228023",
77 "-c",
"/afs/rhic/star/incoming/GCA/daq/stacs.rc"
79 Int_t Argc=
sizeof(Argv)/4;
80 setFiles->Init(Argc,Argv);
99 svtBadAnodesMaker->setOutputFile(fileOut);
100 svtBadAnodesMaker->setThresholdOccup(120);
101 svtBadAnodesMaker->setFrequencyOccup(0.9);
102 svtBadAnodesMaker->setBadMeanPedMin(5);
103 svtBadAnodesMaker->setBadMeanPedMax(254);
104 svtBadAnodesMaker->setBadMeanRMSMin(0);
105 svtBadAnodesMaker->setBadMeanRMSMax(4);
106 svtBadAnodesMaker->SetDebug();
113 svtDaqMaker->SetSvtPed();
114 svtDaqMaker->SetSvtRMSPed();
115 svtBadAnodesMaker->Init();
121 EventLoop:
if (i <= nevents && istat!=2 && istat!=3) {
129 svtDaqMaker->GetSvtPed();
130 svtDaqMaker->GetSvtRMSPed();
131 svtBadAnodesMaker->
Make();
134 {cout <<
"Last event processed. Status = " << istat << endl;}
136 {cout <<
"Error event processed. Status = " << istat << endl;}
145 cout << endl <<
"============================ Event " << i
146 <<
" finish ============================" << endl;
152 void doSvtBadAnodes(
const Int_t nevents,
const Char_t *path,
const Char_t *file,
153 const Char_t *fileOut)
155 if (nevents==-1) { Help();
return;}
157 const char *fileListQQ[]={0,0};
158 if (strncmp(path,
"GC",2)==0) {
160 }
else if (path[0]==
'-') {
162 }
else if (!file[0]) {
165 fileListQQ[0] = gSystem->ConcatFileName(path,file);
168 doSvtBadAnodes(nevents,fileListQQ,fileOut);
virtual void SetIOMode(Option_t *iomode="w")
number of transactions
virtual void Clear(Option_t *option="")
User defined functions.