CMS 3D CMS Logo

CSCAFEBThrAnalysis.h
Go to the documentation of this file.
1 #ifndef CSCAFEBTHRANALYSIS_H
2 #define CSCAFEBTHRANALYSIS_H
3 
4 #include "TH1.h"
5 #include "TH2.h"
6 #include "TFile.h"
9 #include <map>
10 #include <string>
11 #include <sstream>
12 #include <cstdio>
13 
19 public:
21  void setup(const std::string& histoFileName);
22  void analyze(const CSCWireDigiCollection& wirecltn);
23  void done();
24 
25 private:
26  void bookForId(int flag, const int& idint, const std::string& ids);
27  void hf1ForId(std::map<int, TH1*>& mp, int flag, const int& id, float& x, float w);
28  void hf2ForId(std::map<int, TH2*>& mp, int flag, const int& id, float& x, float& y, float w);
30  int nmbev;
32 
34  int npulses;
35  int unsigned indDac;
36  int BegDac;
37  int EndDac;
38  int EvDac;
39  int StepDac;
40  std::vector<float> vecDac;
41  std::vector<int> vecDacOccup;
42 
44  std::map<int, std::vector<int> > m_wire_ev;
45  std::map<int, std::vector<std::vector<int> > > m_wire_dac;
46  std::map<int, std::vector<std::vector<float> > > m_res_for_db;
47 
50 
52  TFile* hist_file;
53 
55  std::map<int, TH1*> mh_ChanEff;
56 
57  std::map<int, TH2*> mh_FirstTime;
58  std::map<int, TH2*> mh_AfebDac;
59  std::map<int, TH2*> mh_AfebThrPar;
60  std::map<int, TH2*> mh_AfebNoisePar;
61  std::map<int, TH2*> mh_AfebNDF;
62  std::map<int, TH2*> mh_AfebChi2perNDF;
63 };
64 
65 #endif
CSCAFEBThrAnalysis::bookForId
void bookForId(int flag, const int &idint, const std::string &ids)
Definition: CSCAFEBThrAnalysis.cc:38
DDAxes::y
CSCAFEBThrAnalysis::mh_FirstTime
std::map< int, TH2 * > mh_FirstTime
Definition: CSCAFEBThrAnalysis.h:57
CSCAFEBThrAnalysis::indDac
int unsigned indDac
Definition: CSCAFEBThrAnalysis.h:35
CSCAFEBThrAnalysis::npulses
int npulses
DAC info.
Definition: CSCAFEBThrAnalysis.h:34
CSCAFEBThrAnalysis::mh_AfebNoisePar
std::map< int, TH2 * > mh_AfebNoisePar
Definition: CSCAFEBThrAnalysis.h:60
CSCToAFEB.h
CSCAFEBThrAnalysis::BegDac
int BegDac
Definition: CSCAFEBThrAnalysis.h:36
CSCAFEBThrAnalysis::StepDac
int StepDac
Definition: CSCAFEBThrAnalysis.h:39
CSCAFEBThrAnalysis::csctoafeb
const CSCToAFEB csctoafeb
Layer, wire to AFEB, channel conversion.
Definition: CSCAFEBThrAnalysis.h:49
DDAxes::x
CSCAFEBThrAnalysis::analyze
void analyze(const CSCWireDigiCollection &wirecltn)
Definition: CSCAFEBThrAnalysis.cc:127
CSCAFEBThrAnalysis::EvDac
int EvDac
Definition: CSCAFEBThrAnalysis.h:38
CSCAFEBThrAnalysis::nmbev
int nmbev
Statistics.
Definition: CSCAFEBThrAnalysis.h:30
CSCToAFEB
Definition: CSCToAFEB.h:11
CSCAFEBThrAnalysis::CSCAFEBThrAnalysis
CSCAFEBThrAnalysis()
Definition: CSCAFEBThrAnalysis.cc:10
mix_2012_lumiLevel_15_20_50ns_PoissonOOTPU_cfi.histoFileName
histoFileName
Definition: mix_2012_lumiLevel_15_20_50ns_PoissonOOTPU_cfi.py:52
CSCAFEBThrAnalysis::mh_ChanEff
std::map< int, TH1 * > mh_ChanEff
Histogram maps.
Definition: CSCAFEBThrAnalysis.h:55
w
const double w
Definition: UKUtility.cc:23
CSCAFEBThrAnalysis::done
void done()
Definition: CSCAFEBThrAnalysis.cc:222
CSCAFEBThrAnalysis::hf2ForId
void hf2ForId(std::map< int, TH2 * > &mp, int flag, const int &id, float &x, float &y, float w)
Definition: CSCAFEBThrAnalysis.cc:116
CSCAFEBThrAnalysis::EndDac
int EndDac
Definition: CSCAFEBThrAnalysis.h:37
CSCAFEBThrAnalysis::hist_file
TFile * hist_file
ROOT hist file.
Definition: CSCAFEBThrAnalysis.h:52
CSCAFEBThrAnalysis::mh_AfebChi2perNDF
std::map< int, TH2 * > mh_AfebChi2perNDF
Definition: CSCAFEBThrAnalysis.h:62
CSCAFEBThrAnalysis::mh_AfebDac
std::map< int, TH2 * > mh_AfebDac
Definition: CSCAFEBThrAnalysis.h:58
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CSCWireDigiCollection
CSCAFEBThrAnalysis::m_wire_dac
std::map< int, std::vector< std::vector< int > > > m_wire_dac
Definition: CSCAFEBThrAnalysis.h:45
CSCAFEBThrAnalysis::m_wire_ev
std::map< int, std::vector< int > > m_wire_ev
Maps - per event, threshold curve, fit results.
Definition: CSCAFEBThrAnalysis.h:44
CSCAFEBThrAnalysis::m_res_for_db
std::map< int, std::vector< std::vector< float > > > m_res_for_db
Definition: CSCAFEBThrAnalysis.h:46
CSCAFEBThrAnalysis::setup
void setup(const std::string &histoFileName)
Definition: CSCAFEBThrAnalysis.cc:32
CSCAFEBThrAnalysis::mh_AfebNDF
std::map< int, TH2 * > mh_AfebNDF
Definition: CSCAFEBThrAnalysis.h:61
CSCWireDigiCollection.h
CSCAFEBThrAnalysis::vecDacOccup
std::vector< int > vecDacOccup
Definition: CSCAFEBThrAnalysis.h:41
CSCAFEBThrAnalysis::vecDac
std::vector< float > vecDac
Definition: CSCAFEBThrAnalysis.h:40
CSCAFEBThrAnalysis::hf1ForId
void hf1ForId(std::map< int, TH1 * > &mp, int flag, const int &id, float &x, float w)
Definition: CSCAFEBThrAnalysis.cc:106
CSCAFEBThrAnalysis::mh_AfebThrPar
std::map< int, TH2 * > mh_AfebThrPar
Definition: CSCAFEBThrAnalysis.h:59
CSCAFEBThrAnalysis::nmbev_no_wire
int nmbev_no_wire
Definition: CSCAFEBThrAnalysis.h:31
CSCAFEBThrAnalysis
Definition: CSCAFEBThrAnalysis.h:18
RemoveAddSevLevel.flag
flag
Definition: RemoveAddSevLevel.py:117