DQMServices
FileIO
plugins
DQMFileSaverPB.h
Go to the documentation of this file.
1
#ifndef DQMSERVICES_COMPONENTS_DQMFILESAVERPB_H
2
#define DQMSERVICES_COMPONENTS_DQMFILESAVERPB_H
3
4
#include "
FWCore/Framework/interface/global/EDAnalyzer.h
"
5
#include "
DQMServices/Core/interface/DQMStore.h
"
6
7
#include <sys/time.h>
8
#include <string>
9
#include <mutex>
10
11
#include "
DQMFileSaverBase.h
"
12
13
namespace
dqm
{
14
15
class
DQMFileSaverPB
:
public
DQMFileSaverBase
{
16
public
:
17
DQMFileSaverPB
(
const
edm::ParameterSet
& ps);
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,
27
evf::FastMonitoringService
* fms);
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
35
bool
fakeFilterUnitMode_
;
36
std::string
streamLabel_
;
37
std::string
tag_
;
38
mutable
std::string
transferDestination_
;
39
mutable
std::string
mergeType_
;
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:155
dqm::legacy::DQMStore
Definition:
DQMStore.h:728
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
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
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
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
Generated for CMSSW Reference Manual by
1.8.16