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, const std::string& final_filename);
21 
22  protected:
23  void saveLumi(const FileParameters& fp) const override;
24  void saveRun(const FileParameters& fp) const override;
25 
26  protected:
29 
30  // snapshot making
31  struct SnapshotFiles {
34  };
35 
36  void makeSnapshot(const FileParameters& fp, bool final) const;
37  void appendSnapshot(SnapshotFiles new_snap) const;
38 
40  mutable std::list<SnapshotFiles> snapshots_;
41 
42  void checkError(const char* msg, const std::string& file, int status) const;
43 
44  public:
45  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
46  };
47 
48 } // namespace dqm
49 
50 #endif // DQMSERVICES_COMPONENTS_DQMFILESAVEROUTPUT_H
static std::mutex mutex
Definition: Proxy.cc:8
static const std::string fillOrigin(const std::string &filename, const std::string &final_filename)
static const std::string filename(const FileParameters &fp, bool useLumi=false)
void appendSnapshot(SnapshotFiles new_snap) const
void checkError(const char *msg, const std::string &file, int status) const
~DQMFileSaverOnline() override
std::list< SnapshotFiles > snapshots_
void saveRun(const FileParameters &fp) const override
tuple msg
Definition: mps_check.py:285
void makeSnapshot(const FileParameters &fp, bool final) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: DQMStore.h:18
DQMFileSaverOnline(const edm::ParameterSet &ps)
void saveLumi(const FileParameters &fp) const override