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
RunFactory.h
fwlite
Definition: TFileDirectory.h:16
fwlite::RunFactory::makeRun
std::shared_ptr< fwlite::Run > makeRun(std::shared_ptr< BranchMapReader > branchMap) const
Definition: RunFactory.cc:26
fwlite::RunFactory::run_
std::shared_ptr< fwlite::Run > run_
Definition: RunFactory.h:40
fwlite::RunFactory::RunFactory
RunFactory()
Definition: RunFactory.cc:23
fwlite::RunFactory::~RunFactory
virtual ~RunFactory()
Definition: RunFactory.cc:24