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 
26 
27 #include <memory>
28 #include <string>
29 #include <typeinfo>
30 #include <vector>
31 
32 namespace edmtest {
33  class TestOutputModule;
34 }
35 
36 namespace edm {
37  class MergeableRunProductMetadata;
38  class ModuleCallingContext;
39 
41  public:
43  ModuleDescription const&,
44  ModuleCallingContext const*,
45  bool isAtEnd,
46  MergeableRunProductMetadata const* = nullptr);
48  ModuleDescription const&,
49  ModuleCallingContext const*,
50  bool isAtEnd,
51  MergeableRunProductMetadata const* = nullptr);
52  ~RunForOutput() override;
53 
54  RunAuxiliary const& runAuxiliary() const { return aux_; }
55  RunID const& id() const { return aux_.id(); }
56  RunNumber_t run() const { return aux_.run(); }
57  Timestamp const& beginTime() const { return aux_.beginTime(); }
58  Timestamp const& endTime() const { return aux_.endTime(); }
60 
63  RunIndex index() const;
64 
65  private:
66  friend class edmtest::TestOutputModule; // For testing
67 
68  RunPrincipal const& runPrincipal() const;
69 
71 
73 
74  static const std::string emptyString_;
75  };
76 } // namespace edm
77 #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:55
edmtest
Definition: AlignPCLThresholdsReader.cc:11
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::RunTransitionInfo
Definition: TransitionInfoTypes.h:64
edm::RunForOutput::index
RunIndex index() const
Definition: RunForOutput.cc:32
edm::ModuleDescription
Definition: ModuleDescription.h:21
edm::OccurrenceForOutput
Definition: OccurrenceForOutput.h:45
edm::RunForOutput
Definition: RunForOutput.h:40
edm::MergeableRunProductMetadata
Definition: MergeableRunProductMetadata.h:52
RunIndex.h
edm::RunForOutput::RunForOutput
RunForOutput(RunTransitionInfo const &, ModuleDescription const &, ModuleCallingContext const *, bool isAtEnd, MergeableRunProductMetadata const *=nullptr)
Definition: RunForOutput.cc:10
edm::RunForOutput::mergeableRunProductMetadata_
MergeableRunProductMetadata const * mergeableRunProductMetadata_
Definition: RunForOutput.h:72
edm::RunForOutput::runPrincipal
RunPrincipal const & runPrincipal() const
Definition: RunForOutput.cc:28
edm::RunForOutput::endTime
Timestamp const & endTime() const
Definition: RunForOutput.h:58
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:74
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::RunForOutput::runAuxiliary
RunAuxiliary const & runAuxiliary() const
Definition: RunForOutput.h:54
edm::RunForOutput::~RunForOutput
~RunForOutput() override
Definition: RunForOutput.cc:26
edm::RunForOutput::run
RunNumber_t run() const
Definition: RunForOutput.h:56
Wrapper.h
Frameworkfwd.h
edm::RunAuxiliary::run
RunNumber_t run() const
Definition: RunAuxiliary.h:31
RunAuxiliary.h
edm::RunIndex
Definition: RunIndex.h:32
edm::RunForOutput::TestOutputModule
friend class edmtest::TestOutputModule
Definition: RunForOutput.h:66
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:59
edm::RunPrincipal
Definition: RunPrincipal.h:34
edm::RunForOutput::aux_
RunAuxiliary const & aux_
Definition: RunForOutput.h:70
edm::RunForOutput::beginTime
Timestamp const & beginTime() const
Definition: RunForOutput.h:57
edm::RunAuxiliary
Definition: RunAuxiliary.h:15
edm::ModuleCallingContext
Definition: ModuleCallingContext.h:29
edm::Timestamp
Definition: Timestamp.h:30