CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ROOTSchema.h
Go to the documentation of this file.
1 #ifndef ROOTSCHEMA_H
2 #define ROOTSCHEMA_H
3 
4 /*
5 
6 Author: Adam Hunt - Princeton University
7 Date: 2007-10-05
8 
9 */
10 
13 
14 #include <string>
15 
16 namespace HCAL_HLX{
17 
18  class ROOTFileWriter;
19  class ROOTFileMerger;
20  class ROOTFileTransfer;
21  class HTMLGenerator;
22 
23  struct LUMI_SECTION;
24 
25  class ROOTSchema: private TimeStamp, private FileToolKit{
26 
27  public:
28 
29  ROOTSchema();
30  ~ROOTSchema();
31 
32  void SetLSDir( const std::string &lsDir );
33  void SetMergeDir( const std::string &mergeDir );
34 
35 
36  void SetMergeFiles( const bool bMerge );
37 
38  void SetTransferFiles( const bool bTransfer );
39 
40  void SetFileType( const std::string &fileType );
41  void SetHistoBins( const int NBins, const double XMin, const double XMax );
42  bool ProcessSection(const HCAL_HLX::LUMI_SECTION &lumiSection);
43 
44  void SetWebDir( const std::string &webDir );
45  void SetCreateWebPage( const bool bWBM );
46  void EndRun();
47 
48  private:
49 
52  HCAL_HLX::HTMLGenerator *LumiHTML_;
54 
55  unsigned int previousRun_;
56  unsigned int firstSectionNumber_;
57  unsigned int startTime_;
58 
59  bool bMerge_;
60  bool bWBM_;
61  bool bTransfer_;
62 
64  std::string fileType_;
65 
66  std::string lsDir_;
67  std::string mergeDir_;
68 
69  std::string dateDir_;
70  std::string runDir_;
71 
72  // Setting a directory implies that you want to do something.
73 
74  // Making the file type "ET" implies true.
75  void SetEtSumOnly( const bool bEtSumOnly);
76  };
77 }
78 
79 #endif
void SetWebDir(const std::string &webDir)
Definition: ROOTSchema.cc:166
void SetHistoBins(const int NBins, const double XMin, const double XMax)
Definition: ROOTSchema.cc:171
unsigned int firstSectionNumber_
Definition: ROOTSchema.h:56
void SetLSDir(const std::string &lsDir)
Definition: ROOTSchema.cc:123
void SetCreateWebPage(const bool bWBM)
Definition: ROOTSchema.cc:161
void SetFileType(const std::string &fileType)
Definition: ROOTSchema.cc:92
HCAL_HLX::ROOTFileMerger * RFMerger_
Definition: ROOTSchema.h:50
unsigned int previousRun_
Definition: ROOTSchema.h:55
HCAL_HLX::ROOTFileTransfer * RFTransfer_
Definition: ROOTSchema.h:51
HCAL_HLX::HTMLGenerator * LumiHTML_
Definition: ROOTSchema.h:52
std::string mergeDir_
Definition: ROOTSchema.h:67
void SetMergeFiles(const bool bMerge)
Definition: ROOTSchema.cc:133
HCAL_HLX::ROOTFileWriter * RFWriter_
Definition: ROOTSchema.h:53
bool ProcessSection(const HCAL_HLX::LUMI_SECTION &lumiSection)
Definition: ROOTSchema.cc:178
std::string runDir_
Definition: ROOTSchema.h:70
std::string dateDir_
Definition: ROOTSchema.h:69
void SetTransferFiles(const bool bTransfer)
Definition: ROOTSchema.cc:151
std::string fileType_
Definition: ROOTSchema.h:64
void SetEtSumOnly(const bool bEtSumOnly)
Definition: ROOTSchema.cc:87
void SetMergeDir(const std::string &mergeDir)
Definition: ROOTSchema.cc:141
unsigned int startTime_
Definition: ROOTSchema.h:57
std::string lsDir_
Definition: ROOTSchema.h:66