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, ModuleDescription const& md,
42  ModuleCallingContext const*, bool isAtEnd,
43  MergeableRunProductMetadata const* = nullptr);
44  ~RunForOutput() override;
45 
46  RunAuxiliary const& runAuxiliary() const {return aux_;}
47  RunID const& id() const {return aux_.id();}
48  RunNumber_t run() const {return aux_.run();}
49  Timestamp const& beginTime() const {return aux_.beginTime();}
50  Timestamp const& endTime() const {return aux_.endTime();}
51  MergeableRunProductMetadata const* mergeableRunProductMetadata() const { return mergeableRunProductMetadata_; }
52 
53  private:
54  friend class edmtest::TestOutputModule; // For testing
55 
56  RunPrincipal const&
57  runPrincipal() const;
58 
60 
62 
63  static const std::string emptyString_;
64  };
65 }
66 #endif
Timestamp const & endTime() const
Definition: RunForOutput.h:50
RunID const & id() const
Definition: RunForOutput.h:47
Timestamp const & beginTime() const
Definition: RunForOutput.h:49
static const std::string emptyString_
Definition: RunForOutput.h:63
MergeableRunProductMetadata const * mergeableRunProductMetadata_
Definition: RunForOutput.h:61
RunAuxiliary const & aux_
Definition: RunForOutput.h:59
RunAuxiliary const & runAuxiliary() const
Definition: RunForOutput.h:46
HLT enums.
unsigned int RunNumber_t
MergeableRunProductMetadata const * mergeableRunProductMetadata() const
Definition: RunForOutput.h:51
RunNumber_t run() const
Definition: RunForOutput.h:48