CMS 3D CMS Logo

RunFactory.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: DataFormats/FWLite
4 // Class : RunFactory
5 //
6 // Implementation:
7 // [Notes on implementation]
8 //
9 // Original Author:
10 // Created: Wed Feb 10 11:15:18 CST 2010
11 //
12 
13 // system include files
14 
15 // user include files
17 
18 namespace fwlite {
19 
20  //
21  // constructors and destructor
22  //
25 
26  std::shared_ptr<fwlite::Run> RunFactory::makeRun(std::shared_ptr<BranchMapReader> branchMap) const {
27  if (not run_) {
28  run_ = std::make_shared<fwlite::Run>(branchMap);
29  }
30  return run_;
31  }
32 
33 } // namespace fwlite
std::shared_ptr< fwlite::Run > run_
Definition: RunFactory.h:41
virtual ~RunFactory()
Definition: RunFactory.cc:24
std::shared_ptr< fwlite::Run > makeRun(std::shared_ptr< BranchMapReader > branchMap) const
Definition: RunFactory.cc:26