CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 <stdio.h>
13 
21 public:
23  void setup(const std::string& histoFileName);
24  void analyze(const CSCWireDigiCollection& wirecltn);
25  void done();
26 
27 private:
28  void bookForId(int flag, const int& idint,const std::string& ids);
29  void hf1ForId(std::map<int, TH1*>& mp, int flag, const int& id,
30  float& x, float w);
31  void hf2ForId(std::map<int, TH2*>& mp, int flag, const int& id,
32  float& x, float& y, float w);
34  int nmbev;
36 
38  int npulses;
39  int unsigned indDac;
40  int BegDac;
41  int EndDac;
42  int EvDac;
43  int StepDac;
44  std::vector<float> vecDac;
45  std::vector<int> vecDacOccup;
46 
48  std::map<int, std::vector<int> > m_wire_ev;
49  std::map<int, std::vector<std::vector<int> > > m_wire_dac;
50  std::map<int, std::vector<std::vector<float> > > m_res_for_db;
51 
54 
56  TFile* hist_file;
57 
59  std::map<int, TH1*> mh_ChanEff;
60 
61  std::map<int, TH2*> mh_FirstTime;
62  std::map<int, TH2*> mh_AfebDac;
63  std::map<int, TH2*> mh_AfebThrPar;
64  std::map<int, TH2*> mh_AfebNoisePar;
65  std::map<int, TH2*> mh_AfebNDF;
66  std::map<int, TH2*> mh_AfebChi2perNDF;
67 };
68 
69 #endif
long int flag
Definition: mlp_lapack.h:47
std::map< int, TH2 * > mh_FirstTime
tuple histoFileName
Definition: diJetCalib.py:108
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)
T w() const
void analyze(const CSCWireDigiCollection &wirecltn)
Definition: DDAxes.h:10
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)