src
FWCore
FWLite
src
BareRootProductGetter.cc
Go to the documentation of this file.
1
#include "
FWCore/Utilities/interface/Exception.h
"
2
3
#include "
BareRootProductGetter.h
"
4
5
#include "TROOT.h"
6
#include "TFile.h"
7
8
TFile*
BareRootProductGetter::currentFile
()
const
{
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
}
BareRootProductGetter::currentFile
TFile * currentFile() const override
Definition:
BareRootProductGetter.cc:8
Exception
Definition:
hltDiff.cc:245
BareRootProductGetter.h
Exception.h
geometryDiff.file
file
Definition:
geometryDiff.py:13
Generated for CMSSW Reference Manual by
1.8.14