CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions
BareRootProductGetter Class Reference

#include <BareRootProductGetter.h>

Inheritance diagram for BareRootProductGetter:
BareRootProductGetterBase edm::EDProductGetter

Public Member Functions

 BareRootProductGetter ()=default
 
- Public Member Functions inherited from BareRootProductGetterBase
 BareRootProductGetterBase ()
 
 BareRootProductGetterBase (BareRootProductGetterBase const &)=delete
 
edm::WrapperBase const * getIt (edm::ProductID const &) const override
 
edm::OptionalThinnedKey getThinnedKeyFrom (edm::ProductID const &parent, unsigned int key, edm::ProductID const &thinned) const override
 
std::optional< std::tuple< edm::WrapperBase const *, unsigned int > > getThinnedProduct (edm::ProductID const &, unsigned int key) const override
 
void getThinnedProducts (edm::ProductID const &, std::vector< edm::WrapperBase const *> &foundContainers, std::vector< unsigned int > &keys) const override
 
BareRootProductGetterBase const & operator= (BareRootProductGetterBase const &)=delete
 
 ~BareRootProductGetterBase () override
 
- Public Member Functions inherited from edm::EDProductGetter
 EDProductGetter ()
 
 EDProductGetter (EDProductGetter const &)=delete
 
EDProductGetter const & operator= (EDProductGetter const &)=delete
 
unsigned int transitionIndex () const
 
virtual ~EDProductGetter ()
 

Private Member Functions

TFile * currentFile () const override
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::EDProductGetter
static void assignEDProductGetter (EDProductGetter const *&)
 
static EDProductGetter const * switchProductGetter (EDProductGetter const *)
 These can only be used internally by the framework. More...
 

Detailed Description

Definition at line 6 of file BareRootProductGetter.h.

Constructor & Destructor Documentation

◆ BareRootProductGetter()

BareRootProductGetter::BareRootProductGetter ( )
default

Member Function Documentation

◆ currentFile()

TFile * BareRootProductGetter::currentFile ( ) const
overrideprivatevirtual

Implements BareRootProductGetterBase.

Definition at line 8 of file BareRootProductGetter.cc.

References Exception, and geometryDiff::file.

8  {
9  TFile* file = dynamic_cast<TFile*>(gROOT->GetListOfFiles()->Last());
10  if (nullptr == file) {
11  throw cms::Exception("FileNotFound") << "unable to find the TFile '" << gROOT->GetListOfFiles()->Last() << "'\n"
12  << "retrieved by calling 'gROOT->GetListOfFiles()->Last()'\n"
13  << "Please check the list of files.";
14  }
15  return file;
16 }