CMS 3D CMS Logo

HcalQLPlotHistoMgr.h
Go to the documentation of this file.
1 #ifndef HcalQLPlotHistoMgr_included
2 #define HcalQLPlotHistoMgr_included 1
3 
4 #include "TDirectory.h"
5 #include "TH1.h"
11 
13 public:
14  enum HistType { ENERGY = 0, TIME = 1, PULSE = 2, ADC = 3 };
15  enum EventType { UNKNOWN = 0, PEDESTAL = 1, LED = 2, LASER = 3, BEAM = 4 };
16  HcalQLPlotHistoMgr(TDirectory* parent, const edm::ParameterSet& histoParams);
17 
18  TH1* GetAHistogram(const HcalDetId& id, const HcalElectronicsId& eid, HistType ht, EventType et);
19 
20  TH1* GetAHistogram(const HcalCalibDetId& id, const HcalElectronicsId& eid, HistType ht, EventType et);
21 
24 
25 private:
26  TH1* GetAHistogramImpl(const char* name, HistType ht, EventType et);
27 
28  TDirectory* pedHistDir;
29  TDirectory* ledHistDir;
30  TDirectory* laserHistDir;
31  TDirectory* beamHistDir;
32  TDirectory* ctrHistDir;
33  TDirectory* otherHistDir;
35 };
36 
37 #endif
HcalQLPlotHistoMgr(TDirectory *parent, const edm::ParameterSet &histoParams)
edm::ParameterSet histoParams_
static std::string nameForFlavor(HistType ht)
TDirectory * beamHistDir
TDirectory * laserHistDir
TH1 * GetAHistogramImpl(const char *name, HistType ht, EventType et)
TH1 * GetAHistogram(const HcalDetId &id, const HcalElectronicsId &eid, HistType ht, EventType et)
static std::string nameForEvent(EventType et)
Readout chain identification for Hcal.
TDirectory * otherHistDir