CMS 3D CMS Logo

DigiVtxPosCorrHistogramMaker.h
Go to the documentation of this file.
1 #ifndef DPGAnalysis_SiStripTools_DigiVtxPosCorrHistogramMaker_H
2 #define DPGAnalysis_SiStripTools_DigiVtxPosCorrHistogramMaker_H
3 
4 #include <string>
5 #include <map>
9 
10 
11 namespace edm {
12  class ParameterSet;
13  class Event;
14 }
15 class TH2F;
16 class TProfile;
17 class TFileDirectory;
18 
20 
21  public:
24 
26 
27  void book(const std::string dirname, const std::map<unsigned int, std::string>& labels);
28  void book(const std::string dirname);
29  void beginRun(const unsigned int nrun);
30  void fill(const edm::Event& iEvent, const std::map<unsigned int,int>& ndigi);
31 
32  private:
33 
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_nmultvsvtxpos;
42  std::map<unsigned int,TProfile*> m_nmultvsvtxposprof;
43  std::map<unsigned int,TFileDirectory*> m_subdirs;
44 
45 };
46 
47 
48 #endif // DPGAnalysis_SiStripTools_DigiVtxPosCorrHistogramMaker_H
std::map< unsigned int, TFileDirectory * > m_subdirs
edm::EDGetTokenT< edm::HepMCProduct > m_mcvtxcollectionToken
int iEvent
Definition: GenABIO.cc:224
std::map< unsigned int, int > m_binmax
std::map< unsigned int, TH2F * > m_nmultvsvtxpos
std::map< unsigned int, std::string > m_labels
std::map< unsigned int, TProfile * > m_nmultvsvtxposprof
HLT enums.