Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
groot100.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file groot100.C
1 void groot100(int JobNumber, int RunNumber, int SkipEvents, int PRUN_EVTS)
2 {
3  cout << "Prepare to skip " << SkipEvents << " Events" << endl;
4  gSystem->Load("libgroot");
5 
6  char filename[500];
7  sprintf(filename, "data/beam_000000%d-0000.evt", RunNumber);
8  cout << "Analyzing file named: " << filename << endl;
9  poncsopen(filename);
10  prun(2);
11 
12  Quiver::BlobTimeCut = false; // default is false
13  Quiver::PadBlobs = true; // default is true
14  ABlob::RecalibrateCharge = true; // default is false
15 
16  Quiver::PaddingLimit = 4; //default is 1
17  ABlob::GaussPosition = true; //default is false
18 
19  cout << "Prepare to skip " << SkipEvents << " Events" << endl;
20  setFirstEventNr(SkipEvents);
21  prun(PRUN_EVTS);
22  //prun(SkipEvents+10);
23 
24  groot* Tree = groot::instance();
25 
26  char outfile[500];
27  sprintf(outfile,"scratch/Analysis_%010d_%04d.root", RunNumber, JobNumber);
28  cout << "Outputting Histograms to: " << outfile << endl;
29  Tree->SaveTheHistograms(outfile);
30 }