- Mar 23, 2017
-
-
Mark K Jones authored
Add method to THcRawAdcHit
-
hallc-online authored
Add method GetF250_PeakPedestalRatio() {return fPeakPedestalRatio;}; so that a detector class can calculate the pedestal that was used in determining the pedestal subtracted FADC Pulse Integral. This is useful if the detector class wants to set a threshold above the pedestal.
-
Mark K Jones authored
Modified THcHallCSpectrometer.cxx and THcHodoscope.cxx
-
hallc-online authored
The change was made so that NonTrackingDetector could have information on the "best" track in their FineProcess method. In THcHallCSpectrometer::FindVertices the "best" track will be selected and the Track object will its SetIndex method to set the index to 0 for the best track. The other track will have index=1 or greater. In the NonTrackingDetector FineProcess, the track that is selected to be the "best" can be found by looping through the tracks checking track index using Track.GetIndex() for find the track with Index=0. In the NonTrackingDetector's CoarseProcess they need to set quantities for the Track object needed for selection of "best" track for the "prune" and "usingscin" track selection methods. 1) In THcHallCSpectrometer: a) Moved selection methods of "best" track from TrackCalc to FindVertices. b) Removed setting of Golden Track in the selection methods. c) Add setting of Track Index=0 for "best" track in each selection method. d) Modified TrackCalc method to loop through Track object and find the track with Index=0 and set the Golden Track equal to this Track. 2) In THcHodoscope.cxx a) Moved all calculations in FineProcess into CoarseProcess b) CoarseProcess calculates the scintillator Beta for each Track and does Track->SetBeta. c) In determination "zcor" for corrected hits times use fBetaNominal instead fBetap from track. Still use Track to get distance. c) Eliminate fBetap variable which was using the Track momentum d) Add variable fBeta which is just from scintillator times. e) In FineProcess fill fBeta with the the beta associated with the "best" track determined by selecting Track with index=0
-
- Mar 16, 2017
-
-
Mark K Jones authored
Modified HcTrigDet::Init , Decode and ReadDatabase
-
hallc-online authored
In HcTrigDet::Init moved InitHitList after gHcDetectorMap->FillMap so that the refindex can be filled for the trigger TDC modules In ReadDatabase add parameters fTdcOffset and fTdcChanperNS In Decode set fTdcTime[cnt] = rawTdcHit.GetTime()*fTdcChanperNS-fTdcOffset Ths makes the time into a positive number wiht units of ns Need to add the parameter to either thms.param or tshms.param or it will use defaults of 0.1 and 300. Need to eventually get the fTdcChanperNS from event 125.
-
Stephen A. Wood authored
-
- Mar 15, 2017
-
-
Vardan Tadevosyan authored
In THcAerogel.cxx, mean pedestals are calculated if fMinPeds>0. Set fMinPeds to default zero in THcAerogel::InitializePedestals. Reinitialize it with paero_min_peds parameter in paero.param file.
-
- Mar 14, 2017
-
-
Stephen A. Wood authored
-
- Mar 13, 2017
-
-
Mark K Jones authored
Modify THcDC::CoarseTrack and THcDC::TrackFit
-
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
-
- Mar 08, 2017
-
-
Mark K Jones authored
Modified THcCherenkov.cxx and THcCherenkov.h
-
hallc-online authored
Add array fADC_hit that is a flag if there is a hit in the ADC fADC_hit is set in Decode method The FADC has a threshold on accepting ADC hit Modified CoarseProcess method to eliminate old FASTBUS bias in the analysis
-
- Mar 07, 2017
-
-
Mark K Jones authored
Modify ShowerPlane and ShowerArray ProcessHits Methods
-
hallc-online authored
-
- Mar 06, 2017
-
-
Mark K Jones authored
Remove the hc_hodo_calib directory
-
hallc-online authored
The hc_hodo_calib directory is now under hallc_replay/CALIBRATION
-
Mark K Jones authored
Modified hodoscope and scintillatorplane code for hodo calibration
-
Cdaq Account authored
Temporarily set THcHodoscope.cxx so that only the first three planes are used to calculate the focal plane time and beta. In THcHodoscope , Modified format for writing out the dump file used in hodo calibration. Add cosmicflag to THcScintillatorPLane so the corrected time is done right for cosmics. Modified hc_hodo_calib/tofcal.f so that it uses detector 10 as the reference and that it writes out better defualts for parameters in there are not enough events for a PMT.
-
- Mar 01, 2017
-
-
Mark K Jones authored
Modify THcHodoHit.h and THcScintillatorPlane.cxx
-
Cdaq Account authored
THcHodoHit.h add methods to set and get the ADC peak amp and time THcScintillatorPlane::ProcessHits changed to set the ADC peak amp and time in the Hodohit DefineVariable added variables to tree
-
- Feb 27, 2017
-
-
Jure Bericic authored
-
Stephen A. Wood authored
-
- Feb 26, 2017
-
-
Stephen A. Wood authored
-
Stephen A. Wood authored
Used by hodtest.C example (for old HMS data)
-
- Feb 25, 2017
-
-
Mark K Jones authored
Modified THcHodoscope::FineProcess for dumping data for hodo calibrations
-
Cdaq Account authored
Moved the writing out of the "0" to the fDumpOut for hodo calibrations to immediatiately after the TOF with track info calculations. Before it had been after then lines if ( !fChern || !fShower ) { return 0; } so if Cerenkov and shower were not used in replay the code would not get to write out the "0" which is used to denote the end of an event data for the calibration script.
-
Mark K Jones authored
Added capability to set F250 parameters from PSE125.
-
- Feb 24, 2017
-
-
Jure Bericic authored
PSE125 holds information about setting of F250 modules. Now this information is used to set `fNPedestalSamples` and `fNPeakSamples` parameters of `THcRawAdcHit`. This is done through `THcHitList`, since it has information about which crate and module each channel is in. Currently, the information is set for each event, because of the hitlist and analyzer design. I added the neccessary support for these changes to all raw hit classes.
-
- Feb 23, 2017
-
-
Stephen A. Wood authored
Provides methods get NSA, NSB, and NPED for each crate
-
Jure Bericic authored
Corrected warning message for missing refchan to correctly display reference channel. Modified warningg message for missing refindex to include information about reference channel.
-
- Feb 21, 2017
-
-
Vardan Tadevosyan authored
Cycle over array of pedestal subtracted fADC signals fA_p in the same order as it was filled.
-
- Feb 20, 2017
-
-
Jure Bericic authored
fScinHitPaddle is a std::vector<std::vector<Double_t>>. It was cleared and rebuilt for each event with the same structure, instead of just zeroing out all the values. Now it is created in only one place, and than zeroed instead of cleared. Changed data type in fScinHitPaddle from Double_t to Int_t. Should be changed to bool, but then all logic should be changed.
-
- Feb 19, 2017
-
-
Jure Bericic authored
There was a weird bug in the code, that only triggered for some runs. It turns out, in the `THcHodoscope::FineProcess` the hits in each plane were created only for number of paddles in first plane. SHMS, however, has 13 paddles in first plane and 14 and 21 paddles in last two planes. The problem is fixed now, but part of that code should be rewritten for efficiency.
-
- Feb 15, 2017
-
-
Stephen A. Wood authored
-
- Feb 13, 2017
-
-
Mark K Jones authored
Eliminate variables from THcScintillatorPlane::DefineVariables
-
Cdaq Account authored
With the new raw and good varibles added to the tree, these variables are not needed in the tree.
-
- Feb 09, 2017
-
-
Jure Bericic authored
Applied changes in several files to reflect this. Minor fix in `THcRawHodoHit`.
-
Jure Bericic authored
-
- Feb 08, 2017
-
-
Mark K Jones authored
Pooser hms dc residual work
-