#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 |
Definition at line 18 of file CSCAFEBConnectAnalysis.h.
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 129 of file CSCAFEBConnectAnalysis.cc.
References csctoafeb, CSCDetId::endcap(), CSCToAFEB::getMaxWire(), hf2ForId(), mps_fire::i, caHitNtupletGeneratorKernels::if(), dqmiolumiharvest::j, m_res_for_db, m_wire_ev, mh_FirstTime, nmbev, nmbev_no_wire, nmbpulses, pulsed_layer, push_back(), FastTimerService_cff::range, relativeConstraints::ring, contentValuesCheck::ss, relativeConstraints::station, x, and y.
Referenced by CSCAFEBAnalyzer::analyze().
|
private |
Definition at line 37 of file CSCAFEBConnectAnalysis.cc.
References RemoveAddSevLevel::flag, hist_file, mh_Eff, mh_FirstTime, mh_LayerNmbPulses, mh_NonPairCrosstalk, mh_PairCrosstalk, mh_WireEff, mh_WireNonPairCrosstalk, mh_WirePairCrosstalk, and contentValuesCheck::ss.
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 223 of file CSCAFEBConnectAnalysis.cc.
References submitPVResolutionJobs::count, gather_cfg::cout, hf1ForId(), hist_file, mps_fire::i, nano_mu_digi_cff::layer, 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, x, and y.
Referenced by CSCAFEBAnalyzer::endJob().
|
private |
Definition at line 108 of file CSCAFEBConnectAnalysis.cc.
References bookForId(), RemoveAddSevLevel::flag, h, w(), and x.
Referenced by done().
|
private |
Definition at line 118 of file CSCAFEBConnectAnalysis.cc.
References bookForId(), RemoveAddSevLevel::flag, h, w(), x, and y.
Referenced by analyze().
void CSCAFEBConnectAnalysis::setup | ( | const std::string & | histoFileName | ) |
open the histogram file
Definition at line 31 of file CSCAFEBConnectAnalysis.cc.
References hist_file, and mix_2012_lumiLevel_15_20_50ns_PoissonOOTPU_cfi::histoFileName.
Referenced by CSCAFEBAnalyzer::CSCAFEBAnalyzer().
|
private |
Layer, wire to AFEB, channel conversion.
Definition at line 44 of file CSCAFEBConnectAnalysis.h.
Referenced by analyze().
|
private |
ROOT hist file.
Definition at line 47 of file CSCAFEBConnectAnalysis.h.
Referenced by bookForId(), CSCAFEBConnectAnalysis(), done(), and setup().
|
private |
Maps.
Definition at line 39 of file CSCAFEBConnectAnalysis.h.
Referenced by CSCAFEBConnectAnalysis(), and done().
|
private |
Definition at line 41 of file CSCAFEBConnectAnalysis.h.
Referenced by analyze(), CSCAFEBConnectAnalysis(), and done().
|
private |
Definition at line 40 of file CSCAFEBConnectAnalysis.h.
Referenced by analyze().
|
private |
Definition at line 52 of file CSCAFEBConnectAnalysis.h.
Referenced by bookForId(), CSCAFEBConnectAnalysis(), and done().
|
private |
Definition at line 57 of file CSCAFEBConnectAnalysis.h.
Referenced by analyze(), bookForId(), and CSCAFEBConnectAnalysis().
|
private |
Histogram maps.
Definition at line 50 of file CSCAFEBConnectAnalysis.h.
Referenced by bookForId(), CSCAFEBConnectAnalysis(), and done().
|
private |
Definition at line 56 of file CSCAFEBConnectAnalysis.h.
Referenced by bookForId(), CSCAFEBConnectAnalysis(), and done().
|
private |
Definition at line 54 of file CSCAFEBConnectAnalysis.h.
Referenced by bookForId(), CSCAFEBConnectAnalysis(), and done().
|
private |
Definition at line 51 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 53 of file CSCAFEBConnectAnalysis.h.
Referenced by bookForId(), CSCAFEBConnectAnalysis(), and done().
|
private |
Statistics.
Definition at line 30 of file CSCAFEBConnectAnalysis.h.
Referenced by analyze(), CSCAFEBConnectAnalysis(), and done().
|
private |
Definition at line 31 of file CSCAFEBConnectAnalysis.h.
Referenced by analyze(), CSCAFEBConnectAnalysis(), and done().
|
private |
Definition at line 33 of file CSCAFEBConnectAnalysis.h.
Referenced by CSCAFEBConnectAnalysis(), and done().
|
private |
Definition at line 35 of file CSCAFEBConnectAnalysis.h.
Referenced by analyze(), CSCAFEBConnectAnalysis(), and done().
|
private |
Definition at line 32 of file CSCAFEBConnectAnalysis.h.
Referenced by CSCAFEBConnectAnalysis().
|
private |
Definition at line 34 of file CSCAFEBConnectAnalysis.h.
Referenced by analyze(), and CSCAFEBConnectAnalysis().