// Idea behind this macro is to implement cuts which are functions of // several ntuple variables. // // Tracy Usher (July 18, 2001) //#ifndef TestCuts_c //#define TestCuts_c #include "nTupleVars.cxx" #include "JoseCutClass.cxx" #include "iostream.h" #include "math.h" //#endif void TestCuts(char* histfile=0) { //******************************************************************** //root stuff to set up the output gROOT->Reset(); gStyle->SetOptStat(1100); gStyle->SetTitleColor(0); // Title box background Color gStyle->SetTitleH(0.08); // Fraction of title box height gStyle->SetTitleW(0.70); // Fraction of title box width gStyle->SetTitleX(0.02); // X position of the title box from left gStyle->SetTitleY(1.00); // Y position of the title box from bottom nTupleVars* pTuple = new nTupleVars(histfile); JoseCutClass* pCuts = new JoseCutClass(); int evtIdx = 0; while(pTuple->getVars(evtIdx)) { pCuts->fillHists(pTuple); evtIdx++; } pCuts->plotHists(); }