Skip to content
Snippets Groups Projects
  1. Apr 16, 2018
    • hallc-online's avatar
      Updated THcDriftChamberPlane · f0e86b0f
      hallc-online authored
      Add call ConvertTimeToDist in SubtractStartTime method
      f0e86b0f
    • hallc-online's avatar
      Modify THcDC, THcDriftChamberPlane · 994097ec
      hallc-online authored
      THcDriftChamberPlane
      
        1) Remove subtraction of hodoscope starttime from ProcessHits
          which is called by THcDC::Decode.
        The hodoscope start time is determined in hodoscope Decode
         which is called after THcDC::Decode. So drift chamber
         was using the starttime from the previous event.
      
         2) Create method SubtractStartTime which is called by THcDC:CoarseTrack
      
      THcDriftChamber
          1) Move fChambers[ic]->ProcessHits() to CoarseTrack
          2) Before looping through fChambers[ic]->ProcessHits() in CoarseTrack
              loop through all planes and call fPlanes[ip]->SubtractStartTime()
      994097ec
  2. Nov 30, 2017
    • Mark Jones's avatar
      Add raw time without reference time subtraction to THcDCHit · a1ede17e
      Mark Jones authored
      Add rawnorefcorrtime to THcDCHit which is the TDC raw without
      the reference time subtraction.
      
      Add variable rawnorefcorrtdc in THcDriftChamberPlane::DefineVariables
      
      Modify THcDriftChamberPlane::ProcessHits to call GetRawTdcHit().GetTimeRaw
        and call THcDCHit with new extra argument for raw time without reference time
        subtraction.
      a1ede17e
  3. Nov 02, 2017
  4. Oct 09, 2017
  5. Jul 28, 2017
  6. Jun 15, 2017
  7. May 01, 2017
    • hallc-online's avatar
      Modify THcDC and THcDriftChamberPlane to calculate per wire efficiency · 36c76b27
      hallc-online authored
      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
      36c76b27
  8. Apr 18, 2017
  9. Apr 17, 2017
    • hallc-online's avatar
      Modified THcDriftChamberPlane.cxx and THcDriftChamberPlane.h · a4186aeb
      hallc-online authored
      Main purpose was to have option for per wire tzero offsets
      
      Modified THcDriftChamberPlane.h
      ------------------------------
      1) added fUsingTzeroPerWire as parameter flag to switch on per wire tzero offsets when parameter equals 1
      2) fTzeroWire is array of tzero offsets for each wire in plane
      
      Modified THcDriftChamberPlane.cxx
      ------------------------------
      1) THcDriftChamberPlane::ReadDatabase
          a)set a default value of fUsingTzeroPerWire=0
          b)added to DBRequest list option to read in fUsingTzeroPerWire
          c) if fUsingTzeroPerWire=1 then separate DBRequest to read in fTzeroWire
         d) if fUsingTzeroPerWire=0 then all fTzeroWire=0
      
      2) THcDriftChamberPlane::ProcessHits
      ------------------------------------
         a) Modify calcualation of drift time to subtract fTzeroWire
      Double_t time = -StartTime- rawtdc*fNSperChan + fPlaneTimeZero - fTzeroWire[wireNum-1];
      a4186aeb
  10. Feb 09, 2017
  11. Dec 15, 2016
  12. Nov 06, 2016
  13. Sep 29, 2016
  14. Sep 28, 2016
  15. May 18, 2016
  16. May 12, 2016
  17. Dec 02, 2015
    • Stephen A. Wood's avatar
      Add reference time to hitlist · e7738912
      Stephen A. Wood authored
        Base class THcRawHit has null GetReference method.  Returns
        zero.
        THcRawDCHit will get the reference time if it was specified in the map file.
        It is up to the detector class to use the reference time to subtract off
        pipeline TDC jitter.
      e7738912
  18. Mar 10, 2015
  19. Jan 16, 2015
  20. Jan 14, 2015
  21. Jan 08, 2015
  22. Sep 10, 2014
  23. Aug 28, 2014
  24. Jul 30, 2014
    • Jonathan Stelzleni's avatar
      Created two new variables for THcDC, fNthits and fN_True_RawHits. · d496e1e3
      Jonathan Stelzleni authored
      In tree they are called tnhit and trawhit.
      Created two new variables for THcDriftChamber, fNthits and fN_True_RawHits.
      In tree they are called tnhit and trawhit.
      THcDC defined subdetector THcDriftChamber to have name Ch1 and Ch2 to do used in the tree.
      THcDriftChamberPlane defined new method GetNRawhits to return fNRawhits for each plane.
      Added member fNRawhits to THcDriftChamberPlane
      d496e1e3
  25. Nov 15, 2013
    • Edward Brash's avatar
      Address some minor issues reported by cppcheck · bd50814c
      Edward Brash authored
      These were related to a) scope of some variable declarations, and b) use
      of pre-increment vs. post-increment of non-primitive types (this has a
      slight performance hit due to the way that pre- vs. post-increment
      operators are overloaded in C++.
      
      Also cleaned up a few places where initialized variables were not being
      used.
      bd50814c
  26. Nov 08, 2013
  27. Oct 07, 2013
  28. Jun 20, 2013
    • Stephen A. Wood's avatar
      Partially implement THcDC::TrackFit, modelled after h_track_fit. · 4d5378e0
      Stephen A. Wood authored
        Uses ROOT matrix math instead of solve_four_by_four
        Nothing is done with found tracks yet.  Will need to stuff these into
           podd style tracks.  (Or a class inherited from podd style tracks.)
        Residuals not saved anywhere
        Single stub mode not yet implemented
        No printing out of trackfit results (hdebugtrackprint)
      4d5378e0
  29. Jun 11, 2013
  30. May 30, 2013
  31. May 15, 2013
  32. May 01, 2013
  33. Apr 30, 2013
    • Stephen A. Wood's avatar
      Implement DC Space Point finding · b519f00b
      Stephen A. Wood authored
        New class THcDC is whole set of wire chambers.
        THcDriftChamber is one chamber (6 planes)
        Implement space point finding from h_pattern_recognition up to point
           before where space point lists from the two chambers are combined.
        Includes
            FindEasySpacePoint   (h_find_easy_space_point)
            FindHardSpacePoints  (find_space_points)
            DestroyPoorSpacePoints (h_sp_destroy)
            SpacePointMultiwire  (h_sp_multiwire)
            ChooseSingleHit 	   (h_choose_single_hit)
            SelectSpacePoint	   (select_space_points)
      
      Space points are arrays of structures in the THcDriftChamber class.  Will
      probably need to take space points out class so that they can be looked at
      at the THcDC level.
      
      New code is only tested to see that it compiles and that space points
      are sometimes found.
      b519f00b
  34. Mar 08, 2013
    • Stephen A. Wood's avatar
      Add computation of drift distance from drift time. · 58c45eee
      Stephen A. Wood authored
        It has not been check that we are getting a good start time yet.
        Drift time and distance added to tree
        Change DC plane names from 1, 2, 3, ... to 1x1, 1y1, ...
          This is so that the parameters holding the time to distance maps
             can be found.  (The parameters are e.g. hwc1x1fract)
          Need to find a way not to have to hard code these plane names.
             Either use wire angles (alpha) or some kind of parameter name mapping
        Changed output.def to match new plane names
      58c45eee
  35. Feb 07, 2013
  36. Jan 29, 2013
  37. Jan 21, 2013
    • Stephen A. Wood's avatar
      Drift chamber code work. Modeled on podd and h_trans_dc.f · b1b202d2
      Stephen A. Wood authored
            Start adding to the drift chamber code.   Setup a class structure
            similar to what podd uses for the VDCs.  Raw hit class renamed
            to THcRawDCHit.  Signal hits are how THcDCHit, modeled after
            podd hits.  Add THcDCWire, and classes for time to distance conversion.
            Time to distnace conversion doesn't do anything yet.
      
            Find some improved DC parameter files so that min and max TDC limits
            are good for the run we are using.
      
            THcDriftChamberPlane asks ThcDriftChamber for many parameters.
      b1b202d2
  38. Nov 02, 2012
Loading