CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: RunFactory.cc,v 1.3 2010/07/24 14:14:48 wmtan Exp $
12 //
13 
14 // system include files
15 
16 // user include files
18 
19 namespace fwlite {
20 
21  //
22  // constructors and destructor
23  //
26 
27  boost::shared_ptr<fwlite::Run> RunFactory::makeRun(boost::shared_ptr<BranchMapReader> branchMap) const {
28  if (not run_) {
29  run_ = boost::shared_ptr<fwlite::Run>(new fwlite::Run(branchMap));
30  }
31  return run_;
32  }
33 
34 }
boost::shared_ptr< fwlite::Run > run_
Definition: RunFactory.h:39
virtual ~RunFactory()
Definition: RunFactory.cc:25
boost::shared_ptr< fwlite::Run > makeRun(boost::shared_ptr< BranchMapReader > branchMap) const
Definition: RunFactory.cc:27