ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
Public Member Functions | Protected Member Functions | List of all members
AtPSASpectrum Class Reference

PSA method using TSpectrum. More...

#include <AtPSASpectrum.h>

Inheritance diagram for AtPSASpectrum:
Inheritance graph
[legend]
Collaboration diagram for AtPSASpectrum:
Collaboration graph
[legend]

Public Member Functions

HitVector AnalyzePad (AtPad *pad) override
 
std::unique_ptr< AtPSAClone () override
 
void SetBackGroundSuppression ()
 
void SetBackGroundInterpolation ()
 
void SetTimeCorrection (Bool_t value)
 
- Public Member Functions inherited from AtPSA
 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< AtHitgetHit (int idx)
 
- Protected Member Functions inherited from AtPSA
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

- Protected Types inherited from AtPSA
using HitVector = std::vector< std::unique_ptr< AtHit > >
 
- Protected Attributes inherited from AtPSA
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 {}
 

Detailed Description

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.

Member Function Documentation

◆ AnalyzePad()

AtPSASpectrum::HitVector AtPSASpectrum::AnalyzePad ( AtPad pad)
overridevirtual

Implements AtPSA.

Definition at line 23 of file AtPSASpectrum.cxx.

◆ calcTbCorrection()

double AtPSASpectrum::calcTbCorrection ( const std::array< Double_t, 512 > &  adc,
int  idxPeak 
)
protected

Definition at line 111 of file AtPSASpectrum.cxx.

◆ Clone()

std::unique_ptr<AtPSA> AtPSASpectrum::Clone ( )
inlineoverridevirtual

Implements AtPSA.

Definition at line 31 of file AtPSASpectrum.h.

◆ getHit()

std::unique_ptr<AtHit> AtPSASpectrum::getHit ( int  idx)
protected

◆ SetBackGroundInterpolation()

void AtPSASpectrum::SetBackGroundInterpolation ( )
inline

Definition at line 34 of file AtPSASpectrum.h.

◆ SetBackGroundSuppression()

void AtPSASpectrum::SetBackGroundSuppression ( )
inline

Definition at line 33 of file AtPSASpectrum.h.

◆ SetTimeCorrection()

void AtPSASpectrum::SetTimeCorrection ( Bool_t  value)
inline

Definition at line 35 of file AtPSASpectrum.h.

◆ subtractBackground()

void AtPSASpectrum::subtractBackground ( std::array< Double_t, 512 > &  adc)
protected

Perform a background subtraction using TSpectrum

Definition at line 98 of file AtPSASpectrum.cxx.


The documentation for this class was generated from the following files: