CMS 3D CMS Logo

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

#include <HIPplots.h>

Public Member Functions

void dumpAlignedModules (int nhits=0)
 
void extractAlignableChiSquare (int minHits=0, int subDet=0, int doubleSided=0)
 
void extractAlignParams (int i, int minHits=0, int subDet=0, int doubleSided=0)
 
void extractAlignShifts (int i, int minHits=0, int subDet=0)
 
void extractSurveyResiduals (int currentPar, int subDet=0)
 
 HIPplots (int IOV, char *path, char *outFile)
 
void plotAlignableChiSquare (char *plotName="testchi2.png", float minChi2n=-1.0)
 
void plotAlignParams (string ShiftsOrParams, char *plotName="test.png")
 
void plotAlignParamsAtIter (int iter, string ShiftsOrParams, char *plotName="test.png")
 
void plotHitMap (char *outpath, int subDet, int minHits=0)
 

Private Types

enum  TKdetector_id {
  unknown =0, TPBid =1, TPEid =2, TIBid =3,
  TIDid =4, TOBid =5, TECid =6, ALLid =99
}
 

Private Member Functions

bool CheckFileExistence (char *filename)
 
void CheckFiles (int &ierr)
 
bool CheckHistoRising (TH1D *h)
 
int FindPeaks (TH1F *h1, float *peaklist, const int maxNpeaks, int startbin=-1, int endbin=-1)
 
int GetBarrelLayer (unsigned int id)
 
int GetNIterations (TDirectory *f, char *tag, int startingcounter=0)
 
int GetSubDet (unsigned int id)
 
TLegend * MakeLegend (double x1=0.1, double y1=0.1, double x2=0.1, double y2=0.1)
 
void SetMinMax (TH1 *h)
 
void SetPeakThreshold (float newpeakthreshold)
 

Private Attributes

char _inFile_alipos [256]
 
char _inFile_HIPalign [256]
 
char _inFile_mispos [256]
 
char _inFile_params [256]
 
char _inFile_surveys [256]
 
char _inFile_truepos [256]
 
char _inFile_uservars [256]
 
char _outFile [256]
 
char _path [256]
 
float peakthreshold
 
bool plotbadchi2
 

Detailed Description

Definition at line 15 of file HIPplots.h.

Member Enumeration Documentation

Enumerator
unknown 
TPBid 
TPEid 
TIBid 
TIDid 
TOBid 
TECid 
ALLid 

Definition at line 38 of file HIPplots.h.

Constructor & Destructor Documentation

HIPplots::HIPplots ( int  IOV,
char *  path,
char *  outFile 
)

Definition at line 20 of file HIPplots.cc.

Member Function Documentation

bool HIPplots::CheckFileExistence ( char *  filename)
private

Definition at line 1530 of file HIPplots.cc.

void HIPplots::CheckFiles ( int &  ierr)
private

Definition at line 1539 of file HIPplots.cc.

bool HIPplots::CheckHistoRising ( TH1D *  h)
private

Definition at line 1564 of file HIPplots.cc.

void HIPplots::dumpAlignedModules ( int  nhits = 0)

Definition at line 1478 of file HIPplots.cc.

void HIPplots::extractAlignableChiSquare ( int  minHits = 0,
int  subDet = 0,
int  doubleSided = 0 
)

Definition at line 625 of file HIPplots.cc.

void HIPplots::extractAlignParams ( int  i,
int  minHits = 0,
int  subDet = 0,
int  doubleSided = 0 
)

Definition at line 72 of file HIPplots.cc.

void HIPplots::extractAlignShifts ( int  i,
int  minHits = 0,
int  subDet = 0 
)

Definition at line 190 of file HIPplots.cc.

void HIPplots::extractSurveyResiduals ( int  currentPar,
int  subDet = 0 
)

Definition at line 743 of file HIPplots.cc.

int HIPplots::FindPeaks ( TH1F *  h1,
float *  peaklist,
const int  maxNpeaks,
int  startbin = -1,
int  endbin = -1 
)
private

Definition at line 1486 of file HIPplots.cc.

int HIPplots::GetBarrelLayer ( unsigned int  id)
private

Definition at line 1021 of file HIPplots.cc.

int HIPplots::GetNIterations ( TDirectory *  f,
char *  tag,
int  startingcounter = 0 
)
private

Definition at line 990 of file HIPplots.cc.

int HIPplots::GetSubDet ( unsigned int  id)
private

Definition at line 1005 of file HIPplots.cc.

TLegend * HIPplots::MakeLegend ( double  x1 = 0.1,
double  y1 = 0.1,
double  x2 = 0.1,
double  y2 = 0.1 
)
private

Definition at line 38 of file HIPplots.cc.

void HIPplots::plotAlignableChiSquare ( char *  plotName = "testchi2.png",
float  minChi2n = -1.0 
)

Definition at line 833 of file HIPplots.cc.

void HIPplots::plotAlignParams ( string  ShiftsOrParams,
char *  plotName = "test.png" 
)

Definition at line 385 of file HIPplots.cc.

void HIPplots::plotAlignParamsAtIter ( int  iter,
string  ShiftsOrParams,
char *  plotName = "test.png" 
)

Definition at line 528 of file HIPplots.cc.

void HIPplots::plotHitMap ( char *  outpath,
int  subDet,
int  minHits = 0 
)

-************

-************

Definition at line 1050 of file HIPplots.cc.

void HIPplots::SetMinMax ( TH1 *  h)
private

Definition at line 1030 of file HIPplots.cc.

void HIPplots::SetPeakThreshold ( float  newpeakthreshold)
private

Definition at line 1526 of file HIPplots.cc.

Member Data Documentation

char HIPplots::_inFile_alipos[256]
private

Definition at line 34 of file HIPplots.h.

char HIPplots::_inFile_HIPalign[256]
private

Definition at line 36 of file HIPplots.h.

char HIPplots::_inFile_mispos[256]
private

Definition at line 35 of file HIPplots.h.

char HIPplots::_inFile_params[256]
private

Definition at line 31 of file HIPplots.h.

char HIPplots::_inFile_surveys[256]
private

Definition at line 37 of file HIPplots.h.

char HIPplots::_inFile_truepos[256]
private

Definition at line 33 of file HIPplots.h.

char HIPplots::_inFile_uservars[256]
private

Definition at line 32 of file HIPplots.h.

char HIPplots::_outFile[256]
private

Definition at line 30 of file HIPplots.h.

char HIPplots::_path[256]
private

Definition at line 29 of file HIPplots.h.

float HIPplots::peakthreshold
private

Definition at line 49 of file HIPplots.h.

bool HIPplots::plotbadchi2
private

Definition at line 50 of file HIPplots.h.