Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove incorrect beam charge asymmetry uncertainty #209

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions qa-physics/monitorPlot.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def calculateBeamChargeAsym = { qP, qM ->
if(qP+qM > 0) {
return [
(qP - qM) / (qP + qM), // asymmetry
1 / Math.sqrt( qP + qM ) // error, assuming |beamChargeAsym| << 1
0.0 // uncertainty // FIXME: there is not yet a clear method how to calculate the uncertainty
]
}
return ["unknown","unknown"]
Expand Down Expand Up @@ -357,7 +357,7 @@ inList.each { inFile ->
def g = buildMonAveGr(obj)
def gN = g.getName().replaceAll(/_aveGr$/,'_chargeAsymGr')
g.setName(gN)
g.setTitle('beam charge asymmetry vs. time bin number')
g.setTitle('beam charge asymmetry vs. time bin number [WARNING: asymmetry uncertainty is NOT quantified]')
return g
})
if(obj.integral()>0) {
Expand Down Expand Up @@ -502,7 +502,10 @@ T.exeLeaves(monTree,{
if(T.key.contains('Dist')) tlT = "average ${tlT}"
if(tlT == "unknown")
return
tlT = "${tlT} vs. run number"
tlT += " vs. run number"
if(tlPath.contains('helic') && tlPath.contains('beamChargeAsym')) {
tlT += " [WARNING: asymmetry uncertainty is NOT quantified]"
}
def tl = new GraphErrors(tlN)
tl.setTitle(tlT)
return tl
Expand Down