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
dqm::DQMFileSaverOnline::SnapshotFiles
Definition: DQMFileSaverOnline.h:31
DQMFileSaverBase.h
dqm::DQMFileSaverOnline::fillOrigin
static const std::string fillOrigin(const std::string &filename, const std::string &final_filename)
Definition: DQMFileSaverOnline.cc:144
dqm::DQMFileSaverBase::FileParameters
Definition: DQMFileSaverBase.h:33
mps_update.status
status
Definition: mps_update.py:69
dqm::DQMFileSaverBase::filename
static const std::string filename(const FileParameters &fp, bool useLumi=false)
Definition: DQMFileSaverBase.cc:84
dqm::DQMFileSaverOnline::~DQMFileSaverOnline
~DQMFileSaverOnline() override
dqm::DQMFileSaverOnline::makeSnapshot
void makeSnapshot(const FileParameters &fp, bool final) const
Definition: DQMFileSaverOnline.cc:49
DQMStore.h
personalPlayback.fp
fp
Definition: personalPlayback.py:523
mps_check.msg
tuple msg
Definition: mps_check.py:285
dqm::DQMFileSaverOnline::keepBackupLumi_
bool keepBackupLumi_
Definition: DQMFileSaverOnline.h:28
dqm::DQMFileSaverOnline::checkError
void checkError(const char *msg, const std::string &file, int status) const
Definition: DQMFileSaverOnline.cc:136
dqm::DQMFileSaverOnline::appendSnapshot
void appendSnapshot(SnapshotFiles new_snap) const
Definition: DQMFileSaverOnline.cc:114
dqm::DQMFileSaverOnline
Definition: DQMFileSaverOnline.h:15
dqm::DQMFileSaverOnline::saveRun
void saveRun(const FileParameters &fp) const override
Definition: DQMFileSaverOnline.cc:47
dqm::DQMFileSaverOnline::snapshots_
std::list< SnapshotFiles > snapshots_
Definition: DQMFileSaverOnline.h:40
dqm::DQMFileSaverOnline::saveLumi
void saveLumi(const FileParameters &fp) const override
Definition: DQMFileSaverOnline.cc:38
dqm::DQMFileSaverOnline::SnapshotFiles::meta
std::string meta
Definition: DQMFileSaverOnline.h:33
mutex
static boost::mutex mutex
Definition: Proxy.cc:9
dqm::DQMFileSaverBase
Definition: DQMFileSaverBase.h:23
dqm::DQMFileSaverOnline::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: DQMFileSaverOnline.cc:164
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
dqm::DQMFileSaverOnline::SnapshotFiles::data
std::string data
Definition: DQMFileSaverOnline.h:32
edm::ParameterSet
Definition: ParameterSet.h:36
dqm::DQMFileSaverOnline::DQMFileSaverOnline
DQMFileSaverOnline(const edm::ParameterSet &ps)
Definition: DQMFileSaverOnline.cc:31
FrontierConditions_GlobalTag_cff.file
file
Definition: FrontierConditions_GlobalTag_cff.py:13
dqm::DQMFileSaverOnline::backupLumiCount_
int backupLumiCount_
Definition: DQMFileSaverOnline.h:27
dqm::DQMFileSaverOnline::snapshots_lock_
std::mutex snapshots_lock_
Definition: DQMFileSaverOnline.h:39
dqm
Definition: DQMStore.h:18
EDAnalyzer.h