Skip to content
Snippets Groups Projects
  1. Sep 14, 2018
  2. Aug 15, 2018
  3. Aug 14, 2018
  4. 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
  5. Jul 19, 2018
    • Stephen A. Wood's avatar
      Restore ability to analyze 6 GeV data. · 842da11c
      Stephen A. Wood authored
        Set hodoscopes to standard ADC mode for example hodtest.C script
        badcraw_pos and badcraw_neg always true if not Dynamic pedestal mode
        Don't crash in hodoscope if there is no Cherenkov.
      842da11c
  6. Jun 28, 2018
    • Yero1990's avatar
      Hodo calibwork (#371) · a0d46849
      Yero1990 authored
      Modified Hodoscope and ScintillatorPlane  classes for new time calibration method.
      
      a0d46849
  7. Mar 07, 2018
  8. Dec 09, 2017
    • hallc-online's avatar
      Modify THcScintillatorPlane · b45b5ec7
      hallc-online authored
      Have variables fGoodPosAdcTdcDiffTime and fGoodNegAdcTdcDiffTime
      which are the difference
      between TDC time and ADC pulse time
      
      Replace ADC pulse time cut with cut on difference
      between TDC time and ADC pulse time to select
      good ADC pulse.
      b45b5ec7
  9. Nov 30, 2017
  10. Nov 14, 2017
    • Mark Jones's avatar
      Fix logical flaw in THcScintillator::ProcessHits in finding good adc hit in... · e08f4f58
      Mark Jones authored
      Fix logical flaw in THcScintillator::ProcessHits in finding good adc hit in multiple hits in one channel
      
      When looping over hits to find the best ADC hit, the code was looping over
      frNegAdcPulseInt->GetEntries() or frPosAdcPulseInt->GetEntries()
      which are the raw arrays that are filled for all raw hits in the plane
      The code was not  using the proper indexes to access the right hits.
      
      The logic is simpler if one loops over rawNegAdcHit.GetNPulses()
      or rawPosAdcHit.GetNPulses() which are the the raw hit object for the
      paritcular hit. NPulses is the number of ADC pulses that were found for that
      adc channel.
      The first adc pulse for the channel which is within the adc time window
      then has its information saved for late insertion into the "good"
      vectors for the hit if either the hit passes 'good" tdc and adc for the POS
      or NEG side of the PMT.
      e08f4f58
  11. Nov 03, 2017
    • Mark Jones's avatar
      Update THcHodoscope, THcScintillatorPlane · b625a5a7
      Mark Jones authored
          THcHodoscope.cxx
          1. Remove from the use of "temp_planes" for SHMS which
               used only 3 planes for beta and determination of start time.
      
          2. With change of Integral ADC to pC, change TMath::Sqrt(TMath::Max(20.0,adc_pos))
            to Math::Sqrt(TMath::Max(20.0*.020,adc_pos)) to convert 20 channels to pC
      
          3. Set fGoodFlags[itrack][ip][iphit].onTrack = kTRUE; when fTOFPInfo[ih].onTrack
             Was always FALSE before.
      
          4. Modify FineProcess
             a. Add calculation of the track X and Y track position at each plane.
             b. Calculate the difference between the track position and position
                measured by hodoscope center. If multiple paddles hit then take
                average of the paddles.
      
          THcScintillatorPlane.h and cxx
      
          1. add variables fHitDistance,fTrackXPosition and fTrackYPosition
          2. add methods GetHitDistance(),GetTrackXPosition(),GetTrackYPosition()
          3. add methods SetHitDistance,SetTrackXPosition,SetTrackYPosition
          4. add variables to tree DiffDisTrack,TrackXPos and TrackYPos
          5. set GoodPosAdcPulseTime to frPosAdcPulseTime
          6. set fGoodNegAdcPulseTime to frNegAdcPulseTime
          7. in HodoHit set PosADCtime and NegADCtime to PulseTime
      b625a5a7
  12. Oct 31, 2017
  13. 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
  14. Sep 20, 2017
  15. Aug 18, 2017
  16. Jul 28, 2017
  17. Jul 21, 2017
  18. Jul 13, 2017
  19. Jul 12, 2017
  20. Jul 11, 2017
  21. Jun 30, 2017
  22. Jun 29, 2017
  23. Jun 22, 2017
  24. Jun 12, 2017
  25. May 30, 2017
    • Ak1508's avatar
      Added ADC Error Flags for ScintillatorPlane.cxx class · d28eda3c
      Ak1508 authored
      -Added fAdcTimeWindow Min/Max to THcHodoscope.cxx (.h)
      -Added fAdcTimeWindow Min/Max to THcScintillatorPlane.cxx (.h)
      -Initialized loop over number of hits inside the FillDynamic_Pedestal() method
      -added some variables in the THcScintillatorPlane.cxx Dynamic Pedestal Method
      -Added loop over adc_pos and adc_neg hits, and required the hits to fall
      within fAdcTimeWindow Min/Max
      -Added the requirement of at least a valid (adc && tdc) on either end of a bar
      -re-defined boolean operator for adc_pos/adc_neg to be True if  they passed the errorflag and timeCUT requirements in the fADC_Dynamic Pedestal method.
      -- deleted adc_pos/neg initial definitions, and set their initial values to -999.
      d28eda3c
  26. Mar 06, 2017
    • Cdaq Account's avatar
      Modified hodoscope and scintillatorplane code for hodo calibration · 201bcda2
      Cdaq Account authored
      Temporarily set THcHodoscope.cxx so that only the first three planes are used to calculate the focal
      plane time and beta.
      In THcHodoscope , Modified format for writing out the dump file used in hodo calibration.
      Add cosmicflag to THcScintillatorPLane so the corrected time is done right for cosmics.
      Modified hc_hodo_calib/tofcal.f so that it uses detector 10 as the reference
      and that it writes out better defualts for parameters in there are not enough events for a PMT.
      201bcda2
  27. Mar 01, 2017
  28. Feb 13, 2017
  29. Jan 30, 2017
    • Jure Bericic's avatar
      Replaced `gHcParms->Find()` calls with `gHcParms->LoadParmValues()`. · ca2e9562
      Jure Bericic authored
      The calls to `Find()` need to be wrapped in checks if returned pointer is null.
      Otherwise a further call to get value produces SegFault. The `LoadParmValues()`
      does not suffer from this, since it throws error if non-optional parameter is
      not found. The error message also tells which parameter is missing.
      
      I still left three calls to `Find()` in `THcAnalyzer.cxx`. They are wrapped in
      checks and some other things...
      ca2e9562
  30. Jan 24, 2017
  31. Jan 19, 2017
  32. Jan 13, 2017
  33. Jan 12, 2017
  34. Dec 15, 2016
  35. Dec 07, 2016
    • Stephen A. Wood's avatar
      For Hodoscope, setup options to use flash ADC data in various ways · 6104d708
      Stephen A. Wood authored
        Use xhodo_adc_mode to choose how to interpret data
          0 - Interpret as a standard ADC, subtracting pedestal found from ped events
          1 - Use integrated pulse from ADC.  Subtract the event by ev pedestal
          2 - Integrate the sample data, subtract ped found from ped events
          3 - Integrate the sample data, subtract dynamic pedestal
        xhodo_pedestal_scale is factor to multiply dynamic pedestal before
          subtracting.  For example, if uses 4 samples to get pedestal and
          is acquiring 86 samples, in mode 3, this should be 86/4
        xhodo_adc_diag_cut is a cut used to determine if diagnostic ADC
          stuff should be put in tree for each channel.  Need to set this so
          that hodoscope hitmaps get filled right.  Was 50 for Fastbus data.
      6104d708
  36. Nov 01, 2016
Loading