Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:11

0001 // -*- C++ -*-
0002 //
0003 // Package:     DataFormats/FWLite
0004 // Class  :     RunFactory
0005 //
0006 // Implementation:
0007 //     [Notes on implementation]
0008 //
0009 // Original Author:
0010 //         Created:  Wed Feb 10 11:15:18 CST 2010
0011 //
0012 
0013 // system include files
0014 
0015 // user include files
0016 #include "DataFormats/FWLite/interface/RunFactory.h"
0017 
0018 namespace fwlite {
0019 
0020   //
0021   // constructors and destructor
0022   //
0023   RunFactory::RunFactory() {}
0024   RunFactory::~RunFactory() {}
0025 
0026   std::shared_ptr<fwlite::Run> RunFactory::makeRun(std::shared_ptr<BranchMapReader> branchMap) const {
0027     if (not run_) {
0028       run_ = std::make_shared<fwlite::Run>(branchMap);
0029     }
0030     return run_;
0031   }
0032 
0033 }  // namespace fwlite