/****************************************************************\ | This file is part of the PAX example files for CDF | | -------------------------------------------------------------- | | Author of the last change: $Author: erdmann $ | Date of last change: $Date: 2003/11/18 15:13:17 $ | Revision number: $Revision: 1.3 $ \****************************************************************/ //------------------------------------ // example PAX analysis driver script //------------------------------------ void pax_ana(const char* Filename = "top.stntuple.root", Int_t NEvents = 100) { gSystem->Load("libPhysics.so"); gSystem->Load("libEG.so"); gSystem->Load("libStntuple_obj.so"); gSystem->Load("libStntuple_loop.so"); gSystem->Load("libPAXkernel.so"); gSystem->Load("libStntuple_pax.so"); gROOT ->SetStyle ("Plain"); gStyle->SetOptStat (1111111); gStyle->SetOptFit (111111); gStyle->SetNdivisions (505,"x"); gStyle->SetNdivisions (505,"y"); gStyle->SetLineWidth (2); gStyle->SetPadTopMargin (0.15); gStyle->SetPadBottomMargin(0.15); gStyle->SetPadLeftMargin (0.15); gStyle->SetPadRightMargin (0.04); gStyle->SetTitleOffset (1.0,"x"); gStyle->SetTitleOffset (1.1,"y"); gStyle->SetTitleSize (0.07,"x"); gStyle->SetTitleSize (0.07,"y"); gStyle->SetLabelOffset (0.01,"x"); gStyle->SetLabelSize (0.06,"x"); gStyle->SetLabelOffset (0.01,"y"); gStyle->SetLabelSize (0.06,"y"); TStnAna* x = 0; TPAXAnaModule* m; x = new TStnAna(Filename); m = new TPAXAnaModule(); x->AddModule(m); TPAXAnaModule::Hist_t* pax_hist = m->GetHist(); x.Run(NEvents); m->DisplayEvent(); // new TBrowser(); }