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  class ParameterSet
22  {
23  public:
24  template <class T> static const T &
25  getUntrackedParameter(const char * /* key */, const T &value)
26  { return value; }
27  };
28 
29  struct ServiceToken
30  {
31  ServiceToken(int) {}
32  };
33 
34  class ServiceRegistry
35  {
36  public:
37  struct Operate
38  {
39  Operate(const ServiceToken &) {}
40  };
41 
42  static int createSet(const std::vector<ParameterSet> &) { return 0; }
43  };
44 
45  template <class T>
46  class Service
47  {
48  public:
49  bool isAvailable(void) { return false; }
50  T *operator->(void)
51  {
52  static char buf[sizeof(T)]; static T *x;
53  if (! x) x = new (buf) T(ParameterSet());
54  return x;
55  }
56  T &operator*(void) { return * operator->(); }
57  };
58 
59  struct SystemBounds {
60  unsigned int maxNumberOfStreams() const { return 0; }
61  };
62 
63  struct PreallocationSignal {
64  template <typename T>
65  void connect( T&& ) {};
66  };
67 
68  class ActivityRegistry
69  {
70  public:
71  template <typename T>
72  void watchPostSourceRun(void*, T) {}
73 
74  template <typename T>
75  void watchPostSourceLumi(void*, T) {}
76 
77  PreallocationSignal preallocateSignal_;
78  };
79 
80 
81  class JobReport
82  {
83  public:
84  JobReport(const edm::ParameterSet &) {}
85  void reportAnalysisFile(const std::string &, const std::map<std::string, std::string> &) {}
86  };
87 }
88 # endif // WITHOUT_CMS_FRAMEWORK
89 #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
T x() const
Cartesian x coordinate.
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
long double T
T * operator->() const
Definition: Service.h:38