CMS 3D CMS Logo

HIPplots.h
Go to the documentation of this file.
1 #ifndef HIPPLOTS_H
2 #define HIPPLOTS_H
3 
4 #include <Riostream.h>
5 #include <vector>
6 #include <string>
7 //#include <stdio.h>
8 #include "TFile.h"
9 #include "TH2F.h"
10 #include "TChain.h"
11 #include "TString.h"
12 #include "TCanvas.h"
13 #include "TFileIter.h"
14 #include "TStyle.h"
15 #include "TMath.h"
16 #include "TCut.h"
17 #include "TGraph.h"
18 
19 class HIPplots{
20 public:
21  HIPplots(int IOV, char* path, char* outFile);
22  void extractAlignParams(int i, int minHits = 0, int subDet = 0, int doubleSided = 0);
23  void extractAlignShifts(int i, int minHits = 0, int subDet = 0);
24  void plotAlignParams(string ShiftsOrParams, char* plotName = "test.png");
25  void plotAlignParamsAtIter(int iter, string ShiftsOrParams, char* plotName = "test.png");
26  void plotHitMap(char *outpath, int subDet, int minHits=0);
27  void extractAlignableChiSquare(int minHits=0, int subDet =0, int doubleSided = 0);
28  void plotAlignableChiSquare(char *plotName ="testchi2.png", float minChi2n=-1.0);
29  void extractSurveyResiduals(int currentPar, int subDet =0);
30  void dumpAlignedModules(int nhits=0);
31 
32  int _IOV;
33  TString _path;
34  TString _outFile;
35  TString _inFile_params;
37  TString _inFile_truepos;
38  TString _inFile_alipos;
39  TString _inFile_mispos;
41  TString _inFile_surveys;
42  enum TKdetector_id{ unknown=0, TPBid=1, TPEid=2, TIBid=3, TIDid=4, TOBid=5, TECid=6, ALLid=99 };
43  TLegend * MakeLegend(double x1=0.1, double y1=0.1, double x2=0.1, double y2=0.1);
44  int GetNIterations(TDirectory *f, char *tag, int startingcounter=0);
45  int GetSubDet(unsigned int id);
46  int GetBarrelLayer(unsigned int id);
47  void SetMinMax(TH1* h);
48  int FindPeaks(TH1F *h1, float *peaklist, const int maxNpeaks, int startbin=-1, int endbin=-1);
49  void SetPeakThreshold(float newpeakthreshold);
50  void CheckFiles(int &ierr);
51  bool CheckFileExistence(TString filename);
52  bool CheckHistoRising(TH1D *h);
55 };
56 
57 #endif
HIPplots::TPBid
Definition: HIPplots.h:42
HIPplots::_inFile_uservars
TString _inFile_uservars
Definition: HIPplots.h:36
HIPplots::_inFile_truepos
TString _inFile_truepos
Definition: HIPplots.h:37
mps_fire.i
i
Definition: mps_fire.py:428
HIPplots::TPEid
Definition: HIPplots.h:42
HIPplots::GetSubDet
int GetSubDet(unsigned int id)
Definition: HIPplots.cc:1016
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
HIPplots::_outFile
TString _outFile
Definition: HIPplots.h:34
HIPplots::_inFile_mispos
TString _inFile_mispos
Definition: HIPplots.h:39
testProducerWithPsetDescEmpty_cfi.x2
x2
Definition: testProducerWithPsetDescEmpty_cfi.py:28
HIPplots::SetPeakThreshold
void SetPeakThreshold(float newpeakthreshold)
Definition: HIPplots.cc:1538
HIPplots::GetBarrelLayer
int GetBarrelLayer(unsigned int id)
Definition: HIPplots.cc:1033
HIPplots::plotAlignParams
void plotAlignParams(string ShiftsOrParams, char *plotName="test.png")
Definition: HIPplots.cc:394
HIPplots::unknown
Definition: HIPplots.h:42
HIPplots::plotAlignableChiSquare
void plotAlignableChiSquare(char *plotName="testchi2.png", float minChi2n=-1.0)
Definition: HIPplots.cc:844
HIPplots::_inFile_surveys
TString _inFile_surveys
Definition: HIPplots.h:41
HIPplots
Definition: HIPplots.h:19
HIPplots::TECid
Definition: HIPplots.h:42
testProducerWithPsetDescEmpty_cfi.x1
x1
Definition: testProducerWithPsetDescEmpty_cfi.py:33
testProducerWithPsetDescEmpty_cfi.y1
y1
Definition: testProducerWithPsetDescEmpty_cfi.py:29
HIPplots::CheckHistoRising
bool CheckHistoRising(TH1D *h)
Definition: HIPplots.cc:1576
HIPplots::_IOV
int _IOV
Definition: HIPplots.h:32
GlobalPosition_Frontier_DevDB_cff.tag
tag
Definition: GlobalPosition_Frontier_DevDB_cff.py:11
HIPplots::dumpAlignedModules
void dumpAlignedModules(int nhits=0)
Definition: HIPplots.cc:1490
HIPplots::extractAlignableChiSquare
void extractAlignableChiSquare(int minHits=0, int subDet=0, int doubleSided=0)
Definition: HIPplots.cc:636
HIPplots::CheckFileExistence
bool CheckFileExistence(TString filename)
Definition: HIPplots.cc:1542
HIPplots::_inFile_HIPalign
TString _inFile_HIPalign
Definition: HIPplots.h:40
L1TEGammaDiff_cfi.plotName
plotName
Definition: L1TEGammaDiff_cfi.py:21
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
h
HIPplots::CheckFiles
void CheckFiles(int &ierr)
Definition: HIPplots.cc:1551
nhits
Definition: HIMultiTrackSelector.h:42
L1TdeCSCTF_cfi.outFile
outFile
Definition: L1TdeCSCTF_cfi.py:5
HIPplots::_path
TString _path
Definition: HIPplots.h:33
testProducerWithPsetDescEmpty_cfi.y2
y2
Definition: testProducerWithPsetDescEmpty_cfi.py:30
HIPplots::HIPplots
HIPplots(int IOV, char *path, char *outFile)
Definition: HIPplots.cc:20
HIPplots::SetMinMax
void SetMinMax(TH1 *h)
Definition: HIPplots.cc:1042
HIPplots::FindPeaks
int FindPeaks(TH1F *h1, float *peaklist, const int maxNpeaks, int startbin=-1, int endbin=-1)
Definition: HIPplots.cc:1498
HIPplots::extractSurveyResiduals
void extractSurveyResiduals(int currentPar, int subDet=0)
Definition: HIPplots.cc:754
HIPplots::ALLid
Definition: HIPplots.h:42
HIPAlignmentAlgorithm_cfi.outpath
outpath
Definition: HIPAlignmentAlgorithm_cfi.py:75
HIPplots::GetNIterations
int GetNIterations(TDirectory *f, char *tag, int startingcounter=0)
Definition: HIPplots.cc:1001
HIPplots::_inFile_alipos
TString _inFile_alipos
Definition: HIPplots.h:38
HIPplots::plotbadchi2
bool plotbadchi2
Definition: HIPplots.h:54
HIPplots::peakthreshold
float peakthreshold
Definition: HIPplots.h:53
HIPplots::plotAlignParamsAtIter
void plotAlignParamsAtIter(int iter, string ShiftsOrParams, char *plotName="test.png")
Definition: HIPplots.cc:539
HIPplots::TOBid
Definition: HIPplots.h:42
HIPplots::TIBid
Definition: HIPplots.h:42
HIPplots::_inFile_params
TString _inFile_params
Definition: HIPplots.h:35
HIPplots::extractAlignShifts
void extractAlignShifts(int i, int minHits=0, int subDet=0)
Definition: HIPplots.cc:199
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
HIPplots::TKdetector_id
TKdetector_id
Definition: HIPplots.h:42
HIPplots::extractAlignParams
void extractAlignParams(int i, int minHits=0, int subDet=0, int doubleSided=0)
Definition: HIPplots.cc:81
HIPplots::MakeLegend
TLegend * MakeLegend(double x1=0.1, double y1=0.1, double x2=0.1, double y2=0.1)
Definition: HIPplots.cc:46
HIPplots::plotHitMap
void plotHitMap(char *outpath, int subDet, int minHits=0)
Definition: HIPplots.cc:1062
reco_skim_cfg_mod.minHits
minHits
Definition: reco_skim_cfg_mod.py:177
HIPplots::TIDid
Definition: HIPplots.h:42