48 verbose_(
pset.getUntrackedParameter<
bool>(
"verbose")),
49 expectedProcessesWithProcessBlockProducts_(
51 expectedWriteProcessBlockTransitions_(
pset.getUntrackedParameter<
int>(
"expectedWriteProcessBlockTransitions")) {
58 LogAbsolute(
"TestGlobalOutput") <<
"global write event";
64 LogAbsolute(
"TestGlobalOutput") <<
"global writeLuminosityBlock";
71 LogAbsolute(
"TestGlobalOutput") <<
"global writeProcessBlock";
79 throw cms::Exception(
"TestFailure") <<
"TestGlobalOutput::writeProcessBlock unexpected process name list";
86 LogAbsolute(
"TestGlobalOutput") <<
"global respondToOpenInputFile";
92 LogAbsolute(
"TestGlobalOutput") <<
"global respondToCloseInputFile";
97 LogAbsolute(
"TestGlobalOutput") <<
"global globalBeginRun";
100 for (
auto const& branchIDList : *theBranchIDLists) {
101 LogAbsolute(
"TestGlobalOutput") <<
"A branchID list";
102 for (
auto const& branchID : branchIDList) {
103 LogAbsolute(
"TestGlobalOutput") <<
" global branchID " << branchID;
111 return std::make_shared<int>(0);
115 LogAbsolute(
"TestGlobalOutput") <<
"global globalEndRun";
120 LogAbsolute(
"TestGlobalOutput") <<
"global globalBeginLuminosityBlock";
122 return std::make_shared<int>(0);
127 LogAbsolute(
"TestGlobalOutput") <<
"global globalEndLuminosityBlock";
135 <<
"TestGlobalOutput::writeProcessBlock unexpected number of writeProcessBlock transitions";
142 OutputModule::fillDescription(
desc);
143 desc.addUntracked<
bool>(
"verbose",
true);
144 desc.addUntracked<std::vector<std::string>>(
"expectedProcessesWithProcessBlockProducts",
145 std::vector<std::string>());
146 desc.addUntracked<
int>(
"expectedWriteProcessBlockTransitions", -1);
void globalEndLuminosityBlock(LuminosityBlockForOutput const &) const override
std::vector< BranchIDList > BranchIDLists
void writeProcessBlock(ProcessBlockForOutput const &) override
OutputProcessBlockHelper const & outputProcessBlockHelper() const
void writeRun(RunForOutput const &) override
std::vector< std::string > const & processesWithProcessBlockProducts() const
ProductList const & productList() const
std::vector< std::string > expectedProcessesWithProcessBlockProducts_
std::shared_ptr< int > globalBeginLuminosityBlock(LuminosityBlockForOutput const &) const override
int countWriteProcessBlockTransitions_
TestGlobalOutput(ParameterSet const &pset)
~TestGlobalOutput() override
void addDefault(ParameterSetDescription const &psetDescription)
BranchIDLists const * branchIDLists() const
void globalEndRun(RunForOutput const &) const override
void write(EventForOutput const &e) override
#define DEFINE_FWK_MODULE(type)
void respondToCloseInputFile(FileBlock const &) override
void writeLuminosityBlock(LuminosityBlockForOutput const &) override
static void fillDescriptions(ConfigurationDescriptions &descriptions)
int expectedWriteProcessBlockTransitions_
void respondToOpenInputFile(FileBlock const &) override
Log< level::System, true > LogAbsolute
std::shared_ptr< int > globalBeginRun(RunForOutput const &) const override