Skip to content
Snippets Groups Projects
  1. 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
  2. Apr 24, 2018
    • Stephen A. Wood's avatar
      Update slipstudy.C to drive filtering of runs with 1190 sync problems. · 8cd404a6
      Stephen A. Wood authored
        Will correct sync problems in d(e,e'p) run coin_all_3302.dat and SIDIS
        run coin_all_3621.dat.
      
      To correct 3621, run slipstudy.C as is.  To correct 3302, change kTRUE
      to kFALSE in the line:
      
      synccheck->SetResync(kTRUE);
      8cd404a6
    • Stephen A. Wood's avatar
      Updates to THcTimeSyncEvtHandler · c5e04a3f
      Stephen A. Wood authored
        THcTimeSyncEvtHandler is a toolbox to study and correct various
        synchronization issues.
        It checks that the timestamp in the FADC250s agrees with the timestamp
        in the TI modules.
        It also checks if the event counter in the 1190 modules agrees with the
        event counter in the TI modules.
        It can be used to correct the 1190 synchronization problem we have
        seen in ROC3 by writing out a corrected data file.  See the next commit
        for an example of how it is used.
      c5e04a3f
  3. Apr 23, 2018
    • hallc-online's avatar
      Fix typo in THcTrigDet.cxx · 9ef53129
      hallc-online authored
      9ef53129
    • hallc-online's avatar
      Updated THcTrigDet · a4f28135
      hallc-online authored
      1) Have time cut on TrigDet reference time for TDC and ADC,
             to select reference time from multiple hits
      
      2) Have time window to select best TDC or ADC reference time subtracted
         time  hit for each channel.
      a4f28135
  4. Apr 16, 2018
    • hallc-online's avatar
      Updated THcDriftChamber.cxx · 0eec2a5a
      hallc-online authored
      In LeftRight method when using SmallAngle Approximation and
       additional condition that the wires in adjacent plane have to
       be within 0.51cm.
      0eec2a5a
    • hallc-online's avatar
      Updated THcDriftChamberPlane · f0e86b0f
      hallc-online authored
      Add call ConvertTimeToDist in SubtractStartTime method
      f0e86b0f
    • hallc-online's avatar
      Updated THcHodoscope.cxx · ff106a07
      hallc-online authored
      Modify so default starttime is -1000.
      
      Modify so if no hits in scintillator then EstimateFocalPlane is not called.
      ff106a07
    • hallc-online's avatar
      Modify THcDCTrack.h · 04242df6
      hallc-online authored
      Fix type in GetSp2_ID()
      04242df6
    • 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
  5. Apr 12, 2018
  6. Apr 11, 2018
  7. Apr 02, 2018
    • hallc-online's avatar
      Modify fFpTimeAll filling in THcHodoscope · e06d50f0
      hallc-online authored
      fFPTimeAll is the average focal plane time from all
        scintillator times. In EstimatedFocalPlaneTime fFPTimeAll is set to
        starttime which is the average FP time without using the DC track.
      
      If there are tracks, then a focal plane time is calculated
      for each track using the track information to improve the focal
      plane time calculation and save for each track. Previously
       fFPTimeAll was being filled for each track, so in effect
      fFPTimeAll was being filled with the FP time of the last track.
      ALso there was no check that nFPTimeSum was not zero when
      calculating average FP time, so one could get NaN values for
      fFPTimeAll
      
      To fix the problem , added  and modified line
      
      Double_t fptime=-1000;
      if (nFPTimeSum>0) fptime = FPTimeSum/nFPTimeSum;
      
      And moved setting fFPTimeAll to THcHodoscope::FineProcess
      Now fFPTimeAll is set the the average focal plane time of
      the golden track.
      e06d50f0
  8. Mar 28, 2018
  9. Mar 23, 2018
    • Stephen A. Wood's avatar
      Examples script to study slippage of FADC trigger times. · 0126a691
      Stephen A. Wood authored
        Usual trigger time offsets for the 3 FADC crates are set
        in slipstudy.C
      0126a691
    • Stephen A. Wood's avatar
      Add THcTimeSyncEvtHandler · af10f36b
      Stephen A. Wood authored
        This event type handler can be used to gather statistics on the slippage
        of trigger times in FADC250 headers.
        It looks at the relative trigger times between the ADCs and the TI modules
        and counts the number of times the relative times shift.
      
        The ADC trigger times will have a small offset relative to the TI trigger
        times.  The method AddExpectedOffset(roc, offset) allows the setting
        of this offset on a crate by crate basis.  If expected offsets are not
        set, the first event is used to determine the offsets.
      af10f36b
  10. Mar 21, 2018
  11. Mar 19, 2018
    • Stephen A. Wood's avatar
      Implement version numbering for hcana. · dada9972
      Stephen A. Wood authored
        We'll start with version 0.90.0 and increment the second number up to 99.
        Goal is to declare a verison 1.0.0 sometime over the summer.
      
        To change the version, edit both SConscript.py and Makefile.
      dada9972
  12. 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
  13. Mar 16, 2018
  14. Mar 15, 2018
    • Stephen A. Wood's avatar
      Simplify THcFormula so that code from THaFormula is not duplicated. · a11e43b3
      Stephen A. Wood authored
         THcFormula::DefinedValue is removed as
           THaFormula::DefinedValue now handles the kCutScaler and kCutNCalled types
      a11e43b3
    • Stephen A. Wood's avatar
    • Stephen A. Wood's avatar
      Update to podd 1.6.0 release. · cc81cf4b
      Stephen A. Wood authored
            Includes THaFormula patches needed for THcFormula simplification
      cc81cf4b
    • Stephen A. Wood's avatar
      Sync main.C with podd version. · 3896ee58
      Stephen A. Wood authored
        Fix annoyance of spurious extra prompt on exit
        Add -l, -v and --version command line options
      3896ee58
    • Stephen A. Wood's avatar
      Inherit THcInterface from THaInterface · 36e2347b
      Stephen A. Wood authored
      36e2347b
    • hallc-online's avatar
      Modified THcDriftChamber · 2eba5f37
      hallc-online authored
      1) Add to tree variable arrays stub_x,stub_xp,stub_y and stub_yp
          and ncombos. These are arrays of the number of spacepoints in
          the chamber.
      
      2) In ReadDatabase
         a) new variable  fRatio_xpfp_to_xfp which is set differently
             for HMS and SHMS. Used in method LeftRight
         b) Set default value of optional parameter fStubMaxXPDiff = 999.
      
      3)  Modified method LeftRight
         a) Previously only for the old fHMSStyleChambers would
            the code only select LR combinations where
            the difference between stub_xp to space_point_X*ratio is
              with in the fStubMaxXPDiff .
            The ratio came from the HMS optics.
         b) Changed LeftRight so that if fStubMaxXPDiff < 100
               then the code will only select LR combinations where
            the difference between stub_xp to space_point_X*ratio is
              with in the fStubMaxXPDiff . The ratio is
            set in ReadDataBase according to the spectrometer.
      
      
      5) In FindSpacePoints add some comments.
      2eba5f37
    • 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
    • hallc-online's avatar
      Modify THCDCTrack · 973412c2
      hallc-online authored
      Add methods for setting the spacepoint integer identifier
        for two spacepoints used in the track.
      973412c2
    • hallc-online's avatar
      Modify THcSpacePoint.h · e546ebb1
      hallc-online authored
      Add calls:
      +  Double_t GetStubX() {return fStub[0];};
      +  Double_t GetStubXP() {return fStub[2];};
      +  Double_t GetStubY() {return fStub[1];};
      +  Double_t GetStubYP() {return fStub[3];};
      e546ebb1
  15. Mar 14, 2018
  16. Mar 07, 2018
  17. Mar 06, 2018
    • hallc-online's avatar
      Modify THcExtTarCor.cxx and THcReactionPoint · 810f8b3e
      hallc-online authored
      Fix sign mistake in correction for vertical pointing offset
         in THcExtTarCor.cxx
      
      Write Hall C version of THcReactionPoint
      810f8b3e
    • hallc-online's avatar
      Updated THcCherenkov.cxx and h · 13c30107
      hallc-online authored
      Add new ntuple variables
      goodAdcMult == the number of hits in raw ADc for that channel
      goodAdcHitUsed == which hit number of the raw ADC hits passed the
                            the ADC time window cut
      
      Modified fAdcTimeWindowMin  and fAdcTimeWindowMax to be arrays
        that are the size of the number of Cerenkov pmts.
      13c30107
  18. Feb 20, 2018
Loading