CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Enumerations | Functions | Variables
trackSplitPlot.h File Reference
#include <iostream>
#include <sstream>
#include "TCanvas.h"
#include "TClass.h"
#include "TColor.h"
#include "TFile.h"
#include "TGaxis.h"
#include "TGraph2DErrors.h"
#include "TGraphErrors.h"
#include "TH1.h"
#include "TH1F.h"
#include "TH2F.h"
#include "TLegend.h"
#include "TLegendEntry.h"
#include "TList.h"
#include "TMath.h"
#include "TMultiGraph.h"
#include "TObject.h"
#include "TProfile.h"
#include "TROOT.h"
#include "TString.h"
#include "TStyle.h"
#include "TSystem.h"
#include "TText.h"
#include "TTree.h"
#include "trackSplitPlot.h"

Go to the source code of this file.

Enumerations

enum  PlotType {
  ScatterPlot, Profile, Histogram, OrgHistogram,
  Resolution, Plot1D, Plot2D
}
 
enum  Statistic { Minimum, Maximum, Average, RMS }
 

Functions

TString axislabel (TString variable, Char_t axis, Bool_t relative=false, Bool_t resolution=false, Bool_t pull=false)
 
void axislimits (Int_t nFiles, TString *files, TString var, Char_t axis, Bool_t relative, Bool_t pull, Double_t &min, Double_t &max)
 
void deleteCanvas (TObject *canvas)
 
TString fancyname (TString variable)
 
Double_t findAverage (Int_t nFiles, TString *files, TString var, Char_t axis, Bool_t relative=false, Bool_t pull=false)
 
Double_t findAverage (TString file, TString var, Char_t axis, Bool_t relative=false, Bool_t pull=false)
 
Double_t findMax (Int_t nFiles, TString *files, TString var, Char_t axis, Bool_t relative=false, Bool_t pull=false)
 
Double_t findMax (TString file, TString var, Char_t axis, Bool_t relative=false, Bool_t pull=false)
 
Double_t findMin (Int_t nFiles, TString *files, TString var, Char_t axis, Bool_t relative=false, Bool_t pull=false)
 
Double_t findMin (TString file, TString var, Char_t axis, Bool_t relative=false, Bool_t pull=false)
 
Double_t findRMS (Int_t nFiles, TString *files, TString var, Char_t axis, Bool_t relative=false, Bool_t pull=false)
 
Double_t findRMS (TString file, TString var, Char_t axis, Bool_t relative=false, Bool_t pull=false)
 
Double_t findStatistic (Statistic what, Int_t nFiles, TString *files, TString var, Char_t axis, Bool_t relative=false, Bool_t pull=false)
 
Double_t findStatistic (Statistic what, TString file, TString var, Char_t axis, Bool_t relative=false, Bool_t pull=false)
 
