Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
#ifndef FWCore_Framework_one_implementorsMethods_h
#define FWCore_Framework_one_implementorsMethods_h
// -*- C++ -*-
//
// Package:     FWCore/Framework
// File  :     implementorsMethods
//
/**\file implementorsMethods.h "FWCore/Framework/src/one/implementorsMethods.h"

 Description: [one line class summary]

 Usage:
    <usage>

*/
//
// Original Author:  Chris Jones
//         Created:  Thu, 09 May 2013 20:13:53 GMT
//

// system include files

// user include files
#include "FWCore/Framework/interface/one/implementors.h"
#include "FWCore/Framework/interface/SharedResourcesRegistry.h"
#include "FWCore/Framework/interface/SharedResourcesAcquirer.h"

// forward declarations

namespace edm {
  namespace one {
    namespace impl {
      template <typename T>
      void SharedResourcesUser<T>::usesResource(std::string const& iName) {
        resourceNames_.insert(iName);
        SharedResourcesRegistry::instance()->registerSharedResource(iName);
      }

      template <typename T>
      SharedResourcesAcquirer SharedResourcesUser<T>::createAcquirer() {
        std::vector<std::string> v(resourceNames_.begin(), resourceNames_.end());
        return SharedResourcesRegistry::instance()->createAcquirer(v);
      }

      template <typename T>
      void RunWatcher<T>::doBeginRun_(Run const& rp, EventSetup const& c) {
        this->beginRun(rp, c);
      }
      template <typename T>
      void RunWatcher<T>::doEndRun_(Run const& rp, EventSetup const& c) {
        this->endRun(rp, c);
      }

      template <typename T>
      void LuminosityBlockWatcher<T>::doBeginLuminosityBlock_(LuminosityBlock const& rp, EventSetup const& c) {
        this->beginLuminosityBlock(rp, c);
      }
      template <typename T>
      void LuminosityBlockWatcher<T>::doEndLuminosityBlock_(LuminosityBlock const& rp, EventSetup const& c) {
        this->endLuminosityBlock(rp, c);
      }

      template <typename T>
      void WatchProcessBlock<T>::doBeginProcessBlock_(ProcessBlock const& pb) {
        this->beginProcessBlock(pb);
      }

      template <typename T>
      void WatchProcessBlock<T>::doEndProcessBlock_(ProcessBlock const& pb) {
        this->endProcessBlock(pb);
      }

      template <typename T>
      void BeginProcessBlockProducer<T>::doBeginProcessBlockProduce_(ProcessBlock& pb) {
        this->beginProcessBlockProduce(pb);
      }

      template <typename T>
      void EndProcessBlockProducer<T>::doEndProcessBlockProduce_(ProcessBlock& pb) {
        this->endProcessBlockProduce(pb);
      }

      template <typename T>
      void BeginRunProducer<T>::doBeginRunProduce_(Run& rp, EventSetup const& c) {
        this->beginRunProduce(rp, c);
      }

      template <typename T>
      void EndRunProducer<T>::doEndRunProduce_(Run& rp, EventSetup const& c) {
        this->endRunProduce(rp, c);
      }

      template <typename T>
      void BeginLuminosityBlockProducer<T>::doBeginLuminosityBlockProduce_(LuminosityBlock& rp, EventSetup const& c) {
        this->beginLuminosityBlockProduce(rp, c);
      }

      template <typename T>
      void EndLuminosityBlockProducer<T>::doEndLuminosityBlockProduce_(LuminosityBlock& rp, EventSetup const& c) {
        this->endLuminosityBlockProduce(rp, c);
      }
    }  // namespace impl
  }  // namespace one
}  // namespace edm

#endif