test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Private Member Functions | Private Attributes
PlotAlignmentValidation Class Reference

#include <PlotAlignmentValidation.h>

Classes

struct  DMRPlotInfo
 

Public Member Functions

THStack * addHists (const char *selection, const TString &residType="xPrime", TLegend **myLegend=0, bool printModuleIds=false)
 
void loadFileList (const char *inputFile, std::string fileName="", int lineColor=2, int lineStyle=1)
 
 PlotAlignmentValidation (const char *inputFile, std::string fileName="", int lineColor=1, int lineStyle=1)
 
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 ()
 

Private Member Functions

TObject * findObjectFromCanvas (TCanvas *canv, const char *className, Int_t n=1)
 
std::pair< float, float > 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 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)
 

Private Attributes

int fileCounter
 
std::string fileNames [10]
 
bool moreThanOneSource
 
std::string outputDir
 
TString outputFile
 
TList * sourcelist
 
std::vector< TkOfflineVariables * > sourceList
 
std::string treeBaseDir
 
bool useFit_
 

Detailed Description

Definition at line 72 of file PlotAlignmentValidation.h.

Constructor & Destructor Documentation

PlotAlignmentValidation::PlotAlignmentValidation ( const char *  inputFile,
std::string  fileName = "",
int  lineColor = 1,
int  lineStyle = 1 
)
PlotAlignmentValidation::~PlotAlignmentValidation ( )

Member Function Documentation

THStack* PlotAlignmentValidation::addHists ( const char *  selection,
const TString &  residType = "xPrime",
TLegend **  myLegend = 0,
bool  printModuleIds = false 
)
TObject* PlotAlignmentValidation::findObjectFromCanvas ( TCanvas *  canv,
const char *  className,
Int_t  n = 1 
)
private
std::pair<float,float> 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::loadFileList ( const char *  inputFile,
std::string  fileName = "",
int  lineColor = 2,
int  lineStyle = 1 
)
void PlotAlignmentValidation::modifySSHistAndLegend ( THStack *  hs,
TLegend *  legend 
)
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 
)
private
void PlotAlignmentValidation::setTreeBaseDir ( std::string  dir = "TrackerOfflineValidationStandalone")
void PlotAlignmentValidation::useFitForDMRplots ( bool  usefit = false)

Member Data Documentation

int PlotAlignmentValidation::fileCounter
private

Definition at line 117 of file PlotAlignmentValidation.h.

std::string PlotAlignmentValidation::fileNames[10]
private

Definition at line 116 of file PlotAlignmentValidation.h.

bool PlotAlignmentValidation::moreThanOneSource
private

Definition at line 115 of file PlotAlignmentValidation.h.

std::string PlotAlignmentValidation::outputDir
private

Definition at line 112 of file PlotAlignmentValidation.h.

TString PlotAlignmentValidation::outputFile
private

Definition at line 111 of file PlotAlignmentValidation.h.

TList* PlotAlignmentValidation::sourcelist
private

Definition at line 113 of file PlotAlignmentValidation.h.

std::vector<TkOfflineVariables*> PlotAlignmentValidation::sourceList
private

Definition at line 114 of file PlotAlignmentValidation.h.

std::string PlotAlignmentValidation::treeBaseDir
private

Definition at line 93 of file PlotAlignmentValidation.h.

bool PlotAlignmentValidation::useFit_
private

Definition at line 95 of file PlotAlignmentValidation.h.