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
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)