CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DigiPileupCorrHistogramMaker.h
Go to the documentation of this file.
1 #ifndef DPGAnalysis_SiStripTools_DigiPileupCorrHistogramMaker_H
2 #define DPGAnalysis_SiStripTools_DigiPileupCorrHistogramMaker_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 TProfile2D;
18 class TFileDirectory;
19 
21 
22  public:
25 
27 
28  void book(const std::string dirname, const std::map<unsigned int, std::string>& labels);
29  void book(const std::string dirname);
30  void beginRun(const unsigned int nrun);
31  void fill(const edm::Event& iEvent, const std::map<unsigned int,int>& ndigi);
32 
33  private:
34 
38  const int m_nbins;
39  const int m_scalefact;
40  std::map<unsigned int,int> m_binmax;
41  std::map<unsigned int, std::string> m_labels;
42 
43  std::map<unsigned int,TH2F*> m_nmultvsmclumi;
44  std::map<unsigned int,TProfile*> m_nmultvsmclumiprof;
45  std::map<unsigned int,TH2F*> m_nmultvsmcnvtx;
46  std::map<unsigned int,TProfile*> m_nmultvsmcnvtxprof;
47  std::map<unsigned int,TProfile2D*> m_nmultvsmcnvtxprof2d;
48  std::map<unsigned int,TFileDirectory*> m_subdirs;
49 
50  const bool m_2dhisto;
51  const int m_ootBX;
52 
53 };
54 
55 
56 #endif // DPGAnalysis_SiStripTools_DigiPileupCorrHistogramMaker_H
std::map< unsigned int, std::string > m_labels
void fill(const edm::Event &iEvent, const std::map< unsigned int, int > &ndigi)
std::map< unsigned int, int > m_binmax
void beginRun(const unsigned int nrun)
std::map< unsigned int, TH2F * > m_nmultvsmcnvtx
std::map< unsigned int, TProfile2D * > m_nmultvsmcnvtxprof2d
std::map< unsigned int, TProfile * > m_nmultvsmclumiprof
DigiPileupCorrHistogramMaker(edm::ConsumesCollector &&iC)
int iEvent
Definition: GenABIO.cc:230
std::map< unsigned int, TProfile * > m_nmultvsmcnvtxprof
std::map< unsigned int, TH2F * > m_nmultvsmclumi
edm::EDGetTokenT< std::vector< PileupSummaryInfo > > m_pileupcollectionToken
std::map< unsigned int, TFileDirectory * > m_subdirs
void book(const std::string dirname, const std::map< unsigned int, std::string > &labels)