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
|
// -*- C++ -*-
//
// Package: DataFormats/FWLite
// Class : RunFactory
//
// Implementation:
// [Notes on implementation]
//
// Original Author:
// Created: Wed Feb 10 11:15:18 CST 2010
//
// system include files
// user include files
#include "DataFormats/FWLite/interface/RunFactory.h"
namespace fwlite {
//
// constructors and destructor
//
RunFactory::RunFactory() {}
RunFactory::~RunFactory() {}
std::shared_ptr<fwlite::Run> RunFactory::makeRun(std::shared_ptr<BranchMapReader> branchMap) const {
if (not run_) {
run_ = std::make_shared<fwlite::Run>(branchMap);
}
return run_;
}
} // namespace fwlite
|