- Jan 30, 2019
-
-
Whitney Armstrong authored
- Each detector should override ManualInitTree(TTree*) - This method should be used to add branches to the tree - These branches should be data members of the detector.
-
- Jan 20, 2019
-
-
Whitney Armstrong authored
- removed spdlog ( now in analyzer) - added logging to THaAnalzyer (podd)
-
- Jan 07, 2019
-
-
Ole Hansen authored
fGoodFlags holds event-by-event data, but was never cleared, eventually growing to several hundred megabytes in a long analysis. The effciency calculations in THcHodoEff that rely on the contents of fGoodFlags have been most certainly garbage up to now. I've replaced the event-by-event ClearEvent() method with the standard virtual function Clear() and have added fGoodFlags.clear() there. Also, I've added assertions to the hodoscope code to check the validity of some non-obvious array indices. Nothing triggers; the index logic appears sound (despite its appearance ...)
-
- Dec 17, 2018
-
-
Whitney Armstrong authored
-
- Dec 15, 2018
-
-
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.
-
- Dec 11, 2018
-
-
Whitney Armstrong authored
- Mixins defined in Logger.h - Mixin used in base classes (THcDC is currently a good example)
-
- Aug 14, 2018
-
-
hallc-online authored
Add tree variables TimeHist_Sigma, TimeHist_Peak and TimeHist_Hits for the peak,sigma and number of hits of the histogram of PMT times used in EstimateFocalPlaneTime
-
- Jun 28, 2018
-
-
Yero1990 authored
Modified Hodoscope and ScintillatorPlane classes for new time calibration method.
-
- Mar 07, 2018
-
-
hallc-online authored
Add AdcTimeWindowMin and Max for each pmt Add tree variables GoodPosAdcMult and fGoodPosAdcHitUsed
-
- Feb 20, 2018
-
-
hallc-online authored
Moved the old track efficiency tests to OriginalTrackEffTest method and this is presently commented out. Eventually can be eliminated. The old track efficiency assumed that both planes had matching paddlle spacing which is not true for SHMS. Added new method TrackEffTest which calculates the number of clusters in each plane and the position for the cluster for scintillator paddle that had good times in both ends. Selects events with one cluster with size of 1 or 2 in either 4 of 4 planes or 3 of 4 planes. Also checks that the events are inside a given range of scintillator paddles.
-
- Feb 19, 2018
-
-
Stephen A. Wood authored
First hit above this cut is taken as the reference time. Cuts are per detector and read as an optional parameter in each detector class. TDCs and Flash ADC times have separate cuts. Implement a second method of selecting best reference time. If InitHitList is passed a possitive reference time cut, use the first reference time above that cut. If none of the hits pass the cut, then no reference time is set If InitHitList is passed a negative cut, the cut is taken to be the absolute value of the cut, but a reference time is garuanteed to be set as long as there is at least one reference time hit. If none of the reference time hits pass the cut, then the last hit is taken to be the reference time. (Should be the largest.) Allow reference time cuts for all the spectrometer detector classes Hodoscopes, drift chambers, Aerogels, Gas Cherenkovs, Calorimeters
-
- Feb 15, 2018
-
-
Stephen A. Wood authored
Add End method to each detector that calls MissReport which prints the number of events with missing TDC and ADC reference times.
-
- Jan 30, 2018
-
-
hallc-online authored
Add TH1f histogram hTime to replace timehist array
-
- Dec 06, 2017
-
-
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.
-
- Dec 04, 2017
-
-
Mark Jones authored
Add ability to cut on number of PE in Cherenkov when dumping events for TOF calibration Add parameter fTOFCalib_cer_lo Add ability to cut on track beta when dumping events for TOF calibration Add parameter fTOFCalib_beta_lo and fTOFCalib_beta_hi Parameters are optional. Default set to kBig or -kBig THere was already a possible cut on Shower energy/momentum
-
- Nov 30, 2017
-
-
Stephen A. Wood authored
This is because it is offsetting PulseTime which is double and to be consistent with the other detectors.
-
Stephen A. Wood authored
-
- Nov 28, 2017
-
-
Mark Jones authored
Moved writing of the TOF calibration dump file to FineProcess Added cut on shower energy/momenutum Add parameters fTOFCalib_shtrk_lo and fTOFCalib_shtrk_hi . Add parameter fNumPlanesBetaCalc which allows one to set how many planes to use in beta calculations. Useful for SHMS. fNumPlanesBetaCalc defaults to 4 if not set.
-
- Sep 26, 2017
-
-
Stephen A. Wood authored
-
- May 30, 2017
-
-
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.
-
- Mar 28, 2017
-
-
hallc-online authored
The change was in part of code which calculates the fiducial area of the scintillators where the drift chamber should have had a track. This sets fGoodScintHits=1 or 0 Used to calculate the DC track efficiency 1) Eliminate variables fScinShould and fScindid. These will be defined in the cuts file. 2) Eliminate code which determined bestXpScin and bestYpScin since since these variables were never used. 3) Initialized fHitSweet1X,fHitSweet1Y,fHitSweet2X and fHitSweet2Y to zero. 4) Change so that loops over number of paddles do not assume that X (Y) planes for Ch1 and Ch2 have same number of paddles.
-
- Mar 23, 2017
-
-
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 06, 2017
-
-
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.
-
- 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 07, 2017
-
-
Cdaq Account authored
The fCosmicFlag is used in EstimateFocalPlaneTime The start time for the drift chamber is determined as an average of the focal plane times for each hodo plane. Need to account for the TOF from the hodoscope to the focal plane (z=0). For cosmic data need to add this TOF to the corrected scintillator time, while usually one needs to subtract this TOF. Add a flag as parameter to switch between these modes.
-
- Jan 24, 2017
-
-
Cdaq Account authored
Modify default tdc_neg and tdc_pos = -999 SetCorrectedTimes when only oneside has TDC within in window
-
- Dec 15, 2016
-
-
Jure Bericic authored
-
- Oct 28, 2016
-
-
Stephen A. Wood authored
in THcHodoscope::FineProcess
-
Stephen A. Wood authored
Lot's of changes to THcScintillator::ProcessHits THcHodoscope::EstimateFocalPlaneTimes THcHodoscope::FineProcess
-
- Oct 22, 2016
-
-
Stephen A. Wood authored
-
- Oct 07, 2016
-
-
Stephen A. Wood authored
THcRawHodoHit gives reference time corrected TDC values THcScintillator plane adds a per plane offset to the raw tdc value First positive TDC value after adding offset is used
-
- Sep 28, 2016
-
-
Stephen A. Wood authored
-
- Jul 31, 2015
-
-
Stephen A. Wood authored
Method for number of planes Method for list of plane objects Method to return "good" flags for given track, plane and counter
-
- May 22, 2015
-
-
Zafar Ahmed authored
-
- May 16, 2015
-
-
Zafar Ahmed authored
-
- Apr 15, 2015
-
-
Stephen A. Wood authored
These are left over from early development when there wasn't a table drive way to retrieve parameters. (Now we use gHcParms->LoadParmValues())
-
Stephen A. Wood authored
in calculation of drift chamber start time
-
Stephen A. Wood authored
Don't repeat comparisons of tdc values with fScinTdcMin and fScinTdcMax because hits only get added to fHodoHits (and previously fPosTDCHits, fNegTDCHits, ...) if the times are within these ranges. In THcHodoscop, remove members of fTOFPInfo that are just used locally.
-
- Mar 28, 2015
-
-
Mark Jones authored
-
- Feb 27, 2015
-
-
Stephen A. Wood authored
section of THcHallCSpectrometer to be clearer. Does not follow the fortran in detail, but should be doing the same thing.
-