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
RunIndex index() const
Definition: RunForOutput.cc:32
RunAuxiliary const & runAuxiliary() const
Definition: RunForOutput.h:54
Timestamp const & beginTime() const
Definition: RunForOutput.h:57
RunNumber_t run() const
Definition: RunAuxiliary.h:31
RunNumber_t run() const
Definition: RunForOutput.h:56
friend class edmtest::TestOutputModule
Definition: RunForOutput.h:66
Timestamp const & endTime() const
Definition: RunAuxiliary.h:30
static const std::string emptyString_
Definition: RunForOutput.h:74
RunID const & id() const
Definition: RunAuxiliary.h:27
Timestamp const & beginTime() const
Definition: RunAuxiliary.h:29
MergeableRunProductMetadata const * mergeableRunProductMetadata_
Definition: RunForOutput.h:72
RunAuxiliary const & aux_
Definition: RunForOutput.h:70
RunPrincipal const & runPrincipal() const
Definition: RunForOutput.cc:28
RunForOutput(RunTransitionInfo const &, ModuleDescription const &, ModuleCallingContext const *, bool isAtEnd, MergeableRunProductMetadata const *=nullptr)
Definition: RunForOutput.cc:10
Timestamp const & endTime() const
Definition: RunForOutput.h:58
RunID const & id() const
Definition: RunForOutput.h:55
HLT enums.
unsigned int RunNumber_t
~RunForOutput() override
Definition: RunForOutput.cc:26
MergeableRunProductMetadata const * mergeableRunProductMetadata() const
Definition: RunForOutput.h:59