CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ROOTFileReader.h
Go to the documentation of this file.
1 #ifndef _ROOTFILEREADER_H_
2 #define _ROOTFILEREADER_H_
3 
5 
6 // STL Headers
7 #include <string>
8 #include <sstream>
9 #include <iomanip>
10 #include <vector>
11 
12 class TChain;
13 class TBranch;
14 
15 
16 
17 namespace HCAL_HLX{
18 
19  struct LUMI_SECTION;
20 
21  class ROOTFileReader: public ROOTFileBase {
22 
23  public:
26 
27  // For manual replacment of files.
28  int SetFileName(const std::string &fileName);
29  int CreateFileNameList(); // Call after SetDir.
30 
31  int GetEntry(int entry);
33 
34  unsigned int GetEntries();
35 
36  private:
37 
38  int ReplaceFile(const std::vector< std::string > &fileNames);
39  void CreateTree();
40 
41  TChain *mChain_;
42 
43  // Branches
44  // LUMI_SECTION
45  TBranch *b_Header;
46  TBranch *b_Summary;
47  TBranch *b_Detail;
48 
49  static const unsigned int NUM_HLXS = 36;
50 
51  TBranch *b_ETSum[NUM_HLXS];
52  TBranch *b_Occupancy[NUM_HLXS];
53  TBranch *b_LHC[NUM_HLXS];
54 
55  };
56 }
57 
58 #endif
TBranch * b_Occupancy[NUM_HLXS]
int SetFileName(const std::string &fileName)
std::pair< std::string, MonitorElement * > entry
Definition: ME_MAP.h:8
int GetLumiSection(HCAL_HLX::LUMI_SECTION &section)
TBranch * b_ETSum[NUM_HLXS]
int ReplaceFile(const std::vector< std::string > &fileNames)
static const unsigned int NUM_HLXS
tuple fileNames
Definition: LaserDQM_cfg.py:34
TBranch * b_LHC[NUM_HLXS]