32 class StFgtCosmicMaker;
37 StFgtCosmicMaker *cosmicMkr = 0;
39 int simpleTestStandTest(
const Char_t *filename =
"testfile.sfs",
46 cout <<
"Constructing the chain" << endl;
47 analysisChain =
new StChain(
"eemcAnalysisChain");
49 cout <<
"Constructing the maker" << endl;
50 cosmicMkr =
new StFgtCosmicMaker(
"cosmicMaker", filename );
51 cosmicMkr->setNumDiscs( numDiscs );
53 cout <<
"Initializing" << endl;
54 ierr = analysisChain->Init();
57 cout <<
"Error initializing" << endl;
64 for(
int i=0; i<nevents && !ierr; ++i ){
66 cout <<
"event number " << i << endl;
68 cout <<
"clear" << endl;
69 analysisChain->
Clear();
71 cout <<
"make" << endl;
72 ierr = analysisChain->
Make();
75 StFgtEvent *fgtEventPtr = cosmicMkr->getFgtEventPtr();
76 for( Int_t disc = 0; disc < numDiscs; ++disc ){
77 StFgtDisc *discPtr = fgtEventPtr->getDiscPtr( disc );
79 cout <<
"\tDisc " << disc <<
", number of raw hits " << discPtr->getNumRawHits() << endl;
86 cout <<
"finish" << endl;
89 cout <<
"all done" << endl;
98 gSystem->Load(
"libPhysics");
99 gSystem->Load(
"St_base");
100 gSystem->Load(
"StChain");
101 gSystem->Load(
"StEvent");
102 cout <<
"loaded StEvent library" << endl;
104 gSystem->Load(
"StFgtUtil");
105 gSystem->Load(
"StFgtRawMaker");
106 gSystem->Load(
"RTS");
virtual void Clear(Option_t *option="")
User defined functions.