31 class StFgtCosmicMaker;
36 StFgtCosmicMaker *cosmicMkr = 0;
41 int simpleTestStandTest(
const Char_t *filename =
"testfile.sfs",
42 const Char_t *outputKey =
"test",
44 const Char_t *quadname1 =
"010",
45 const Char_t *quadname2 =
"011",
46 const Char_t *quadname3 =
"013",
48 const Char_t *pedFile =
"testfile.Ped.txt",
56 cout <<
"Constructing the chain" << endl;
57 analysisChain =
new StChain(
"eemcAnalysisChain");
59 cout <<
"Constructing the cosmic maker" << endl;
60 cosmicMkr =
new StFgtCosmicMaker(
"cosmicMaker", filename );
61 cosmicMkr->setNumDiscs( numDiscs );
63 cout <<
"Constructing the QA makers" << endl;
67 adcVsChan1->setTimeBin( timeBin );
68 adcVsChan1->setFilenameBase( outputKey );
69 adcVsChan1->setToPlotVsStrip( vsStrips );
70 adcVsChan1->setToSubtrPeds( pedSub );
71 adcVsChan1->setPedReaderFile( pedFile );
72 adcVsChan1->setPedThres( 3.0 );
76 adcVsChan2->setTimeBin( timeBin );
77 adcVsChan2->setFilenameBase( outputKey );
78 adcVsChan2->setToPlotVsStrip( vsStrips );
79 adcVsChan2->setToSubtrPeds( pedSub );
80 adcVsChan2->setPedReaderFile( pedFile );
81 adcVsChan2->setPedThres( 3.0 );
85 adcVsChan3->setTimeBin( timeBin );
86 adcVsChan3->setFilenameBase( outputKey );
87 adcVsChan3->setToPlotVsStrip( vsStrips );
88 adcVsChan3->setToSubtrPeds( pedSub );
89 adcVsChan3->setPedReaderFile( pedFile );
90 adcVsChan3->setPedThres( 3.0 );
92 cout <<
"Initializing" << endl;
93 ierr = analysisChain->Init();
96 cout <<
"Error initializing" << endl;
103 for(
int i=0; i<nevents && !ierr; ++i ){
108 analysisChain->
Clear();
111 ierr = analysisChain->
Make();
118 cout <<
"finish" << endl;
124 cout <<
"all done" << endl;
133 gSystem->Load(
"libPhysics");
134 gSystem->Load(
"St_base");
135 gSystem->Load(
"StChain");
136 gSystem->Load(
"StEvent");
137 cout <<
"loaded StEvent library" << endl;
139 gSystem->Load(
"StFgtUtil");
140 gSystem->Load(
"StFgtRawMaker");
141 gSystem->Load(
"RTS");
142 gSystem->Load(
"StFgtPedMaker");
143 gSystem->Load(
"StFgtQaMakers");
virtual void Clear(Option_t *option="")
User defined functions.