#include <CSCValHists.h>
Classes | |
struct | posRecord |
Public Member Functions | |
int | crate_lookup (CSCDetId id) |
CSCValHists () | |
void | fill1DHist (float x, std::string name, std::string title, int bins, float xmin, float xmax, std::string folder) |
void | fill1DHistByChamber (float x, std::string name, std::string title, CSCDetId id, int bins, float xmin, float xmax, std::string folder) |
void | fill1DHistByCrate (float x, std::string name, std::string title, CSCDetId id, int bins, float xmin, float xmax, std::string folder) |
void | fill1DHistByLayer (float x, std::string name, std::string title, CSCDetId id, int bins, float xmin, float xmax, std::string folder) |
void | fill1DHistByStation (float x, std::string name, std::string title, CSCDetId id, int bins, float xmin, float xmax, std::string folder) |
void | fill1DHistByType (float x, std::string name, std::string title, CSCDetId id, int bins, float xmin, float xmax, std::string folder) |
void | fill2DHist (float x, float y, std::string name, std::string title, int binsx, float xmin, float xmax, int binsy, float ymin, float ymax, std::string folder) |
void | fill2DHist (float z, std::string name, std::string title, CSCDetId id, std::string folder) |
void | fill2DHistByChamber (float x, float y, std::string name, std::string title, CSCDetId id, int binsx, float xmin, float xmax, int binsy, float ymin, float ymax, std::string folder) |
void | fill2DHistByCrate (float x, float y, std::string name, std::string title, CSCDetId id, int binsx, float xmin, float xmax, int binsy, float ymin, float ymax, std::string folder) |
void | fill2DHistByEvent (int run, int event, float x, std::string name, std::string title, CSCDetId id, std::string folder) |
void | fill2DHistByLayer (float x, float y, std::string name, std::string title, CSCDetId id, int binsx, float xmin, float xmax, int binsy, float ymin, float ymax, std::string folder) |
void | fill2DHistByStation (float x, float y, std::string name, std::string title, CSCDetId id, int binsx, float xmin, float xmax, int binsy, float ymin, float ymax, std::string folder) |
void | fill2DHistByType (float x, float y, std::string name, std::string title, CSCDetId id, int binsx, float xmin, float xmax, int binsy, float ymin, float ymax, std::string folder) |
void | fill2DProfile (float x, float y, float z, std::string name, std::string title, int binsx, float xmin, float xmax, int binsy, float ymin, float ymax, float zmin, float zmax, std::string folder) |
void | fillCalibHist (float x, std::string name, std::string title, int bins, float xmin, float xmax, int bin, std::string folder) |
void | fillProfile (float x, float y, std::string name, std::string title, int binsx, float xmin, float xmax, float ymin, float ymax, std::string folder) |
void | fillProfileByChamber (float x, float y, std::string name, std::string title, CSCDetId id, int binsx, float xmin, float xmax, float ymin, float ymax, std::string folder) |
void | fillProfileByType (float x, float y, std::string name, std::string title, CSCDetId id, int binsx, float xmin, float xmax, float ymin, float ymax, std::string folder) |
void | fillRechitTree (float x, float y, float gx, float gy, int en, int st, int ri, int ch, int la) |
void | fillSegmentTree (float x, float y, float gx, float gy, int en, int st, int ri, int ch) |
void | insertPlot (TH1 *thePlot, std::string name, std::string folder) |
void | setupTrees () |
void | writeHists (TFile *theFile) |
void | writeTrees (TFile *theFile) |
~CSCValHists () | |
Private Attributes | |
struct CSCValHists::posRecord | rHpos |
TTree * | rHTree |
struct CSCValHists::posRecord | segpos |
TTree * | segTree |
std::map< std::string, std::pair< TH1 *, std::string > > | theMap |
Manages Histograms for CSCValidation
Andy Kubik - Northwestern University
Definition at line 36 of file CSCValHists.h.
CSCValHists::CSCValHists | ( | ) |
CSCValHists::~CSCValHists | ( | ) |
Definition at line 14 of file CSCValHists.cc.
int CSCValHists::crate_lookup | ( | CSCDetId | id | ) |
Definition at line 530 of file CSCValHists.cc.
References Reference_intrackfit_cff::endcap, and relativeConstraints::station.
void CSCValHists::fill1DHist | ( | float | x, |
std::string | name, | ||
std::string | title, | ||
int | bins, | ||
float | xmin, | ||
float | xmax, | ||
std::string | folder | ||
) |
Definition at line 121 of file CSCValHists.cc.
References mergeVDriftHistosByStation::name, SiStripMonitorClusterAlca_cfi::xmax, and SiStripMonitorClusterAlca_cfi::xmin.
void CSCValHists::fill1DHistByChamber | ( | float | x, |
std::string | name, | ||
std::string | title, | ||
CSCDetId | id, | ||
int | bins, | ||
float | xmin, | ||
float | xmax, | ||
std::string | folder | ||
) |
Definition at line 293 of file CSCValHists.cc.
References Reference_intrackfit_cff::endcap, mergeVDriftHistosByStation::name, AlCaHLTBitMon_QueryRunRegistry::string, SiStripMonitorClusterAlca_cfi::xmax, and SiStripMonitorClusterAlca_cfi::xmin.
void CSCValHists::fill1DHistByCrate | ( | float | x, |
std::string | name, | ||
std::string | title, | ||
CSCDetId | id, | ||
int | bins, | ||
float | xmin, | ||
float | xmax, | ||
std::string | folder | ||
) |
Definition at line 199 of file CSCValHists.cc.
References mergeVDriftHistosByStation::name, SiStripMonitorClusterAlca_cfi::xmax, and SiStripMonitorClusterAlca_cfi::xmin.
void CSCValHists::fill1DHistByLayer | ( | float | x, |
std::string | name, | ||
std::string | title, | ||
CSCDetId | id, | ||
int | bins, | ||
float | xmin, | ||
float | xmax, | ||
std::string | folder | ||
) |
Definition at line 397 of file CSCValHists.cc.
References Reference_intrackfit_cff::endcap, mergeVDriftHistosByStation::name, AlCaHLTBitMon_QueryRunRegistry::string, SiStripMonitorClusterAlca_cfi::xmax, and SiStripMonitorClusterAlca_cfi::xmin.
void CSCValHists::fill1DHistByStation | ( | float | x, |
std::string | name, | ||
std::string | title, | ||
CSCDetId | id, | ||
int | bins, | ||
float | xmin, | ||
float | xmax, | ||
std::string | folder | ||
) |
Definition at line 244 of file CSCValHists.cc.
References Reference_intrackfit_cff::endcap, mergeVDriftHistosByStation::name, SiStripMonitorClusterAlca_cfi::xmax, and SiStripMonitorClusterAlca_cfi::xmin.
void CSCValHists::fill1DHistByType | ( | float | x, |
std::string | name, | ||
std::string | title, | ||
CSCDetId | id, | ||
int | bins, | ||
float | xmin, | ||
float | xmax, | ||
std::string | folder | ||
) |
Definition at line 151 of file CSCValHists.cc.
References Reference_intrackfit_cff::endcap, mergeVDriftHistosByStation::name, AlCaHLTBitMon_QueryRunRegistry::string, SiStripMonitorClusterAlca_cfi::xmax, and SiStripMonitorClusterAlca_cfi::xmin.
void CSCValHists::fill2DHist | ( | float | x, |
float | y, | ||
std::string | name, | ||
std::string | title, | ||
int | binsx, | ||
float | xmin, | ||
float | xmax, | ||
int | binsy, | ||
float | ymin, | ||
float | ymax, | ||
std::string | folder | ||
) |
Definition at line 136 of file CSCValHists.cc.
References mergeVDriftHistosByStation::name, SiStripMonitorClusterAlca_cfi::xmax, SiStripMonitorClusterAlca_cfi::xmin, SiStripMonitorClusterAlca_cfi::ymax, and SiStripMonitorClusterAlca_cfi::ymin.
void CSCValHists::fill2DHist | ( | float | z, |
std::string | name, | ||
std::string | title, | ||
CSCDetId | id, | ||
std::string | folder | ||
) |
void CSCValHists::fill2DHistByChamber | ( | float | x, |
float | y, | ||
std::string | name, | ||
std::string | title, | ||
CSCDetId | id, | ||
int | binsx, | ||
float | xmin, | ||
float | xmax, | ||
int | binsy, | ||
float | ymin, | ||
float | ymax, | ||
std::string | folder | ||
) |
Definition at line 317 of file CSCValHists.cc.
References Reference_intrackfit_cff::endcap, mergeVDriftHistosByStation::name, AlCaHLTBitMon_QueryRunRegistry::string, SiStripMonitorClusterAlca_cfi::xmax, SiStripMonitorClusterAlca_cfi::xmin, SiStripMonitorClusterAlca_cfi::ymax, and SiStripMonitorClusterAlca_cfi::ymin.
void CSCValHists::fill2DHistByCrate | ( | float | x, |
float | y, | ||
std::string | name, | ||
std::string | title, | ||
CSCDetId | id, | ||
int | binsx, | ||
float | xmin, | ||
float | xmax, | ||
int | binsy, | ||
float | ymin, | ||
float | ymax, | ||
std::string | folder | ||
) |
Definition at line 220 of file CSCValHists.cc.
References mergeVDriftHistosByStation::name, SiStripMonitorClusterAlca_cfi::xmax, SiStripMonitorClusterAlca_cfi::xmin, SiStripMonitorClusterAlca_cfi::ymax, and SiStripMonitorClusterAlca_cfi::ymin.
void CSCValHists::fill2DHistByEvent | ( | int | run, |
int | event, | ||
float | x, | ||
std::string | name, | ||
std::string | title, | ||
CSCDetId | id, | ||
std::string | folder | ||
) |
Definition at line 341 of file CSCValHists.cc.
References Reference_intrackfit_cff::endcap, event(), HcalObjRepresent::Fill(), mergeVDriftHistosByStation::name, relativeConstraints::station, and x().
void CSCValHists::fill2DHistByLayer | ( | float | x, |
float | y, | ||
std::string | name, | ||
std::string | title, | ||
CSCDetId | id, | ||
int | binsx, | ||
float | xmin, | ||
float | xmax, | ||
int | binsy, | ||
float | ymin, | ||
float | ymax, | ||
std::string | folder | ||
) |
Definition at line 421 of file CSCValHists.cc.
References Reference_intrackfit_cff::endcap, mergeVDriftHistosByStation::name, AlCaHLTBitMon_QueryRunRegistry::string, SiStripMonitorClusterAlca_cfi::xmax, SiStripMonitorClusterAlca_cfi::xmin, SiStripMonitorClusterAlca_cfi::ymax, and SiStripMonitorClusterAlca_cfi::ymin.
void CSCValHists::fill2DHistByStation | ( | float | x, |
float | y, | ||
std::string | name, | ||
std::string | title, | ||
CSCDetId | id, | ||
int | binsx, | ||
float | xmin, | ||
float | xmax, | ||
int | binsy, | ||
float | ymin, | ||
float | ymax, | ||
std::string | folder | ||
) |
Definition at line 268 of file CSCValHists.cc.
References Reference_intrackfit_cff::endcap, mergeVDriftHistosByStation::name, AlCaHLTBitMon_QueryRunRegistry::string, SiStripMonitorClusterAlca_cfi::xmax, SiStripMonitorClusterAlca_cfi::xmin, SiStripMonitorClusterAlca_cfi::ymax, and SiStripMonitorClusterAlca_cfi::ymin.
void CSCValHists::fill2DHistByType | ( | float | x, |
float | y, | ||
std::string | name, | ||
std::string | title, | ||
CSCDetId | id, | ||
int | binsx, | ||
float | xmin, | ||
float | xmax, | ||
int | binsy, | ||
float | ymin, | ||
float | ymax, | ||
std::string | folder | ||
) |
Definition at line 174 of file CSCValHists.cc.
References Reference_intrackfit_cff::endcap, mergeVDriftHistosByStation::name, AlCaHLTBitMon_QueryRunRegistry::string, SiStripMonitorClusterAlca_cfi::xmax, SiStripMonitorClusterAlca_cfi::xmin, SiStripMonitorClusterAlca_cfi::ymax, and SiStripMonitorClusterAlca_cfi::ymin.
void CSCValHists::fill2DProfile | ( | float | x, |
float | y, | ||
float | z, | ||
std::string | name, | ||
std::string | title, | ||
int | binsx, | ||
float | xmin, | ||
float | xmax, | ||
int | binsy, | ||
float | ymin, | ||
float | ymax, | ||
float | zmin, | ||
float | zmax, | ||
std::string | folder | ||
) |
Definition at line 513 of file CSCValHists.cc.
References plotBeamSpotDB::first, mergeVDriftHistosByStation::name, SiStripMonitorClusterAlca_cfi::xmax, SiStripMonitorClusterAlca_cfi::xmin, SiStripMonitorClusterAlca_cfi::ymax, SiStripMonitorClusterAlca_cfi::ymin, SiStripMonitorClusterAlca_cfi::zmax, and SiStripMonitorClusterAlca_cfi::zmin.
void CSCValHists::fillCalibHist | ( | float | x, |
std::string | name, | ||
std::string | title, | ||
int | bins, | ||
float | xmin, | ||
float | xmax, | ||
int | bin, | ||
std::string | folder | ||
) |
Definition at line 107 of file CSCValHists.cc.
References mergeVDriftHistosByStation::name, SiStripMonitorClusterAlca_cfi::xmax, and SiStripMonitorClusterAlca_cfi::xmin.
void CSCValHists::fillProfile | ( | float | x, |
float | y, | ||
std::string | name, | ||
std::string | title, | ||
int | binsx, | ||
float | xmin, | ||
float | xmax, | ||
float | ymin, | ||
float | ymax, | ||
std::string | folder | ||
) |
Definition at line 446 of file CSCValHists.cc.
References mergeVDriftHistosByStation::name, SiStripMonitorClusterAlca_cfi::xmax, SiStripMonitorClusterAlca_cfi::xmin, SiStripMonitorClusterAlca_cfi::ymax, and SiStripMonitorClusterAlca_cfi::ymin.
void CSCValHists::fillProfileByChamber | ( | float | x, |
float | y, | ||
std::string | name, | ||
std::string | title, | ||
CSCDetId | id, | ||
int | binsx, | ||
float | xmin, | ||
float | xmax, | ||
float | ymin, | ||
float | ymax, | ||
std::string | folder | ||
) |
Definition at line 487 of file CSCValHists.cc.
References Reference_intrackfit_cff::endcap, mergeVDriftHistosByStation::name, AlCaHLTBitMon_QueryRunRegistry::string, SiStripMonitorClusterAlca_cfi::xmax, SiStripMonitorClusterAlca_cfi::xmin, SiStripMonitorClusterAlca_cfi::ymax, and SiStripMonitorClusterAlca_cfi::ymin.
void CSCValHists::fillProfileByType | ( | float | x, |
float | y, | ||
std::string | name, | ||
std::string | title, | ||
CSCDetId | id, | ||
int | binsx, | ||
float | xmin, | ||
float | xmax, | ||
float | ymin, | ||
float | ymax, | ||
std::string | folder | ||
) |
Definition at line 461 of file CSCValHists.cc.
References Reference_intrackfit_cff::endcap, mergeVDriftHistosByStation::name, AlCaHLTBitMon_QueryRunRegistry::string, SiStripMonitorClusterAlca_cfi::xmax, SiStripMonitorClusterAlca_cfi::xmin, SiStripMonitorClusterAlca_cfi::ymax, and SiStripMonitorClusterAlca_cfi::ymin.
void CSCValHists::fillRechitTree | ( | float | x, |
float | y, | ||
float | gx, | ||
float | gy, | ||
int | en, | ||
int | st, | ||
int | ri, | ||
int | ch, | ||
int | la | ||
) |
Definition at line 68 of file CSCValHists.cc.
void CSCValHists::fillSegmentTree | ( | float | x, |
float | y, | ||
float | gx, | ||
float | gy, | ||
int | en, | ||
int | st, | ||
int | ri, | ||
int | ch | ||
) |
Definition at line 84 of file CSCValHists.cc.
void CSCValHists::insertPlot | ( | TH1 * | thePlot, |
std::string | name, | ||
std::string | folder | ||
) |
Definition at line 100 of file CSCValHists.cc.
References mergeVDriftHistosByStation::name.
void CSCValHists::setupTrees | ( | ) |
Definition at line 55 of file CSCValHists.cc.
void CSCValHists::writeHists | ( | TFile * | theFile | ) |
Definition at line 19 of file CSCValHists.cc.
References spr::find(), and AlCaHLTBitMon_QueryRunRegistry::string.
void CSCValHists::writeTrees | ( | TFile * | theFile | ) |
Definition at line 41 of file CSCValHists.cc.
|
private |
|
private |
Definition at line 191 of file CSCValHists.h.
|
private |
|
private |
Definition at line 192 of file CSCValHists.h.
|
private |
Definition at line 175 of file CSCValHists.h.