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 ATFILTERCALIBRATE_H
2 #define ATFILTERCALIBRATE_H
10 #include <unordered_map>
17 using filePtr = std::unique_ptr<std::ifstream>;
28 TString fCalibrationFile;
30 void openFileAndReadContents();
32 void readContents(std::ifstream &file);
40 virtual void Init()
override;
46 #endif //#define ATFILTERCALIBRATE_H
virtual bool IsGoodEvent() override
Called at the end of an event. Returns if filtering was successful.
std::unordered_map< int, float > calibrationMap
virtual void InitEvent(AtRawEvent *event) override
Called once for each event at the start of the Exec phase.
std::unique_ptr< std::ifstream > filePtr
virtual void Filter(AtPad *pad, AtPadReference *padReference) override
Called to filter each pad.
TString GetCalibrationFile()
void SetCalibrationFile(TString fileName)
Container class for AtPadBase objects.
virtual void Init() override
Called at the init stage of the AtFilterTask.