CMS 3D CMS Logo

CSCAFEBConnectAnalysis.h
Go to the documentation of this file.
1 #ifndef CSCAFEBCONNECTANALYSIS_H
2 #define CSCAFEBCONNECTANALYSIS_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  int npulses;
33  int nmblayers;
35  std::vector<int> nmbpulses;
36 
38 
39  std::map<int, int> m_csc_list;
40  std::map<int, std::vector<int> > m_wire_ev;
41  std::map<int, std::vector<std::vector<float> > > m_res_for_db;
42 
45 
47  TFile* hist_file;
48 
50  std::map<int, TH1*> mh_LayerNmbPulses;
51  std::map<int, TH1*> mh_WireEff;
52  std::map<int, TH1*> mh_Eff;
53  std::map<int, TH1*> mh_WirePairCrosstalk;
54  std::map<int, TH1*> mh_PairCrosstalk;
55  std::map<int, TH1*> mh_WireNonPairCrosstalk;
56  std::map<int, TH1*> mh_NonPairCrosstalk;
57  std::map<int, TH2*> mh_FirstTime;
58 };
59 
60 #endif
T w() const
void hf1ForId(std::map< int, TH1 *> &mp, int flag, const int &id, float &x, float w)
std::map< int, TH1 * > mh_WireNonPairCrosstalk
std::vector< int > nmbpulses
std::map< int, int > m_csc_list
Maps.
std::map< int, TH1 * > mh_Eff
const CSCToAFEB csctoafeb
Layer, wire to AFEB, channel conversion.
std::map< int, TH1 * > mh_LayerNmbPulses
Histogram maps.
void hf2ForId(std::map< int, TH2 *> &mp, int flag, const int &id, float &x, float &y, float w)
std::map< int, std::vector< std::vector< float > > > m_res_for_db
std::map< int, TH1 * > mh_WirePairCrosstalk
std::map< int, std::vector< int > > m_wire_ev
void bookForId(int flag, const int &idint, const std::string &ids)
std::map< int, TH2 * > mh_FirstTime
std::map< int, TH1 * > mh_PairCrosstalk
std::map< int, TH1 * > mh_NonPairCrosstalk
void setup(const std::string &histoFileName)
TFile * hist_file
ROOT hist file.
std::map< int, TH1 * > mh_WireEff
void analyze(const CSCWireDigiCollection &wirecltn)