Useful functions
Plotting
StyleSettingsThesis(); SetPlotStyle();TString dateForOutput = ReturnDateStringForOutput(); //date in format: YYYY_MM_DD TString collisionSystem = ReturnFullCollisionsSystem(energy); //i.e. "pp, #sqrt{s} = 7 TeV"Color_t colorDet = GetDefaultColorDiffDetectors(nameDet.Data(), kFALSE, kFALSE, kTRUE); Style_t markerStyleDet = GetDefaultMarkerStyleDiffDetectors(nameDet.Data(), kFALSE); Size_t markerSizeDet = GetDefaultMarkerSizeDiffDetectors(nameDet.Data(), kFALSE);Color_t colorEnergy = GetColorDefaultColor("8TeV", "", ""); Style_t markerStyleEnergy = GetDefaultMarkerStyle("8TeV", "", ""); Size_t markerSizeEnergy = GetDefaultMarkerSize("8TeV", "", "");DrawGammaSetMarkerTGraphAsym(dummgyTGrAsym , 2, styleLineJETPHOX, colorJETPHOX, colorJETPHOX, widthLinesBoxes, kTRUE, colorJETPHOX,kTRUE);TCanvas* canvas = new TCanvas("canvas","",200,10,1350,900); // gives the page size DrawGammaCanvasSettings( canvas, 0.08, 0.01, 0.01, 0.09); // sets margins (left, right, top, bottom)Int_t textSizeLabelsPixel = 900*0.04;TLegend* legendExample = GetAndSetLegend2(0.12, 0.14, 0.45, 0.14+(0.04*expectedLinesInLegend), textSizeLabelsPixel, 2, "", 43, 0); legendExample->AddEntry(dummgyTGrAsym,"legend text","p"); // last argument: p (point), l (line), f (fill), e (error), combinations possible, ie "pf", "lep", ... legendExample->Draw();
Calculation
Useful code
Last updated