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
CSCAFEBConnectAnalysis::npulses
int npulses
Definition: CSCAFEBConnectAnalysis.h:32
CSCAFEBConnectAnalysis::nmblayers
int nmblayers
Definition: CSCAFEBConnectAnalysis.h:33
DDAxes::y
CSCAFEBConnectAnalysis::mh_FirstTime
std::map< int, TH2 * > mh_FirstTime
Definition: CSCAFEBConnectAnalysis.h:57
CSCAFEBConnectAnalysis::csctoafeb
const CSCToAFEB csctoafeb
Layer, wire to AFEB, channel conversion.
Definition: CSCAFEBConnectAnalysis.h:44
CSCAFEBConnectAnalysis::m_res_for_db
std::map< int, std::vector< std::vector< float > > > m_res_for_db
Definition: CSCAFEBConnectAnalysis.h:41
CSCAFEBConnectAnalysis::mh_WirePairCrosstalk
std::map< int, TH1 * > mh_WirePairCrosstalk
Definition: CSCAFEBConnectAnalysis.h:53
CSCAFEBConnectAnalysis::hf2ForId
void hf2ForId(std::map< int, TH2 * > &mp, int flag, const int &id, float &x, float &y, float w)
Definition: CSCAFEBConnectAnalysis.cc:118
CSCToAFEB.h
CSCAFEBConnectAnalysis::hist_file
TFile * hist_file
ROOT hist file.
Definition: CSCAFEBConnectAnalysis.h:47
CSCAFEBConnectAnalysis::bookForId
void bookForId(int flag, const int &idint, const std::string &ids)
Definition: CSCAFEBConnectAnalysis.cc:37
DDAxes::x
CSCAFEBConnectAnalysis::mh_LayerNmbPulses
std::map< int, TH1 * > mh_LayerNmbPulses
Histogram maps.
Definition: CSCAFEBConnectAnalysis.h:50
CSCAFEBConnectAnalysis::mh_NonPairCrosstalk
std::map< int, TH1 * > mh_NonPairCrosstalk
Definition: CSCAFEBConnectAnalysis.h:56
CSCAFEBConnectAnalysis::CSCAFEBConnectAnalysis
CSCAFEBConnectAnalysis()
Definition: CSCAFEBConnectAnalysis.cc:7
CSCAFEBConnectAnalysis::analyze
void analyze(const CSCWireDigiCollection &wirecltn)
Definition: CSCAFEBConnectAnalysis.cc:129
CSCAFEBConnectAnalysis::m_wire_ev
std::map< int, std::vector< int > > m_wire_ev
Definition: CSCAFEBConnectAnalysis.h:40
CSCToAFEB
Definition: CSCToAFEB.h:11
CSCAFEBConnectAnalysis::mh_PairCrosstalk
std::map< int, TH1 * > mh_PairCrosstalk
Definition: CSCAFEBConnectAnalysis.h:54
mix_2012_lumiLevel_15_20_50ns_PoissonOOTPU_cfi.histoFileName
histoFileName
Definition: mix_2012_lumiLevel_15_20_50ns_PoissonOOTPU_cfi.py:52
CSCAFEBConnectAnalysis::setup
void setup(const std::string &histoFileName)
Definition: CSCAFEBConnectAnalysis.cc:31
w
const double w
Definition: UKUtility.cc:23
CSCAFEBConnectAnalysis::nmbev
int nmbev
Statistics.
Definition: CSCAFEBConnectAnalysis.h:30
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CSCAFEBConnectAnalysis::done
void done()
Definition: CSCAFEBConnectAnalysis.cc:223
CSCAFEBConnectAnalysis::pulsed_layer
int pulsed_layer
Definition: CSCAFEBConnectAnalysis.h:34
CSCAFEBConnectAnalysis::mh_WireEff
std::map< int, TH1 * > mh_WireEff
Definition: CSCAFEBConnectAnalysis.h:51
CSCAFEBConnectAnalysis::mh_WireNonPairCrosstalk
std::map< int, TH1 * > mh_WireNonPairCrosstalk
Definition: CSCAFEBConnectAnalysis.h:55
CSCAFEBConnectAnalysis::hf1ForId
void hf1ForId(std::map< int, TH1 * > &mp, int flag, const int &id, float &x, float w)
Definition: CSCAFEBConnectAnalysis.cc:108
CSCWireDigiCollection
CSCAFEBConnectAnalysis::nmbev_no_wire
int nmbev_no_wire
Definition: CSCAFEBConnectAnalysis.h:31
CSCAFEBConnectAnalysis::mh_Eff
std::map< int, TH1 * > mh_Eff
Definition: CSCAFEBConnectAnalysis.h:52
CSCWireDigiCollection.h
CSCAFEBConnectAnalysis
Definition: CSCAFEBConnectAnalysis.h:18
CSCAFEBConnectAnalysis::nmbpulses
std::vector< int > nmbpulses
Definition: CSCAFEBConnectAnalysis.h:35
CSCAFEBConnectAnalysis::m_csc_list
std::map< int, int > m_csc_list
Maps.
Definition: CSCAFEBConnectAnalysis.h:39
RemoveAddSevLevel.flag
flag
Definition: RemoveAddSevLevel.py:116