{ #include "addToChain.C" gStyle->SetPalette(1); // choose sensible rainbow-style color palette gStyle->SetOptStat("nemruoi"); gROOT->ProcessLine(".L $ROOTUTIL/getPads.C"); gROOT->ProcessLine(".L $ROOTUTIL/clearCutStrings.C"); gROOT->ProcessLine(".L $ROOTUTIL/makeCanvas.C"); gROOT->ProcessLine(".L $ROOTUTIL/makeCanvasHist1d.C"); double degPerRad = 57.295780; TChain* chainPtr = new TChain("fdcCathodeResidTestTree"); addToChain(chainPtr); int xsize = 1280; int ysize = 1024; char title[128]; char drawString[50][128]; char cutString[50][128]; int canvasId = 0; sprintf(title, "event information"); int npad = 4, nxpad = 2, nypad = 2; clearCutStrings(cutString); sprintf(drawString[0], "event"); sprintf(drawString[1], "x0"); sprintf(drawString[2], "y0"); sprintf(drawString[3], "nResids"); makeCanvas(++canvasId, title, xsize, ysize, npad, nxpad, nypad, drawString, cutString); sprintf(title, "y vs. x"); int npad = 2, nxpad = 1, nypad = 2; clearCutStrings(cutString); sprintf(drawString[0], "x0:y0"); sprintf(drawString[1], "x0:y0"); sprintf(cutString[1], "nResids >= 10"); makeCanvas(++canvasId, title, xsize, ysize, npad, nxpad, nypad, drawString, cutString); sprintf(title, "residuals"); int npad = 4, nxpad = 2, nypad = 2; clearCutStrings(cutString); sprintf(drawString[0], "resids:layer"); sprintf(drawString[1], "resids"); sprintf(cutString[1], "event <=100"); sprintf(drawString[2], "resids"); sprintf(cutString[2], "event > 500 && event <= 600"); sprintf(drawString[3], "resids:wire"); makeCanvas(++canvasId, title, xsize, ysize, npad, nxpad, nypad, drawString, cutString); }