Skip to content
Snippets Groups Projects
  1. Feb 26, 2017
  2. Feb 25, 2017
    • Cdaq Account's avatar
      Modified THcHodoscope::FineProcess for dumping data for hodo calibrations · a3f7bc2c
      Cdaq Account authored
      Moved the writing out of the "0" to the fDumpOut for hodo calibrations
      to immediatiately after the TOF with track info calculations.
      Before it had been after then lines
      
        if ( !fChern || !fShower ) {
          return 0;
        }
      
      so if Cerenkov and shower were not used in replay the code would not get
      to write out the "0" which is used to denote the end of an event data for
      the calibration script.
      a3f7bc2c
  3. Feb 24, 2017
    • Jure Bericic's avatar
      Added capability to set F250 parameters from PSE125. · 7878074b
      Jure Bericic authored
      PSE125 holds information about setting of F250 modules. Now this
      information is used to set `fNPedestalSamples` and `fNPeakSamples`
      parameters of `THcRawAdcHit`.
      
      This is done through `THcHitList`, since it has information about
      which crate and module each channel is in. Currently, the information
      is set for each event, because of the hitlist and analyzer design.
      
      I added the neccessary support for these changes to all raw hit
      classes.
      7878074b
  4. Feb 23, 2017
  5. Feb 21, 2017
  6. Feb 20, 2017
    • Jure Bericic's avatar
      Refactored fScinHitPaddle handling. · 2cee44f8
      Jure Bericic authored
      fScinHitPaddle is a std::vector<std::vector<Double_t>>. It was
      cleared and rebuilt for each event with the same structure,
      instead of just zeroing out all the values.
      
      Now it is created in only one place, and than zeroed instead of
      cleared.
      
      Changed data type in fScinHitPaddle from Double_t to Int_t. Should
      be changed to bool, but then all logic should be changed.
      2cee44f8
  7. Feb 19, 2017
    • Jure Bericic's avatar
      Fixed a weird bug. · 46d8767a
      Jure Bericic authored
      There was a weird bug in the code, that only triggered for some runs.
      It turns out, in the `THcHodoscope::FineProcess` the hits in each plane
      were created only for number of paddles in first plane. SHMS, however,
      has 13 paddles in first plane and 14 and 21 paddles in last two planes.
      
      The problem is fixed now, but part of that code should be rewritten for
      efficiency.
      46d8767a
  8. Feb 13, 2017
  9. Feb 09, 2017
  10. Feb 08, 2017
  11. Feb 07, 2017
    • Stephen A. Wood's avatar
      a7431d09
    • Jure Bericic's avatar
      Fixed "No Time to dist algorithm available" error in `THcDCHit`. · eb954578
      Jure Bericic authored
      This error is triggered when there is no wire defined for hit, or
      when the wire has no `GetTDDConv()` method. The ROOT dictionary
      calls default constructor that doesn't set the wire and calls
      `ConvertTimeToDist()` regardless.
      
      I changed the default constructor to not call the `ConvertTimeToDist()`
      if the wire is not set. I also added the call to this function
      in the `SetWire()` method.
      eb954578
    • Cdaq Account's avatar
      Add fCosmicFlag to Hodoscope class · b630d415
      Cdaq Account authored
      The fCosmicFlag is used in EstimateFocalPlaneTime
      The start time for the drift chamber is determined as an average
      of the focal plane times for each hodo plane. Need to account for
      the TOF from the hodoscope to the focal plane (z=0). For cosmic
      data need to add this TOF to the corrected scintillator time, while
      usually one needs to subtract this TOF. Add a flag as parameter to
      switch between these modes.
      b630d415
  12. Feb 06, 2017
  13. Feb 03, 2017
  14. Jan 31, 2017
  15. 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
  16. Jan 28, 2017
  17. Jan 27, 2017
  18. Jan 26, 2017
  19. Jan 24, 2017
  20. Jan 23, 2017
  21. Jan 19, 2017
  22. Jan 13, 2017
  23. Jan 12, 2017
  24. Jan 11, 2017
  25. Dec 21, 2016
    • Jure Bericic's avatar
      Changed fMaxNSamplesADC to 511. · 0022bf57
      Jure Bericic authored
      The f250 modules can produce at most 511 samples (9 bit) so it seemed reasonable to increase
      the maximum number of samples in the raw hits to this value.
      0022bf57
  26. Dec 17, 2016
    • Jure Bericic's avatar
      Fixed initializer list warnings in older compilers. · 715c8dd5
      Jure Bericic authored
      As it turns out, this was not so easy fix. I had to do:
      - add at least c++0x support to scons (works for g++ 4.4.7!)
      - change how my DefineVariables works
      
      The c++0x support is bonus, since now we can use some additional features, like auto keyword (see https://gcc.gnu.org/gcc-4.4/cxx0x_status.html).
      715c8dd5
    • Jure Bericic's avatar
      Added new methods to THcRawAdcHit. · 27a18730
      Jure Bericic authored
      27a18730
    • Jure Bericic's avatar
      Added THcRawAdcHit and included it in THcRawShowerHit. · 6e184a5a
      Jure Bericic authored
      The new class THcRawAdcHit is meant to represent the raw ADC hits. The
      logic with dealing with ADCs has become quite complex now and it would
      have to be multiplicated across all detectors that have ADC
      channels. While this by itself is not such a big problem, fixing
      possible bugs in multiple places is.
      
      I also redesigned the THcRawShowerHit class to use the new
      THcRawAdcHit. The redesign was due anyway, so I took the opportunity.
      
      I also had to modify THcShowerArray and THcShowerPlane. They still
      need some work to use the the new flash 250 data, but changes were
      necessary anyway.
      
      Minor fix 01.
      6e184a5a
  27. Dec 15, 2016
  28. Dec 12, 2016
    • Jure Bericic's avatar
      Small fixes for THcRawHodoHit and THcTrigRawHit. · d5ff42cf
      Jure Bericic authored
      - Now throwing an error for invalid signal in THcRawHodoHit::GetRawData and THcRawHodoHit::GetData.
      - THcRawHodoHit::GetData now only subtracts reference time for TDC channels.
      - THcRawHodoHit::SetReference now prints warning when trying to set reference time for ADC and does not set it.
      - Fix in THcTrigRawHit::Clear to set fHasMulti to kFALSE.
      - THcTrigRawHit::SetReference now prints warning when trying to set reference time for ADC and does not set it.
      d5ff42cf
  29. Dec 09, 2016
Loading