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

#include <AtPSADeconvFit.h>

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

Public Member Functions

virtual void Init () override
 
virtual std::unique_ptr< AtPSAClone () override
 
- Public Member Functions inherited from AtPSADeconv
 AtPSADeconv ()
 
 AtPSADeconv (AtPSADeconv &&obj)=default
 
AtPSADeconvoperator= (AtPSADeconv &&obj)=default
 
 AtPSADeconv (const AtPSADeconv &obj)
 
 ~AtPSADeconv ()=default
 
virtual HitVector AnalyzePad (AtPad *pad) override
 
void SetFilterOrder (int order)
 
void SetCutoffFreq (int freq)
 
void SetUseSimCharge (bool val)
 
int GetFilterOrder ()
 
int GetCutoffFreq ()
 
void SetResponse (AtRawEvent response)
 
void SetResponse (ResponseFunc response)
 
AtPadGetResponse (int padNum)
 Get the AtPad describing the response of the electronics. More...
 
const AtPadFFTGetResponseFFT (int padNum)
 Get the fourier transform describing the response of the electronics. More...
 
const AtPadFFTGetResponseFilter (int padNum)
 Get the filter in fourier space describing the response of the electronics. More...
 
- Public Member Functions inherited from AtPSA
 AtPSA ()=default
 
virtual ~AtPSA ()=default
 
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

HitData getZandQ (const AtPad::trace &charge) override
 
const ROOT::Fit::FitResult FitHistorgramParallel (TH1F &hist, TF1 &func)
 
- Protected Member Functions inherited from AtPSADeconv
AtPadcreateResponsePad (int padNum)
 
virtual HitVector chargeToHits (AtPad &charge, std::string qName)
 
virtual double getZhitVariance (double zLoc, double zLocVar) const override
 
void initFFTs ()
 
void initFilter ()
 Update all "filter" augments in fEventResponse with the new parameters. More...
 
void updateFilter (const AtPadFFT &fft, AtPadFFT *filter)
 
double getFilterKernel (int freq)
 
HitVector AnalyzeFFTpad (AtPad &pad)
 Assumes that the pad has it's fourier transform information filled. More...
 
- 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 std::pair< double, double > getXYhitVariance () const
 

Protected Attributes

double fDiffLong
 
- Protected Attributes inherited from AtPSADeconv
AtRawEvent fEventResponse
 
ResponseFunc fResponse {nullptr}
 
std::unique_ptr< TVirtualFFT > fFFT {nullptr}
 
std::unique_ptr< TVirtualFFT > fFFTbackward {nullptr}
 
int fFilterOrder {0}
 
int fCutoffFreq {-1}
 
bool fUseSimulatedCharge {false}
 
- 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 {}
 

Static Protected Attributes

static thread_local std::unique_ptr< TH1F > fHist = nullptr
 

Additional Inherited Members

- Protected Types inherited from AtPSADeconv
using ResponseFunc = std::function< double(int, double)>
 
using HitData = std::vector< ZHitData >
 Data structure for Z loc (TB), Z variance (TB), Charge (arb), Charge variance (arb) More...
 
- Protected Types inherited from AtPSA
using HitVector = std::vector< std::unique_ptr< AtHit > >
 

Detailed Description

Definition at line 13 of file AtPSADeconvFit.h.

Member Function Documentation

◆ Clone()

virtual std::unique_ptr<AtPSA> AtPSADeconvFit::Clone ( )
inlineoverridevirtual

Reimplemented from AtPSADeconv.

Definition at line 20 of file AtPSADeconvFit.h.

◆ FitHistorgramParallel()

const ROOT::Fit::FitResult AtPSADeconvFit::FitHistorgramParallel ( TH1F &  hist,
TF1 &  func 
)
protected

Definition at line 99 of file AtPSADeconvFit.cxx.

◆ getZandQ()

AtPSADeconv::HitData AtPSADeconvFit::getZandQ ( const AtPad::trace charge)
overrideprotectedvirtual

Returns the salient data from the charge distribution: Hit charge/location in Z and their std. deviation. Called by chargeToHits. By default it returns the weighted average of the charge and it's variance.

Reimplemented from AtPSADeconv.

Definition at line 39 of file AtPSADeconvFit.cxx.

◆ Init()

void AtPSADeconvFit::Init ( )
overridevirtual

Reimplemented from AtPSA.

Definition at line 32 of file AtPSADeconvFit.cxx.

Member Data Documentation

◆ fDiffLong

double AtPSADeconvFit::fDiffLong
protected

Definition at line 15 of file AtPSADeconvFit.h.

◆ fHist

thread_local std::unique_ptr< TH1F > AtPSADeconvFit::fHist = nullptr
staticprotected

Definition at line 16 of file AtPSADeconvFit.h.


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