#include <CSCAFEBThrAnalysis.h>
Public Member Functions | |
void | analyze (const CSCWireDigiCollection &wirecltn) |
CSCAFEBThrAnalysis () | |
void | done () |
void | setup (const std::string &histoFileName) |
Private Member Functions | |
void | bookForId (int flag, const int &idint, const std::string &ids) |
void | hf1ForId (std::map< int, TH1 * > &mp, int flag, const int &id, float &x, float w) |
void | hf2ForId (std::map< int, TH2 * > &mp, int flag, const int &id, float &x, float &y, float w) |
Private Attributes | |
int | BegDac |
const CSCToAFEB | csctoafeb |
Layer, wire to AFEB, channel conversion. More... | |
int | EndDac |
int | EvDac |
TFile * | hist_file |
ROOT hist file. More... | |
int unsigned | indDac |
std::map< int, std::vector< std::vector< float > > > | m_res_for_db |
std::map< int, std::vector< std::vector< int > > > | m_wire_dac |
std::map< int, std::vector< int > > | m_wire_ev |
Maps - per event, threshold curve, fit results. More... | |
std::map< int, TH2 * > | mh_AfebChi2perNDF |
std::map< int, TH2 * > | mh_AfebDac |
std::map< int, TH2 * > | mh_AfebNDF |
std::map< int, TH2 * > | mh_AfebNoisePar |
std::map< int, TH2 * > | mh_AfebThrPar |
std::map< int, TH1 * > | mh_ChanEff |
Histogram maps. More... | |
std::map< int, TH2 * > | mh_FirstTime |
int | nmbev |
Statistics. More... | |
int | nmbev_no_wire |
int | npulses |
DAC info. More... | |
int | StepDac |
std::vector< float > | vecDac |
std::vector< int > | vecDacOccup |
Definition at line 18 of file CSCAFEBThrAnalysis.h.
CSCAFEBThrAnalysis::CSCAFEBThrAnalysis | ( | ) |
Definition at line 10 of file CSCAFEBThrAnalysis.cc.
References BegDac, EndDac, EvDac, hist_file, indDac, m_res_for_db, m_wire_dac, mh_AfebDac, mh_ChanEff, mh_FirstTime, nmbev, nmbev_no_wire, npulses, StepDac, vecDac, and vecDacOccup.
void CSCAFEBThrAnalysis::analyze | ( | const CSCWireDigiCollection & | wirecltn | ) |
Store DAC
Plot time bin of the first hit vs AFEB channels
Store time bin of the first hit into map
Accumulate hits into map of wires vs DAC
Definition at line 127 of file CSCAFEBThrAnalysis.cc.
References BegDac, csctoafeb, CSCDetId::endcap(), EndDac, CSCToAFEB::getAfebCh(), CSCToAFEB::getAfebPos(), CSCToAFEB::getMaxWire(), hf2ForId(), mps_fire::i, indDac, dqmiolumiharvest::j, phase1PixelTopology::layer, m_wire_dac, m_wire_ev, mh_FirstTime, nmbev, nmbev_no_wire, FastTimerService_cff::range, relativeConstraints::ring, contentValuesCheck::ss, relativeConstraints::station, StepDac, vecDac, vecDacOccup, x, and y.
Referenced by CSCAFEBAnalyzer::analyze().
|
private |
Definition at line 38 of file CSCAFEBThrAnalysis.cc.
References RemoveAddSevLevel::flag, hist_file, mh_AfebChi2perNDF, mh_AfebDac, mh_AfebNDF, mh_AfebNoisePar, mh_AfebThrPar, mh_ChanEff, mh_FirstTime, and contentValuesCheck::ss.
Referenced by hf1ForId(), and hf2ForId().
void CSCAFEBThrAnalysis::done | ( | ) |
Plot "efficiency" vs AFEB channels
Fitting threshold curve
Histogram fit results for given CSC vs wire defined as x=(afeb-1)*16+ch
Threshold
Noise
NDF
Chi2/NDF
Prepare vector of fit results
Store fit results to map of wire vectors of vectors of results
Definition at line 222 of file CSCAFEBThrAnalysis.cc.
References BegDac, gather_cfg::cout, CSCFitAFEBThr::CSCFitAFEBThr(), csctoafeb, EndDac, dqmMemoryStats::float, CSCToAFEB::getAfebCh(), CSCToAFEB::getAfebPos(), hf1ForId(), hf2ForId(), hist_file, mps_fire::i, indDac, dqmiolumiharvest::j, phase1PixelTopology::layer, m_res_for_db, m_wire_dac, mh_AfebChi2perNDF, mh_AfebDac, mh_AfebNDF, mh_AfebNoisePar, mh_AfebThrPar, mh_ChanEff, nmbev, nmbev_no_wire, npulses, findQualityFiles::size, CSCFitAFEBThr::ThresholdNoise(), vecDac, vecDacOccup, x, and y.
Referenced by CSCAFEBAnalyzer::endJob().
|
private |
Definition at line 106 of file CSCAFEBThrAnalysis.cc.
References bookForId(), RemoveAddSevLevel::flag, h, w, and x.
Referenced by done().
|
private |
Definition at line 116 of file CSCAFEBThrAnalysis.cc.
References bookForId(), RemoveAddSevLevel::flag, h, w, x, and y.
void CSCAFEBThrAnalysis::setup | ( | const std::string & | histoFileName | ) |
open the histogram file
Definition at line 32 of file CSCAFEBThrAnalysis.cc.
References hist_file, and mix_2012_lumiLevel_15_20_50ns_PoissonOOTPU_cfi::histoFileName.
Referenced by CSCAFEBAnalyzer::CSCAFEBAnalyzer().
|
private |
Definition at line 36 of file CSCAFEBThrAnalysis.h.
Referenced by analyze(), CSCAFEBThrAnalysis(), and done().
|
private |
Layer, wire to AFEB, channel conversion.
Definition at line 49 of file CSCAFEBThrAnalysis.h.
|
private |
Definition at line 37 of file CSCAFEBThrAnalysis.h.
Referenced by analyze(), CSCAFEBThrAnalysis(), and done().
|
private |
Definition at line 38 of file CSCAFEBThrAnalysis.h.
Referenced by CSCAFEBThrAnalysis().
|
private |
ROOT hist file.
Definition at line 52 of file CSCAFEBThrAnalysis.h.
Referenced by bookForId(), CSCAFEBThrAnalysis(), done(), and setup().
|
private |
Definition at line 35 of file CSCAFEBThrAnalysis.h.
Referenced by analyze(), CSCAFEBThrAnalysis(), and done().
|
private |
Definition at line 46 of file CSCAFEBThrAnalysis.h.
Referenced by CSCAFEBThrAnalysis(), and done().
|
private |
Definition at line 45 of file CSCAFEBThrAnalysis.h.
Referenced by analyze(), CSCAFEBThrAnalysis(), and done().
|
private |
Maps - per event, threshold curve, fit results.
Definition at line 44 of file CSCAFEBThrAnalysis.h.
Referenced by analyze().
|
private |
Definition at line 62 of file CSCAFEBThrAnalysis.h.
Referenced by bookForId(), and done().
|
private |
Definition at line 58 of file CSCAFEBThrAnalysis.h.
Referenced by bookForId(), CSCAFEBThrAnalysis(), and done().
|
private |
Definition at line 61 of file CSCAFEBThrAnalysis.h.
Referenced by bookForId(), and done().
|
private |
Definition at line 60 of file CSCAFEBThrAnalysis.h.
Referenced by bookForId(), and done().
|
private |
Definition at line 59 of file CSCAFEBThrAnalysis.h.
Referenced by bookForId(), and done().
|
private |
Histogram maps.
Definition at line 55 of file CSCAFEBThrAnalysis.h.
Referenced by bookForId(), CSCAFEBThrAnalysis(), and done().
|
private |
Definition at line 57 of file CSCAFEBThrAnalysis.h.
Referenced by analyze(), bookForId(), and CSCAFEBThrAnalysis().
|
private |
Statistics.
Definition at line 30 of file CSCAFEBThrAnalysis.h.
Referenced by analyze(), CSCAFEBThrAnalysis(), and done().
|
private |
Definition at line 31 of file CSCAFEBThrAnalysis.h.
Referenced by analyze(), CSCAFEBThrAnalysis(), and done().
|
private |
DAC info.
Definition at line 34 of file CSCAFEBThrAnalysis.h.
Referenced by CSCAFEBThrAnalysis(), and done().
|
private |
Definition at line 39 of file CSCAFEBThrAnalysis.h.
Referenced by analyze(), and CSCAFEBThrAnalysis().
|
private |
Definition at line 40 of file CSCAFEBThrAnalysis.h.
Referenced by analyze(), CSCAFEBThrAnalysis(), and done().
|
private |
Definition at line 41 of file CSCAFEBThrAnalysis.h.
Referenced by analyze(), CSCAFEBThrAnalysis(), and done().