Skip to content
Snippets Groups Projects
  1. Sep 07, 2018
  2. 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
  3. Jul 17, 2018
  4. 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
  5. 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
  6. Mar 15, 2018
    • 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
  7. Nov 02, 2017
  8. Oct 09, 2017
  9. Aug 25, 2017
    • hallc-online's avatar
      THcDriftChamber::FindStub modified · 9e594a6a
      hallc-online authored
      Fixed minor bug
         FindStub was using the uncorrected drift distance
         from the hit object that was not corrected in
         CorrectHitTimes method. Need to use the corrected
         drift distance that with the spacepoint Hit structure
      9e594a6a
  10. Jul 28, 2017
  11. Mar 14, 2017
  12. Dec 15, 2016
  13. May 18, 2016
  14. May 12, 2016
  15. May 16, 2015
  16. Mar 10, 2015
  17. Jan 16, 2015
  18. Jan 14, 2015
  19. Jan 08, 2015
  20. Dec 12, 2014
  21. Sep 09, 2014
  22. Sep 02, 2014
    • Mark Jones's avatar
      Add "+1" to length when using new char[] · 085928d1
      Mark Jones authored
      Found when doing valgrind --tool=memcheck --track-origins=yes --leak-check=full hcana
      Return errors like below
      ==14467== Invalid write of size 1
      ==14467==    at 0x4A0794F: __GI_strcpy (mc_replace_strmem.c:313)
      ==14467==    by 0x57137A3: THcHodoscope::Setup(char const*, char const*) (THcHodoscope.cxx:112)
      ==14467==    by 0x5713A7E: THcHodoscope::Init(TDatime const&) (THcHodoscope.cxx:142)
      ==14467==    by 0x4D38C29: THaApparatus::Init(TDatime const&) (THaApparatus.C:193)
      ==14467==    by 0x4D67E57: THaAnalyzer::InitModules(TList const*, TDatime&, int, char const*) (THaAnalyzer.C:433)
      ==14467==    by 0x4D68B1F: THaAnalyzer::DoInit(THaRunBase*) (THaAnalyzer.C:667)
      ==14467==    by 0x4D68126: THaAnalyzer::Init(THaRunBase*) (THaAnalyzer.C:467)
      ==14467==    by 0x4D6B31A: THaAnalyzer::Process(THaRunBase*) (THaAnalyzer.C:1289)
      ==14467==    by 0x4E21E97: G__haDict_704_0_6(G__value*, char const*, G__param*, int) (haDict.C:23491)
      ==14467==    by 0x6DB6148: Cint::G__ExceptionWrapper(int (*)(G__value*, char const*, G__param*, int), G__value*, char*, G__param*, int) (in /u/apps/root/5.34.13/root/lib/libCint.so.5.34)
      ==14467==    by 0x6E5A3A0: G__execute_call (in /u/apps/root/5.34.13/root/lib/libCint.so.5.34)
      ==14467==    by 0x6E5B201: G__call_cppfunc (in /u/apps/root/5.34.13/root/lib/libCint.so.5.34)
      ==14467==  Address 0xd7636a2 is 0 bytes after a block of size 2 alloc'd
      ==14467==    at 0x4A0674C: operator new[](unsigned long) (vg_replace_malloc.c:305)
      ==14467==    by 0x5713757: THcHodoscope::Setup(char const*, char const*) (THcHodoscope.cxx:111)
      ==14467==    by 0x5713A7E: THcHodoscope::Init(TDatime const&) (THcHodoscope.cxx:142)
      ==14467==    by 0x4D38C29: THaApparatus::Init(TDatime const&) (THaApparatus.C:193)
      ==14467==    by 0x4D67E57: THaAnalyzer::InitModules(TList const*, TDatime&, int, char const*) (THaAnalyzer.C:433)
      ==14467==    by 0x4D68B1F: THaAnalyzer::DoInit(THaRunBase*) (THaAnalyzer.C:667)
      ==14467==    by 0x4D68126: THaAnalyzer::Init(THaRunBase*) (THaAnalyzer.C:467)
      ==14467==    by 0x4D6B31A: THaAnalyzer::Process(THaRunBase*) (THaAnalyzer.C:1289)
      ==14467==    by 0x4E21E97: G__haDict_704_0_6(G__value*, char const*, G__param*, int) (haDict.C:23491)
      ==14467==    by 0x6DB6148: Cint::G__ExceptionWrapper(int (*)(G__value*, char const*, G__param*, int), G__value*, char*, G__param*, int) (in /u/apps/root/5
      085928d1
  23. Aug 29, 2014
  24. Aug 28, 2014
  25. Jul 30, 2014
    • Jonathan Stelzleni's avatar
      Created two new variables for THcDC, fNthits and fN_True_RawHits. · d496e1e3
      Jonathan Stelzleni authored
      In tree they are called tnhit and trawhit.
      Created two new variables for THcDriftChamber, fNthits and fN_True_RawHits.
      In tree they are called tnhit and trawhit.
      THcDC defined subdetector THcDriftChamber to have name Ch1 and Ch2 to do used in the tree.
      THcDriftChamberPlane defined new method GetNRawhits to return fNRawhits for each plane.
      Added member fNRawhits to THcDriftChamberPlane
      d496e1e3
  26. Feb 02, 2014
  27. Jan 14, 2014
  28. Dec 19, 2013
  29. Dec 17, 2013
  30. Dec 16, 2013
    • Stephen A. Wood's avatar
      Have THcDC tell THcDriftChambers if they are HMS style or not. · de4e0e39
      Stephen A. Wood authored
        THcDriftChamber::AddPlane didn't know if style was HMS, because
        style was only determined in Init.  Now fHMSStyleFlag is set in
        only one place.  Right now determined from spectrometer name, but
        could be a parameter in the future.
      de4e0e39
    • Mark Jones's avatar
      Modified AddPlane for SOS and HMS style chambers · 51f5ca37
      Mark Jones authored
      Modified ReadDatabase : Added fdebugstubchisq and Corrected fhdebugflagpr to be Int
      Added PrintDecode( void ) to print the drift chamber info in fHits
      Modified FindSpacePoints to use the proper PlaneInd and PlanePInd
          for HMS and SOS style chambers
      Changed THcDriftChamber::FindEasySpacePoint(Int_t yplane_hitind,Int_t yplanep_hitind) to
      THcDriftChamber::FindEasySpacePoint_HMS(Int_t yplane_hitind,Int_t yplanep_hitind)
      Added  THcDriftChamber::FindEasySpacePoint_SOS(Int_t xplane_hitind,Int_t xplanep_hitind)
      commented out many fhdebugflagpr  output statements
      51f5ca37
  31. Dec 12, 2013
  32. Dec 05, 2013
  33. Dec 02, 2013
    • Stephen A. Wood's avatar
      Untested SOS tracking code. · 2af4bf2d
      Stephen A. Wood authored
        THcDriftChamber
          New flag fHMSStyleChambers to determine if HMS or SOS style
          tracking should be done.  Flag is set on if the spectrometer
          name begins with 'h'.
          THcDriftChamber::LeftRight fSmallAngleApprox must be set and
          fHMSStyleChambers must be off to do SOS style.
          If not HMS style, ignore all the Yplane optimizations
        THcDC
          SOS code does "project to chamber" in link stubs.  Need to evaluate
          if this is necessary, or if HMS style should also do it.
      2af4bf2d
  34. Sep 26, 2013
    • Mark Jones's avatar
    • Stephen A. Wood's avatar
      Parameters to optionally correct small ENGINE DC hit handling errors. · 6a33dcf3
      Stephen A. Wood authored
         {prefix}dc_fix_lr
              Historically, in the ENGINE, if a hit is used in multiple
              space points/stubs, the left/right assignment for that hit, which
              is later used in track fitting, is that assigned for the last stub
              encountered with that hit.  Properly, the left right assignment
              should be allowed to be different in different space points.  If
              this parameter is set to zero (e.g. in hcana.param), then the
              ENGINE behavior is used.  For new analyses, it should be set to one.
              (Which is the default)
         {prefix}dc_fix_propcorr
              When a hit gets put into a stub, the distance of the hit from the
              discriminator can then be estimated.  In the engine, a correction to
              the drift time (and thus drift distance) is applied.  However, if
              that hit ends up in another stub, the correction will get applied again,
              resulting in a over correction.  Setting this flag to 1 will give that
              hit a different corection for each stub that it is in.
      
      These flags will default to the new "correct" way of handling hits if
      the above parameters are not set in a parameter file.  Currently, both
      flags are set to zero in hcana.param to replicate the ENGINE behavior.
      
      To implement these changes, the propagation correction and L/R information
      for each hit is saved in space point and track classes.  This information
      is still saved in the hit class, but only used if in ENGINE compatibility
      mode.
      
      The THcDCTrack class now saves a list of space point pointers instead
      of space point indices.
      
      The AddSpacePoint method now also copies all the hit information into
      the track object so that THcDC doesn't need to explicitely copy all
      the hits.
      
      The FindStub method, which fits a stub track to a space point is passed
      the space point rather than a list of hits
      6a33dcf3
Loading