CMS 3D CMS Logo

DQMFileSaverOnline.h
Go to the documentation of this file.
1 #ifndef DQMSERVICES_COMPONENTS_DQMFILESAVEROUTPUT_H
2 #define DQMSERVICES_COMPONENTS_DQMFILESAVEROUTPUT_H
3 
6 
7 #include <sys/time.h>
8 #include <mutex>
9 #include <string>
10 
11 #include "DQMFileSaverBase.h"
12 
13 namespace dqm {
14 
16  public:
18  ~DQMFileSaverOnline() override;
19 
20  static const std::string fillOrigin(const std::string& filename,
21  const std::string& final_filename);
22 
23  protected:
24  void saveLumi(const FileParameters& fp) const override;
25  void saveRun(const FileParameters& fp) const override;
26 
27  protected:
30 
31  // snapshot making
32  struct SnapshotFiles {
35  };
36 
37  void makeSnapshot(const FileParameters& fp, bool final) const;
38  void appendSnapshot(SnapshotFiles new_snap) const;
39 
41  mutable std::list<SnapshotFiles> snapshots_;
42 
43  void checkError(const char* msg, const std::string& file, int status) const;
44 
45  public:
46  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
47 };
48 
49 } // dqm namespace
50 
51 #endif // DQMSERVICES_COMPONENTS_DQMFILESAVEROUTPUT_H
static boost::mutex mutex
Definition: Proxy.cc:11
static const std::string fillOrigin(const std::string &filename, const std::string &final_filename)
void saveRun(const FileParameters &fp) const override
static const std::string filename(const FileParameters &fp, bool useLumi=false)
void checkError(const char *msg, const std::string &file, int status) const
~DQMFileSaverOnline() override
void appendSnapshot(SnapshotFiles new_snap) const
void makeSnapshot(const FileParameters &fp, bool final) const
std::list< SnapshotFiles > snapshots_
tuple msg
Definition: mps_check.py:285
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void saveLumi(const FileParameters &fp) const override
DQMFileSaverOnline(const edm::ParameterSet &ps)