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