#include "TString.h" #include "TROOT.h" #include "TSystem.h" #include using namespace std; #include "writeVertex.C" #ifndef __CINT__ Int_t analysis(TString infile,TString outfile,Int_t nEvents) { // infileList : comma seprated file list "file1.root,file2.root" // outfile : optional (not used here) , used to store hists in root file // nEvents : number of events to processed. if nEvents < entries or < 0 the chain will be processed return writeVertex(infile,outfile,nEvents); } int main(int argc, char **argv) { TROOT Analysis("Analysis","compiled analysis macro"); // argc is the number of arguments in char* array argv // CAUTION: argv[0] contains the progname // argc has to be nargs+1 cout<1) cout<<"arg1 ="<2) cout<<"arg2 ="<3) cout<<"arg3 ="<