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

#include <AtFilterFPN.h>

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

Public Member Functions

 AtFilterFPN (AtMapPtr map, bool averageAgets, Int_t numCoBos=10)
 
virtual void InitEvent (AtRawEvent *event) override
 Called once for each event at the start of the Exec phase. More...
 
- Public Member Functions inherited from AtFilterSubtraction
 AtFilterSubtraction (AtMapPtr map, Int_t numCoBos=10, Int_t numAget=4)
 
void SetThreshold (Double_t thresh)
 
void SetIsGood (Bool_t val)
 Set if we should mark the event bad if we cannot find every AGET to do subtraction. More...
 
Double_t GetThreshold () const
 
virtual void Init () override
 Called at the init stage of the AtFilterTask. More...
 
virtual void Filter (AtPad *pad, AtPadReference *padReference) override
 Called to filter each pad. More...
 
virtual bool IsGoodEvent () override
 Called at the end of an event. Returns if filtering was successful. More...
 
- Public Member Functions inherited from AtFilter
virtual ~AtFilter ()=default
 
virtual AtRawEventConstructOutputEvent (TClonesArray *outputEventArray, AtRawEvent *inputEvent)
 Construct output event from input event array. More...
 

Protected Member Functions

virtual bool isValidPad (const AtPad &pad) override
 
virtual int getAsad (const AtPadReference &ref) override
 
- Protected Member Functions inherited from AtFilterSubtraction
void Clear ()
 
void AddChToBaseline (const AtPadReference &ref, const AtPad &pad)
 
void AverageBaseline ()
 
void processPad (const AtPadReference &ref, const AtPad &pad)
 

Protected Attributes

bool fAverageAgets {false}
 
- Protected Attributes inherited from AtFilterSubtraction
const Int_t fNumberCoBo
 
Int_t fEventNumber {-1}
 
Double_t fThreshold = 0
 
AtMapPtr fMapping
 
Int_t fNumberMissedAsads {}
 
Bool_t fSetIsGood {false}
 
vecDoubleCoBo fBaseline
 
vecIntCoBo fRawBaseline
 
vecAgetCount fAgetCount
 

Detailed Description

Definition at line 13 of file AtFilterFPN.h.

Constructor & Destructor Documentation

◆ AtFilterFPN()

AtFilterFPN::AtFilterFPN ( AtMapPtr  map,
bool  averageAgets,
Int_t  numCoBos = 10 
)

Definition at line 11 of file AtFilterFPN.cxx.

Member Function Documentation

◆ getAsad()

int AtFilterFPN::getAsad ( const AtPadReference ref)
overrideprotectedvirtual

Reimplemented from AtFilterSubtraction.

Definition at line 37 of file AtFilterFPN.cxx.

◆ InitEvent()

void AtFilterFPN::InitEvent ( AtRawEvent inputEvent)
overridevirtual

Called once for each event at the start of the Exec phase.

Reimplemented from AtFilterSubtraction.

Definition at line 16 of file AtFilterFPN.cxx.

◆ isValidPad()

bool AtFilterFPN::isValidPad ( const AtPad pad)
overrideprotectedvirtual

Should this pad be added to the average to subtract

Reimplemented from AtFilterSubtraction.

Definition at line 26 of file AtFilterFPN.cxx.

Member Data Documentation

◆ fAverageAgets

bool AtFilterFPN::fAverageAgets {false}
protected

Definition at line 15 of file AtFilterFPN.h.


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