Main Page
Namespaces
Classes
Package Documentation
IOPool
Output
interface
TimeoutPoolOutputModule.h
Go to the documentation of this file.
1
#ifndef IOPool_Output_TimeoutPoolOutputModule_h
2
#define IOPool_Output_TimeoutPoolOutputModule_h
3
5
//
6
// Class TimeoutPoolOutputModule. Output module to POOL file with file
7
// closure based on timeout. First file has only one event, second
8
// file is closed after 15 seconds if at least one event was processed.
9
// Then timeout is increased to 30 seconds and 60 seconds. After that
10
// all other files are closed with timeout of 60 seconds.
11
//
12
// Created by Dmytro.Kovalskyi@cern.ch
13
//
15
16
#include "
IOPool/Output/interface/PoolOutputModule.h
"
17
18
namespace
edm
{
19
class
ModuleCallingContext;
20
class
ParameterSet
;
21
22
class
TimeoutPoolOutputModule
:
public
PoolOutputModule
{
23
public
:
24
explicit
TimeoutPoolOutputModule
(
ParameterSet
const
& ps);
25
virtual
~TimeoutPoolOutputModule
(){};
26
TimeoutPoolOutputModule
(
TimeoutPoolOutputModule
const
&) =
delete
;
// Disallow copying and moving
27
TimeoutPoolOutputModule
&
operator=
(
TimeoutPoolOutputModule
const
&) =
delete
;
// Disallow copying and moving
28
protected
:
29
virtual
bool
shouldWeCloseFile
()
const override
;
30
virtual
void
write
(
EventForOutput
const
&
e
)
override
;
31
32
private
:
33
mutable
time_t
m_lastEvent
;
34
mutable
unsigned
int
eventsWrittenInCurrentFile
;
35
mutable
int
m_timeout
;
36
};
37
}
38
39
#endif
edm::TimeoutPoolOutputModule
Definition:
TimeoutPoolOutputModule.h:22
edm::TimeoutPoolOutputModule::shouldWeCloseFile
virtual bool shouldWeCloseFile() const override
allow inheriting classes to override but still be able to call this method in the overridden version ...
Definition:
TimeoutPoolOutputModule.cc:19
edm::TimeoutPoolOutputModule::~TimeoutPoolOutputModule
virtual ~TimeoutPoolOutputModule()
Definition:
TimeoutPoolOutputModule.h:25
ParameterSet
Definition:
Functions.h:16
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
edm::TimeoutPoolOutputModule::m_timeout
int m_timeout
Definition:
TimeoutPoolOutputModule.h:35
edm::PoolOutputModule
Definition:
PoolOutputModule.h:33
PoolOutputModule.h
edm::TimeoutPoolOutputModule::write
virtual void write(EventForOutput const &e) override
Definition:
TimeoutPoolOutputModule.cc:6
edm::TimeoutPoolOutputModule::eventsWrittenInCurrentFile
unsigned int eventsWrittenInCurrentFile
Definition:
TimeoutPoolOutputModule.h:34
edm::EventForOutput
Definition:
EventForOutput.h:50
edm::TimeoutPoolOutputModule::TimeoutPoolOutputModule
TimeoutPoolOutputModule(ParameterSet const &ps)
Definition:
TimeoutPoolOutputModule.cc:11
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::TimeoutPoolOutputModule::operator=
TimeoutPoolOutputModule & operator=(TimeoutPoolOutputModule const &)=delete
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::TimeoutPoolOutputModule::m_lastEvent
time_t m_lastEvent
Definition:
TimeoutPoolOutputModule.h:33
Generated for CMSSW Reference Manual by
1.8.11