Skip to content
Snippets Groups Projects
  1. Oct 05, 2018
    • Mark Jones's avatar
      Modify THcDriftChamberPlane · 1555f422
      Mark Jones authored
      Added TClonesArray* fRawHits which an array of THcDCHit object for all
      hits in the drift chamber. This is filled during Process method.
      
      Added tree variable raw.wirenum whihc is array of wire numbers for all hits in the drift chamber.
      1555f422
  2. Sep 17, 2018
  3. Sep 07, 2018
  4. Aug 26, 2018
    • Carlos Yero's avatar
      Updated DC Classes to have DC Sigma per wire · 4a7af64c
      Carlos Yero authored
      1) THcDCWire.h
        a) added sigma to THcDCWire constructor which fills fSigmaWire
        b) added GetSimga method
        c) added SetSigma method
      
      2) THcDCHit.h
       a) Added GetWireSigma method
      
      3) THcDriftChamberPlane.h
       a) Added flag fUsingSigmaPerWire
       b) Added array fSigmaWire
      
      4) THcDriftChamberPlane.cxx
       a) In ReadDatabase, set fUsingSigmaPerWire=0 by default
          with reading of parameter h_using_sigma_per_wire optional
          for setting fUsingSigmaPerWire.
       b) If fUsingSigmaPerWire=0 then sets all wires in array fSigmaWire to
         fSigma ( which is the simga per plane).
       c) If fUsingSigmaPerWire=1 then reads in the sigma per wire from
         a parameter file.
       d) Used new THcDCWire constructor to set the sigma for wire to fSigmaWire[nwire]
       e) Also change code so that the tzero offset is set in the  THcDCWire constructor
       f) In ProcessHits , use wire->GetTOffSet instead of the fTzeroWire array when setting
          the time.
      
      5) THcDC.cxx
       a) In TrackFit, replace fSigma with hit->GetWireSigma()
      4a7af64c
  5. Aug 08, 2018
    • Stephen A. Wood's avatar
      Updates to doxygen documentation · 76706b74
      Stephen A. Wood authored
        Add doxygen groups "Apparatuses" and "Decoders"
        Make sure every class is in a group
        Make sure most classes have a \brief description
        Improve comments for some classes including THcHallCSpectrometer
           and hodoscope classes
        Change some Doxyfile defaults.  Include sources files.
      76706b74
  6. Jul 17, 2018
  7. 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
  8. 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
  9. Nov 02, 2017
  10. Oct 09, 2017
  11. Jul 28, 2017
  12. Jun 15, 2017
  13. 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
  14. Apr 18, 2017
  15. 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
  16. Feb 09, 2017
  17. Dec 15, 2016
  18. Nov 06, 2016
  19. Sep 29, 2016
  20. Sep 28, 2016
  21. May 18, 2016
  22. May 12, 2016
  23. 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
  24. Mar 10, 2015
  25. Jan 16, 2015
  26. Jan 14, 2015
  27. Jan 08, 2015
  28. Sep 10, 2014
  29. Aug 28, 2014
  30. 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
  31. 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
  32. Nov 08, 2013
  33. Oct 07, 2013
  34. 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
  35. Jun 11, 2013
  36. May 30, 2013
  37. May 15, 2013
  38. May 01, 2013
Loading