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:
42  ModuleDescription const&,
43  ModuleCallingContext const*,
44  bool isAtEnd,
45  MergeableRunProductMetadata const* = nullptr);
47  ModuleDescription const&,
48  ModuleCallingContext const*,
49  bool isAtEnd,
50  MergeableRunProductMetadata const* = nullptr);
51  ~RunForOutput() override;
52 
53  RunAuxiliary const& runAuxiliary() const { return aux_; }
54  RunID const& id() const { return aux_.id(); }
55  RunNumber_t run() const { return aux_.run(); }
56  Timestamp const& beginTime() const { return aux_.beginTime(); }
57  Timestamp const& endTime() const { return aux_.endTime(); }
59 
60  private:
61  friend class edmtest::TestOutputModule; // For testing
62 
63  RunPrincipal const& runPrincipal() const;
64 
66 
68 
69  static const std::string emptyString_;
70  };
71 } // namespace edm
72 #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:54
edmtest
Definition: AlignPCLThresholdsReader.cc:12
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::RunTransitionInfo
Definition: TransitionInfoTypes.h:64
edm::ModuleDescription
Definition: ModuleDescription.h:21
edm::OccurrenceForOutput
Definition: OccurrenceForOutput.h:45
edm::RunForOutput
Definition: RunForOutput.h:39
edm::MergeableRunProductMetadata
Definition: MergeableRunProductMetadata.h:52
edm::RunForOutput::RunForOutput
RunForOutput(RunTransitionInfo const &, ModuleDescription const &, ModuleCallingContext const *, bool isAtEnd, MergeableRunProductMetadata const *=nullptr)
Definition: RunForOutput.cc:10
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::RunForOutput::mergeableRunProductMetadata_
MergeableRunProductMetadata const * mergeableRunProductMetadata_
Definition: RunForOutput.h:67
edm::RunForOutput::runPrincipal
RunPrincipal const & runPrincipal() const
Definition: RunForOutput.cc:28
edm::RunForOutput::endTime
Timestamp const & endTime() const
Definition: RunForOutput.h:57
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:69
edm::RunForOutput::runAuxiliary
RunAuxiliary const & runAuxiliary() const
Definition: RunForOutput.h:53
edm::RunForOutput::~RunForOutput
~RunForOutput() override
Definition: RunForOutput.cc:26
edm::RunForOutput::run
RunNumber_t run() const
Definition: RunForOutput.h:55
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:61
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:58
edm::RunPrincipal
Definition: RunPrincipal.h:34
edm::RunForOutput::aux_
RunAuxiliary const & aux_
Definition: RunForOutput.h:65
edm::RunForOutput::beginTime
Timestamp const & beginTime() const
Definition: RunForOutput.h:56
edm::RunAuxiliary
Definition: RunAuxiliary.h:15
edm::ModuleCallingContext
Definition: ModuleCallingContext.h:29
edm::Timestamp
Definition: Timestamp.h:30