Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4All_RTrack.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4All_RTrack.C
1 #include <fun4all/SubsysReco.h>
6 
11 #include <phool/PHRandomSeed.h>
12 #include <phool/recoConsts.h>
13 
14 
15 
16 //#include <g4hitshift/g4hitshift.h>
17 
18 R__LOAD_LIBRARY(libfun4all.so)
19 //R__LOAD_LIBRARY(libg4hitshift.so)
20 
21 
22 void Fun4All_RTrack(const char *g4hitfile = "G4Hits_pythia8_pp_mb-0000000006-00000.root",
23 const char *filefixedgeo = "updated_geo.root",
24  const char * oufilename = "tree_test.root"
25  )
26 {
27 
28  gSystem->Load("libg4dst.so");
30  int verbosity = 0;
31 
32  se->Verbosity(verbosity);
34 
35  //===============
36  // conditions DB flags
37  //===============
38  rc->set_StringFlag("CDB_GLOBALTAG","MDC2");
39  rc->set_uint64Flag("TIMESTAMP",6);
40 
41 
42 
43 // g4hitshift *myJetVal = new g4hitshift();
44 // se->registerSubsystem(myJetVal);
45 
46 
47 
48 
49 
50 
51  Fun4AllInputManager *intrue = new Fun4AllDstInputManager("DSTcalocluster");
52  intrue->Verbosity(2);
53  intrue->AddFile(g4hitfile);
54  se->registerInputManager(intrue);
55 
56  Fun4AllInputManager *intrue2 = new Fun4AllRunNodeInputManager("DSTtruth");
57  intrue2->Verbosity(2);
58  intrue2->AddFile(filefixedgeo);
59  se->registerInputManager(intrue2);
60 
61 
62 
63  Fun4AllDstOutputManager *out = new Fun4AllDstOutputManager("DSTOUT", "crash.root");
64  se->registerOutputManager(out);
65 
66  se->run(1);
67  se->End();
68 
69  gSystem->Exit(0);
70  return 0;
71 
72 }