ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/andersj/HcalPlotter/scripts/HistoManager.h
Revision: 1.1
Committed: Wed Jul 20 11:34:58 2011 UTC (13 years, 9 months ago) by andersj
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Log Message:
inital version

File Contents

# User Rev Content
1 andersj 1.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    
27     static std::string nameForFlavor(HistType ht);
28     static std::string nameForEvent(EventType et);
29     private:
30     bool m_writeMode;
31     TDirectory* pedHistDir;
32     TDirectory* ledHistDir;
33     TDirectory* laserHistDir;
34     TDirectory* beamHistDir;
35     TDirectory* otherHistDir;
36     };
37    
38     #endif