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,
28  float& x, float w);
29  void hf2ForId(std::map<int, TH2*>& mp, int flag, const int& id,
30  float& x, float& y, float w);
32  int nmbev;
34 
36  int npulses;
37  int unsigned indDac;
38  int BegDac;
39  int EndDac;
40  int EvDac;
41  int StepDac;
42  std::vector<float> vecDac;
43  std::vector<int> vecDacOccup;
44 
46  std::map<int, std::vector<int> > m_wire_ev;
47  std::map<int, std::vector<std::vector<int> > > m_wire_dac;
48  std::map<int, std::vector<std::vector<float> > > m_res_for_db;
49 
52 
54  TFile* hist_file;
55 
57  std::map<int, TH1*> mh_ChanEff;
58 
59  std::map<int, TH2*> mh_FirstTime;
60  std::map<int, TH2*> mh_AfebDac;
61  std::map<int, TH2*> mh_AfebThrPar;
62  std::map<int, TH2*> mh_AfebNoisePar;
63  std::map<int, TH2*> mh_AfebNDF;
64  std::map<int, TH2*> mh_AfebChi2perNDF;
65 };
66 
67 #endif
std::map< int, TH2 * > mh_FirstTime
const double w
Definition: UKUtility.cc:23
std::map< int, std::vector< std::vector< float > > > m_res_for_db
std::map< int, std::vector< int > > m_wire_ev
Maps - per event, threshold curve, fit results.
std::map< int, TH1 * > mh_ChanEff
Histogram maps.
std::vector< int > vecDacOccup
std::map< int, TH2 * > mh_AfebChi2perNDF
std::map< int, TH2 * > mh_AfebDac
std::vector< float > vecDac
const CSCToAFEB csctoafeb
Layer, wire to AFEB, channel conversion.
std::map< int, TH2 * > mh_AfebNDF
int nmbev
Statistics.
void hf1ForId(std::map< int, TH1 * > &mp, int flag, const int &id, float &x, float w)
TFile * hist_file
ROOT hist file.
std::map< int, TH2 * > mh_AfebNoisePar
std::map< int, std::vector< std::vector< int > > > m_wire_dac
void setup(const std::string &histoFileName)
void analyze(const CSCWireDigiCollection &wirecltn)
std::map< int, TH2 * > mh_AfebThrPar
void hf2ForId(std::map< int, TH2 * > &mp, int flag, const int &id, float &x, float &y, float w)
void bookForId(int flag, const int &idint, const std::string &ids)