//================================================================== // // topsummary_find.C // // Version 0.0: P. Koehn 7/23/01 // // To execute: // // root[] .x topsummary_find.C // // //================================================================== { // Instantiate a StnAna object //---------------------------- TStnAna x("/cdf/home/pkoehn/releases/400/results/test_400_topevent_Stntuple_ele.root"); //TStnAna x("/cdf/home/pkoehn/releases/400/results/test_400_topevent_Stntuple_nojet.root"); //TStnAna x("/cdf/home/pkoehn/releases/318int7/results/"); // If you specify only the directory, // files will be auto-magically chained // together. // Compile required code //----------------------- gSystem->CompileMacro("TTopSummary.cc","k"); // Create pointer to a TopSummary object //---------------------------------------- cout << ">>> TopSummary object <<<" << endl; TTopSummary * ts = new TTopSummary("TopSummary","TopSummary"); ts->SetDebugLevel(1); ts->setDisplayEnable(true); ts->setHistEnable(true); // Your module must be added to TStnAna object the for // events to be processed by your module. //----------------------------------------------------- x.AddModule(ts); // Run the StnAna job over the root files //---------------------------------------- x.Run(10); //make some histos at Endjob() }