#include <CSCAFEBConnectAnalysis.h>
Public Member Functions | |
void | analyze (const CSCWireDigiCollection &wirecltn) |
CSCAFEBConnectAnalysis () | |
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 | |
const CSCToAFEB | csctoafeb |
Layer, wire to AFEB, channel conversion. More... | |
TFile * | hist_file |
ROOT hist file. More... | |
std::map< int, int > | m_csc_list |
Maps. More... | |
std::map< int, std::vector < std::vector< float > > > | m_res_for_db |
std::map< int, std::vector< int > > | m_wire_ev |
std::map< int, TH1 * > | mh_Eff |
std::map< int, TH2 * > | mh_FirstTime |
std::map< int, TH1 * > | mh_LayerNmbPulses |
Histogram maps. More... | |
std::map< int, TH1 * > | mh_NonPairCrosstalk |
std::map< int, TH1 * > | mh_PairCrosstalk |
std::map< int, TH1 * > | mh_WireEff |
std::map< int, TH1 * > | mh_WireNonPairCrosstalk |
std::map< int, TH1 * > | mh_WirePairCrosstalk |
int | nmbev |
Statistics. More... | |
int | nmbev_no_wire |
int | nmblayers |
std::vector< int > | nmbpulses |
int | npulses |
int | pulsed_layer |
CSCAFEBConnectAnalysis::CSCAFEBConnectAnalysis | ( | ) |
Definition at line 7 of file CSCAFEBConnectAnalysis.cc.
References hist_file, m_csc_list, m_res_for_db, mh_Eff, mh_FirstTime, mh_LayerNmbPulses, mh_NonPairCrosstalk, mh_PairCrosstalk, mh_WireEff, mh_WireNonPairCrosstalk, mh_WirePairCrosstalk, nmbev, nmbev_no_wire, nmblayers, nmbpulses, npulses, and pulsed_layer.
void CSCAFEBConnectAnalysis::analyze | ( | const CSCWireDigiCollection & | wirecltn | ) |
Store pulses per plane
Plot time bin of the first hit vs wires in layers
Mark given wire as wire having one hit
Fill maps
Fill efficiency map
Fill pair crosstalk map
Fill non-pair crosstalk map
Definition at line 138 of file CSCAFEBConnectAnalysis.cc.
References csctoafeb, CSCDetId::endcap(), CSCToAFEB::getMaxWire(), hf2ForId(), i, j, m_res_for_db, m_wire_ev, mh_FirstTime, nmbev, nmbev_no_wire, nmbpulses, pulsed_layer, relativeConstraints::ring, relativeConstraints::station, vdt::x, and detailsBasic3DVector::y.
Referenced by CSCAFEBAnalyzer::analyze().
|
private |
Definition at line 39 of file CSCAFEBConnectAnalysis.cc.
References hist_file, mh_Eff, mh_FirstTime, mh_LayerNmbPulses, mh_NonPairCrosstalk, mh_PairCrosstalk, mh_WireEff, mh_WireNonPairCrosstalk, and mh_WirePairCrosstalk.
Referenced by hf1ForId(), and hf2ForId().
void CSCAFEBConnectAnalysis::done | ( | ) |
Fill number of pulses per layer, normalize the non-pair crosstalk, make overal normalization, fill the plots
Fill efficiency plot
Fill pair crosstalk
Fill nonpair crosstalk
Definition at line 243 of file CSCAFEBConnectAnalysis.cc.
References prof2calltree::count, gather_cfg::cout, hf1ForId(), hist_file, i, m_csc_list, m_res_for_db, mh_Eff, mh_LayerNmbPulses, mh_NonPairCrosstalk, mh_PairCrosstalk, mh_WireEff, mh_WireNonPairCrosstalk, mh_WirePairCrosstalk, nmbev, nmbev_no_wire, nmblayers, nmbpulses, vdt::x, and detailsBasic3DVector::y.
Referenced by CSCAFEBAnalyzer::endJob().
|
private |
Definition at line 112 of file CSCAFEBConnectAnalysis.cc.
References bookForId(), and h.
Referenced by done().
|
private |
Definition at line 124 of file CSCAFEBConnectAnalysis.cc.
References bookForId(), and h.
Referenced by analyze().
void CSCAFEBConnectAnalysis::setup | ( | const std::string & | histoFileName | ) |
open the histogram file
Definition at line 33 of file CSCAFEBConnectAnalysis.cc.
References hist_file.
Referenced by CSCAFEBAnalyzer::CSCAFEBAnalyzer().
|
private |
Layer, wire to AFEB, channel conversion.
Definition at line 48 of file CSCAFEBConnectAnalysis.h.
Referenced by analyze().
|
private |
ROOT hist file.
Definition at line 51 of file CSCAFEBConnectAnalysis.h.
Referenced by bookForId(), CSCAFEBConnectAnalysis(), done(), and setup().
|
private |
Maps.
Definition at line 43 of file CSCAFEBConnectAnalysis.h.
Referenced by CSCAFEBConnectAnalysis(), and done().
|
private |
Definition at line 45 of file CSCAFEBConnectAnalysis.h.
Referenced by analyze(), CSCAFEBConnectAnalysis(), and done().
|
private |
Definition at line 44 of file CSCAFEBConnectAnalysis.h.
Referenced by analyze().
|
private |
Definition at line 56 of file CSCAFEBConnectAnalysis.h.
Referenced by bookForId(), CSCAFEBConnectAnalysis(), and done().
|
private |
Definition at line 61 of file CSCAFEBConnectAnalysis.h.
Referenced by analyze(), bookForId(), and CSCAFEBConnectAnalysis().
|
private |
Histogram maps.
Definition at line 54 of file CSCAFEBConnectAnalysis.h.
Referenced by bookForId(), CSCAFEBConnectAnalysis(), and done().
|
private |
Definition at line 60 of file CSCAFEBConnectAnalysis.h.
Referenced by bookForId(), CSCAFEBConnectAnalysis(), and done().
|
private |
Definition at line 58 of file CSCAFEBConnectAnalysis.h.
Referenced by bookForId(), CSCAFEBConnectAnalysis(), and done().
|
private |
Definition at line 55 of file CSCAFEBConnectAnalysis.h.
Referenced by bookForId(), CSCAFEBConnectAnalysis(), and done().
|
private |
Definition at line 59 of file CSCAFEBConnectAnalysis.h.
Referenced by bookForId(), CSCAFEBConnectAnalysis(), and done().
|
private |
Definition at line 57 of file CSCAFEBConnectAnalysis.h.
Referenced by bookForId(), CSCAFEBConnectAnalysis(), and done().
|
private |
Statistics.
Definition at line 34 of file CSCAFEBConnectAnalysis.h.
Referenced by analyze(), CSCAFEBConnectAnalysis(), and done().
|
private |
Definition at line 35 of file CSCAFEBConnectAnalysis.h.
Referenced by analyze(), CSCAFEBConnectAnalysis(), and done().
|
private |
Definition at line 37 of file CSCAFEBConnectAnalysis.h.
Referenced by CSCAFEBConnectAnalysis(), and done().
|
private |
Definition at line 39 of file CSCAFEBConnectAnalysis.h.
Referenced by analyze(), CSCAFEBConnectAnalysis(), and done().
|
private |
Definition at line 36 of file CSCAFEBConnectAnalysis.h.
Referenced by CSCAFEBConnectAnalysis().
|
private |
Definition at line 38 of file CSCAFEBConnectAnalysis.h.
Referenced by analyze(), and CSCAFEBConnectAnalysis().