Skip to content

Commit

Permalink
fix bug with locking
Browse files Browse the repository at this point in the history
  • Loading branch information
sdobbs committed Apr 11, 2024
1 parent 9472603 commit fc1a18f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,7 @@ void JEventProcessor_CDC_Efficiency::Fill_Efficiency_Histos(unsigned int ringNum
}

japp->RootFillLock(this); //ACQUIRE ROOT FILL LOCK

hMeasuredHitsVsPathLength->Fill(dx);
hMeasuredHitsVsDOCA->Fill(distanceToWire);
hMeasuredHitsVsTrackingFOM->Fill(thisTimeBasedTrack->FOM);
Expand All @@ -595,9 +596,12 @@ void JEventProcessor_CDC_Efficiency::Fill_Efficiency_Histos(unsigned int ringNum
hMeasuredHitsWithDEDxVsN->Fill(Nstraws_previous[ringNum-1]+wireNum); //expected hits by straw number
}
}
japp->RootFillUnLock(this); //RELEASE ROOT FILL LOCK

}

japp->RootFillLock(this); //ACQUIRE ROOT FILL LOCK

//FILL PROFILES: BASED ON FOUND OR NOT
hEfficiencyVsPathLength->Fill(dx,foundHit);
hEfficiencyVsDOCA->Fill(distanceToWire,foundHit);
Expand Down

0 comments on commit fc1a18f

Please sign in to comment.