39 class StFgtCosmicMaker;
44 StFgtCosmicMaker *cosmicMkr = 0;
47 int makeCosmicPeds(
const Char_t *filenameIn =
"testfile.sfs",
48 const Char_t *filenameOut =
"testfile.Ped.txt",
50 Short_t timeBinMask = 0x10,
51 Bool_t cutShortEvents = 1 ){
57 cout <<
"Constructing the chain" << endl;
58 analysisChain =
new StChain(
"eemcAnalysisChain");
60 cout <<
"Constructing the cosmic maker" << endl;
61 cosmicMkr =
new StFgtCosmicMaker(
"cosmicMaker", filenameIn );
62 cosmicMkr->cutShortEvents( cutShortEvents );
64 cout <<
"Constructing the Ped Maker" << endl;
66 pedMkr->setToSaveToDb( 0 );
67 pedMkr->setToSaveToFile( filenameOut );
68 pedMkr->setTimeBinMask( timeBinMask );
70 cout <<
"Initializing" << endl;
71 ierr = analysisChain->Init();
74 cout <<
"Error initializing" << endl;
81 cout <<
"max nevents = " << nevents << endl;
82 for(
int i=0; i<nevents && !ierr; ++i ){
87 analysisChain->
Clear();
90 ierr = analysisChain->
Make();
97 cout <<
"finish" << endl;
100 cerr <<
"\tall done" << endl;
109 gSystem->Load(
"libPhysics");
110 gSystem->Load(
"St_base");
111 gSystem->Load(
"StChain");
112 gSystem->Load(
"StFgtUtil");
113 gSystem->Load(
"StUtilities");
114 gSystem->Load(
"StEvent");
115 cout <<
"loaded StEvent library" << endl;
117 gSystem->Load(
"StFgtUtil");
118 gSystem->Load(
"StFgtRawMaker");
119 gSystem->Load(
"RTS");
120 gSystem->Load(
"StFgtPedMaker");
virtual void Clear(Option_t *option="")
User defined functions.