test
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 
2 #ifndef DQM_SiStripCommissioningClients_SiStripTFile_H
3 #define DQM_SiStripCommissioningClients_SiStripTFile_H
4 
6 #include "TFile.h"
7 #include <vector>
8 #include <string>
9 #include <map>
10 
11 class TDirectory;
12 class TH1;
13 
21 class SiStripTFile : public TFile {
22 
23  public:
24 
25  // -------------------- Constructors, destructors, typedefs --------------------
26 
28  SiStripTFile( const char* fname,
29  Option_t* option = "UPDATE",
30  const char* ftitle = "",
31  Int_t compress = 1 );
32 
34  virtual ~SiStripTFile();
35 
37  typedef std::vector<TH1*> Histos;
38 
40  typedef std::map< std::string, Histos > HistosMap;
41 
42  // -------------------- Public interface --------------------
43 
48 
52  TDirectory* readDQMFormat();
53 
56  bool queryDQMFormat();
57 
59  TDirectory* top();
60 
62  TDirectory* dqmTop();
63 
65  TDirectory* sistripTop();
66 
69 
72 
74  void addDevice(unsigned int key);
75 
77  TDirectory* addPath( const std::string& );
78 
80  void findHistos(TDirectory*, std::map< std::string, std::vector<TH1*> >*);
81 
84  void dirContent(TDirectory*, std::vector<TDirectory*>*, std::map< std::string, std::vector<TH1*> >*);
85 
86  private:
87 
90 
93 
95  TDirectory* top_;
96 
98  TDirectory* dqmTop_;
99 
101  TDirectory* sistripTop_;
102 
105 
106 };
107 
108 #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:35
virtual ~SiStripTFile()
Definition: SiStripTFile.cc:31
TDirectory * addPath(const std::string &)
sistrip::View view_
Definition: SiStripTFile.h:92
TDirectory * sistripTop_
Definition: SiStripTFile.h:101
TDirectory * dqmTop()
std::vector< TH1 * > Histos
Definition: SiStripTFile.h:37
TDirectory * readDQMFormat()
Definition: SiStripTFile.cc:70
bool queryDQMFormat()
sistrip::RunType runType_
Definition: SiStripTFile.h:89
TDirectory * top_
Definition: SiStripTFile.h:95
sistrip::RunType & runType()
std::map< std::string, Histos > HistosMap
Definition: SiStripTFile.h:40
void findHistos(TDirectory *, std::map< std::string, std::vector< TH1 * > > *)
sistrip::View & View()
TDirectory * sistripTop()
TDirectory * dqmTop_
Definition: SiStripTFile.h:98
string fname
main script
: Adds functionality to TFile to ease building and navigation of TFiles containing DQM histograms...
Definition: SiStripTFile.h:21
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:14
void addDevice(unsigned int key)