CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/DPGAnalysis/SiStripTools/interface/DigiInvestigatorHistogramMaker.h

Go to the documentation of this file.
00001 #ifndef DPGAnalysis_SiStripTools_DigiInvestigatorHistogramMaker_H
00002 #define DPGAnalysis_SiStripTools_DigiInvestigatorHistogramMaker_H
00003 
00004 #include <string>
00005 #include <map>
00006 #include "DPGAnalysis/SiStripTools/interface/RunHistogramManager.h"
00007 
00008 namespace edm {
00009   class ParameterSet;
00010 }
00011 class TH1F;
00012 class TProfile;
00013 class TFileDirectory;
00014 
00015 class DigiInvestigatorHistogramMaker {
00016 
00017  public:
00018   DigiInvestigatorHistogramMaker();
00019   DigiInvestigatorHistogramMaker(const edm::ParameterSet& iConfig);
00020  
00021   ~DigiInvestigatorHistogramMaker();
00022 
00023   void book(const std::string dirname, const std::map<unsigned int, std::string>& labels);
00024   void book(const std::string dirname);
00025   void beginRun(const unsigned int nrun);
00026   void fill(const unsigned int orbit, const std::map<unsigned int,int>& ndigi);
00027 
00028  private:
00029 
00030   std::string _hitname;
00031   const int _nbins;
00032   const unsigned int m_maxLS;
00033   const unsigned int m_LSfrac;
00034   int _scalefact;
00035   const bool _runHisto;
00036   std::map<unsigned int,int> _binmax;
00037   std::map<unsigned int, std::string> _labels;
00038 
00039 
00040   RunHistogramManager _rhm;
00041   std::map<unsigned int,TProfile**> _nmultvsorbrun;
00042   std::map<unsigned int,TH1F*> _nmult;
00043   std::map<unsigned int,TFileDirectory*> _subdirs;
00044 
00045 };
00046 
00047 
00048 #endif //  DPGAnalysis_SiStripTools_DigiInvestigatorHistogramMaker_H