//----------------------------------------------------------------------------- // STNTUPLE validation script: reads STNTUPLE file and runs all the available // analysis modules on it. In the end produces histogram file with the // validation histograms //----------------------------------------------------------------------------- TStnAna* x; TMuoAnaModule* m_muo; int val_muo(const char* InputFile, Int_t NEvents = 10) { //----------------------------------------------------------------------------- // make sure all the initializations are done //----------------------------------------------------------------------------- TChain* chain = new TChain("STNTUPLE"); //----------------------------------------------------------------------------- // define input file //----------------------------------------------------------------------------- chain->Add(InputFile); x = new TStnAna(chain); m_muo = (TMuoAnaModule*) x->AddModule("TMuoAnaModule"); m_muo->SetPrintLevel(101); x->Run(NEvents); // x->SaveHist("./ar0261c3.0001phys.val_hist.4.11.1.root"); }