Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RunBJetModule.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file RunBJetModule.C
2  const char* input = "/gpfs/mnt/gpfs02/sphenix/user/yuhw/workspace/BJetTagging/condor/output/0/sim_30GeV_ljet000.root",
3  const char* output = "HFtag_ljet.root",//HFtag_ljet.root, HFtag_cjet.root, HFtag_bjet.root
4  const bool use_refit_track_vertex = false
5  ) {
6 
7  gSystem->Load("libfun4all.so");
8  gSystem->Load("libg4eval.so");
9 
10  gSystem->Load("libBJetModule.so");
11 
13  se->Verbosity(0);
14 
15  BJetModule *tm;
16 
17  tm = new BJetModule( output );
18  if(use_refit_track_vertex) {
19  tm->set_trackmap_name("SvtxTrackMapRefit");
20  tm->set_vertexmap_name("SvtxVertexMapRefit");
21  }
22 
23  se->registerSubsystem( tm );
24 
26 
27  TString tstr_input(input);
28  if (tstr_input.EndsWith(".root"))
29  in->AddFile( input );
30  else
31  in->AddListFile( input );
32 
33  se->registerInputManager(in);
34 
35  se->run( 0 );
36 
37  se->End();
38 
39 }