#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 |
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 135 of file CSCAFEBThrAnalysis.cc.
References BegDac, csctoafeb, CSCDetId::endcap(), EndDac, CSCToAFEB::getAfebCh(), CSCToAFEB::getAfebPos(), CSCToAFEB::getMaxWire(), hf2ForId(), i, indDac, j, m_wire_dac, m_wire_ev, mh_FirstTime, nmbev, nmbev_no_wire, relativeConstraints::ring, relativeConstraints::station, StepDac, vecDac, vecDacOccup, ExpressReco_HICollisions_FallBack::x, and ExpressReco_HICollisions_FallBack::y.
Referenced by CSCAFEBAnalyzer::analyze().
|
private |
Definition at line 40 of file CSCAFEBThrAnalysis.cc.
References hist_file, mh_AfebChi2perNDF, mh_AfebDac, mh_AfebNDF, mh_AfebNoisePar, mh_AfebThrPar, mh_ChanEff, and mh_FirstTime.
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 237 of file CSCAFEBThrAnalysis.cc.
References BegDac, gather_cfg::cout, CSCFitAFEBThr::CSCFitAFEBThr(), csctoafeb, EndDac, CSCToAFEB::getAfebCh(), CSCToAFEB::getAfebPos(), hf1ForId(), hf2ForId(), hist_file, i, indDac, j, m_res_for_db, m_wire_dac, mh_AfebChi2perNDF, mh_AfebDac, mh_AfebNDF, mh_AfebNoisePar, mh_AfebThrPar, mh_ChanEff, nmbev, nmbev_no_wire, npulses, CSCobject::obj, findQualityFiles::size, CSCFitAFEBThr::ThresholdNoise(), vecDac, vecDacOccup, ExpressReco_HICollisions_FallBack::x, and ExpressReco_HICollisions_FallBack::y.
Referenced by CSCAFEBAnalyzer::endJob().
|
private |
Definition at line 109 of file CSCAFEBThrAnalysis.cc.
References bookForId(), and h.
Referenced by done().
|
private |
Definition at line 121 of file CSCAFEBThrAnalysis.cc.
References bookForId(), and h.
Referenced by analyze(), and done().
void CSCAFEBThrAnalysis::setup | ( | const std::string & | histoFileName | ) |
open the histogram file
Definition at line 34 of file CSCAFEBThrAnalysis.cc.
References hist_file.
Referenced by CSCAFEBAnalyzer::CSCAFEBAnalyzer().
|
private |
Definition at line 40 of file CSCAFEBThrAnalysis.h.
Referenced by analyze(), CSCAFEBThrAnalysis(), and done().
|
private |
Layer, wire to AFEB, channel conversion.
Definition at line 53 of file CSCAFEBThrAnalysis.h.
|
private |
Definition at line 41 of file CSCAFEBThrAnalysis.h.
Referenced by analyze(), CSCAFEBThrAnalysis(), and done().
|
private |
Definition at line 42 of file CSCAFEBThrAnalysis.h.
Referenced by CSCAFEBThrAnalysis().
|
private |
ROOT hist file.
Definition at line 56 of file CSCAFEBThrAnalysis.h.
Referenced by bookForId(), CSCAFEBThrAnalysis(), done(), and setup().
|
private |
Definition at line 39 of file CSCAFEBThrAnalysis.h.
Referenced by analyze(), CSCAFEBThrAnalysis(), and done().
|
private |
Definition at line 50 of file CSCAFEBThrAnalysis.h.
Referenced by CSCAFEBThrAnalysis(), and done().
|
private |
Definition at line 49 of file CSCAFEBThrAnalysis.h.
Referenced by analyze(), CSCAFEBThrAnalysis(), and done().
|
private |
Maps - per event, threshold curve, fit results.
Definition at line 48 of file CSCAFEBThrAnalysis.h.
Referenced by analyze().
|
private |
Definition at line 66 of file CSCAFEBThrAnalysis.h.
Referenced by bookForId(), and done().
|
private |
Definition at line 62 of file CSCAFEBThrAnalysis.h.
Referenced by bookForId(), CSCAFEBThrAnalysis(), and done().
|
private |
Definition at line 65 of file CSCAFEBThrAnalysis.h.
Referenced by bookForId(), and done().
|
private |
Definition at line 64 of file CSCAFEBThrAnalysis.h.
Referenced by bookForId(), and done().
|
private |
Definition at line 63 of file CSCAFEBThrAnalysis.h.
Referenced by bookForId(), and done().
|
private |
Histogram maps.
Definition at line 59 of file CSCAFEBThrAnalysis.h.
Referenced by bookForId(), CSCAFEBThrAnalysis(), and done().
|
private |
Definition at line 61 of file CSCAFEBThrAnalysis.h.
Referenced by analyze(), bookForId(), and CSCAFEBThrAnalysis().
|
private |
Statistics.
Definition at line 34 of file CSCAFEBThrAnalysis.h.
Referenced by analyze(), CSCAFEBThrAnalysis(), and done().
|
private |
Definition at line 35 of file CSCAFEBThrAnalysis.h.
Referenced by analyze(), CSCAFEBThrAnalysis(), and done().
|
private |
DAC info.
Definition at line 38 of file CSCAFEBThrAnalysis.h.
Referenced by CSCAFEBThrAnalysis(), and done().
|
private |
Definition at line 43 of file CSCAFEBThrAnalysis.h.
Referenced by analyze(), and CSCAFEBThrAnalysis().
|
private |
Definition at line 44 of file CSCAFEBThrAnalysis.h.
Referenced by analyze(), CSCAFEBThrAnalysis(), and done().
|
private |
Definition at line 45 of file CSCAFEBThrAnalysis.h.
Referenced by analyze(), CSCAFEBThrAnalysis(), and done().