Skip to content
Snippets Groups Projects
  1. Dec 15, 2018
    • Whitney Armstrong's avatar
      Starting adding logging with spdlog · ec942943
      Whitney Armstrong authored
      - Mixins defined in Logger.h
      - Mixin used in base classes (THcDC is currently a good example)
      
      Added a few more spdlog loggers
      
      Added logging to many.
      
      - Added logging to hodoscope, aerogel hitlist and detectormap
      - Working on scandalizer features.
      
      Added logging.
      
      Added more logging.
      
      added more logging.
      
      More logging.
      ec942943
  2. Dec 11, 2018
  3. Sep 20, 2018
    • Yero1990's avatar
      Mispoint param (#408) · f5dfd245
      Yero1990 authored
      * updated mispointing calculations
      
      * added TMath::Abs() for HMS angles, since it has a '-' sign in the kin. file
      f5dfd245
  4. Sep 07, 2018
  5. Aug 19, 2018
    • hallc-online's avatar
      Update THcHallCSpectrometer.cxx · 5a558673
      hallc-online authored
      Added setting of spectrometer mispointing according the the input
      spectrometer angle if the mispointing is not set by a parameter.
      
      The formulas for deteriming the mispointing comes from fits to sureys.
      
      If one wants to use different spectrometer mispointings then
      it is best to set hmispointing_x,hmispointing_y for HMS
      and pmispointing_x,pmispointing_y for SHMS in the kinematics setting file
      such as standard.kinematics .
      5a558673
  6. 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
  7. Feb 11, 2018
    • hallc-online's avatar
      Update THcHallCSpectrometer and THcExtTarCor · f34d57d9
      hallc-online authored
      THcHallCSpectrometer
        1) Add variables fMispointing_x and fMispointing_y
          which are filled by parameters hmispointing_x, hmispointing_y
            in PARAM/HMS/GEN/hmsflags.param and pmispointing_x, pmispointing_y
            in PARAM/SHMS/GEN/shmsflags.param .
         The offsets are used in THcExtTarCor and THaReactionPoint
        2) Modify argument to method CalculateTargetQuantities to be xtar
           instead of gbeam_y .
      
      THcExtTarCor
         1) add call to get spectrometer pointing offsets
         2) The mispointing_x is added to xtar
         3) Set xtar to start as -beam_y = - vertex(1)+mispointing_x for first call to CalculateTargetQuantities
            After first call the xtar is recalculated using the returned xptar
            and a second call is done to get the target xptar,ytar,yptar and delta.
          4) Fill golden track with final xtar
      f34d57d9
  8. Dec 08, 2017
  9. Dec 06, 2017
  10. Sep 22, 2017
  11. Aug 31, 2017
  12. Aug 25, 2017
    • hallc-online's avatar
      Add method THcHallCSpectrometer::CalculateTargetQuantities · 239cd15b
      hallc-online authored
      This method calculates the target quantities using the focal
      plane quantities and the optics matrix. Previously
      this was done in THcHallCSpectrometer::FindVertices.
      Now in THcHallCSpectrometer::FindVertices there is
      a call to CalculateTargetQuantities
      
      
      This method will be called by THcExtTarCor
      to do the xtar correction.
      239cd15b
  13. Jul 28, 2017
  14. Jul 25, 2017
    • hallc-online's avatar
      Fix bug introduced in THcHallCSpectrometer::FineProcess · 2259ea29
      hallc-online authored
      When making changes to support THcPrimaryKine added line
      track->SetEnergy
      which set the track energy to energy determined from
      measurement of spectrometer delta.
      But this energy should be the energy measured by the
      Shower calorimeter.
      Deleted the line in THcHallCSpectrometer since it is not
      needed anyway.
      2259ea29
    • hallc-online's avatar
      Add THcPrimaryKine and modified THcHallCSpectrometer · 6a969cf7
      hallc-online authored
      Add class THcPrimaryKine to calculate physics kinematics quantities for single arm
      
      Modified  THcHallCSpectrometer so that it would fill track energy and momentum 3 vector
      6a969cf7
  15. Jul 21, 2017
  16. Apr 26, 2017
    • hallc-online's avatar
      Modify THcDC and THcHallCSpectrometer · d5134c3d
      hallc-online authored
      The purpose is to add a call in THcHallCSpectrometer:TrackCalc
      to fill variables in THcDC for the golden track.
      
      THcHallCSpectrometer.h
      ----------------------
      1) Add object THcDC* fDC
      2) Eliminate object fShower since it was not being used.
      
      THcHallCSpectrometer.cxx
      ----------------------
      1) in ReadDatabase method cast fDC in detector "dc" is defined
      2) in FindVertices method add call
          to fDC->SetFocalPlaneBestTrack(hit_gold_track)
          where hit_gold_track is the HaTracks array index
          of the golden track
      
      THcDC.h
      -------
      1) Add method SetFocalPlaneBestTrack
      
      THcDC.cxx
      ---------
      1) Eliminate filling of best focal plane quantities
         in CoarseTrack which defined "best" by lowest chi2
      2) Create method SetFocalPlaneBestTrack
         a)fills the best focal plane quantities using the golden track
         b) fills fResiduals using golden track
      d5134c3d
    • Carlos Yero's avatar
  17. Mar 23, 2017
    • hallc-online's avatar
      Modified THcHallCSpectrometer.cxx and THcHodoscope.cxx · 84bd549e
      hallc-online authored
      The change was made so that NonTrackingDetector could have information
      on the "best" track in their FineProcess method.
      
      In THcHallCSpectrometer::FindVertices the "best" track will be selected
      and the Track object will its SetIndex method to set the index to 0 for
      the best track. The other track will have index=1 or greater.
      
      In the NonTrackingDetector FineProcess, the track that is selected to
      be the "best" can be found by looping through the tracks checking
      track index using Track.GetIndex() for find the track with Index=0.
      
      In  the NonTrackingDetector's CoarseProcess they need to set quantities
      for the Track object needed for selection of "best" track for the
      "prune" and "usingscin" track selection methods.
      
      1) In THcHallCSpectrometer:
        a) Moved selection methods of "best" track from TrackCalc to FindVertices.
        b) Removed setting of Golden Track in the selection methods.
        c) Add setting of Track Index=0 for "best" track in each selection method.
        d) Modified TrackCalc method to loop through Track object and find
           the track with Index=0 and set the Golden Track equal to this Track.
      
      2) In THcHodoscope.cxx
        a) Moved all calculations in FineProcess into CoarseProcess
        b) CoarseProcess calculates the scintillator Beta for each Track
           and does Track->SetBeta.
        c) In determination "zcor" for corrected hits times
            use fBetaNominal instead fBetap from track. Still use Track
            to get distance.
        c) Eliminate fBetap variable which was using the Track momentum
        d) Add variable fBeta which is just from scintillator times.
        e) In FineProcess fill fBeta with the the beta associated
           with the "best" track determined by selecting Track with index=0
      84bd549e
  18. Dec 15, 2016
  19. May 18, 2016
  20. Sep 22, 2015
  21. Mar 02, 2015
    • Stephen A. Wood's avatar
      Track Selection code cleanup · 80368477
      Stephen A. Wood authored
        Enforce variable conventions
        Default using_scin and using_prune selection to off
        Break different track selection methods into different class methods
      80368477
  22. Feb 27, 2015
  23. Feb 23, 2015
  24. Jan 20, 2015
    • Mark Jones's avatar
      Modify THcHallCSpectrometer · 1c3012e5
      Mark Jones authored
          THcHallCSpectrometer inherits from THaSpectrometer which has method
          GetPcentral and a member fPcentral.
           THcHallCSpectrometer had been using fPCentral but decided to
          use fPcentral.
          Delete fPCentral in THcHallCSpectrometer.h
          Replace all fPCentral  by fPcentral in ReadDatabase and FindVertices methods.
      1c3012e5
  25. Jan 16, 2015
  26. Jan 14, 2015
  27. Jan 08, 2015
  28. Dec 22, 2014
  29. Dec 19, 2014
  30. Oct 24, 2014
  31. Oct 04, 2014
  32. Sep 26, 2014
    • Zafar's avatar
      Golden track using prune: · 71e27664
      Zafar authored
            Selection of golden track using prune method is added.
            A bug is also fixed in THcHodoscope class
            Number of pmts hits, focal plane time, good time for plane 4
            and good time for plane 3 are set to the tracks in
            THcHodoscope class.
      71e27664
  33. Sep 21, 2014
Loading