Skip to content

Commit

Permalink
Merge pull request #60 from dglazier/master
Browse files Browse the repository at this point in the history
fix bug in database reading
  • Loading branch information
dglazier authored Oct 25, 2023
2 parents d2b339b + 5e345a9 commit 0f16805
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 0f16805

Please sign in to comment.