Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
open_file.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file open_file.C
1 #if !defined(__CINT__) || defined(__MAKECINT__) || defined(__CLING__)
2 
3 #include "mvtxOM.h"
4 
5 R__LOAD_LIBRARY(libmvtxOM)
6 
7 #endif
8 
9 void open_file(int runnum, int nevents = 10001, const char* ftype = "longrun")
10 {
11  gSystem->Load("libmvtxOM.so");
12  //set_verbose(1);
13  char filein[500];
14  //int runnum=atoi(filename.Data());
15  //sprintf(filein,"../beamtest2019/%s/%s_%08d-0000.prdf",ftype,ftype,runnum);
16  //sprintf(filein,"/mnt/databkup_1/MVTX_testbeam2019/%s/%s_%08d-0000.prdf",ftype,ftype,runnum);
17  sprintf(filein,"/sphenix/data/data01/mvtx/%s/%s_%08d-0000.prdf",ftype,ftype,runnum);
18  pfileopen(filein);
19  prun(nevents);
20  OM();
21  return;
22 }