#include <PlotAlignmentValidation.h>
Classes | |
struct | DMRPlotInfo |
Public Member Functions | |
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 | residual_by_moduleID (unsigned int moduleid) |
void | setOutputDir (std::string dir) |
void | setTreeBaseDir (std::string dir="TrackerOfflineValidationStandalone") |
float | twotailedStudentTTestEqualMean (float t, float v) |
void | useFitForDMRplots (bool usefit=false) |
~PlotAlignmentValidation () | |
Private Member Functions | |
vector< TH1 * > | findmodule (TFile *f, unsigned int moduleid) |
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, std::string subdet="") |
void | plotSS (const std::string &options="layers", const std::string &variable="") |
double | resampleTestOfEqualMeans (TH1F *h1, TH1F *h2, int numSamples) |
double | resampleTestOfEqualRMS (TH1F *h1, TH1F *h2, int numSamples) |
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="") |
void | storeHistogramInRootfile (TH1 *hist) |
Private Attributes | |
bool | bigtext_ |
int | fileCounter |
std::string | fileNames [10] |
bool | moreThanOneSource |
bool | openedsummaryfile = false |
std::string | outputDir |
TString | outputFile |
TFile * | rootsummaryfile |
bool | showMean_ |
bool | showMeanError_ |
bool | showModules_ |
bool | showRMS_ |
bool | showRMSError_ |
bool | showUnderOverFlow_ |
TList * | sourcelist |
std::vector< TkOfflineVariables * > | sourceList |
ofstream | summaryfile |
std::string | treeBaseDir |
bool | twolines_ |
bool | useFit_ |
std::vector< double > | vAlignmentUncertainty |
std::vector< double > | vdeltamean |
std::vector< double > | vmean |
std::vector< double > | vmeanerror |
std::vector< double > | vPValueEqualSplitMeans |
std::vector< double > | vPValueMeanEqualIdeal |
std::vector< double > | vPValueRMSEqualIdeal |
std::vector< double > | vrms |
Static Private Attributes | |
static const TString | summaryfilename |
Definition at line 83 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 |
||
) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
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 | ) |
|
private |
int PlotAlignmentValidation::numberOfLayers | ( | int | phase, |
int | subdetector | ||
) |
|
private |
void PlotAlignmentValidation::plotChi2 | ( | const char * | inputFile | ) |
void PlotAlignmentValidation::plotDMR | ( | const std::string & | plotVar = "medianX" , |
Int_t | minHits = 50 , |
||
const std::string & | options = "plain" |
||
) |
|
private |
void PlotAlignmentValidation::plotHitMaps | ( | ) |
void PlotAlignmentValidation::plotOutlierModules | ( | const char * | outputFileName = "OutlierModules.ps" , |
std::string | plotVariable = "chi2PerDofX" , |
||
float | chi2_cut = 10 , |
||
unsigned int | minHits = 50 |
||
) |
|
private |
void PlotAlignmentValidation::plotSubDetResiduals | ( | bool | plotNormHisto = false , |
unsigned int | subDetId = 7 |
||
) |
void PlotAlignmentValidation::plotSurfaceShapes | ( | const std::string & | options = "layers" , |
const std::string & | variable = "" |
||
) |
|
private |
|
private |
void PlotAlignmentValidation::residual_by_moduleID | ( | unsigned int | moduleid | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
void PlotAlignmentValidation::setOutputDir | ( | std::string | dir | ) |
|
private |
void PlotAlignmentValidation::setTreeBaseDir | ( | std::string | dir = "TrackerOfflineValidationStandalone" | ) |
|
private |
float PlotAlignmentValidation::twotailedStudentTTestEqualMean | ( | float | t, |
float | v | ||
) |
void PlotAlignmentValidation::useFitForDMRplots | ( | bool | usefit = false | ) |
|
private |
Definition at line 157 of file PlotAlignmentValidation.h.
|
private |
Definition at line 194 of file PlotAlignmentValidation.h.
|
private |
Definition at line 193 of file PlotAlignmentValidation.h.
|
private |
Definition at line 192 of file PlotAlignmentValidation.h.
|
private |
Definition at line 160 of file PlotAlignmentValidation.h.
|
private |
Definition at line 189 of file PlotAlignmentValidation.h.
|
private |
Definition at line 188 of file PlotAlignmentValidation.h.
Referenced by PhaseITreeProducer.ModuleLvlValuesReader::CreateTree2().
|
private |
Definition at line 161 of file PlotAlignmentValidation.h.
|
private |
Definition at line 150 of file PlotAlignmentValidation.h.
|
private |
Definition at line 152 of file PlotAlignmentValidation.h.
|
private |
Definition at line 154 of file PlotAlignmentValidation.h.
|
private |
Definition at line 151 of file PlotAlignmentValidation.h.
|
private |
Definition at line 153 of file PlotAlignmentValidation.h.
|
private |
Definition at line 155 of file PlotAlignmentValidation.h.
|
private |
Definition at line 190 of file PlotAlignmentValidation.h.
|
private |
Definition at line 191 of file PlotAlignmentValidation.h.
|
private |
Definition at line 159 of file PlotAlignmentValidation.h.
|
staticprivate |
Definition at line 158 of file PlotAlignmentValidation.h.
|
private |
Definition at line 147 of file PlotAlignmentValidation.h.
|
private |
Definition at line 156 of file PlotAlignmentValidation.h.
|
private |
Definition at line 149 of file PlotAlignmentValidation.h.
|
private |
Definition at line 163 of file PlotAlignmentValidation.h.
|
private |
Definition at line 163 of file PlotAlignmentValidation.h.
|
private |
Definition at line 163 of file PlotAlignmentValidation.h.
|
private |
Definition at line 163 of file PlotAlignmentValidation.h.
|
private |
Definition at line 163 of file PlotAlignmentValidation.h.
|
private |
Definition at line 163 of file PlotAlignmentValidation.h.
|
private |
Definition at line 163 of file PlotAlignmentValidation.h.
|
private |
Definition at line 163 of file PlotAlignmentValidation.h.