CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
10 # else
11 # include <memory>
12 # include <string>
13 # include <vector>
14 # include <map>
15 
16 namespace edm
17 {
19  { return "CMSSW_STANDALONE"; }
20 
21  struct ParameterSet
22  {
23  template <class T> static const T &
24  getUntrackedParameter(const char * /* key */, const T &value)
25  { return value; }
26  };
27 
28  struct ServiceToken
29  {
30  ServiceToken(int) {}
31  };
32 
33  struct ServiceRegistry
34  {
35  struct Operate
36  {
37  Operate(const ServiceToken &) {}
38  };
39 
40  static int createSet(const std::vector<ParameterSet> &) { return 0; }
41  };
42 
43  template <class T>
44  struct Service
45  {
46  bool isAvailable(void) { return false; }
47  T *operator->(void)
48  {
49  static char buf[sizeof(T)]; static T *x;
50  if (! x) x = new (buf) T(ParameterSet());
51  return x;
52  }
53  T &operator*(void) { return * operator->(); }
54  };
55 
56  struct SystemBounds {
57  unsigned int maxNumberOfStreams() const { return 0; }
58  };
59 
60  struct PreallocationSignal {
61  template <typename T>
62  void connect( T&& ) {};
63  };
64 
65  struct ActivityRegistry
66  {
67  template <typename T>
68  void watchPostSourceRun(void*, T) {}
69 
70  template <typename T>
71  void watchPostSourceLumi(void*, T) {}
72 
73  PreallocationSignal preallocateSignal_;
74  };
75 
76 
77  struct JobReport
78  {
79  JobReport(const edm::ParameterSet &) {}
80  void reportAnalysisFile(const std::string &, const std::map<std::string, std::string> &) {}
81  };
82 }
83 # endif // WITHOUT_CMS_FRAMEWORK
84 #endif // DQMSERVICES_CORE_STANDALONE_H
T & operator*() const
Definition: Service.h:42
T getUntrackedParameter(std::string const &, T const &) const
Preallocate preallocateSignal_
signal is emitted before beginJob
void watchPostSourceRun(PostSourceRun::slot_type const &iSlot)
bool isAvailable() const
Definition: Service.h:46
Operate(ServiceToken const &iToken)
static ServiceToken createSet(std::vector< ParameterSet > &)
std::string getReleaseVersion()
void watchPostSourceLumi(PostSourceLumi::slot_type const &iSlot)
void reportAnalysisFile(std::string const &fileName, std::map< std::string, std::string > const &fileData)
Definition: JobReport.cc:559
Definition: DDAxes.h:10
long double T
T * operator->() const
Definition: Service.h:38