CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 <stdio.h>
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  int npulses;
35  int nmblayers;
37  std::vector<int> nmbpulses;
38 
40 
41  std::map<int, int> m_csc_list;
42  std::map<int, std::vector<int> > m_wire_ev;
43  std::map<int, std::vector<std::vector<float> > > m_res_for_db;
44 
47 
49  TFile* hist_file;
50 
52  std::map<int, TH1*> mh_LayerNmbPulses;
53  std::map<int, TH1*> mh_WireEff;
54  std::map<int, TH1*> mh_Eff;
55  std::map<int, TH1*> mh_WirePairCrosstalk;
56  std::map<int, TH1*> mh_PairCrosstalk;
57  std::map<int, TH1*> mh_WireNonPairCrosstalk;
58  std::map<int, TH1*> mh_NonPairCrosstalk;
59  std::map<int, TH2*> mh_FirstTime;
60 };
61 
62 #endif
void hf1ForId(std::map< int, TH1 * > &mp, int flag, const int &id, float &x, float w)
const double w
Definition: UKUtility.cc:23
std::map< int, TH1 * > mh_WireNonPairCrosstalk
tuple histoFileName
Definition: diJetCalib.py:108
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.
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)
void hf2ForId(std::map< int, TH2 * > &mp, int flag, const int &id, float &x, float &y, float w)
TFile * hist_file
ROOT hist file.
std::map< int, TH1 * > mh_WireEff
void analyze(const CSCWireDigiCollection &wirecltn)