Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:13:03

0001 // -*- C++ -*-
0002 //
0003 // Package:     test
0004 // Class  :     DummyService
0005 //
0006 // Implementation:
0007 //     <Notes on implementation>
0008 //
0009 // Original Author:  Chris Jones
0010 //         Created:  Mon Sep  5 19:52:01 EDT 2005
0011 //
0012 
0013 // system include files
0014 
0015 // user include files
0016 #include "FWCore/ServiceRegistry/test/stubs/DummyService.h"
0017 #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
0018 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
0019 
0020 //
0021 // constants, enums and typedefs
0022 //
0023 using namespace testserviceregistry;
0024 
0025 //
0026 // static data member definitions
0027 //
0028 
0029 void DummyService::fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
0030   edm::ParameterSetDescription desc;
0031 
0032   desc.add<int>("value");
0033 
0034   descriptions.addDefault(desc);
0035 }
0036 
0037 //
0038 // constructors and destructor
0039 //
0040 DummyService::DummyService(const edm::ParameterSet& iPSet, edm::ActivityRegistry& iAR)
0041     : value_(iPSet.getParameter<int>("value")), beginJobCalled_(false) {
0042   iAR.watchPostBeginJob(this, &DummyService::doOnBeginJob);
0043 }
0044 
0045 // DummyService::DummyService(const DummyService& rhs)
0046 // {
0047 //    // do actual copying here;
0048 // }
0049 
0050 DummyService::~DummyService() {}
0051 
0052 //
0053 // assignment operators
0054 //
0055 // const DummyService& DummyService::operator=(const DummyService& rhs)
0056 // {
0057 //   //An exception safe implementation is
0058 //   DummyService temp(rhs);
0059 //   swap(rhs);
0060 //
0061 //   return *this;
0062 // }
0063 
0064 //
0065 // member functions
0066 //
0067 
0068 //
0069 // const member functions
0070 //
0071 
0072 //
0073 // static member functions
0074 //