Skip to content

Commit

Permalink
fix bug in database reading
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Glazier committed Oct 25, 2023
1 parent d2b339b commit 5e345a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Clas12Banks/clas12databases.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ namespace clas12 {
//update run number to each database
void clas12databases::notifyRun(int runNb){
//check if already set up for this run
if( _runNb=runNb) return;
if( _runNb==runNb) return;

_runNb=runNb;

Expand Down
2 changes: 1 addition & 1 deletion Clas12Banks/clas12reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ namespace clas12 {
_connectDB=true;

auto runNumber =readQuickRunConfig(_filename);

_runNo = runNumber;
if(_verbose )std::cout<<"Connecting databases to run "<<runNumber<<std::endl;
//Do not need to notify if run number has not changed
if(_runNo!=0)_db->notifyRun(runNumber);
Expand Down

0 comments on commit 5e345a9

Please sign in to comment.