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
16 # else
17 # include <memory>
18 # include <string>
19 # include <vector>
20 # include <map>
21 
22 namespace edm
23 {
25  { return "CMSSW_STANDALONE"; }
26 
27  class ParameterSet
28  {
29  public:
30  template <class T> static const T &
31  getUntrackedParameter(const char * /* key */, const T &value)
32  { return value; }
33  };
34 
35  struct ServiceToken
36  {
37  ServiceToken(int) {}
38  };
39 
40  class ServiceRegistry
41  {
42  public:
43  struct Operate
44  {
45  Operate(const ServiceToken &) {}
46  };
47 
48  static int createSet(const std::vector<ParameterSet> &) { return 0; }
49  };
50 
51  template <class T>
52  class Service
53  {
54  public:
55  bool isAvailable() { return false; }
56  T *operator->()
57  {
58  static char buf[sizeof(T)]; static T *x;
59  if (! x) x = new (buf) T(ParameterSet());
60  return x;
61  }
62  T &operator*() { return * operator->(); }
63  };
64 
65  namespace service {
66  struct SystemBounds {
67  unsigned int maxNumberOfStreams() const { return 0; }
68  };
69  }
70 
71  struct PreallocationSignal {
72  template <typename T>
73  void connect( T&& ) {};
74  };
75 
76  class ActivityRegistry
77  {
78  public:
79  template <typename T>
80  void watchPostSourceRun(void*, T) {}
81 
82  template <typename T>
83  void watchPostSourceLumi(void*, T) {}
84 
85  template <typename F>
86  void watchPostSourceRun(F) {}
87 
88  template <typename F>
89  void watchPostSourceLumi(F) {}
90 
91  template <typename T>
92  void watchPostGlobalBeginRun(void*, T) {}
93 
94  template <typename T>
95  void watchPostGlobalBeginLumi(void*, T) {}
96 
97  template <typename T>
98  void watchPostGlobalEndRun(void*, T) {}
99 
100  template <typename T>
101  void watchPostGlobalEndLumi(void*, T) {}
102 
103  template <typename T>
104  void watchPostModuleGlobalEndLumi(void*, T) {}
105 
106  template <typename F>
107  void watchPostModuleGlobalEndLumi(F) {}
108 
109  template <typename T>
110  void watchPostModuleGlobalEndRun(void*, T) {}
111 
112  template <typename F>
113  void watchPostModuleGlobalEndRun(F) {}
114 
115  PreallocationSignal preallocateSignal_;
116  };
117 
118  class LuminosityBlockID
119  {
120  public:
121  unsigned int run() const { return 0; }
122  unsigned int luminosityBlock() const { return 0; }
123  };
124 
125  class GlobalContext
126  {
127  public:
128  LuminosityBlockID luminosityBlockID() const { return LuminosityBlockID(); }
129  };
130 
131  class ModuleDescription
132  {
133  public:
134  unsigned int id() const {return 0;}
135  };
136 
137  class ModuleCallingContext
138  {
139  public:
140  ModuleDescription const* moduleDescription() const
141  {
142  static ModuleDescription md;
143  return &md;
144  }
145  };
146 
147  class JobReport
148  {
149  public:
150  JobReport(const edm::ParameterSet &) {}
151  void reportAnalysisFile(const std::string &, const std::map<std::string, std::string> &) {}
152  };
153 
154  class LuminosityBlockIndex
155  { };
156 
157  class RunIndex
158  { };
159 
160 }
161 # endif // WITHOUT_CMS_FRAMEWORK
162 #endif // DQMSERVICES_CORE_STANDALONE_H
T getUntrackedParameter(std::string const &, T const &) const
ParameterSetID id() const
Definition: value.py:1
std::string getReleaseVersion()
HLT enums.
MatrixMeschach operator*(const MatrixMeschach &mat1, const MatrixMeschach &mat2)
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Definition: blowfish.cc:281
long double T