Bool_t fitsHere (TLegend *l, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
 
Bool_t hasFit (TString misalignment, TString xvar, TString yvar, Bool_t relative=false, Bool_t resolution=false, Bool_t pull=false)
 
void makePlots (Int_t nFiles, TString *files, TString *names, TString misalignment, Double_t *values, Double_t *phases, TString directory, Bool_t matrix[xsize][ysize])
 
void makePlots (Int_t nFiles, TString *files, TString *names, TString directory, Bool_t matrix[xsize][ysize])
 
void makePlots (TString file, TString misalignment, Double_t *values, Double_t *phases, TString directory, Bool_t matrix[xsize][ysize])
 
void makePlots (TString file, TString directory, Bool_t matrix[xsize][ysize])
 
void makePlots (Int_t nFiles, TString *files, TString *names, TString misalignment, Double_t *values, Double_t *phases, TString directory, TString xvar, TString yvar)
 
void makePlots (Int_t nFiles, TString *files, TString *names, TString directory, TString xvar, TString yvar)
 
void makePlots (TString file, TString misalignment, Double_t *values, Double_t *phases, TString directory, TString xvar, TString yvar)
 
void makePlots (TString file, TString directory, TString xvar, TString yvar)
 
void makePlots (Int_t nFiles, TString *files, TString *names, TString misalignment, Double_t *values, Double_t *phases, TString directory)
 
void makePlots (Int_t nFiles, TString *files, TString *names, TString directory)
 
void makePlots (TString file, TString misalignment, Double_t *values, Double_t *phases, TString directory)
 
void makePlots (TString file, TString directory)
 
void misalignmentDependence (TCanvas *c1old, Int_t nFiles, TString *names, TString misalignment, Double_t *values, Double_t *phases, TString xvar, TString yvar, TF1 *function, Int_t parameter, TString parametername="", TString functionname="", Bool_t relative=false, Bool_t resolution=false, Bool_t pull=false, TString saveas="")
 
void misalignmentDependence (TCanvas *c1old, Int_t nFiles, TString *names, TString misalignment, Double_t *values, Double_t *phases, TString xvar, TString yvar, TF1 *function, Int_t nParameters, Int_t *parameters, TString *parameternames, TString functionname="", Bool_t relative=false, Bool_t resolution=false, Bool_t pull=false, TString saveas="")
 
void misalignmentDependence (Int_t nFiles, TString *files, TString *names, TString misalignment, Double_t *values, Double_t *phases, TString xvar, TString yvar, TF1 *function, Int_t parameter, TString parametername="", TString functionname="", Bool_t relative=false, Bool_t resolution=false, Bool_t pull=false, TString saveas="")
 
void misalignmentDependence (Int_t nFiles, TString *files, TString *names, TString misalignment, Double_t *values, Double_t *phases, TString xvar, TString yvar, TF1 *function, Int_t nParameters, Int_t *parameters, TString *parameternames, TString functionname="", Bool_t relative=false, Bool_t resolution=false, Bool_t pull=false, TString saveas="")
 
void misalignmentDependence (TCanvas *c1old, Int_t nFiles, TString *names, TString misalignment, Double_t *values, Double_t *phases, TString xvar, TString yvar, TString function, Int_t parameter, TString parametername="", TString functionname="", Bool_t relative=false, Bool_t resolution=false, Bool_t pull=false, TString saveas="")
 
void misalignmentDependence (TCanvas *c1old, Int_t nFiles, TString *names, TString misalignment, Double_t *values, Double_t *phases, TString xvar, TString yvar, TString function, Int_t nParameters, Int_t *parameters, TString *parameternames, TString functionname="", Bool_t relative=false, Bool_t resolution=false, Bool_t pull=false, TString saveas="")
 
void misalignmentDependence (Int_t nFiles, TString *files, TString *names, TString misalignment, Double_t *values, Double_t *phases, TString xvar, TString yvar, TString function, Int_t parameter, TString parametername="", TString functionname="", Bool_t relative=false, Bool_t resolution=false, Bool_t pull=false, TString saveas="")
 
void misalignmentDependence (Int_t nFiles, TString *files, TString *names, TString misalignment, Double_t *values, Double_t *phases, TString xvar, TString yvar, TString function, Int_t nParameters, Int_t *parameters, TString *parameternames, TString functionname="", Bool_t relative=false, Bool_t resolution=false, Bool_t pull=false, TString saveas="")
 
Bool_t misalignmentDependence (TCanvas *c1old, Int_t nFiles, TString *names, TString misalignment, Double_t *values, Double_t *phases, TString xvar, TString yvar, Bool_t drawfits=true, Bool_t relative=false, Bool_t resolution=false, Bool_t pull=false, TString saveas="")
 
Bool_t misalignmentDependence (Int_t nFiles, TString *files, TString *names, TString misalignment, Double_t *values, Double_t *phases, TString xvar, TString yvar, Bool_t drawfits=true, Bool_t relative=false, Bool_t resolution=false, Bool_t pull=false, TString saveas="")
 
TString nPart (Int_t part, TString string, TString delimit=";", Bool_t removerest=true)
 
void placeholder (TString saveas="", Bool_t wide=false)
 
Double_t placeLegend (TLegend *l, Double_t width, Double_t height, Double_t x1min, Double_t y1min, Double_t x2max, Double_t y2max)
 
void runNumberZoomed (Int_t nFiles, TString *files, TString *names, TString yvar, Bool_t relative=false, Bool_t resolution=false, Bool_t pull=false, Int_t firstRun=-1, Int_t lastRun=-1, TString saveas="")
 
void saveplot (TCanvas *c1, TString saveas)
 
void set_plot_style ()
 
void setAxisLabels (TH1 *p, PlotType type, TString xvar, TString yvar, Bool_t relative, Bool_t pull)
 
void setAxisLabels (TMultiGraph *p, PlotType type, TString xvar, TString yvar, Bool_t relative, Bool_t pull)
 
void setTDRStyle ()
 
void setupcolors ()
 
TCanvas * trackSplitPlot (Int_t nFiles, TString *files, TString *names, TString xvar, TString yvar, Bool_t relative=false, Bool_t resolution=false, Bool_t pull=false, TString saveas="")
 
TCanvas * trackSplitPlot (Int_t nFiles, TString *files, TString *names, TString var, Bool_t relative=false, Bool_t pull=false, TString saveas="")
 
TCanvas * trackSplitPlot (TString file, TString xvar, TString yvar, Bool_t profile=false, Bool_t relative=false, Bool_t resolution=false, Bool_t pull=false, TString saveas="")
 
TCanvas * trackSplitPlot (TString file, TString var, Bool_t relative=false, Bool_t pull=false, TString saveas="")
 
TString units (TString variable, Char_t axis)
 

Variables

Int_t binsHistogram = 100
 
Int_t binsProfileResolution = 30
 
Int_t binsScatterPlotx = 1000
 
Int_t binsScatterPloty = 1000
 
vector< Color_t > colors
 
Double_t increaseby = .1
 
Int_t legendGrid = 100
 
Double_t margin = .1
 
Int_t maxrun = -1
 
Int_t minrun = -1
 
const Double_t pi = TMath::Pi()
 
Bool_t relativearray [ysize] = {true, false, false, false, false, false, false, false, false}
 
Int_t runNumberBins = 30
 
TList * stufftodelete = new TList()
 
vector< Style_t > styles
 
bool styleset = false
 
const Int_t xsize = 10
 
TString xvariables [xsize] = {"pt", "eta", "phi", "dz", "dxy", "theta", "qoverpt", "runNumber","nHits",""}
 
const Int_t ysize = 9
 
TString yvariables [ysize] = {"pt", "pt", "eta", "phi", "dz", "dxy", "theta", "qoverpt", ""}
 

Enumeration Type Documentation

enum PlotType
Enumerator
ScatterPlot 
Profile 
Histogram 
OrgHistogram 
Resolution 
Plot1D 
Plot2D 

Definition at line 32 of file trackSplitPlot.h.

enum Statistic
Enumerator
Minimum 
Maximum 
Average 
RMS 

Definition at line 33 of file trackSplitPlot.h.

Function Documentation

TString axislabel ( TString  variable,
Char_t  axis,
Bool_t  relative = false,
Bool_t  resolution = false,
Bool_t  pull = false 
)
void axislimits ( Int_t  nFiles,
TString *  files,
TString  var,
Char_t  axis,
Bool_t  relative,
Bool_t  pull,
Double_t &  min,
Double_t &  max 
)
void deleteCanvas ( TObject *  canvas)
TString fancyname ( TString  variable)
Double_t findAverage ( Int_t  nFiles,
TString *  files,
TString  var,
Char_t  axis,
Bool_t  relative = false,
Bool_t  pull = false 
)
Double_t findAverage ( TString  file,
TString  var,
Char_t  axis,
Bool_t  relative = false,
Bool_t  pull = false 
)
Double_t findMax ( Int_t  nFiles,
TString *  files,
TString  var,
Char_t  axis,
Bool_t  relative = false,
Bool_t  pull = false 
)
Double_t findMax ( TString  file,
TString  var,
Char_t  axis,
Bool_t  relative = false,
Bool_t  pull = false 
)
Double_t findMin ( Int_t  nFiles,
TString *  files,
TString  var,
Char_t  axis,
Bool_t  relative = false,
Bool_t  pull = false 
)
Double_t findMin ( TString  file,
TString  var,
Char_t  axis,
Bool_t  relative = false,
Bool_t  pull = false 
)
Double_t findRMS ( Int_t  nFiles,
TString *  files,
TString  var,
Char_t  axis,
Bool_t  relative = false,
Bool_t  pull = false 
)
Double_t findRMS ( TString  file,
TString  var,
Char_t  axis,
Bool_t  relative = false,
Bool_t  pull = false 
)
Double_t findStatistic ( Statistic  what,
Int_t  nFiles,
TString *  files,
TString  var,
Char_t  axis,
Bool_t  relative = false,
Bool_t  pull = false 
)
Double_t findStatistic ( Statistic  what,
TString  file,
TString  var,
Char_t  axis,
Bool_t  relative = false,
Bool_t  pull = false 
)
Bool_t fitsHere ( TLegend *  l,
Double_t  x1,
Double_t  y1,
Double_t  x2,
Double_t  y2 
)
Bool_t hasFit ( TString  misalignment,
TString  xvar,
TString  yvar,
Bool_t  relative = false,
Bool_t  resolution = false,
Bool_t  pull = false 
)
void makePlots ( Int_t  nFiles,
TString *  files,
TString *  names,
TString  misalignment,
Double_t *  values,
Double_t *  phases,
TString  directory,
Bool_t  matrix[xsize][ysize] 
)

Referenced by main().

void makePlots ( Int_t  nFiles,
TString *  files,
TString *  names,
TString  directory,
Bool_t  matrix[xsize][ysize] 
)
void makePlots ( TString  file,
TString  misalignment,
Double_t *  values,
Double_t *  phases,
TString  directory,
Bool_t  matrix[xsize][ysize] 
)
void makePlots ( TString  file,
TString  directory,
Bool_t  matrix[xsize][ysize] 
)
void makePlots ( Int_t  nFiles,
TString *  files,
TString *  names,
TString  misalignment,
Double_t *  values,
Double_t *  phases,
TString  directory,
TString  xvar,
TString  yvar 
)
void makePlots ( Int_t  nFiles,
TString *  files,
TString *  names,
TString  directory,
TString  xvar,
TString  yvar 
)
void makePlots ( TString  file,
TString  misalignment,
Double_t *  values,
Double_t *  phases,
TString  directory,
TString  xvar,
TString  yvar 
)
void makePlots ( TString  file,
TString  directory,
TString  xvar,
TString  yvar 
)
void makePlots ( Int_t  nFiles,
TString *  files,
TString *  names,
TString  misalignment,
Double_t *  values,
Double_t *  phases,
TString  directory 
)
void makePlots ( Int_t  nFiles,
TString *  files,
TString *  names,
TString  directory 
)
void makePlots ( TString  file,
TString  misalignment,
Double_t *  values,
Double_t *  phases,
TString  directory 
)
void makePlots ( TString  file,
TString  directory 
)
void misalignmentDependence ( TCanvas *  c1old,
Int_t  nFiles,
TString *  names,
TString  misalignment,
Double_t *  values,
Double_t *  phases,
TString  xvar,
TString  yvar,
TF1 *  function,
Int_t  parameter,
TString  parametername = "",
TString  functionname = "",
Bool_t  relative = false,
Bool_t  resolution = false,
Bool_t  pull = false,
TString  saveas = "" 
)
void misalignmentDependence ( TCanvas *  c1old,
Int_t  nFiles,
TString *  names,
TString  misalignment,
Double_t *  values,
Double_t *  phases,
TString  xvar,
TString  yvar,
TF1 *  function,
Int_t  nParameters,
Int_t *  parameters,
TString *  parameternames,
TString  functionname = "",
Bool_t  relative = false,
Bool_t  resolution = false,
Bool_t  pull = false,
TString  saveas = "" 
)
void misalignmentDependence ( Int_t  nFiles,
TString *  files,
TString *  names,
TString  misalignment,
Double_t *  values,
Double_t *  phases,
TString  xvar,
TString  yvar,
TF1 *  function,
Int_t  parameter,
TString  parametername = "",
TString  functionname = "",
Bool_t  relative = false,
Bool_t  resolution = false,
Bool_t  pull = false,
TString  saveas = "" 
)
void misalignmentDependence ( Int_t  nFiles,
TString *  files,
TString *  names,
TString  misalignment,
Double_t *  values,
Double_t *  phases,
TString  xvar,
TString  yvar,
TF1 *  function,
Int_t  nParameters,
Int_t *  parameters,
TString *  parameternames,
TString  functionname = "",
Bool_t  relative = false,
Bool_t  resolution = false,
Bool_t  pull = false,
TString  saveas = "" 
)
void misalignmentDependence ( TCanvas *  c1old,
Int_t  nFiles,
TString *  names,
TString  misalignment,
Double_t *  values,
Double_t *  phases,
TString  xvar,
TString  yvar,
TString  function,
Int_t  parameter,
TString  parametername = "",
TString  functionname = "",
Bool_t  relative = false,
Bool_t  resolution = false,
Bool_t  pull = false,
TString  saveas = "" 
)
void misalignmentDependence ( TCanvas *  c1old,
Int_t  nFiles,
TString *  names,
TString  misalignment,
Double_t *  values,
Double_t *  phases,
TString  xvar,
TString  yvar,
TString  function,
Int_t  nParameters,
Int_t *  parameters,
TString *  parameternames,
TString  functionname = "",
Bool_t  relative = false,
Bool_t  resolution = false,
Bool_t  pull = false,
TString  saveas = "" 
)
void misalignmentDependence ( Int_t  nFiles,
TString *  files,
TString *  names,
TString  misalignment,
Double_t *  values,
Double_t *  phases,
TString  xvar,
TString  yvar,
TString  function,
Int_t  parameter,
TString  parametername = "",
TString  functionname = "",
Bool_t  relative = false,
Bool_t  resolution = false,
Bool_t  pull = false,
TString  saveas = "" 
)
void misalignmentDependence ( Int_t  nFiles,
TString *  files,
TString *  names,
TString  misalignment,
Double_t *  values,
Double_t *  phases,
TString  xvar,
TString  yvar,
TString  function,
Int_t  nParameters,
Int_t *  parameters,
TString *  parameternames,
TString  functionname = "",
Bool_t  relative = false,
Bool_t  resolution = false,
Bool_t  pull = false,
TString  saveas = "" 
)
Bool_t misalignmentDependence ( TCanvas *  c1old,
Int_t  nFiles,
TString *  names,
TString  misalignment,
Double_t *  values,
Double_t *  phases,
TString  xvar,
TString  yvar,
Bool_t  drawfits = true,
Bool_t  relative = false,
Bool_t  resolution = false,
Bool_t  pull = false,
TString  saveas = "" 
)
Bool_t misalignmentDependence ( Int_t  nFiles,
TString *  files,
TString *  names,
TString  misalignment,
Double_t *  values,
Double_t *  phases,
TString  xvar,
TString  yvar,
Bool_t  drawfits = true,
Bool_t  relative = false,
Bool_t  resolution = false,
Bool_t  pull = false,
TString  saveas = "" 
)
TString nPart ( Int_t  part,
TString  string,
TString  delimit = ";",
Bool_t  removerest = true 
)
void placeholder ( TString  saveas = "",
Bool_t  wide = false 
)
Double_t placeLegend ( TLegend *  l,
Double_t  width,
Double_t  height,
Double_t  x1min,
Double_t  y1min,
Double_t  x2max,
Double_t  y2max 
)
void runNumberZoomed ( Int_t  nFiles,
TString *  files,
TString *  names,
TString  yvar,
Bool_t  relative = false,
Bool_t  resolution = false,
Bool_t  pull = false,
Int_t  firstRun = -1,
Int_t  lastRun = -1,
TString  saveas = "" 
)
void saveplot ( TCanvas *  c1,
TString  saveas 
)
void set_plot_style ( )
void setAxisLabels ( TH1 *  p,
PlotType  type,
TString  xvar,
TString  yvar,
Bool_t  relative,
Bool_t  pull 
)
void setAxisLabels ( TMultiGraph *  p,
PlotType  type,
TString  xvar,
TString  yvar,
Bool_t  relative,
Bool_t  pull 
)
void setTDRStyle ( )

Definition at line 87 of file plotscripts.py.

Referenced by BTagPerformanceAnalyzerOnData::bookHistograms(), BTagPerformanceAnalyzerMC::bookHistograms(), BTagPerformanceAnalyzerMC::endJob(), BTagPerformanceAnalyzerOnData::endRun(), LRHelpFunctions::LRHelpFunctions(), EffPurFromHistos::plot(), SoftLeptonTagPlotter::psPlot(), TrackCountingTagPlotter::psPlot(), TrackProbabilityTagPlotter::psPlot(), JetTagPlotter::psPlot(), and RecoBTag::tdrGrid().

87 
89  global tdrStyle
90  tdrStyle = ROOT.TStyle("tdrStyle","Style for P-TDR")
91 # For the canvas:
92  tdrStyle.SetCanvasBorderMode(0)
93  tdrStyle.SetCanvasColor(ROOT.kWhite)
94  tdrStyle.SetCanvasDefH(600) #Height of canvas
95  tdrStyle.SetCanvasDefW(600) #Width of canvas
96  tdrStyle.SetCanvasDefX(0) #POsition on screen
97  tdrStyle.SetCanvasDefY(0)
98 
99 # For the Pad:
100  tdrStyle.SetPadBorderMode(0)
101  # tdrStyle.SetPadBorderSize(Width_t size = 1)
102  tdrStyle.SetPadColor(ROOT.kWhite)
103  tdrStyle.SetPadGridX(False)
104  tdrStyle.SetPadGridY(False)
105  tdrStyle.SetGridColor(0)
106  tdrStyle.SetGridStyle(3)
107  tdrStyle.SetGridWidth(1)
108 
109 # For the frame:
110  tdrStyle.SetFrameBorderMode(0)
111  tdrStyle.SetFrameBorderSize(1)
112  tdrStyle.SetFrameFillColor(0)
113  tdrStyle.SetFrameFillStyle(0)
114  tdrStyle.SetFrameLineColor(1)
115  tdrStyle.SetFrameLineStyle(1)
116  tdrStyle.SetFrameLineWidth(1)
117 
118 # For the histo:
119  # tdrStyle.SetHistFillColor(1)
120  # tdrStyle.SetHistFillStyle(0)
121  tdrStyle.SetHistLineColor(1)
122  tdrStyle.SetHistLineStyle(0)
123  tdrStyle.SetHistLineWidth(1)
124  # tdrStyle.SetLegoInnerR(Float_t rad = 0.5)
125  # tdrStyle.SetNumberContours(Int_t number = 20)
126 
127  tdrStyle.SetEndErrorSize(2)
128 # tdrStyle.SetErrorMarker(20)
129  tdrStyle.SetErrorX(0.)
130 
131  tdrStyle.SetMarkerStyle(20)
132 
133 #For the fit/function:
134  tdrStyle.SetOptFit(1)
135  tdrStyle.SetFitFormat("5.4g")
136  tdrStyle.SetFuncColor(2)
137  tdrStyle.SetFuncStyle(1)
138  tdrStyle.SetFuncWidth(1)
139 
140 #For the date:
141  tdrStyle.SetOptDate(0)
142  # tdrStyle.SetDateX(Float_t x = 0.01)
143  # tdrStyle.SetDateY(Float_t y = 0.01)
144 
145 # For the statistics box:
146  tdrStyle.SetOptFile(0)
147  tdrStyle.SetOptStat(0) # To display the mean and RMS: SetOptStat("mr")
148  tdrStyle.SetStatColor(ROOT.kWhite)
149  tdrStyle.SetStatFont(42)
150  tdrStyle.SetStatFontSize(0.025)
151  tdrStyle.SetStatTextColor(1)
152  tdrStyle.SetStatFormat("6.4g")
153  tdrStyle.SetStatBorderSize(1)
154  tdrStyle.SetStatH(0.1)
155  tdrStyle.SetStatW(0.15)
156  # tdrStyle.SetStatStyle(Style_t style = 1001)
157  # tdrStyle.SetStatX(Float_t x = 0)
158  # tdrStyle.SetStatY(Float_t y = 0)
159 
160 # Margins:
161  tdrStyle.SetPadTopMargin(0.05)
162  tdrStyle.SetPadBottomMargin(0.13)
163  tdrStyle.SetPadLeftMargin(0.13)
164  tdrStyle.SetPadRightMargin(0.05)
165 
166 # For the Global title:
167  tdrStyle.SetOptTitle(0)
168  tdrStyle.SetTitleFont(42)
169  tdrStyle.SetTitleColor(1)
170  tdrStyle.SetTitleTextColor(1)
171  tdrStyle.SetTitleFillColor(10)
172  tdrStyle.SetTitleFontSize(0.05)
173  # tdrStyle.SetTitleH(0) # Set the height of the title box
174  # tdrStyle.SetTitleW(0) # Set the width of the title box
175  # tdrStyle.SetTitleX(0) # Set the position of the title box
176  # tdrStyle.SetTitleY(0.985) # Set the position of the title box
177  # tdrStyle.SetTitleStyle(Style_t style = 1001)
178  # tdrStyle.SetTitleBorderSize(2)
179 
180 # For the axis titles:
181  tdrStyle.SetTitleColor(1, "XYZ")
182  tdrStyle.SetTitleFont(42, "XYZ")
183  tdrStyle.SetTitleSize(0.06, "XYZ")
184  # tdrStyle.SetTitleXSize(Float_t size = 0.02) # Another way to set the size?
185  # tdrStyle.SetTitleYSize(Float_t size = 0.02)
186  tdrStyle.SetTitleXOffset(0.9)
187  tdrStyle.SetTitleYOffset(1.05)
188  # tdrStyle.SetTitleOffset(1.1, "Y") # Another way to set the Offset
189 
190 # For the axis labels:
191  tdrStyle.SetLabelColor(1, "XYZ")
192  tdrStyle.SetLabelFont(42, "XYZ")
193  tdrStyle.SetLabelOffset(0.007, "XYZ")
194  tdrStyle.SetLabelSize(0.05, "XYZ")
195 
196 # For the axis:
197  tdrStyle.SetAxisColor(1, "XYZ")
198  tdrStyle.SetStripDecimals(True)
199  tdrStyle.SetTickLength(0.03, "XYZ")
200  tdrStyle.SetNdivisions(510, "XYZ")
201  tdrStyle.SetPadTickX(1) # To get tick marks on the opposite side of the frame
202  tdrStyle.SetPadTickY(1)
203 
204 # Change for log plots:
205  tdrStyle.SetOptLogx(0)
206  tdrStyle.SetOptLogy(0)
207  tdrStyle.SetOptLogz(0)
208 
209 # Postscript options:
210  tdrStyle.SetPaperSize(20.,20.)
211  # tdrStyle.SetLineScalePS(Float_t scale = 3)
212  # tdrStyle.SetLineStyleString(Int_t i, const char* text)
213  # tdrStyle.SetHeaderPS(const char* header)
214  # tdrStyle.SetTitlePS(const char* pstitle)
215 
216  # tdrStyle.SetBarOffset(Float_t baroff = 0.5)
217  # tdrStyle.SetBarWidth(Float_t barwidth = 0.5)
218  # tdrStyle.SetPaintTextFormat(const char* format = "g")
219  # tdrStyle.SetPalette(Int_t ncolors = 0, Int_t* colors = 0)
220  # tdrStyle.SetTimeOffset(Double_t toffset)
221  # tdrStyle.SetHistMinimumZero(True)
222 
223  tdrStyle.cd()
224 
225 setTDRStyle()
int i
Definition: DBlmapReader.cc:9
Definition: vlib.h:256
def canvas
Definition: svgfig.py:481
vector< Color_t > colors
tuple text
Definition: runonSM.py:42
#define True
Definition: Types.h:96
#define For(par1, par2, par3)
Definition: vmac.h:15
string const
Definition: compareJSON.py:14
void setTDRStyle()
Definition: plotscripts.py:87
static int position[264][3]
Definition: ReadPGInfo.cc:509
Definition: DDAxes.h:10
for(const auto &isodef:isoDefs)
JetCorrectorParameters::Definitions def
Definition: classes.h:6
tuple size
Write out results.
T get(const Candidate &c)
Definition: component.h:55
#define False
Definition: Types.h:97
void setupcolors ( )
TCanvas* trackSplitPlot ( Int_t  nFiles,
TString *  files,
TString *  names,
TString  xvar,
TString  yvar,
Bool_t  relative = false,
Bool_t  resolution = false,
Bool_t  pull = false,
TString  saveas = "" 
)
TCanvas* trackSplitPlot ( Int_t  nFiles,
TString *  files,
TString *  names,
TString  var,
Bool_t  relative = false,
Bool_t  pull = false,
TString  saveas = "" 
)
TCanvas* trackSplitPlot ( TString  file,
TString  xvar,
TString  yvar,
Bool_t  profile = false,
Bool_t  relative = false,
Bool_t  resolution = false,
Bool_t  pull = false,
TString  saveas = "" 
)
TCanvas* trackSplitPlot ( TString  file,
TString  var,
Bool_t  relative = false,
Bool_t  pull = false,
TString  saveas = "" 
)
TString units ( TString  variable,
Char_t  axis 
)

Referenced by AlignableSiStripDet::AlignableSiStripDet(), CocoaUnitDefinition::GetCategory(), ALIUnitDefinition::GetCategory(), CocoaUnitDefinition::GetValueOf(), ALIUnitDefinition::GetValueOf(), HcalNumberingFromDDD::HcalCellTypes(), SiPixelFedCablingMapBuilder::produce(), MatacqProducer::runSubDir(), HcalHotCellMonitor::setup(), HcalDeadCellMonitor::setup(), HcalObjRepresent::setup(), HcalObjRepresent::ADataRepr::setup(), HcalNumberingFromDDD::unitID(), and HcalNumberingFromDDD::unitPhi().

Variable Documentation

Int_t binsHistogram = 100

Definition at line 48 of file trackSplitPlot.h.

Int_t binsProfileResolution = 30

Definition at line 50 of file trackSplitPlot.h.

Int_t binsScatterPlotx = 1000

Definition at line 46 of file trackSplitPlot.h.

Int_t binsScatterPloty = 1000

Definition at line 47 of file trackSplitPlot.h.

vector<Color_t> colors

Definition at line 36 of file trackSplitPlot.h.

Referenced by FWGeometryTableViewBase::cellClicked(), FWModelContextMenuHandler::chosenItem(), FWCollectionSummaryWidget::colorClicked(), FWModelContextMenuHandler::createColorPopup(), FWCollectionSummaryWidget::createColorPopup(), dump(), FWColorSelect::FWColorSelect(), FWColorSelect::HandleButton(), init_filter(), FWCollectionSummaryWidget::itemColorClicked(), node_filter(), TrackerMap::save(), TrackerMap::save_as_fectrackermap(), TrackerMap::save_as_fedtrackermap(), TrackerMap::save_as_HVtrackermap(), and TrackerMap::save_as_psutrackermap().

Double_t increaseby = .1

Definition at line 45 of file trackSplitPlot.h.

Int_t legendGrid = 100

Definition at line 43 of file trackSplitPlot.h.

Double_t margin = .1

Definition at line 44 of file trackSplitPlot.h.

Referenced by DTLinearFit::fitNpar(), and InnerDeltaPhi::phiRange().

Int_t maxrun = -1

Definition at line 40 of file trackSplitPlot.h.

Referenced by evf::DirManager::findHighestRun(), and evf::DirManager::findHighestRunDir().

Int_t minrun = -1

Definition at line 39 of file trackSplitPlot.h.

const Double_t pi = TMath::Pi()

Definition at line 35 of file trackSplitPlot.h.

Referenced by Hector::addPartToHepMC(), evf::ExceptionGenerator::analyze(), ElectronMcSignalValidator::analyze(), HiBasicGenTest::analyze(), ElectronAnalyzer::analyze(), ElectronMcFakeValidator::analyze(), ElectronSeedAnalyzer::analyze(), SimplePhotonAnalyzer::analyze(), GsfElectronDataAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), DQMAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), GsfElectronMCAnalyzer::analyze(), RPCPhiEff::analyze(), ContainmentCorrectionAnalyzer::analyze(), cms::DiJetAnalyzer::analyze(), PhotonValidator::analyze(), EwkDQM::beginJob(), HiggsDQM::beginJob(), Vx3DHLTAnalyzer::beginJob(), ExoticaDQM::beginJob(), ElectronMcSignalValidator::book(), MaterialBudgetCastorHistos::book(), MaterialBudgetHcalHistos::book(), ElectronMcFakeValidator::book(), MaterialBudget::book(), MaterialBudgetForward::book(), HLTTauDQML1Plotter::bookHistograms(), BasicHepMCHeavyIonValidation::bookHistograms(), ConversionLikelihoodCalculator::calculateLikelihood(), edm::service::ResourceEnforcer::check(), GsfElectronAlgo::ElectronData::checkCtfTrack(), DDHCalBarrelAlgo::constructGeneralVolume(), DDHCalEndcapAlgo::constructGeneralVolume(), DDHCalEndcapAlgo::constructInsideModule(), DDHCalBarrelAlgo::constructInsideSector(), DDHCalEndcapAlgo::constructInsideSector(), CMSEmStandardPhysics::ConstructProcess(), CMSEmStandardPhysicsXS::ConstructProcess(), CMSEmStandardPhysicsLPM::ConstructProcess(), edm::FileLocator::convert(), RPCStripsRing::createRefConnections(), PFResolutionMap::dCrackPhi(), PFEnergyCalibration::dCrackPhi(), AntiElectronIDMVA5GBR::dCrackPhi(), IsolatedGenParticles::DeltaPhi(), IsolatedTracksCone::DeltaPhi(), IsolatedTracksNxN::DeltaPhi(), Decay3Body::doDecay(), FWFFMetadataManager::doUpdate(), reco::Conversion::dPhiTracksAtEcal(), reco::Conversion::dPhiTracksAtVtx(), DAClusterizerInZ::dump(), ConversionForwardEstimator::estimate(), ConversionBarrelEstimator::estimate(), ForwardMeasurementEstimator::estimate(), BarrelMeasurementEstimator::estimate(), DDHCalTBCableAlgo::execute(), RPCStripsRing::fillWithVirtualStrips(), MCParticlePairFilter::filter(), Thrust::finalAxis(), Gauss3DFunc(), GsfElectronCoreBaseProducer::getCtfTrackRef(), ZdcSD::getEnergyDeposit(), CastorSD::getEnergyDeposit(), TopologyWorker::getetaphi(), TwoBodyDecayLinearizationPointFinder::getLinearizationPoint(), pat::helper::ResolutionHelper::getResolTheta(), Thrust::initialAxis(), HDetIdAssociator::iPhi(), CaloCellId::isInCell(), MaterialBudgetCastorHistos::MaterialBudgetCastorHistos(), MaterialBudgetHcalHistos::MaterialBudgetHcalHistos(), Utils::mpi_pi(), PFMETBenchmark::mpi_pi(), normalized_phi(), CmsTrackerLevelBuilder::ExtractPhi::operator()(), CmsTrackerLevelBuilder::ExtractPhiModule::operator()(), CmsTrackerLevelBuilder::ExtractPhiGluedModule::operator()(), CmsTrackerLevelBuilder::ExtractPhiMirror::operator()(), CmsTrackerLevelBuilder::ExtractPhiModuleMirror::operator()(), CmsTrackerLevelBuilder::ExtractPhiGluedModuleMirror::operator()(), DDHCalEndcapAlgo::parameterLayer(), DDHCalEndcapAlgo::parameterLayer0(), TopologyWorker::planes_sphe(), TopologyWorker::planes_sphe_wei(), TopologyWorker::planes_thrust(), HFFibreFiducial::PMTNumber(), FWPathsPopup::postEvent(), l1t::Stage2Layer2EtSumAlgorithmFirmwareImp1::processEvent(), l1t::Stage2Layer2JetSumAlgorithmFirmwareImp1::processEvent(), ParticleReplacerParticleGun::produce(), HLTTauMCProducer::produce(), cms::AlCaDiJetsProducer::produce(), MuonSimHitProducer::produce(), DAClusterizerInZ::purge(), CutsIsolatorWithCorrection::result(), gen::HijingHadronizer::rotateEvtPlane(), gen::AMPTHadronizer::rotateEvtPlane(), gen::HydjetHadronizer::rotateEvtPlane(), gen::Hydjet2Hadronizer::rotateEvtPlane(), DQMImplNet< DQMNet::Object >::sendObjectListToPeer(), FWPSetTableManager::update(), FP420Test::update(), BscTest::update(), FWPSetTableManager::updateFilter(), UrbanMscModel93::UrbanMscModel93(), DAClusterizerInZ::vertices(), DDI::Tubs::volume(), DDI::Torus::volume(), DDI::Cons::volume(), DDI::Polycone::volume(), MonPNIRedDat::writeArrayDB(), MonPNLed1Dat::writeArrayDB(), MonPNBlueDat::writeArrayDB(), MonPNGreenDat::writeArrayDB(), MonPNRedDat::writeArrayDB(), MonPNMGPADat::writeArrayDB(), MonPNLed2Dat::writeArrayDB(), and DCULVRVoltagesDat::writeArrayDB().

