#include <HIPplots.h>
Public Types | |
enum | TKdetector_id { unknown =0, TPBid =1, TPEid =2, TIBid =3, TIDid =4, TOBid =5, TECid =6, ALLid =99 } |
Public Member Functions | |
bool | CheckFileExistence (TString filename) |
void | CheckFiles (int &ierr) |
bool | CheckHistoRising (TH1D *h) |
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) |
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) |
HIPplots (int IOV, char *path, char *outFile) | |
TLegend * | MakeLegend (double x1=0.1, double y1=0.1, double x2=0.1, double y2=0.1) |
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) |
void | SetMinMax (TH1 *h) |
void | SetPeakThreshold (float newpeakthreshold) |
Public Attributes | |
TString | _inFile_alipos |
TString | _inFile_HIPalign |
TString | _inFile_mispos |
TString | _inFile_params |
TString | _inFile_surveys |
TString | _inFile_truepos |
TString | _inFile_uservars |
int | _IOV |
TString | _outFile |
TString | _path |
float | peakthreshold |
bool | plotbadchi2 |
Definition at line 19 of file HIPplots.h.
HIPplots::HIPplots | ( | int | IOV, |
char * | path, | ||
char * | outFile | ||
) |
Definition at line 20 of file HIPplots.cc.
References _inFile_alipos, _inFile_HIPalign, _inFile_mispos, _inFile_params, _inFile_surveys, _inFile_truepos, _inFile_uservars, _path, CheckFileExistence(), plotbadchi2, and SetPeakThreshold().
bool HIPplots::CheckFileExistence | ( | TString | filename | ) |
Definition at line 1542 of file HIPplots.cc.
References corrVsCorr::filename, groupFilesInBlocks::fin, RemoveAddSevLevel::flag, and recoMuon::in.
Referenced by CheckFiles(), extractAlignableChiSquare(), extractAlignParams(), extractAlignShifts(), extractSurveyResiduals(), and HIPplots().
void HIPplots::CheckFiles | ( | int & | ierr | ) |
Definition at line 1551 of file HIPplots.cc.
References _inFile_alipos, _inFile_HIPalign, _inFile_uservars, _outFile, CheckFileExistence(), and gather_cfg::cout.
bool HIPplots::CheckHistoRising | ( | TH1D * | h | ) |
Definition at line 1576 of file HIPplots.cc.
References mps_fire::i.
Referenced by plotAlignableChiSquare().
void HIPplots::dumpAlignedModules | ( | int | nhits = 0 | ) |
Definition at line 1490 of file HIPplots.cc.
void HIPplots::extractAlignableChiSquare | ( | int | minHits = 0 , |
int | subDet = 0 , |
||
int | doubleSided = 0 |
||
) |
Definition at line 636 of file HIPplots.cc.
References _inFile_uservars, _outFile, CheckFileExistence(), gather_cfg::cout, groupFilesInBlocks::fout, GetBarrelLayer(), GetSubDet(), mps_fire::i, createfilelist::int, dqmiolumiharvest::j, reco_skim_cfg_mod::minHits, and TtFullHadEvtBuilder_cfi::prob.
void HIPplots::extractAlignParams | ( | int | i, |
int | minHits = 0 , |
||
int | subDet = 0 , |
||
int | doubleSided = 0 |
||
) |
Definition at line 81 of file HIPplots.cc.
References _inFile_uservars, _outFile, a, CheckFileExistence(), COLOR_CODE, gather_cfg::cout, groupFilesInBlocks::fout, GetBarrelLayer(), GetSubDet(), mps_fire::i, dqmiolumiharvest::j, reco_skim_cfg_mod::minHits, and MillePedeFileConverter_cfg::out.
void HIPplots::extractAlignShifts | ( | int | i, |
int | minHits = 0 , |
||
int | subDet = 0 |
||
) |
Definition at line 199 of file HIPplots.cc.
References _inFile_alipos, _inFile_uservars, _outFile, a, CheckFileExistence(), COLOR_CODE, gather_cfg::cout, benchmark_cfg::fa, groupFilesInBlocks::fout, GetSubDet(), mps_fire::i, dqmiolumiharvest::j, and reco_skim_cfg_mod::minHits.
void HIPplots::extractSurveyResiduals | ( | int | currentPar, |
int | subDet = 0 |
||
) |
Definition at line 754 of file HIPplots.cc.
References _inFile_surveys, _outFile, CheckFileExistence(), gather_cfg::cout, groupFilesInBlocks::fout, GetSubDet(), mps_fire::i, createfilelist::int, and dqmiolumiharvest::j.
int HIPplots::FindPeaks | ( | TH1F * | h1, |
float * | peaklist, | ||
const int | maxNpeaks, | ||
int | startbin = -1 , |
||
int | endbin = -1 |
||
) |
Definition at line 1498 of file HIPplots.cc.
References newFWLiteAna::bin, and peakthreshold.
Referenced by plotHitMap().
int HIPplots::GetBarrelLayer | ( | unsigned int | id | ) |
Definition at line 1033 of file HIPplots.cc.
References createfilelist::int.
Referenced by extractAlignableChiSquare(), and extractAlignParams().
int HIPplots::GetNIterations | ( | TDirectory * | f, |
char * | tag, | ||
int | startingcounter = 0 |
||
) |
Definition at line 1001 of file HIPplots.cc.
References gather_cfg::cout, f, mps_fire::i, and GlobalPosition_Frontier_DevDB_cff::tag.
Referenced by plotAlignableChiSquare(), and plotAlignParams().
int HIPplots::GetSubDet | ( | unsigned int | id | ) |
Definition at line 1016 of file HIPplots.cc.
References triggerObjects_cff::id, and edm::shift.
Referenced by extractAlignableChiSquare(), extractAlignParams(), extractAlignShifts(), and extractSurveyResiduals().
TLegend * HIPplots::MakeLegend | ( | double | x1 = 0.1 , |
double | y1 = 0.1 , |
||
double | x2 = 0.1 , |
||
double | y2 = 0.1 |
||
) |
Definition at line 46 of file HIPplots.cc.
References COLOR_CODE, g, listHistos::legend, testProducerWithPsetDescEmpty_cfi::x1, testProducerWithPsetDescEmpty_cfi::x2, testProducerWithPsetDescEmpty_cfi::y1, and testProducerWithPsetDescEmpty_cfi::y2.
Referenced by plotAlignParams().
void HIPplots::plotAlignableChiSquare | ( | char * | plotName = "testchi2.png" , |
float | minChi2n = -1.0 |
||
) |
Definition at line 844 of file HIPplots.cc.
References _outFile, newFWLiteAna::bin, CheckHistoRising(), gather_cfg::cout, f, GetNIterations(), mps_fire::i, createfilelist::int, cmsLHEtoEOSManager::l, plotbadchi2, and L1TEGammaDiff_cfi::plotName.
void HIPplots::plotAlignParams | ( | string | ShiftsOrParams, |
char * | plotName = "test.png" |
||
) |
Definition at line 394 of file HIPplots.cc.
References _outFile, gather_cfg::cout, ztail::d, f, GetNIterations(), mps_fire::i, createfilelist::int, listHistos::legend, MakeLegend(), and L1TEGammaDiff_cfi::plotName.
void HIPplots::plotAlignParamsAtIter | ( | int | iter, |
string | ShiftsOrParams, | ||
char * | plotName = "test.png" |
||
) |
Definition at line 539 of file HIPplots.cc.
References _outFile, cuy::col, gather_cfg::cout, f, mps_fire::i, and L1TEGammaDiff_cfi::plotName.
void HIPplots::plotHitMap | ( | char * | outpath, |
int | subDet, | ||
int | minHits = 0 |
||
) |
-************
-************
Definition at line 1062 of file HIPplots.cc.
References _inFile_HIPalign, newFWLiteAna::bin, gather_cfg::cout, PVValHelper::eta, FindPeaks(), dqmMemoryStats::float, mps_fire::i, dqmiolumiharvest::j, histoParameters_cff::maxLayers, reco_skim_cfg_mod::minHits, Phase2TrackerMonitorDigi_cff::Nxbins, Phase2TrackerMonitorDigi_cff::Nybins, MillePedeFileConverter_cfg::out, HIPAlignmentAlgorithm_cfi::outpath, phi, dataAnalyzerFineBiningParameters_cff::Phimax, dataAnalyzerFineBiningParameters_cff::Phimin, SetPeakThreshold(), TECid, TIBid, TIDid, TOBid, TPBid, TPEid, Gflash::Zmax, and Gflash::Zmin.
void HIPplots::SetMinMax | ( | TH1 * | h | ) |
Definition at line 1042 of file HIPplots.cc.
References mps_fire::i, TrackerOfflineValidation_Dqm_cff::xmax, and TrackerOfflineValidation_Dqm_cff::xmin.
void HIPplots::SetPeakThreshold | ( | float | newpeakthreshold | ) |
Definition at line 1538 of file HIPplots.cc.
References peakthreshold.
Referenced by HIPplots(), and plotHitMap().
TString HIPplots::_inFile_alipos |
Definition at line 38 of file HIPplots.h.
Referenced by CheckFiles(), extractAlignShifts(), and HIPplots().
TString HIPplots::_inFile_HIPalign |
Definition at line 40 of file HIPplots.h.
Referenced by CheckFiles(), HIPplots(), and plotHitMap().
TString HIPplots::_inFile_mispos |
Definition at line 39 of file HIPplots.h.
Referenced by HIPplots().
TString HIPplots::_inFile_params |
Definition at line 35 of file HIPplots.h.
Referenced by HIPplots().
TString HIPplots::_inFile_surveys |
Definition at line 41 of file HIPplots.h.
Referenced by extractSurveyResiduals(), and HIPplots().
TString HIPplots::_inFile_truepos |
Definition at line 37 of file HIPplots.h.
Referenced by HIPplots().
TString HIPplots::_inFile_uservars |
Definition at line 36 of file HIPplots.h.
Referenced by CheckFiles(), extractAlignableChiSquare(), extractAlignParams(), extractAlignShifts(), and HIPplots().
int HIPplots::_IOV |
Definition at line 32 of file HIPplots.h.
TString HIPplots::_outFile |
Definition at line 34 of file HIPplots.h.
Referenced by CheckFiles(), extractAlignableChiSquare(), extractAlignParams(), extractAlignShifts(), extractSurveyResiduals(), plotAlignableChiSquare(), plotAlignParams(), and plotAlignParamsAtIter().
TString HIPplots::_path |
Definition at line 33 of file HIPplots.h.
Referenced by ConfigToolBase.ConfigToolBase::dumpPython(), and HIPplots().
float HIPplots::peakthreshold |
Definition at line 53 of file HIPplots.h.
Referenced by FindPeaks(), and SetPeakThreshold().
bool HIPplots::plotbadchi2 |
Definition at line 54 of file HIPplots.h.
Referenced by HIPplots(), and plotAlignableChiSquare().