CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DigiVertexCorrHistogramMaker.h
Go to the documentation of this file.
1 #ifndef DPGAnalysis_SiStripTools_DigiVertexCorrHistogramMaker_H
2 #define DPGAnalysis_SiStripTools_DigiVertexCorrHistogramMaker_H
3 
4 #include <string>
5 #include <map>
6 
7 namespace edm {
8  class ParameterSet;
9  class Event;
10  class Run;
11 }
12 class TH2F;
13 class TProfile;
14 class TProfile2D;
15 class TFileDirectory;
17 
19 
20  public:
23 
25 
26  void book(const std::string dirname, const std::map<unsigned int, std::string>& labels);
27  void book(const std::string dirname);
28  void beginRun(const edm::Run& iRun);
29  void fill(const edm::Event& iEvent, const unsigned int nvtx, const std::map<unsigned int,int>& ndigi);
30 
31  private:
32 
33  std::map<unsigned int,RunHistogramManager*> m_fhm;
34  bool m_runHisto;
35  std::string m_hitname;
36  const int m_nbins;
37  const int m_scalefact;
38  std::map<unsigned int,int> m_binmax;
39  std::map<unsigned int, std::string> m_labels;
40 
41  std::map<unsigned int,TH2F*> m_nmultvsnvtx;
42  std::map<unsigned int,TProfile*> m_nmultvsnvtxprof;
43  std::map<unsigned int,TProfile2D**> m_nmultvsnvtxvsbxprofrun;
44  std::map<unsigned int,TFileDirectory*> m_subdirs;
45 
46 };
47 
48 
49 #endif // DPGAnalysis_SiStripTools_DigiVertexCorrHistogramMaker_H
std::map< unsigned int, TProfile2D ** > m_nmultvsnvtxvsbxprofrun
std::map< unsigned int, std::string > m_labels
std::map< unsigned int, int > m_binmax
int iEvent
Definition: GenABIO.cc:243
std::map< unsigned int, RunHistogramManager * > m_fhm
void book(const std::string dirname, const std::map< unsigned int, std::string > &labels)
std::map< unsigned int, TFileDirectory * > m_subdirs
std::map< unsigned int, TProfile * > m_nmultvsnvtxprof
void fill(const edm::Event &iEvent, const unsigned int nvtx, const std::map< unsigned int, int > &ndigi)
std::map< unsigned int, TH2F * > m_nmultvsnvtx
Definition: Run.h:33