CMS 3D CMS Logo

DigiInvestigatorHistogramMaker.h
Go to the documentation of this file.
1 #ifndef DPGAnalysis_SiStripTools_DigiInvestigatorHistogramMaker_H
2 #define DPGAnalysis_SiStripTools_DigiInvestigatorHistogramMaker_H
3 
4 #include <string>
5 #include <map>
8 
9 namespace edm {
10  class ParameterSet;
11  class Event;
12  class Run;
13 } // namespace edm
14 class TH1F;
15 class TProfile;
16 class TFileDirectory;
17 
19 public:
22 
24 
25  void book(const std::string dirname, const std::map<unsigned int, std::string>& labels);
26  void book(const std::string dirname);
27  void beginRun(const edm::Run& iRun);
28  void fill(const edm::Event& iEvent, const std::map<unsigned int, int>& ndigi);
29 
30 private:
32  const int _nbins;
33  const unsigned int m_maxLS;
34  const unsigned int m_LSfrac;
36  const bool _runHisto;
37  const bool _fillHisto;
38  std::map<unsigned int, int> _binmax;
39  std::map<unsigned int, std::string> _labels;
40 
43  std::map<unsigned int, TProfile**> _nmultvsorbrun;
44  std::map<unsigned int, TProfile**> _nmultvsbxrun;
45  std::map<unsigned int, TProfile**> _nmultvsbxfill;
46  std::map<unsigned int, TH1F*> _nmult;
47  std::map<unsigned int, TFileDirectory*> _subdirs;
48 };
49 
50 #endif // DPGAnalysis_SiStripTools_DigiInvestigatorHistogramMaker_H
SummaryClient_cfi.labels
labels
Definition: SummaryClient_cfi.py:61
DigiInvestigatorHistogramMaker::_fhm
RunHistogramManager _fhm
Definition: DigiInvestigatorHistogramMaker.h:42
DigiInvestigatorHistogramMaker::_nmult
std::map< unsigned int, TH1F * > _nmult
Definition: DigiInvestigatorHistogramMaker.h:46
DigiInvestigatorHistogramMaker::_subdirs
std::map< unsigned int, TFileDirectory * > _subdirs
Definition: DigiInvestigatorHistogramMaker.h:47
DigiInvestigatorHistogramMaker::_nmultvsbxrun
std::map< unsigned int, TProfile ** > _nmultvsbxrun
Definition: DigiInvestigatorHistogramMaker.h:44
DigiInvestigatorHistogramMaker::m_maxLS
const unsigned int m_maxLS
Definition: DigiInvestigatorHistogramMaker.h:33
edm::Run
Definition: Run.h:45
DigiInvestigatorHistogramMaker::_rhm
RunHistogramManager _rhm
Definition: DigiInvestigatorHistogramMaker.h:41
edm
HLT enums.
Definition: AlignableModifier.h:19
DigiInvestigatorHistogramMaker::DigiInvestigatorHistogramMaker
DigiInvestigatorHistogramMaker(edm::ConsumesCollector &&iC)
Definition: DigiInvestigatorHistogramMaker.cc:12
DigiInvestigatorHistogramMaker::beginRun
void beginRun(const edm::Run &iRun)
Definition: DigiInvestigatorHistogramMaker.cc:128
DigiInvestigatorHistogramMaker::_fillHisto
const bool _fillHisto
Definition: DigiInvestigatorHistogramMaker.h:37
TFileDirectory
Definition: TFileDirectory.h:24
DigiInvestigatorHistogramMaker::_labels
std::map< unsigned int, std::string > _labels
Definition: DigiInvestigatorHistogramMaker.h:39
BTVHLTOfflineSource_cfi.dirname
dirname
Definition: BTVHLTOfflineSource_cfi.py:7
DigiInvestigatorHistogramMaker::_hitname
std::string _hitname
Definition: DigiInvestigatorHistogramMaker.h:31
RunHistogramManager
Definition: RunHistogramManager.h:210
DigiInvestigatorHistogramMaker
Definition: DigiInvestigatorHistogramMaker.h:18
RunHistogramManager.h
Event
DigiInvestigatorHistogramMaker::fill
void fill(const edm::Event &iEvent, const std::map< unsigned int, int > &ndigi)
Definition: DigiInvestigatorHistogramMaker.cc:172
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DigiInvestigatorHistogramMaker::_scalefact
int _scalefact
Definition: DigiInvestigatorHistogramMaker.h:35
edm::ParameterSet
Definition: ParameterSet.h:47
ParameterSet
Definition: Functions.h:16
iEvent
int iEvent
Definition: GenABIO.cc:224
DigiInvestigatorHistogramMaker::book
void book(const std::string dirname, const std::map< unsigned int, std::string > &labels)
Definition: DigiInvestigatorHistogramMaker.cc:64
DigiInvestigatorHistogramMaker::m_LSfrac
const unsigned int m_LSfrac
Definition: DigiInvestigatorHistogramMaker.h:34
DigiInvestigatorHistogramMaker::_binmax
std::map< unsigned int, int > _binmax
Definition: DigiInvestigatorHistogramMaker.h:38
DigiInvestigatorHistogramMaker::_runHisto
const bool _runHisto
Definition: DigiInvestigatorHistogramMaker.h:36
DigiInvestigatorHistogramMaker::_nbins
const int _nbins
Definition: DigiInvestigatorHistogramMaker.h:32
ConsumesCollector.h
DigiInvestigatorHistogramMaker::~DigiInvestigatorHistogramMaker
~DigiInvestigatorHistogramMaker()
Definition: DigiInvestigatorHistogramMaker.cc:55
edm::Event
Definition: Event.h:73
DigiInvestigatorHistogramMaker::_nmultvsbxfill
std::map< unsigned int, TProfile ** > _nmultvsbxfill
Definition: DigiInvestigatorHistogramMaker.h:45
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
DigiInvestigatorHistogramMaker::_nmultvsorbrun
std::map< unsigned int, TProfile ** > _nmultvsorbrun
Definition: DigiInvestigatorHistogramMaker.h:43
Run