CMS 3D CMS Logo

RunForOutput.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_RunForOutput_h
2 #define FWCore_Framework_RunForOutput_h
3 
4 // -*- C++ -*-
5 //
6 // Package: Framework
7 // Class : RunForOutput
8 //
16 /*----------------------------------------------------------------------
17 
18 ----------------------------------------------------------------------*/
19 
25 
26 #include <memory>
27 #include <string>
28 #include <typeinfo>
29 #include <vector>
30 
31 namespace edmtest {
32  class TestOutputModule;
33 }
34 
35 namespace edm {
36  class MergeableRunProductMetadata;
37  class ModuleCallingContext;
38 
40  public:
41  RunForOutput(RunPrincipal const& rp,
42  ModuleDescription const& md,
43  ModuleCallingContext const*,
44  bool isAtEnd,
45  MergeableRunProductMetadata const* = nullptr);
46  ~RunForOutput() override;
47 
48  RunAuxiliary const& runAuxiliary() const { return aux_; }
49  RunID const& id() const { return aux_.id(); }
50  RunNumber_t run() const { return aux_.run(); }
51  Timestamp const& beginTime() const { return aux_.beginTime(); }
52  Timestamp const& endTime() const { return aux_.endTime(); }
54 
55  private:
56  friend class edmtest::TestOutputModule; // For testing
57 
58  RunPrincipal const& runPrincipal() const;
59 
61 
63 
64  static const std::string emptyString_;
65  };
66 } // namespace edm
67 #endif
edm::RunNumber_t
unsigned int RunNumber_t
Definition: RunLumiEventNumber.h:14
edm::RunID
Definition: RunID.h:28
edm::RunForOutput::id
RunID const & id() const
Definition: RunForOutput.h:49
edmtest
Definition: AlignPCLThresholdsReader.cc:12
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::RunForOutput::RunForOutput
RunForOutput(RunPrincipal const &rp, ModuleDescription const &md, ModuleCallingContext const *, bool isAtEnd, MergeableRunProductMetadata const *=nullptr)
Definition: RunForOutput.cc:9
edm::ModuleDescription
Definition: ModuleDescription.h:21
edm::OccurrenceForOutput
Definition: OccurrenceForOutput.h:45
edm::RunForOutput
Definition: RunForOutput.h:39
edm::MergeableRunProductMetadata
Definition: MergeableRunProductMetadata.h:52
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::RunForOutput::mergeableRunProductMetadata_
MergeableRunProductMetadata const * mergeableRunProductMetadata_
Definition: RunForOutput.h:62
edm::RunForOutput::runPrincipal
RunPrincipal const & runPrincipal() const
Definition: RunForOutput.cc:20
edm::RunForOutput::endTime
Timestamp const & endTime() const
Definition: RunForOutput.h:52
edm::RunAuxiliary::beginTime
Timestamp const & beginTime() const
Definition: RunAuxiliary.h:29
edm::RunAuxiliary::endTime
Timestamp const & endTime() const
Definition: RunAuxiliary.h:30
edm::RunForOutput::emptyString_
static const std::string emptyString_
Definition: RunForOutput.h:64
edm::RunForOutput::runAuxiliary
RunAuxiliary const & runAuxiliary() const
Definition: RunForOutput.h:48
edm::RunForOutput::~RunForOutput
~RunForOutput() override
Definition: RunForOutput.cc:18
edm::RunForOutput::run
RunNumber_t run() const
Definition: RunForOutput.h:50
Wrapper.h
Frameworkfwd.h
edm::RunAuxiliary::run
RunNumber_t run() const
Definition: RunAuxiliary.h:31
RunAuxiliary.h
edm::RunForOutput::TestOutputModule
friend class edmtest::TestOutputModule
Definition: RunForOutput.h:56
PrincipalGetAdapter.h
edm::RunAuxiliary::id
RunID const & id() const
Definition: RunAuxiliary.h:27
OccurrenceForOutput.h
edm::RunForOutput::mergeableRunProductMetadata
MergeableRunProductMetadata const * mergeableRunProductMetadata() const
Definition: RunForOutput.h:53
edm::RunPrincipal
Definition: RunPrincipal.h:34
edm::RunForOutput::aux_
RunAuxiliary const & aux_
Definition: RunForOutput.h:60
edm::RunForOutput::beginTime
Timestamp const & beginTime() const
Definition: RunForOutput.h:51
edm::RunAuxiliary
Definition: RunAuxiliary.h:15
edm::ModuleCallingContext
Definition: ModuleCallingContext.h:29
edm::Timestamp
Definition: Timestamp.h:30