ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
|
Go to the documentation of this file. 1 #ifndef ATFILTERSUBTRACTION_H
2 #define ATFILTERSUBTRACTION_H
18 using vecDoubleCoBo = std::vector<std::vector<std::array<Double_t, 512>>>;
19 using vecIntCoBo = std::vector<std::vector<std::array<Int_t, 512>>>;
62 virtual void Init()
override;
73 #endif //#ifndef ATFILTERSUBTRACTION_H
virtual int getAsad(const AtPadReference &ref)
virtual void InitEvent(AtRawEvent *event) override
Called once for each event at the start of the Exec phase.
void SetThreshold(Double_t thresh)
virtual bool IsGoodEvent() override
Called at the end of an event. Returns if filtering was successful.
Double_t GetThreshold() const
void AddChToBaseline(const AtPadReference &ref, const AtPad &pad)
std::shared_ptr< AtMap > AtMapPtr
std::vector< std::vector< std::array< Double_t, 512 > >> vecDoubleCoBo
std::vector< std::vector< Int_t > > vecAgetCount
void processPad(const AtPadReference &ref, const AtPad &pad)
std::vector< std::vector< std::array< Int_t, 512 > >> vecIntCoBo
virtual void Init() override
Called at the init stage of the AtFilterTask.
Container class for AtPadBase objects.
virtual void Filter(AtPad *pad, AtPadReference *padReference) override
Called to filter each pad.
virtual bool isValidPad(const AtPad &pad)
void SetIsGood(Bool_t val)
Set if we should mark the event bad if we cannot find every AGET to do subtraction.
AtFilterSubtraction(AtMapPtr map, Int_t numCoBos=10, Int_t numAget=4)