Skip to content

Commit

Permalink
Fixed uninitialized value in RootTree
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr15Jones committed May 20, 2018
1 parent 0e34ebc commit 830a4c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion IOPool/Input/src/RootTree.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ namespace edm {
trainNow_(false),
switchOverEntry_(-1),
rawTriggerSwitchOverEntry_(-1),
performedSwitchOver_{false},
learningEntries_(learningEntries),
cacheSize_(cacheSize),
treeAutoFlush_(0),
Expand Down Expand Up @@ -219,7 +220,7 @@ namespace edm {
rawTreeCache_->FillBuffer();
}
}
if(performedSwitchOver_) {
if(performedSwitchOver_ and triggerTreeCache_) {
//We are using the triggerTreeCache_ not the rawTriggerTreeCache_.
//The triggerTreeCache was originally told to start from an entry further in the file.
triggerTreeCache_->SetEntryRange(theEntryNumber, tree_->GetEntries());
Expand Down

0 comments on commit 830a4c9

Please sign in to comment.