Skip to content
Snippets Groups Projects
Commit 36c76b27 authored by hallc-online's avatar hallc-online
Browse files

Modify THcDC and THcDriftChamberPlane to calculate per wire efficiency

Main purpose is to calculate the DC efficiency per wire
using the track information of the golden track.


THcDC.h
-----------
1) add method EfficiciencyPerWire
2) Add variables fWire_hit_did and fWire_hit_should

THcDC.cxx
------------
1) fWire_hit_did and fWire_hit_should are fixed length arrays
   the size of NPlanes that in set in method Init
2) Add variables wireHitDid and wireHitShould to the tree
3) In method SetFocalPlaneBestTrack add call to EfficiencyPerWire method
4) added EfficiencyPerWire method which loops over the hits
    and compares the wire number for the hit to the the track
    position at the plane (convert back to wire number).
    Then fills fWire_hit_did with the wire number if
    equal to the wire position of the hit equals the track.
    Also does loop over all planes and fills fWire_hit_should
    with the wire number of the track in each plane.

THcDriftChamberPlane.h and cxx
---------------------
1) Added method CalcWireFromPos
parent d5134c3d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment