#include <PlotAlignmentValidation.h>
|
THStack * | addHists (const TString &selection, const TString &residType="xPrime", TLegend **myLegend=0, bool printModuleIds=false, bool validforphase0=false) |
|
void | legendOptions (TString options) |
|
void | loadFileList (const char *inputFile, std::string fileName="", int lineColor=2, int lineStyle=1) |
|
int | maxNumberOfLayers (int subdetector) |
|
int | numberOfLayers (int phase, int subdetector) |
|
| PlotAlignmentValidation (bool bigtext=false) |
|
| PlotAlignmentValidation (const char *inputFile, std::string fileName="", int lineColor=1, int lineStyle=1, bool bigtext=false) |
|
void | plotChi2 (const char *inputFile) |
|
void | plotDMR (const std::string &plotVar="medianX", Int_t minHits=50, const std::string &options="plain") |
|
void | plotHitMaps () |
|
void | plotOutlierModules (const char *outputFileName="OutlierModules.ps", std::string plotVariable="chi2PerDofX", float chi2_cut=10, unsigned int minHits=50) |
|
void | plotSubDetResiduals (bool plotNormHisto=false, unsigned int subDetId=7) |
|
void | plotSurfaceShapes (const std::string &options="layers", const std::string &variable="") |
|
void | setOutputDir (std::string dir) |
|
void | setTreeBaseDir (std::string dir="TrackerOfflineValidationStandalone") |
|
void | useFitForDMRplots (bool usefit=false) |
|
| ~PlotAlignmentValidation () |
|
|
TObject * | findObjectFromCanvas (TCanvas *canv, const char *className, Int_t n=1) |
|
TF1 * | fitGauss (TH1 *hist, int color) |
|
std::string | getSelectionForDMRPlot (int minHits, int subDetId, int direction=0, int layer=0) |
|
TList * | getTreeList () |
|
std::string | getVariableForDMRPlot (const std::string &histoname, const std::string &variable, int nbins, double min, double max) |
|
void | modifySSHistAndLegend (THStack *hs, TLegend *legend) |
|
void | openSummaryFile () |
|
void | plotDMRHistogram (DMRPlotInfo &plotinfo, int direction=0, int layer=0) |
|
void | plotSS (const std::string &options="layers", const std::string &variable="") |
|
void | scaleXaxis (TH1 *hist, Int_t scale) |
|
void | setCanvasStyle (TCanvas &canv) |
|
void | setDMRHistStyleAndLegend (TH1F *h, DMRPlotInfo &plotinfo, int direction=0, int layer=0) |
|
void | setHistStyle (TH1 &hist, const char *titleX, const char *titleY, int color) |
|
void | setLegendStyle (TLegend &leg) |
|
void | setNiceStyle () |
|
void | setTitleStyle (TNamed &h, const char *titleX, const char *titleY, int subDetId, bool isSurfaceDeformation=false, TString secondline="") |
|
Definition at line 84 of file PlotAlignmentValidation.h.
PlotAlignmentValidation::PlotAlignmentValidation |
( |
bool |
bigtext = false | ) |
|
PlotAlignmentValidation::PlotAlignmentValidation |
( |
const char * |
inputFile, |
|
|
std::string |
fileName = "" , |
|
|
int |
lineColor = 1 , |
|
|
int |
lineStyle = 1 , |
|
|
bool |
bigtext = false |
|
) |
| |
PlotAlignmentValidation::~PlotAlignmentValidation |
( |
| ) |
|
THStack* PlotAlignmentValidation::addHists |
( |
const TString & |
selection, |
|
|
const TString & |
residType = "xPrime" , |
|
|
TLegend ** |
myLegend = 0 , |
|
|
bool |
printModuleIds = false , |
|
|
bool |
validforphase0 = false |
|
) |
| |
TObject* PlotAlignmentValidation::findObjectFromCanvas |
( |
TCanvas * |
canv, |
|
|
const char * |
className, |
|
|
Int_t |
n = 1 |
|
) |
| |
|
private |
TF1* PlotAlignmentValidation::fitGauss |
( |
TH1 * |
hist, |
|
|
int |
color |
|
) |
| |
|
private |
std::string PlotAlignmentValidation::getSelectionForDMRPlot |
( |
int |
minHits, |
|
|
int |
subDetId, |
|
|
int |
direction = 0 , |
|
|
int |
layer = 0 |
|
) |
| |
|
private |
TList* PlotAlignmentValidation::getTreeList |
( |
| ) |
|
|
private |
std::string PlotAlignmentValidation::getVariableForDMRPlot |
( |
const std::string & |
histoname, |
|
|
const std::string & |
variable, |
|
|
int |
nbins, |
|
|
double |
min, |
|
|
double |
max |
|
) |
| |
|
private |
void PlotAlignmentValidation::legendOptions |
( |
TString |
options | ) |
|
void PlotAlignmentValidation::loadFileList |
( |
const char * |
inputFile, |
|
|
std::string |
fileName = "" , |
|
|
int |
lineColor = 2 , |
|
|
int |
lineStyle = 1 |
|
) |
| |
int PlotAlignmentValidation::maxNumberOfLayers |
( |
int |
subdetector | ) |
|
void PlotAlignmentValidation::modifySSHistAndLegend |
( |
THStack * |
hs, |
|
|
TLegend * |
legend |
|
) |
| |
|
private |
int PlotAlignmentValidation::numberOfLayers |
( |
int |
phase, |
|
|
int |
subdetector |
|
) |
| |
void PlotAlignmentValidation::openSummaryFile |
( |
| ) |
|
|
private |
void PlotAlignmentValidation::plotChi2 |
( |
const char * |
inputFile | ) |
|
void PlotAlignmentValidation::plotDMR |
( |
const std::string & |
plotVar = "medianX" , |
|
|
Int_t |
minHits = 50 , |
|
|
const std::string & |
options = "plain" |
|
) |
| |
void PlotAlignmentValidation::plotDMRHistogram |
( |
DMRPlotInfo & |
plotinfo, |
|
|
int |
direction = 0 , |
|
|
int |
layer = 0 |
|
) |
| |
|
private |
void PlotAlignmentValidation::plotHitMaps |
( |
| ) |
|
void PlotAlignmentValidation::plotOutlierModules |
( |
const char * |
outputFileName = "OutlierModules.ps" , |
|
|
std::string |
plotVariable = "chi2PerDofX" , |
|
|
float |
chi2_cut = 10 , |
|
|
unsigned int |
minHits = 50 |
|
) |
| |
void PlotAlignmentValidation::plotSS |
( |
const std::string & |
options = "layers" , |
|
|
const std::string & |
variable = "" |
|
) |
| |
|
private |
void PlotAlignmentValidation::plotSubDetResiduals |
( |
bool |
plotNormHisto = false , |
|
|
unsigned int |
subDetId = 7 |
|
) |
| |
void PlotAlignmentValidation::plotSurfaceShapes |
( |
const std::string & |
options = "layers" , |
|
|
const std::string & |
variable = "" |
|
) |
| |
void PlotAlignmentValidation::scaleXaxis |
( |
TH1 * |
hist, |
|
|
Int_t |
scale |
|
) |
| |
|
private |
void PlotAlignmentValidation::setCanvasStyle |
( |
TCanvas & |
canv | ) |
|
|
private |
void PlotAlignmentValidation::setDMRHistStyleAndLegend |
( |
TH1F * |
h, |
|
|
DMRPlotInfo & |
plotinfo, |
|
|
int |
direction = 0 , |
|
|
int |
layer = 0 |
|
) |
| |
|
private |
void PlotAlignmentValidation::setHistStyle |
( |
TH1 & |
hist, |
|
|
const char * |
titleX, |
|
|
const char * |
titleY, |
|
|
int |
color |
|
) |
| |
|
private |
void PlotAlignmentValidation::setLegendStyle |
( |
TLegend & |
leg | ) |
|
|
private |
void PlotAlignmentValidation::setNiceStyle |
( |
| ) |
|
|
private |
void PlotAlignmentValidation::setOutputDir |
( |
std::string |
dir | ) |
|
void PlotAlignmentValidation::setTitleStyle |
( |
TNamed & |
h, |
|
|
const char * |
titleX, |
|
|
const char * |
titleY, |
|
|
int |
subDetId, |
|
|
bool |
isSurfaceDeformation = false , |
|
|
TString |
secondline = "" |
|
) |
| |
|
private |
void PlotAlignmentValidation::setTreeBaseDir |
( |
std::string |
dir = "TrackerOfflineValidationStandalone" | ) |
|
void PlotAlignmentValidation::useFitForDMRplots |
( |
bool |
usefit = false | ) |
|
bool PlotAlignmentValidation::bigtext_ |
|
private |
int PlotAlignmentValidation::fileCounter |
|
private |
std::string PlotAlignmentValidation::fileNames[10] |
|
private |
bool PlotAlignmentValidation::moreThanOneSource |
|
private |
bool PlotAlignmentValidation::openedsummaryfile = false |
|
private |
std::string PlotAlignmentValidation::outputDir |
|
private |
TString PlotAlignmentValidation::outputFile |
|
private |
bool PlotAlignmentValidation::showMean_ |
|
private |
bool PlotAlignmentValidation::showMeanError_ |
|
private |
bool PlotAlignmentValidation::showModules_ |
|
private |
bool PlotAlignmentValidation::showRMS_ |
|
private |
bool PlotAlignmentValidation::showRMSError_ |
|
private |
bool PlotAlignmentValidation::showUnderOverFlow_ |
|
private |
TList* PlotAlignmentValidation::sourcelist |
|
private |
ofstream PlotAlignmentValidation::summaryfile |
|
private |
const TString PlotAlignmentValidation::summaryfilename |
|
staticprivate |
std::string PlotAlignmentValidation::treeBaseDir |
|
private |
bool PlotAlignmentValidation::twolines_ |
|
private |
bool PlotAlignmentValidation::useFit_ |
|
private |
std::vector<double> PlotAlignmentValidation::vdeltamean |
|
private |
std::vector<double> PlotAlignmentValidation::vmean |
|
private |
std::vector<double> PlotAlignmentValidation::vrms |
|
private |