//----------------------------------------------------------------------------- // 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; TWenuMonModule * m_wenu; int val_wenu(const char* InputFile, Int_t PrintLevel = 0, 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); x->SetNEventsToReport(100000); m_wenu = (TWenuMonModule*) x->AddModule("TWenuMonModule", 0); m_wenu->AddL3TriggerName("ELECTRON_CENTRAL_18"); m_wenu->SetPrintLevel(PrintLevel); x->Run(NEvents); // x->SaveHist("./ar0261c3.0001phys.val_hist.4.11.1.root"); }