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. Jun 29, 2018
  4. Jun 27, 2018
  5. Jun 08, 2018
  6. Feb 15, 2018
  7. 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
  8. Dec 05, 2017
  9. Nov 30, 2017
  10. Jul 11, 2017
  11. Apr 20, 2017
    • hallc-online's avatar
      Updates to THcShower, THcShowerArray and THcSHowerHit · 2f9e340d
      hallc-online authored
      THcShowerHit.h and THcShowerHit.cxx
      ---------------
      1) Added fY for horizontal position
      2) Added fY to THcShowerHit
      
      THcShower.h
      -----------
      1) Added variables
      2) Added method addY, clY to get the cluster Y position
      
      THcShower.cxx
      --------------
      1) Added variables to the tree for "layer" detector
          either SHMS preshower or HMS layers
      2) Added variables if the SHMS "array" is used
      3) Added y position to THcShowerHit in CoarseProcess
      4) In FineProcess, if SHMS "array" used then fill X,Y info
           for the Cluster and the "best" track that matched the cluster
      
      THcShowerArray.h and THcShowerArray.cxx
      ---------------------------------------
      1) Added methods to Get the array cluster size, X and Y position
         and block number that has the highest energy in the cluster
      2) Added array fBlockClusterID for all blocks. initialized to -1
         for each block for each event and then filled with
         the cluster number if the block is included in the cluster
      3) Add variable fNhits and fNgoodhits
      2f9e340d
  12. Mar 28, 2017
    • hallc-online's avatar
      Modify THcShower, THcShowerPlane and THcShowerArray classes · 6ad9abcf
      hallc-online authored
      Main purposes:
      1) Add the possibility of multiple ADC hits per channel and
         select best ADC by a time window.
      2) Change ProcessHits method in ShowerPlane and ShowerArray to only
          fill "raw" TClonesArrays.
      3) Add CoarseProcessHits method to ShowerPlane and ShowerArray
          to fill the "good" data arrays from call in THcShower:CoarseProcess
      4) Moved code to fill Track object with energy from FineProcess
         to CoarseProcess so that the Track->Get(Energy) can be used by other
          detectors in their FineProcess.
      5) FineProcess loops over Track object add gets Track energy
      6) Add AdcErrorFlag TClonesArray to be filled to check for
         problems with FADC
      
      
      
      
      THcShower.h
      1) Add methods GetADCMode(),GetAdcTimeWindowMin(),GetAdcTimeWindowMax()
          so that the ShowerPlane can access these parameters
      2) Add parameters ADCMode,fAdcTimeWindowMin,fAdcTimeWindowMax
      3) Add variables
         fNclustTrack : NUmber of cluster that matches best track
         fXclustTrack : X pos of cluster that matches best track
         fXTrack      : X pos of best track that matches cluster
         fEtrack  : Cluster energy associated with best track
         fEtrackNorm  : Cluster energy/Track momentum associated with best track
      THcShower.cxx
      1) Add calls to THcShowerPlane and THcShowerArray CoarseProcessHits
          in CoarseProcess
      2) Moved filling of Energy in Track object to CoarseProcess
      3) In FineProcess get the "best" Track object and match
         Track energy and trajectory to cluster.
      
      THcShowerArray.h and cxx
      1)add parameters fADCMode, fAdcTimeWindowMin and fAdcTimeWindowMax
      2) Add method CoarseProcessHits
      3) In ProcessHits fill fPosThresh and fNegThresh with a fix
          value of 250 integrated channels above pedestal.
           Need to make this a parameter.
      
      THcShowerPlane.h and cxx
      1)Gets fADCMode, fAdcTimeWindowMin and fAdcTimeWindowMax from THcShower
      2) Add method CoarseProcessHits
      3) In ProcessHits fill fPosThresh and fNegThresh with a fix
          value of 250 integrated channels above pedestal.
           Need to make this a parameter.
      6ad9abcf
  13. Dec 15, 2016
  14. Jan 25, 2016
  15. Jan 18, 2016
  16. Jan 09, 2016
  17. Jan 06, 2016
  18. Jan 01, 2016
  19. Dec 28, 2015
  20. Dec 06, 2015
  21. Oct 14, 2015
  22. Feb 23, 2015
  23. Feb 04, 2015
  24. Feb 03, 2015
    • Vardan Tadevosyan's avatar
      Edit/add comments in THcShower class · 5c48c0e3
      Vardan Tadevosyan authored
      5c48c0e3
    • Vardan Tadevosyan's avatar
      Improve THcShower class structure and cleanup · f1b25902
      Vardan Tadevosyan authored
        Clean up THcShower.h and THcShower.cxx.
        typedef vector<THcShowerHit*> THcShowerHitList by
        typedef set<THcShowerHit*> THcShowerHitList.
        Remove inheritance of class THcShowerCluster from THcShowerHitList.
        Define THcShowerCluster as THcShowerHitList, aka set<THcShowerHit*>.
        Remove inheritance of class THcShowerClusterList from
              THcShClusterList, a.k.a. vector<THcShowerCluster*> container.
        Define THcShowerClusterList as vector<THcShowerCluster*>.
        Rename THcShowerHitSet by THcShowerHitList.
        Rename HitList (related to the HMS calorimeter) to HitSet.
        Add operator< in THcShowerHit class, in order to have THcShowerHitSet
          objects to be properly sorted.
      f1b25902
  25. Jan 20, 2015
    • Mark Jones's avatar
      Modify THcShower.cxx and THcShower.h · 0c2485c9
      Mark Jones authored
          Add variable fEtot= the total energy of the calorimeter which
            is calculated in Decode method
          Add variable fEtotnorm= the total energy of the calorimeter
            divided by central spectrometer which is calculated in Decode method
          Add both to DefineVariables list as etot and etotnorm
      0c2485c9
  26. Jan 16, 2015
  27. Jan 14, 2015
  28. Jan 08, 2015
  29. Dec 05, 2014
  30. Nov 13, 2014
  31. Sep 12, 2014
  32. Sep 05, 2014
  33. Aug 21, 2014
    • Zafar's avatar
      Golden track: · cf4b23b2
      Zafar authored
      Goldent track is moved to THcHallCSpectrometer::TrackCalc()
        if  fSelUsingScin == 0 then golden track is calculated just
        like podd. i.e. it is the first track with minimum chi2/ndf
        with sorting ON
      
        if fSelUsingScin == 1 then golden track is calculetd just like
        engine/HTRACKING/h_select_best_track_using_scin.h. This method
        gives the best track with minimum value of chi2/ndf but with
        additional cuts on the tracks. These cuts are on dedx, beta
        and on energy.
      
        This commit also corrects and modifies the beta code written
        in the THcHodoscope::FineProcess
      
        At this point we have godlend track and in additoion to
        previous vlues the following values are set to a track:
        Energy, beta, chi2 of beta and dedx[track][first hit].
      
      NOTE: For some tracks we have large differences in value of chi
            square between ENGINE and hcana and this is already
            discussed in the last group meeting. Following emails are
            exchanged regarding this difference of chisquare.
      
      email to Mark:
      
      Hi Mark,
      I tried to trace the origin of difference of the chi square value between
      ENGINE and hcana. Please see the attached file, it has long table which I
      cannot present in this email. Or you can see the file at the following
      link, thanks.
      
      https://userweb.jlab.org/~zahmed/chi2diff.txt
      
      Ahmed
      
      Mark's reply:
      Ahmed,
              Thanks. I agree with what you see, but there is also another reason
      for the difference. For the space point in ch2 the engine and hcana
      choose different left/right combinations. That is why you see the large
      jump in the summed chi2 from planes 9 and 10. The two codes pick
      different left/right because there is a cut on the difference between the
      measured stub xp and an expected xp = sp->GetX()/875  and one code has a combination
      slightly below the cut value and the other slightly above. I do not see a way
      to make the codes agree more exactly since the stub fitting involves a matrix
      inversion.
      
                      Cheers,
                             Mark
      cf4b23b2
  34. Aug 18, 2014
  35. Jul 09, 2014
    • Vardan Tadevosyan's avatar
      Simplification of variables for Shower Counter calibration · 4ccf5c40
      Vardan Tadevosyan authored
      Remove track related variables from the HMS Shower class, use ntuples
      from the track (H.tr) block instead in the HMS calorimeter calibration
      scripts.
      
      - Remove a block of duplicated track related variables from the
      THcShower class which have been added for calorimeter calibration
      purposes.
      
      - In hcal_calib directory, replace those variables with correspondent
      variables from H.tr block in the calorimeter calibration class
      (THcShowerCalib.h), in the cut (hcal_replay_cuts.def) and output
      (output_hcal_replay.def) definitions.
      4ccf5c40
Loading