ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
|
Go to the documentation of this file.
8 #include <FairLogger.h>
13 : fNumberCoBo(numCoBos), fMapping(std::move(map))
30 for (
auto &asad : cobo)
33 for (
auto &asad : cobo)
36 for (
auto &asad : cobo)
45 for (
const auto &pad : event->
GetPads())
59 for (
int tb = 0; tb < 512; ++tb)
79 for (
int tb = 0; tb < 512; ++tb) {
87 for (
int cobo = 0; cobo <
fBaseline.size(); ++cobo)
88 for (
int asad = 0; asad <
fBaseline[cobo].size(); ++asad)
90 for (
int tb = 0; tb < 512; ++tb) {
95 LOG(ERROR) <<
"No baseline for cobo " << cobo <<
" asad " << asad <<
" in event " <<
fEventNumber;
104 auto cobo = padRef.cobo;
107 auto &adc = pad->
GetADC();
110 for (
int tb = 0; tb < 512; ++tb) {
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 SetADC(const trace &val)
virtual bool IsGoodEvent() override
Called at the end of an event. Returns if filtering was successful.
const PadVector & GetPads() const
void AddChToBaseline(const AtPadReference &ref, const AtPad &pad)
std::shared_ptr< AtMap > AtMapPtr
void processPad(const AtPadReference &ref, const AtPad &pad)
const trace & GetADC() const
Bool_t IsPedestalSubtracted() const
virtual void Init() override
Called at the init stage of the AtFilterTask.
Container class for AtPadBase objects.
const rawTrace & GetRawADC() const
virtual void Filter(AtPad *pad, AtPadReference *padReference) override
Called to filter each pad.
virtual bool isValidPad(const AtPad &pad)
AtFilterSubtraction(AtMapPtr map, Int_t numCoBos=10, Int_t numAget=4)