Skip to content
Snippets Groups Projects
  1. Jul 27, 2017
  2. Jul 26, 2017
  3. 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
  4. Jul 21, 2017
  5. Jul 13, 2017
  6. Jul 12, 2017
  7. Jul 11, 2017
  8. Jun 30, 2017
  9. Jun 29, 2017
  10. Jun 22, 2017
  11. Jun 19, 2017
    • Stephen A. Wood's avatar
      Add THcRunParms. Get beam energy without db_run.dat · a7f5da2e
      Stephen A. Wood authored
        With this commit, db_run.dat is not needed in hcana
        If THcRunParms is used, hcana will get the beam momentum from the
        parameter "gpbeam" instead of db_run.dat.  To use, use the
        THaRun::SetRunParamClass method to set the run parameter class
        to "THcRunParameters".
      
        THaRun* run = new THaRun(RunFileName);
        run->SetRunParamClass("THcRunParameters");
      a7f5da2e
  12. Jun 15, 2017
  13. Jun 12, 2017
  14. May 30, 2017
    • Ak1508's avatar
      Added ADC Error Flags for ScintillatorPlane.cxx class · d28eda3c
      Ak1508 authored
      -Added fAdcTimeWindow Min/Max to THcHodoscope.cxx (.h)
      -Added fAdcTimeWindow Min/Max to THcScintillatorPlane.cxx (.h)
      -Initialized loop over number of hits inside the FillDynamic_Pedestal() method
      -added some variables in the THcScintillatorPlane.cxx Dynamic Pedestal Method
      -Added loop over adc_pos and adc_neg hits, and required the hits to fall
      within fAdcTimeWindow Min/Max
      -Added the requirement of at least a valid (adc && tdc) on either end of a bar
      -re-defined boolean operator for adc_pos/adc_neg to be True if  they passed the errorflag and timeCUT requirements in the fADC_Dynamic Pedestal method.
      -- deleted adc_pos/neg initial definitions, and set their initial values to -999.
      d28eda3c
  15. May 27, 2017
    • Carlos Yero's avatar
      Updates to THcShowerPlane · 4fe33ab7
      Carlos Yero authored
        Add "Good" variables to calorimeter class
           occupancies and multiplicities
           required to pass time and threshold cut
        Change some variables from arrays to vectors
        Modify how thresholds are calculated
        Remove obsolete variables: posadchits, negadchits
        Add flash adc debug flag
        Correctly delete pointers in destructor
      4fe33ab7
  16. May 23, 2017
  17. May 01, 2017
    • Vardan Tadevosyan's avatar
      Small Shower Calorimeter corrections, chagnes and cleanups · c30c06cf
      Vardan Tadevosyan authored
      Make matched cluster variables of the array part of calorimeter private.
      
      Initialize fY variable in the THcShowerHit::THcShowerHit default
      constructor.
      
      Correct typo in THcShowerArray::Clear, assign -1000 to fMatchClY.
      
      Edit debug output in THcShowerArray::CoarseProcess and remove obsolete
      comments THcShowerArray::MatchCluster.
      
      Clear fSizeClustArray and fNblockHighEnergy quantitites in
      THcShower::Clear, for just in case.
      c30c06cf
    • Eric Pooser's avatar
      Increase max root file size to 100GB. · 12ac2059
      Eric Pooser authored
      So files don't split.
      Seems to be working, hcana has not crashed yet with file sizes
      upto 2.6 GB.
      12ac2059
    • 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
  18. 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
  19. 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
  20. Apr 18, 2017
  21. Apr 17, 2017
    • hallc-online's avatar
      Modified THcDriftChamberPlane.cxx and THcDriftChamberPlane.h · a4186aeb
      hallc-online authored
      Main purpose was to have option for per wire tzero offsets
      
      Modified THcDriftChamberPlane.h
      ------------------------------
      1) added fUsingTzeroPerWire as parameter flag to switch on per wire tzero offsets when parameter equals 1
      2) fTzeroWire is array of tzero offsets for each wire in plane
      
      Modified THcDriftChamberPlane.cxx
      ------------------------------
      1) THcDriftChamberPlane::ReadDatabase
          a)set a default value of fUsingTzeroPerWire=0
          b)added to DBRequest list option to read in fUsingTzeroPerWire
          c) if fUsingTzeroPerWire=1 then separate DBRequest to read in fTzeroWire
         d) if fUsingTzeroPerWire=0 then all fTzeroWire=0
      
      2) THcDriftChamberPlane::ProcessHits
      ------------------------------------
         a) Modify calcualation of drift time to subtract fTzeroWire
      Double_t time = -StartTime- rawtdc*fNSperChan + fPlaneTimeZero - fTzeroWire[wireNum-1];
      a4186aeb
  22. Apr 06, 2017
  23. Apr 04, 2017
    • hallc-online's avatar
      Fix problem in THcAerogel::CoarseProcess with fNpeSum · f64afe8c
      hallc-online authored
      The line fNpeSum += fNegNpeSum
      was basically double counting the fNegNpeSum
      Same for fNpeSum += fPosNpeSum
      since they were in a loop over Neg and Pos hits.
      
      Just set
      fNpeSum = fNegNpeSum + fPosNpeSum
      after the two loops over Neg and Pos hits
      f64afe8c
    • hallc-online's avatar
      Fix mistake in THcShowerArray and make the threshold a parameter · b3eb5a43
      hallc-online authored
      THcShowerArray
      1) in ProcessHits methodfFixed mistake in index of fThresh
         was using padnum instead of padnum-1
      2) add parameter pcal_arr_AdcThreshold so that threshold
         can be set by a parameter. Default is zero which gives
         the best resolution.
      
      THcShowerPlane
      1) Added the parameter cal_AdcNegThreshold and cal_AdcPosThreshold
         so that the threshold can be set through a parameter
         Previously it was hardcoded.
      b3eb5a43
  24. Apr 03, 2017
Loading