CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripTFile.h
Go to the documentation of this file.
1 // Last commit: $Id: SiStripTFile.h,v 1.2 2008/02/21 14:19:03 bainbrid Exp $
2 
3 #ifndef DQM_SiStripCommissioningClients_SiStripTFile_H
4 #define DQM_SiStripCommissioningClients_SiStripTFile_H
5 
7 #include "TFile.h"
8 #include <vector>
9 #include <string>
10 #include <map>
11 
12 class TDirectory;
13 class TH1;
14 
22 class SiStripTFile : public TFile {
23 
24  public:
25 
26  // -------------------- Constructors, destructors, typedefs --------------------
27 
29  SiStripTFile( const char* fname,
30  Option_t* option = "UPDATE",
31  const char* ftitle = "",
32  Int_t compress = 1 );
33 
35  virtual ~SiStripTFile();
36 
38  typedef std::vector<TH1*> Histos;
39 
41  typedef std::map< std::string, Histos > HistosMap;
42 
43  // -------------------- Public interface --------------------
44 
49 
53  TDirectory* readDQMFormat();
54 
57  bool queryDQMFormat();
58 
60  TDirectory* top();
61 
63  TDirectory* dqmTop();
64 
66  TDirectory* sistripTop();
67 
70 
73 
75  void addDevice(unsigned int key);
76 
78  TDirectory* addPath( const std::string& );
79 
81  void findHistos(TDirectory*, std::map< std::string, std::vector<TH1*> >*);
82 
85  void dirContent(TDirectory*, std::vector<TDirectory*>*, std::map< std::string, std::vector<TH1*> >*);
86 
87  private:
88 
91 
94 
96  TDirectory* top_;
97 
99  TDirectory* dqmTop_;
100 
102  TDirectory* sistripTop_;
103 
106 
107 };
108 
109 #endif // DQM_SiStripCommissioningClients_SiStripTFile_H
void dirContent(TDirectory *, std::vector< TDirectory * > *, std::map< std::string, std::vector< TH1 * > > *)
TDirectory * setDQMFormat(sistrip::RunType, sistrip::View)
Definition: SiStripTFile.cc:36
virtual ~SiStripTFile()
Definition: SiStripTFile.cc:32
TDirectory * addPath(const std::string &)
sistrip::View view_
Definition: SiStripTFile.h:93
TDirectory * sistripTop_
Definition: SiStripTFile.h:102
TDirectory * dqmTop()
std::vector< TH1 * > Histos
Definition: SiStripTFile.h:38
TDirectory * readDQMFormat()
Definition: SiStripTFile.cc:71
bool queryDQMFormat()
sistrip::RunType runType_
Definition: SiStripTFile.h:90
TDirectory * top_
Definition: SiStripTFile.h:96
sistrip::RunType & runType()
std::map< std::string, Histos > HistosMap
Definition: SiStripTFile.h:41
void findHistos(TDirectory *, std::map< std::string, std::vector< TH1 * > > *)
sistrip::View & View()
TDirectory * sistripTop()
TDirectory * dqmTop_
Definition: SiStripTFile.h:99
string fname
main script
: Adds functionality to TFile to ease building and navigation of TFiles containing DQM histograms...
Definition: SiStripTFile.h:22
TDirectory * top()
list key
Definition: combine.py:13
SiStripTFile(const char *fname, Option_t *option="UPDATE", const char *ftitle="", Int_t compress=1)
Definition: SiStripTFile.cc:15
void addDevice(unsigned int key)