StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
RunEemcGammaFilterBfc.C
1 // $Id: RunEemcGammaFilterBfc.C,v 1.1 2010/08/11 15:49:37 seluzhen Exp $
2 //
3 // Ilya Selyuzhenkov, Indiana U. CEEM
4 //
5 // Original implementation by Pibero Djawotho, TAMU
6 
7 class StBFChain;
8 StBFChain* chain = 0;
9 
10 void RunEemcGammaFilterBfc
11 (
12  int nEvents,
13  const char *chainOpt,
14  const char *fzdFile
15 )
16 {
17 
18  // Load the BFC macro and any necessary shared libraries
19  gROOT->LoadMacro("bfc.C");
20  gSystem->Load("StJetSkimEvent");
21 
22  // Create the BFC
23  bfc(-1, chainOpt, fzdFile);
24 
25  // Manipulate the maker order in the BFC
26  // Place TPC Maker after EMC makers
27  chain->AddAfter("eess", chain->GetMaker("tpcChain") );
28  // Place Filter Makers around TPC
29  chain->AddAfter("eess", chain->GetMaker("gammaFilterMaker") );
30 
31  // Display the makers in the BFC
32  StMaker::lsMakers(chain);
33 
34  // Initialize the BFC
35  int iStat = chain->Init();
36 
37  if(iStat)
38  {
39  cout << "BFC initialization failed!" << endl;
40  chain->Fatal(istat, "Init()");
41  }
42 
43  // Run the BFC
44  chain->EventLoop(nEvents);
45 
46 }
47 
48 // $Log: RunEemcGammaFilterBfc.C,v $
49 // Revision 1.1 2010/08/11 15:49:37 seluzhen
50 // Script to run EEMC gamma filter with bfc
51 //