Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4All_HCALAnalysis.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4All_HCALAnalysis.C
1 void Fun4All_HCALAnalysis(int nEvents = 0, char *input_file = "G4sPHENIXCells_LC.root", const char *outFile = "outfile_LC.root")
2 {
3  gSystem->Load("libfun4all");
4  gSystem->Load("libphg4hit.so");
5  gSystem->Load("libg4detectors.so");
6  gSystem->Load("libg4picoDst.so");
7  gSystem->Load("libg4decayer.so");
8  gSystem->Load("libg4eval.so");
9  gSystem->Load("libg4hough.so");
10  gSystem->Load("libHCALAnalysis.so");
11 
13  //
14  //- recoConsts setup
15  //
18 
20  //
21  //- Make the Server
22  //
25  se->Verbosity(0);
26  //PHMapManager::set_verbosity(MUTOO::SOME);
27 
29 
30  HCALAnalysis *an = new HCALAnalysis(outFile);
31  se->registerSubsystem( an );
32 
34  //
35  //- Analyze the Data.
36  //
38 
39  Fun4AllInputManager *hcal_dst = new Fun4AllDstInputManager( "HCAL", "DST", "TOP");
40  se->registerInputManager( hcal_dst );
41  se->fileopen( hcal_dst->Name(), input_file );
42 
43  se->run(nEvents);
44  se->End();
45  delete se;
46  cout << "Completed DST spin." << endl;
47 
48  //gROOT->ProcessLine(".! mv test_tree_out.root calib_test_tree.root");
49 }