MultiplicityCorrelatorHistogramMaker

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
#ifndef DPGAnalysis_SiStripTools_MultiplicityCorrelatorHistogramMaker_H
#define DPGAnalysis_SiStripTools_MultiplicityCorrelatorHistogramMaker_H

#include "FWCore/Framework/interface/ConsumesCollector.h"
#include "DPGAnalysis/SiStripTools/interface/RunHistogramManager.h"

namespace edm {
  class ParameterSet;
  class Event;
  class Run;
}  // namespace edm
class TH1F;
class TH2F;

class MultiplicityCorrelatorHistogramMaker {
public:
  MultiplicityCorrelatorHistogramMaker(edm::ConsumesCollector&& iC);
  MultiplicityCorrelatorHistogramMaker(const edm::ParameterSet& iConfig, edm::ConsumesCollector&& iC);

  ~MultiplicityCorrelatorHistogramMaker();

  void beginRun(const edm::Run& iRun);
  void fill(const edm::Event& iEvent, const int xmult, const int ymult);

private:
  RunHistogramManager m_rhm;
  RunHistogramManager m_fhm;
  bool m_runHisto;
  bool m_runHistoBXProfile;
  bool m_runHistoBX;
  bool m_runHisto2D;
  bool m_runHistoProfileBX;
  double m_scfact;
  TH2F* m_yvsxmult;
  TH1F* m_atanyoverx;
  TH1F** m_atanyoverxrun;
  TProfile** m_atanyoverxvsbxrun;
  TH2F** m_atanyoverxvsbxrun2D;
  TH2F** m_yvsxmultrun;
  TProfile2D** m_yvsxmultprofvsbxrun;
  TProfile2D** m_xvsymultprofvsbxrun;
};

#endif  //  DPGAnalysis_SiStripTools_MultiplicityCorrelatorHistogramMaker_H