CMS 3D CMS Logo

Standalone.h
Go to the documentation of this file.
1 #ifndef DQMSERVICES_CORE_STANDALONE_H
2 # define DQMSERVICES_CORE_STANDALONE_H
3 # if !WITHOUT_CMS_FRAMEWORK
12 # else
13 # include <memory>
14 # include <string>
15 # include <vector>
16 # include <map>
17 
18 namespace edm
19 {
21  { return "CMSSW_STANDALONE"; }
22 
23  class ParameterSet
24  {
25  public:
26  template <class T> static const T &
27  getUntrackedParameter(const char * /* key */, const T &value)
28  { return value; }
29  };
30 
31  struct ServiceToken
32  {
33  ServiceToken(int) {}
34  };
35 
36  class ServiceRegistry
37  {
38  public:
39  struct Operate
40  {
41  Operate(const ServiceToken &) {}
42  };
43 
44  static int createSet(const std::vector<ParameterSet> &) { return 0; }
45  };
46 
47  template <class T>
48  class Service
49  {
50  public:
51  bool isAvailable() { return false; }
52  T *operator->()
53  {
54  static char buf[sizeof(T)]; static T *x;
55  if (! x) x = new (buf) T(ParameterSet());
56  return x;
57  }
58  T &operator*() { return * operator->(); }
59  };
60 
61  namespace service {
62  struct SystemBounds {
63  unsigned int maxNumberOfStreams() const { return 0; }
64  };
65  }
66 
67  struct PreallocationSignal {
68  template <typename T>
69  void connect( T&& ) {};
70  };
71 
72  class ActivityRegistry
73  {
74  public:
75  template <typename T>
76  void watchPostSourceRun(void*, T) {}
77 
78  template <typename T>
79  void watchPostSourceLumi(void*, T) {}
80 
81  template <typename T>
82  void watchPostGlobalBeginRun(void*, T) {}
83 
84  template <typename T>
85  void watchPostGlobalBeginLumi(void*, T) {}
86 
87  template <typename T>
88  void watchPostGlobalEndRun(void*, T) {}
89 
90  template <typename T>
91  void watchPostGlobalEndLumi(void*, T) {}
92 
93  PreallocationSignal preallocateSignal_;
94  };
95 
96  class LuminosityBlockID
97  {
98  public:
99  unsigned int run() const { return 0; }
100  unsigned int luminosityBlock() const { return 0; }
101  };
102 
103  class GlobalContext
104  {
105  public:
106  LuminosityBlockID luminosityBlockID() const { return LuminosityBlockID(); }
107  };
108 
109  class JobReport
110  {
111  public:
112  JobReport(const edm::ParameterSet &) {}
113  void reportAnalysisFile(const std::string &, const std::map<std::string, std::string> &) {}
114  };
115 }
116 # endif // WITHOUT_CMS_FRAMEWORK
117 #endif // DQMSERVICES_CORE_STANDALONE_H
T getUntrackedParameter(std::string const &, T const &) const
Definition: value.py:1
std::string getReleaseVersion()
edm::Handle< T > connect(const T *&ptr, edm::EDGetTokenT< T > token, const edm::Event &evt)
HLT enums.
MatrixMeschach operator*(const MatrixMeschach &mat1, const MatrixMeschach &mat2)
long double T