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 
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  int npulses;
37  int nmblayers;
39  std::vector<int> nmbpulses;
40 
42 
43  std::map<int, int> m_csc_list;
44  std::map<int, std::vector<int> > m_wire_ev;
45  std::map<int, std::vector<std::vector<float> > > m_res_for_db;
46 
49 
51  TFile* hist_file;
52 
54  std::map<int, TH1*> mh_LayerNmbPulses;
55  std::map<int, TH1*> mh_WireEff;
56  std::map<int, TH1*> mh_Eff;
57  std::map<int, TH1*> mh_WirePairCrosstalk;
58  std::map<int, TH1*> mh_PairCrosstalk;
59  std::map<int, TH1*> mh_WireNonPairCrosstalk;
60  std::map<int, TH1*> mh_NonPairCrosstalk;
61  std::map<int, TH2*> mh_FirstTime;
62 };
63 
64 #endif
long int flag
Definition: mlp_lapack.h:47
void hf1ForId(std::map< int, TH1 * > &mp, int flag, const int &id, float &x, float w)
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)