CMS 3D CMS Logo

DigiLumiCorrHistogramMaker.h
Go to the documentation of this file.
1 #ifndef DPGAnalysis_SiStripTools_DigiLumiCorrHistogramMaker_H
2 #define DPGAnalysis_SiStripTools_DigiLumiCorrHistogramMaker_H
3 
4 #include <string>
5 #include <map>
9 
10 
11 namespace edm {
12  class ParameterSet;
13  class Event;
14  class Run;
15 }
16 class TH2F;
17 class TProfile;
18 class TProfile2D;
19 class TFileDirectory;
21 
23 
24  public:
27 
29 
30  void book(const std::string dirname, const std::map<unsigned int, std::string>& labels, edm::ConsumesCollector&& iC);
31  void book(const std::string dirname, edm::ConsumesCollector&& iC) {book(dirname, iC);}
32  void book(const std::string dirname, edm::ConsumesCollector& iC);
33  void beginRun(const edm::Run& iRun);
34  void fill(const edm::Event& iEvent, const std::map<unsigned int,int>& ndigi);
35 
36  private:
37 
39  std::map<unsigned int,RunHistogramManager*> m_fhm;
40  bool m_runHisto;
42  const int m_nbins;
43  const int m_scalefact;
44  const double m_maxlumi;
45  std::map<unsigned int,int> m_binmax;
46  std::map<unsigned int, std::string> m_labels;
47 
48  std::map<unsigned int,TH2F*> m_nmultvslumi;
49  std::map<unsigned int,TProfile*> m_nmultvslumiprof;
50  std::map<unsigned int,TProfile2D**> m_nmultvslumivsbxprofrun;
51  std::map<unsigned int,TFileDirectory*> m_subdirs;
52 
53 };
54 
55 
56 #endif // DPGAnalysis_SiStripTools_DigiLumiCorrHistogramMaker_H
std::map< unsigned int, TFileDirectory * > m_subdirs
std::map< unsigned int, RunHistogramManager * > m_fhm
std::map< unsigned int, int > m_binmax
std::map< unsigned int, std::string > m_labels
int iEvent
Definition: GenABIO.cc:224
std::map< unsigned int, TProfile2D ** > m_nmultvslumivsbxprofrun
std::map< unsigned int, TProfile * > m_nmultvslumiprof
std::map< unsigned int, TH2F * > m_nmultvslumi
HLT enums.
edm::EDGetTokenT< LumiDetails > m_lumiProducerToken
void book(const std::string dirname, edm::ConsumesCollector &&iC)
Definition: Run.h:45