ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4All_ImportGeom.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4All_ImportGeom.C
1 // $Id: $
2 
11 #include <string>
12 using namespace std;
13 
15 void
16 Fun4All_ImportGeom(const string & geom_file = "./sPHENIX.root")
17 {
18  gSystem->Load("libphgeom.so");
19 
21  se->Verbosity(1);
22  // just if we set some flags somewhere in this macro
24 
25  PHGeomFileImport * import = new PHGeomFileImport(geom_file);
26  se->registerSubsystem(import);
27 
28  // dummy input
30  se->registerInputManager(in);
31 
32  // output in DST
34  geom_file + "_DST.root");
35  se->registerOutputManager(out);
36 
37  // run one event as example
38  se->run(1);
39 
40  PHGeomUtility::ExportGeomtry(se->topNode(),geom_file + "_export.root");
41 
42  se->End();
43  std::cout << "All done" << std::endl;
44  delete se;
45  gSystem->Exit(0);
46 
47 }
48