ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
|
PSA method using TSpectrum. More...
#include <AtPSASpectrum.h>
Public Member Functions | |
HitVector | AnalyzePad (AtPad *pad) override |
std::unique_ptr< AtPSA > | Clone () override |
void | SetBackGroundSuppression () |
void | SetBackGroundInterpolation () |
void | SetTimeCorrection (Bool_t value) |
![]() | |
AtPSA ()=default | |
virtual | ~AtPSA ()=default |
virtual void | Init () |
void | SetThreshold (Int_t threshold) |
void | SetThresholdLow (Int_t thresholdlow) |
int | GetThreshold () |
int | GetThresholdLow () |
void | SetSimulatedEvent (TClonesArray *MCSimPointArray) |
AtEvent | Analyze (AtRawEvent &rawEvent) |
virtual void | Analyze (AtRawEvent *rawEvent, AtEvent *event) |
Protected Member Functions | |
void | subtractBackground (std::array< Double_t, 512 > &adc) |
double | calcTbCorrection (const std::array< Double_t, 512 > &adc, int idxPeak) |
std::unique_ptr< AtHit > | getHit (int idx) |
![]() | |
void | TrackMCPoints (std::multimap< Int_t, std::size_t > &map, AtHit &hit) |
Double_t | CalculateZ (Double_t peakIdx) |
Calculate z position in mm using the peak index. More... | |
Double_t | CalculateZGeo (Double_t peakIdx) |
Double_t | getThreshold (int padSize=-1) |
virtual double | getZhitVariance (double zLoc, double zLocVar) const |
virtual std::pair< double, double > | getXYhitVariance () const |
Additional Inherited Members | |
![]() | |
using | HitVector = std::vector< std::unique_ptr< AtHit > > |
![]() | |
TClonesArray * | fMCSimPointArray {} |
Bool_t | fUsingLowThreshold {false} |
Double_t | fBField {} |
Double_t | fEField {} |
Int_t | fTB0 {} |
Int_t | fNumTbs {512} |
Int_t | fTBTime {} |
Int_t | fEntTB {} |
Double_t | fDriftVelocity {} |
Double_t | fZk {} |
PSA method using TSpectrum.
Can use TSpectrum both to identify peaks, and to do a background subtraction
Definition at line 22 of file AtPSASpectrum.h.
|
overridevirtual |
Implements AtPSA.
Definition at line 23 of file AtPSASpectrum.cxx.
|
protected |
Definition at line 111 of file AtPSASpectrum.cxx.
|
inlineoverridevirtual |
Implements AtPSA.
Definition at line 31 of file AtPSASpectrum.h.
|
protected |
|
inline |
Definition at line 34 of file AtPSASpectrum.h.
|
inline |
Definition at line 33 of file AtPSASpectrum.h.
|
inline |
Definition at line 35 of file AtPSASpectrum.h.
|
protected |
Perform a background subtraction using TSpectrum
Definition at line 98 of file AtPSASpectrum.cxx.