CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
fwlite::RunFactory Class Reference

#include <RunFactory.h>

Public Member Functions

std::shared_ptr< fwlite::RunmakeRun (std::shared_ptr< BranchMapReader > branchMap) const
 
 RunFactory ()
 
virtual ~RunFactory ()
 

Private Member Functions

const RunFactoryoperator= (const RunFactory &)=delete
 
 RunFactory (const RunFactory &)=delete
 

Private Attributes

std::shared_ptr< fwlite::Runrun_
 

Detailed Description

Definition at line 27 of file RunFactory.h.

Constructor & Destructor Documentation

◆ RunFactory() [1/2]

RunFactory::RunFactory ( )

Definition at line 23 of file RunFactory.cc.

23 {}

◆ ~RunFactory()

RunFactory::~RunFactory ( )
virtual

Definition at line 24 of file RunFactory.cc.

24 {}

◆ RunFactory() [2/2]

fwlite::RunFactory::RunFactory ( const RunFactory )
privatedelete

Member Function Documentation

◆ makeRun()

std::shared_ptr< fwlite::Run > RunFactory::makeRun ( std::shared_ptr< BranchMapReader branchMap) const

Definition at line 26 of file RunFactory.cc.

26  {
27  if (not run_) {
28  run_ = std::make_shared<fwlite::Run>(branchMap);
29  }
30  return run_;
31  }

References run_.

◆ operator=()

const RunFactory& fwlite::RunFactory::operator= ( const RunFactory )
privatedelete

Member Data Documentation

◆ run_

std::shared_ptr<fwlite::Run> fwlite::RunFactory::run_
mutableprivate

Definition at line 40 of file RunFactory.h.

Referenced by makeRun().

fwlite::RunFactory::run_
std::shared_ptr< fwlite::Run > run_
Definition: RunFactory.h:40