49 verbose_(
pset.getUntrackedParameter<
bool>(
"verbose")),
50 expectedProcessesWithProcessBlockProducts_(
52 expectedWriteProcessBlockTransitions_(
pset.getUntrackedParameter<
int>(
"expectedWriteProcessBlockTransitions")) {
59 LogAbsolute(
"TestLimitedOutput") <<
"limited write event";
65 LogAbsolute(
"TestLimitedOutput") <<
"limited writeLuminosityBlock";
72 LogAbsolute(
"TestLimitedOutput") <<
"limited writeProcessBlock";
80 throw cms::Exception(
"TestFailure") <<
"TestLimitedOutput::writeProcessBlock unexpected process name list";
87 LogAbsolute(
"TestLimitedOutput") <<
"limited respondToOpenInputFile";
93 LogAbsolute(
"TestLimitedOutput") <<
"limited respondToCloseInputFile";
98 LogAbsolute(
"TestLimitedOutput") <<
"limited globalBeginRun";
101 for (
auto const& branchIDList : *theBranchIDLists) {
102 LogAbsolute(
"TestLimitedOutput") <<
"A branchID list";
103 for (
auto const& branchID : branchIDList) {
104 LogAbsolute(
"TestLimitedOutput") <<
" limited branchID " << branchID;
112 return std::make_shared<int>(0);
116 LogAbsolute(
"TestLimitedOutput") <<
"limited globalEndRun";
121 LogAbsolute(
"TestLimitedOutput") <<
"limited globalBeginLuminosityBlock";
123 return std::make_shared<int>(0);
128 LogAbsolute(
"TestLimitedOutput") <<
"limited globalEndLuminosityBlock";
136 <<
"TestLimitedOutput::writeProcessBlock unexpected number of writeProcessBlock transitions";
143 OutputModule::fillDescription(
desc);
144 desc.addUntracked<
bool>(
"verbose",
true);
145 desc.addUntracked<std::vector<std::string>>(
"expectedProcessesWithProcessBlockProducts",
146 std::vector<std::string>());
147 desc.addUntracked<
int>(
"expectedWriteProcessBlockTransitions", -1);
void write(EventForOutput const &e) override
std::vector< BranchIDList > BranchIDLists
OutputProcessBlockHelper const & outputProcessBlockHelper() const
std::vector< std::string > const & processesWithProcessBlockProducts() const
std::shared_ptr< int > globalBeginRun(RunForOutput const &) const override
ProductList const & productList() const
int expectedWriteProcessBlockTransitions_
void addDefault(ParameterSetDescription const &psetDescription)
std::vector< std::string > expectedProcessesWithProcessBlockProducts_
BranchIDLists const * branchIDLists() const
TestLimitedOutput(ParameterSet const &pset)
#define DEFINE_FWK_MODULE(type)
void writeRun(RunForOutput const &) override
void writeLuminosityBlock(LuminosityBlockForOutput const &) override
void writeProcessBlock(ProcessBlockForOutput const &) override
void globalEndRun(RunForOutput const &) const override
void globalEndLuminosityBlock(LuminosityBlockForOutput const &) const override
~TestLimitedOutput() override
void respondToCloseInputFile(FileBlock const &) override
std::shared_ptr< int > globalBeginLuminosityBlock(LuminosityBlockForOutput const &) const override
Log< level::System, true > LogAbsolute
void respondToOpenInputFile(FileBlock const &) override
static void fillDescriptions(ConfigurationDescriptions &descriptions)
int countWriteProcessBlockTransitions_