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(); }
53  MergeableRunProductMetadata const* mergeableRunProductMetadata() const { return mergeableRunProductMetadata_; }
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
Timestamp const & endTime() const
Definition: RunForOutput.h:52
RunID const & id() const
Definition: RunForOutput.h:49
Timestamp const & beginTime() const
Definition: RunForOutput.h:51
static const std::string emptyString_
Definition: RunForOutput.h:64
MergeableRunProductMetadata const * mergeableRunProductMetadata_
Definition: RunForOutput.h:62
RunAuxiliary const & aux_
Definition: RunForOutput.h:60
RunAuxiliary const & runAuxiliary() const
Definition: RunForOutput.h:48
HLT enums.
unsigned int RunNumber_t
MergeableRunProductMetadata const * mergeableRunProductMetadata() const
Definition: RunForOutput.h:53
RunNumber_t run() const
Definition: RunForOutput.h:50