Skip to content
Snippets Groups Projects
  1. Sep 10, 2019
  2. May 31, 2019
    • Mark Jones's avatar
      Modify THcDC and THcHallCSpectrometer · b043a0c8
      Mark Jones authored
      1) THcDC
      a) Add variable to tree called dc.InsideDipoleExit
      which is a Bool_t flag that is kTRUE if golden track is inside the
      dipole exit. Uses THcHallCSpectrometer::InsideDipoleExitWindow
      in THcDC::SetFocalPlaneBestTrack to set variable.
      
      2) THcHallCSpectrometer
      a) Add method Bool_t InsideDipoleExitWindow which checks whether
      the track is within the dipole exit window. Checks
      prefix used for database to set flag
      fUseSHMSDipoleExitWindow or fUseHMSDipoleExitWindow
      to be true which is used in InsideDipoleExitWindow
      to select either SHMSDipoleExitWindow or
      HMSDipoleExitWindow method to be used as the test.
      b) Hardcoded z distance from spectrometer focal plane to
      dipole exit window.
      c) Methods Bool_t SHMSDipoleExitWindow and
      Bool_t HMSDipoleExitWindow return true/false if
      the track was inside/outside the dipole exit window.
      d) Added dipole exit window test to the BestTrackUsingPrune
      method. Need to set parameter hprune_DipoleExit=1 or
      pprune_DipoleExit=1 to use the test in the method.
      By default it is turned off.
      b043a0c8
  3. May 02, 2019
    • Mark Jones's avatar
      Modify THcDC · 0015a43c
      Mark Jones authored
      In THcDC.h change MAXTRACKS from 10 to 50. The maximum
      number of tracks is set by parameter ntracks_max_fp
      
      Previously the LinkStubs method would not create
      a track if the total number of spacepoints in
      the two chambers was larger than 10.
      
      Now LinkStubs will create a vector of THcSpacePoints
      of up to 100 spacepoints with no more than
      50 spacepoints from chamber 1 and use that
      to find possible tracks.
      
      I
      0015a43c
  4. Feb 04, 2019
    • Whitney Armstrong's avatar
      modified: src/THcDC.cxx · 824e50dc
      Whitney Armstrong authored
      	modified:   src/THcDC.h
      	modified:   src/THcDriftChamberPlane.cxx
      	modified:   src/THcDriftChamberPlane.h
      	modified:   src/include/HallC_LinkDef.h
      824e50dc
  5. Feb 01, 2019
  6. Jan 28, 2019
  7. Jan 21, 2019
  8. Jan 07, 2019
  9. 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
  10. Dec 11, 2018
  11. Sep 07, 2018
  12. 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
  13. Jul 17, 2018
  14. Apr 28, 2018
    • hallc-online's avatar
      Modify THcDC, THcDriftChamber, THcSpacePoint · 9f98b2c0
      hallc-online authored
      THcSpacePoint
        1) added fSetStubFlag which is intialized
           to kFALSE in constructor and set to kTRUE
           when SetStub is called.
         2) added method GetSetStubFlag which
            returns fSetStubFlag.
      
      THcDriftchamber
         1) In ProcessHits increased fHits reserve to 40
         2) In FindSpacePoints use fSpacePoints->Delete();
         3) In LeftRight ,only SetStub if the Stub is fit.
      
      THcDC
         1) In LinkStubs
            a) only link stubs if number of total spacepoints <10
            b) only link stubs if both spacepoints have SetStubFlag true
      
      THcDCHit.h
         1) In constructor initalize fLR to 0
      
      THcDCTrack.cxx
         1) AddSpacePoint check if fnSP < 10
      9f98b2c0
  15. Apr 16, 2018
    • 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
  16. Mar 17, 2018
    • hallc-online's avatar
      Modify THcDC and THcDCTrack · 7e790fc0
      hallc-online authored
      Modify THcDCTrack::TrackFit to calculate residuals for each plane
         without the plane involved in the track.
      
      Add tree variable residualExclPlane
      7e790fc0
  17. Mar 15, 2018
    • hallc-online's avatar
      Modified THcDC.cxx · b0abd6ab
      hallc-online authored
      b0abd6ab
    • hallc-online's avatar
      Modify THcDC and THcSpacePoint.h · d12c9130
      hallc-online authored
      Modified THcSpacePoint.h to have public member that keeps track
         of the spacepoint ID number for each chamber.
         Used in THcDC::LinkStubs
      
      Modified THcDC.cxx and h
      1) Add tree variables sp1_id and sp2_id which are the integer
          ID in the spacepoints in each chamber used in the golden track.
           The ID refers to index in array of spacepoints created in
           THcDriftChamber.cxx
      
      2) Modify LinkStub to fill sp1_id and sp2_id for each track
      
      3) For golden track fill sp1_ID_best and sp2_ID_best
      d12c9130
  18. 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
  19. Feb 15, 2018
  20. 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
  21. Dec 02, 2017
  22. Nov 03, 2017
    • Mark Jones's avatar
      Modify THcDC::Setup · decdb99f
      Mark Jones authored
      Set fHMSStyleChambers =1 according to dc_version parameter.
      If no dc_version parameter loaded defaults to old HMS style chambers
      decdb99f
  23. Nov 02, 2017
  24. Oct 09, 2017
  25. Aug 31, 2017
  26. Jul 28, 2017
  27. Jul 21, 2017
  28. 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
  29. 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
  30. Mar 13, 2017
    • hallc-online's avatar
      Modify THcDC::CoarseTrack and THcDC::TrackFit · b140267a
      hallc-online authored
      Add variables fX_fp_best,fY_fp_best,fXp_fp_best,fYp_fp_best to THcDC.h
      Modified THcDC::CoarseTrack so that the variables are filled with the
      quantities from the track with the smallest chi-squared.
      Modified THcDC::TrackFit so that the fResidual per plane is filled with
      for the track with the lowest chi-squared.
      Modified THcDC::DefineVariables so that access the variables as
      dc.x_fp,dc.y_fp,dc.xp_fp and dc.yp_fp
      b140267a
  31. Feb 09, 2017
  32. Feb 08, 2017
  33. Dec 15, 2016
  34. Nov 23, 2016
  35. Nov 15, 2016
  36. May 12, 2016
Loading