Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
0fc39b63
Commit
0fc39b63
authored
Dec 06, 2017
by
Simon Spannagel
Browse files
FileREader: throw if file is nonexistent
parent
c66a5244
Pipeline
#257235
passed with stages
in 3 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/algorithms/FileReader/FileReader.cpp
View file @
0fc39b63
...
...
@@ -47,6 +47,9 @@ void FileReader::initialise() {
// Get input file
LOG
(
INFO
)
<<
"Opening file "
<<
m_fileName
;
m_inputFile
=
new
TFile
(
m_fileName
.
c_str
(),
"READ"
);
if
(
!
m_inputFile
->
IsOpen
())
{
throw
AlgorithmError
(
"Cannot open input file
\"
"
+
m_fileName
+
"
\"
."
);
}
m_inputFile
->
cd
();
// Loop over all objects to be read from file, and get the trees
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment