CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DataFormats/FWLite/src/RunFactory.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:     DataFormats/FWLite
00004 // Class  :     RunFactory
00005 //
00006 // Implementation:
00007 //     [Notes on implementation]
00008 //
00009 // Original Author:
00010 //         Created:  Wed Feb 10 11:15:18 CST 2010
00011 // $Id: RunFactory.cc,v 1.3 2010/07/24 14:14:48 wmtan Exp $
00012 //
00013 
00014 // system include files
00015 
00016 // user include files
00017 #include "DataFormats/FWLite/interface/RunFactory.h"
00018 
00019 namespace fwlite {
00020 
00021     //
00022     // constructors and destructor
00023     //
00024     RunFactory::RunFactory() {}
00025     RunFactory::~RunFactory() {}
00026 
00027     boost::shared_ptr<fwlite::Run> RunFactory::makeRun(boost::shared_ptr<BranchMapReader> branchMap) const {
00028         if (not run_) {
00029             run_ = boost::shared_ptr<fwlite::Run>(new fwlite::Run(branchMap));
00030         }
00031         return run_;
00032     }
00033 
00034 }