Skip to content
Snippets Groups Projects
  1. Apr 12, 2018
    • Vardan Tadevosyan's avatar
      Update THcAerogel · 1da78c61
      Vardan Tadevosyan authored
      Add time windows for pos and neg ADC selection.
      
      Added fGoodPosAdcMult and fGoodNegAdcMult variables
      
      Remove cuts for  calculation of fXAtAero and fYAtAero
      1da78c61
  2. Feb 19, 2018
    • Stephen A. Wood's avatar
      Create parameters to hold missing reference time counts. · 14523959
      Stephen A. Wood authored
        So that the counts can be reported in report files.
      14523959
    • Stephen A. Wood's avatar
      Put a minimum cut on reference times. · 39317b13
      Stephen A. Wood authored
         First hit above this cut is taken as the reference time.
         Cuts are per detector and read as an optional parameter in
         each detector class.  TDCs and Flash ADC times have separate cuts.
      
      Implement a second method of selecting best reference time.
        If InitHitList is passed a possitive reference time cut,
          use the first reference time above that cut.  If none of the
          hits pass the cut, then no reference time is set
        If InitHitList is passed a negative cut, the cut is taken to be
          the absolute value of the cut, but a reference time is garuanteed
          to be set as long as there is at least one reference time hit.
          If none of the reference time hits pass the cut, then the last
          hit is taken to be the reference time.  (Should be the largest.)
      
      Allow reference time cuts for all the spectrometer detector classes
        Hodoscopes, drift chambers, Aerogels, Gas Cherenkovs, Calorimeters
      39317b13
  3. Feb 15, 2018
  4. Dec 09, 2017
  5. Dec 06, 2017
    • Stephen A. Wood's avatar
      Suppress missing ref time messages when ref time not expected · e2c0eb6f
      Stephen A. Wood authored
        Each detector object will check the global variable X.present each
        event.  If X.present is false, it indicates that the parent
        spectrometer object determineted that this spectrometer is not in
        this event, and therefor reference times are not expected.  If
        X.present is false, then the reference time warning messages will
        be suppressed.
      e2c0eb6f
  6. Nov 30, 2017
    • Mark Jones's avatar
      Additional changes for adc reftime · de787b3e
      Mark Jones authored
      Modified so that the fGoodPosAdcPulseTime, fGoodNegAdcPulseTime
        or fGoodAdcPulseTime is set to kBig
      
      Modified THcShowerRawHit::SetReference to takeADC signals
      
      Modified THcTrigRawHit::SetReference to take ADC signals
      
      Modified THcShowerArray::ProcessHits so that fAdcTdcOffset add to frAdcPulseTime
      
      Modified THcShowerArray::ReadDatabase so that defaults for fAdcThreshold etc
        are before gHcParms->LoadParmValues
      de787b3e
    • Stephen A. Wood's avatar
  7. Nov 21, 2017
  8. Oct 31, 2017
  9. Oct 27, 2017
    • Eric Pooser's avatar
      Work for fadc unit conversion · 2249979b
      Eric Pooser authored
      Include methods for FADC conversions and apply to non-raw data objects in THcRawAdcHit
      
      Add raw pulse time data object to Cherenkov detector classes
      
      Add raw pulse time data object to shower detector classes
      
      Add raw pulse time data object to hodoscope detector class
      2249979b
  10. Aug 01, 2017
  11. Jul 28, 2017
  12. Jul 21, 2017
  13. Jul 13, 2017
  14. Apr 06, 2017
  15. Apr 04, 2017
    • hallc-online's avatar
      Fix problem in THcAerogel::CoarseProcess with fNpeSum · f64afe8c
      hallc-online authored
      The line fNpeSum += fNegNpeSum
      was basically double counting the fNegNpeSum
      Same for fNpeSum += fPosNpeSum
      since they were in a loop over Neg and Pos hits.
      
      Just set
      fNpeSum = fNegNpeSum + fPosNpeSum
      after the two loops over Neg and Pos hits
      f64afe8c
  16. Apr 03, 2017
  17. Mar 31, 2017
    • Eric Pooser's avatar
      Complete rewrite of Aerogel and Cerenkov detector classes · e0d9b2a9
      Eric Pooser authored
      New parameters are added.  hallc_replay of 3/31/2017 or later is needed.
      
      As of now, the size of the TClonesArray objects are hard-coded in the
      respective header files. This is not okay in the long run. Ideally,
      the size of the TClonesArrays should be defined by the parameter which
      dictates how many readout detectors exist for the respective
      detector. I tried doing this in the Init method however, podd
      complained regarding the size of the TClonesArrays in the DEF-file
      histograms. I was unsuccessful in my first attempt. This should be
      addressed in the future even though things work for now.
      e0d9b2a9
  18. Mar 15, 2017
  19. Jan 19, 2017
  20. Jan 13, 2017
  21. Jan 12, 2017
  22. Dec 15, 2016
  23. Nov 23, 2016
  24. Nov 15, 2016
  25. Oct 07, 2016
    • Stephen A. Wood's avatar
      Update Aerogel class to work with multihit tdcs. · 6b1dc0ab
      Stephen A. Wood authored
        Add a new parameter Xaero_tdc_offset to make sure valid tdc
        hits from a reference time corrected tdc are positive.
        Accept first first positve tdc hit after applying offset.
        Move array filling in CoarseProcess into Decode
      6b1dc0ab
  26. Sep 28, 2016
  27. May 18, 2016
  28. May 12, 2016
  29. Mar 10, 2015
  30. Jan 16, 2015
  31. Jan 14, 2015
  32. Jan 08, 2015
  33. Sep 04, 2014
  34. Jan 17, 2014
  35. 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
  36. Nov 13, 2013
    • Mark Jones's avatar
      Modified THcAerogel::ReadDatabase · 5c39dd7c
      Mark Jones authored
      1) Need to add fNelem to DBRequest to read parameter arrays.
      2) Added optional variable and set to true. Flag in the
      DBRequest to tell code that parameter is optional
      and does not have to be found.
      3) Move setting of fNelem to before DBRequest for aero_num_pairs
       so that it can be overwritten by parameter file.
      5c39dd7c
  37. Mar 25, 2013
Loading