Skip to content

Commit

Permalink
fix: don't fill with init
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Mar 18, 2024
1 parent bd8e665 commit f413771
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions qa-physics/monitorRead.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -749,11 +749,13 @@ inHipoList.each { inHipoFile ->
}
thisTimeBin.histTree.helic.dist.fill(helicity)
// get scaler helicity from `HEL::scaler`, and fill its charge-weighted distribution
def scalerHelicity = 0
if(hipoEvent.hasBank("HEL::scaler") && helScalerBank.rows()>0) {
scalerHelicity = helScalerBank.getInt("helicity",0)
if(fc != "init") {
def scalerHelicity = 0
if(hipoEvent.hasBank("HEL::scaler") && helScalerBank.rows()>0) {
scalerHelicity = helScalerBank.getInt("helicity",0)
}
thisTimeBin.histTree.helic.scaler.chargeWeighted.fill(scalerHelicity,fc)
}
thisTimeBin.histTree.helic.scaler.chargeWeighted.fill(scalerHelicity,fc)

// get electron list, and increment the number of trigger electrons
// - also finds the DIS electron, and calculates x,Q2,W,y,nu
Expand Down

0 comments on commit f413771

Please sign in to comment.