CMS 3D CMS Logo

Classes | Public Member Functions | Private Member Functions | Private Attributes

PlotAlignmentValidation Class Reference

#include <PlotAlignmentValidation.h>

List of all members.

Classes

struct  DMRPlotInfo

Public Member Functions

THStack * addHists (const char *selection, const TString &residType="xPrime", 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 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

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 plotDMRHistogram (DMRPlotInfo &plotinfo, int direction=0, int layer=0)
void plotSS (const std::string &options="layers", const std::string &variable="")
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",
bool  printModuleIds = false 
)
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::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::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

Definition at line 114 of file PlotAlignmentValidation.h.

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

Definition at line 113 of file PlotAlignmentValidation.h.

Definition at line 112 of file PlotAlignmentValidation.h.

std::string PlotAlignmentValidation::outputDir [private]

Definition at line 109 of file PlotAlignmentValidation.h.

Definition at line 108 of file PlotAlignmentValidation.h.

Definition at line 110 of file PlotAlignmentValidation.h.

Definition at line 111 of file PlotAlignmentValidation.h.

std::string PlotAlignmentValidation::treeBaseDir [private]

Definition at line 92 of file PlotAlignmentValidation.h.

Definition at line 94 of file PlotAlignmentValidation.h.