CMS 3D CMS Logo

HistoManager.h
Go to the documentation of this file.
1 #ifndef HistoManager_included
2 #define HistoManager_included 1
3 
4 #include "TDirectory.h"
5 #include "TH1.h"
6 #include "MyHcalClasses.h"
7 
8 class HistoManager {
9 public:
10  enum HistType { ENERGY=0, TIME=1, PULSE=2, ADC=3, NUMHISTTYPES=4 };
11  enum EventType { UNKNOWN=0, PEDESTAL=1, LED=2, LASER=3, BEAM=4, NUMEVTTYPES=5 };
12 
13  HistoManager(TDirectory* parent);
14 
15  std::vector<MyHcalDetId> getDetIdsForType(HistType ht, EventType et);
16  TH1* GetAHistogram(const MyHcalDetId& id, HistType ht, EventType et);
17 
18 
19 
20 
21  std::vector<MyElectronicsId> getElecIdsForType(HistType ht, EventType et);
22  TH1* GetAHistogram(const MyElectronicsId& id, HistType ht, EventType et);
23 
24 
25 
26 
29 private:
31  TDirectory* pedHistDir;
32  TDirectory* ledHistDir;
33  TDirectory* laserHistDir;
34  TDirectory* beamHistDir;
35  TDirectory* otherHistDir;
36 };
37 
38 #endif
static std::string nameForEvent(EventType et)
Definition: HistoManager.cc:25
TDirectory * laserHistDir
Definition: HistoManager.h:33
TDirectory * ledHistDir
Definition: HistoManager.h:32
std::vector< MyHcalDetId > getDetIdsForType(HistType ht, EventType et)
bool m_writeMode
Definition: HistoManager.h:30
std::vector< MyElectronicsId > getElecIdsForType(HistType ht, EventType et)
TDirectory * pedHistDir
Definition: HistoManager.h:31
TDirectory * otherHistDir
Definition: HistoManager.h:35
TH1 * GetAHistogram(const MyHcalDetId &id, HistType ht, EventType et)
Definition: HistoManager.cc:36
HistoManager(TDirectory *parent)
Definition: HistoManager.cc:5
et
define resolution functions of each parameter
static std::string nameForFlavor(HistType ht)
Definition: HistoManager.cc:14
TDirectory * beamHistDir
Definition: HistoManager.h:34