Skip to content

Commit

Permalink
fix: clearer warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Mar 29, 2024
1 parent b0ff77f commit d064bf4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/clasqa/QADB.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class QADB {
public int getEvnumMin() { return found ? evnumMin : -1 }
public int getEvnumMax() { return found ? evnumMax : -1 }
public double getCharge() {
System.err.println "ERROR: the charge stored in the Pass1 QADB for Run Groups A, B, K, and M is NOT correct! This will be fixed for their Pass 2 data sets."
System.err.println "WARNING: the charge stored in the Pass 1 QADB for Run Groups A, B, K, and M is NOT quite correct, and may be off by ~1%, depending on the particular runs! This will be fixed for their Pass 2 data sets."
return found ? charge : -1
}
// --- access QA info
Expand Down Expand Up @@ -354,7 +354,7 @@ class QADB {
// -- accessor
// call this method at the end of your event loop
public double getAccumulatedCharge() {
System.err.println "ERROR: the charge stored in the Pass1 QADB for Run Groups A, B, K, and M is NOT correct! This will be fixed for their Pass 2 data sets."
System.err.println "WARNING: the charge stored in the Pass 1 QADB for Run Groups A, B, K, and M is NOT quite correct, and may be off by ~1%, depending on the particular runs! This will be fixed for their Pass 2 data sets."
return chargeTotal
}
// reset accumulated charge, if you ever need to
Expand Down
4 changes: 2 additions & 2 deletions srcC/include/QADB.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ namespace QA {
inline int GetEvnumMin() { return found ? evnumMin : -1; };
inline int GetEvnumMax() { return found ? evnumMax : -1; };
inline double GetCharge() {
std::cerr << "ERROR: the charge stored in the Pass1 QADB for Run Groups A, B, K, and M is NOT correct! This will be fixed for their Pass 2 data sets." << std::endl;
std::cerr << "WARNING: the charge stored in the Pass 1 QADB for Run Groups A, B, K, and M is NOT quite correct, and may be off by ~1%, depending on the particular runs! This will be fixed for their Pass 2 data sets." << std::endl;
return found ? charge : -1;
}
// --- access QA info
Expand Down Expand Up @@ -123,7 +123,7 @@ namespace QA {
// returns total accumlated charge that passed your QA cuts; call this
// method after your event loop
inline double GetAccumulatedCharge() {
std::cerr << "ERROR: the charge stored in the Pass1 QADB for Run Groups A, B, K, and M is NOT correct! This will be fixed for their Pass 2 data sets." << std::endl;
std::cerr << "WARNING: the charge stored in the Pass 1 QADB for Run Groups A, B, K, and M is NOT quite correct, and may be off by ~1%, depending on the particular runs! This will be fixed for their Pass 2 data sets." << std::endl;
return chargeTotal;
}
// reset accumulated charge, if you ever need to
Expand Down

0 comments on commit d064bf4

Please sign in to comment.