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
DQMFileSaverBase.h
dqm::DQMFileSaverBase::FileParameters
Definition: DQMFileSaverBase.h:33
dqm::DQMFileSaverBase::filename
static const std::string filename(const FileParameters &fp, bool useLumi=false)
Definition: DQMFileSaverBase.cc:92
dqm::DQMFileSaverPB::getMaxCompressedSize
int getMaxCompressedSize(int bufferSize) const
Definition: DQMFileSaverPB.cc:333
dqm::DQMFileSaverPB::DQMFileSaverPB
DQMFileSaverPB(const edm::ParameterSet &ps)
Definition: DQMFileSaverPB.cc:33
dqm::DQMFileSaverPB::fakeFilterUnitMode_
bool fakeFilterUnitMode_
Definition: DQMFileSaverPB.h:35
DQMStore.h
personalPlayback.fp
fp
Definition: personalPlayback.py:523
edmScanValgrind.buffer
buffer
Definition: edmScanValgrind.py:171
evf::FastMonitoringService
Definition: FastMonitoringService.h:71
dqm::legacy::DQMStore
Definition: DQMStore.h:727
dqm::DQMFileSaverPB::savePB
void savePB(DQMStore *store, std::string const &filename, int run, int lumi) const
Definition: DQMFileSaverPB.cc:223
dqm::DQMFileSaverPB::tag_
std::string tag_
Definition: DQMFileSaverPB.h:37
dqm::DQMFileSaverBase
Definition: DQMFileSaverBase.h:23
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
dqm::DQMFileSaverPB::transferDestination_
std::string transferDestination_
Definition: DQMFileSaverPB.h:38
dqm::DQMFileSaverPB::mergeType_
std::string mergeType_
Definition: DQMFileSaverPB.h:39
dqm::DQMFileSaverPB::compressME
ulong compressME(const TBufferFile &buffer, int maxOutputSize, char *compression_output) const
Definition: DQMFileSaverPB.cc:342
dqm::DQMFileSaverPB
Definition: DQMFileSaverPB.h:15
dqm::DQMFileSaverPB::~DQMFileSaverPB
~DQMFileSaverPB() override
dqm::DQMFileSaverPB::saveRun
void saveRun(const FileParameters &fp) const override
Definition: DQMFileSaverPB.cc:120
dqm::DQMFileSaverPB::saveLumi
void saveLumi(const FileParameters &fp) const override
Definition: DQMFileSaverPB.cc:64
writedatasetfile.run
run
Definition: writedatasetfile.py:27
dqm::DQMFileSaverPB::fillJson
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)
Definition: DQMFileSaverPB.cc:124
dqm::DQMFileSaverPB::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: DQMFileSaverPB.cc:206
dqm::DQMFileSaverPB::streamLabel_
std::string streamLabel_
Definition: DQMFileSaverPB.h:36
dqm
Definition: DQMStore.h:18
lumi
Definition: LumiSectionData.h:20
EDAnalyzer.h
dqm::DQMFileSaverPB::initRun
void initRun() const override
Definition: DQMFileSaverPB.cc:50