File indexing completed on 2025-08-05 08:12:46
0001 void RunBJetModule(
0002 const char* input = "/gpfs/mnt/gpfs02/sphenix/user/yuhw/workspace/BJetTagging/condor/output/0/sim_30GeV_ljet000.root",
0003 const char* output = "HFtag_ljet.root",
0004 const bool use_refit_track_vertex = false
0005 ) {
0006
0007 gSystem->Load("libfun4all.so");
0008 gSystem->Load("libg4eval.so");
0009
0010 gSystem->Load("libBJetModule.so");
0011
0012 Fun4AllServer *se = Fun4AllServer::instance();
0013 se->Verbosity(0);
0014
0015 BJetModule *tm;
0016
0017 tm = new BJetModule( output );
0018 if(use_refit_track_vertex) {
0019 tm->set_trackmap_name("SvtxTrackMapRefit");
0020 tm->set_vertexmap_name("SvtxVertexMapRefit");
0021 }
0022
0023 se->registerSubsystem( tm );
0024
0025 Fun4AllInputManager *in = new Fun4AllDstInputManager("DSTin");
0026
0027 TString tstr_input(input);
0028 if (tstr_input.EndsWith(".root"))
0029 in->AddFile( input );
0030 else
0031 in->AddListFile( input );
0032
0033 se->registerInputManager(in);
0034
0035 se->run( 0 );
0036
0037 se->End();
0038
0039 }