Bool_t relativearray[ysize] = {true, false, false, false, false, false, false, false, false}

Definition at line 55 of file trackSplitPlot.h.

Int_t runNumberBins = 30

Definition at line 49 of file trackSplitPlot.h.

TList* stufftodelete = new TList()

Definition at line 57 of file trackSplitPlot.h.

vector<Style_t> styles

Definition at line 37 of file trackSplitPlot.h.

bool styleset = false

Definition at line 38 of file trackSplitPlot.h.

const Int_t xsize = 10

Definition at line 41 of file trackSplitPlot.h.

Referenced by SiPixelCluster::computeMax(), SiPixelTemplateReco::PixelTempReco2D(), SiPixelTemplateSplit::PixelTempSplit(), SiPixelGaussianSmearingRecHitConverterAlgorithm::smearHit(), TrackClusterSplitter::splitCluster(), SiStripTemplateReco::StripTempReco1D(), and SiStripTemplateSplit::StripTempSplit().

TString xvariables[xsize] = {"pt", "eta", "phi", "dz", "dxy", "theta", "qoverpt", "runNumber","nHits",""}

Definition at line 53 of file trackSplitPlot.h.

const Int_t ysize = 9

Definition at line 42 of file trackSplitPlot.h.

Referenced by SiPixelCluster::computeMax(), SiPixelTemplateReco::PixelTempReco2D(), SiPixelTemplateSplit::PixelTempSplit(), SiPixelGaussianSmearingRecHitConverterAlgorithm::smearHit(), and TrackClusterSplitter::splitCluster().

TString yvariables[ysize] = {"pt", "pt", "eta", "phi", "dz", "dxy", "theta", "qoverpt", ""}

Definition at line 54 of file trackSplitPlot.h.