CMS 3D CMS Logo

DQMFileSaverPB.h
Go to the documentation of this file.
1 #ifndef DQMSERVICES_COMPONENTS_DQMFILESAVERPB_H
2 #define DQMSERVICES_COMPONENTS_DQMFILESAVERPB_H
3 
6 
7 #include <sys/time.h>
8 #include <string>
9 #include <mutex>
10 
11 #include "DQMFileSaverBase.h"
12 
13 namespace dqm {
14 
16  public:
18  ~DQMFileSaverPB() override;
19 
20  // used by the JsonWritingTimedPoolOutputModule,
21  // fms will be nullptr in such case
22  static boost::property_tree::ptree fillJson(int run,
23  int lumi,
24  const std::string& dataFilePathName,
25  const std::string& transferDestinationStr,
26  const std::string& mergeTypeStr,
28 
29  protected:
30  void initRun() const override;
31  void saveLumi(const FileParameters& fp) const override;
32  void saveRun(const FileParameters& fp) const override;
33  void savePB(DQMStore* store, std::string const& filename, int run, int lumi) const;
34 
40 
41  public:
42  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
43 
44  private:
45  int getMaxCompressedSize(int bufferSize) const;
46  ulong compressME(const TBufferFile& buffer, int maxOutputSize, char* compression_output) const;
47  };
48 
49 } // namespace dqm
50 
51 #endif // DQMSERVICES_COMPONENTS_DQMFILESAVERPB_H
std::string streamLabel_
std::string transferDestination_
DQMFileSaverPB(const edm::ParameterSet &ps)
static const std::string filename(const FileParameters &fp, bool useLumi=false)
~DQMFileSaverPB() override
void initRun() const override
void savePB(DQMStore *store, std::string const &filename, int run, int lumi) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ulong compressME(const TBufferFile &buffer, int maxOutputSize, char *compression_output) const
int getMaxCompressedSize(int bufferSize) const
void saveLumi(const FileParameters &fp) const override
void saveRun(const FileParameters &fp) const override
Definition: DQMStore.h:18
static boost::property_tree::ptree fillJson(int run, int lumi, const std::string &dataFilePathName, const std::string &transferDestinationStr, const std::string &mergeTypeStr, evf::FastMonitoringService *fms)
std::string mergeType_