ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
|
#include <AtFilterFPN.h>
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... | |
![]() | |
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... | |
![]() | |
virtual | ~AtFilter ()=default |
virtual AtRawEvent * | ConstructOutputEvent (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 |
![]() | |
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} |
![]() | |
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 |
Definition at line 13 of file AtFilterFPN.h.
AtFilterFPN::AtFilterFPN | ( | AtMapPtr | map, |
bool | averageAgets, | ||
Int_t | numCoBos = 10 |
||
) |
Definition at line 11 of file AtFilterFPN.cxx.
|
overrideprotectedvirtual |
Reimplemented from AtFilterSubtraction.
Definition at line 37 of file AtFilterFPN.cxx.
|
overridevirtual |
Called once for each event at the start of the Exec phase.
Reimplemented from AtFilterSubtraction.
Definition at line 16 of file AtFilterFPN.cxx.
|
overrideprotectedvirtual |
Should this pad be added to the average to subtract
Reimplemented from AtFilterSubtraction.
Definition at line 26 of file AtFilterFPN.cxx.
|
protected |
Definition at line 15 of file AtFilterFPN.h.