![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TILERECUTILS_TILERAWCHANNELBUILDERFLATFILTER_H
6 #define TILERECUTILS_TILERAWCHANNELBUILDERFLATFILTER_H
61 void flatFilter(
const std::vector<uint32_t> &digits,
const int gain
62 ,
double& amplitude,
double&
time)
const;
71 ,
double& amplitude,
double&
time)
const;
93 bool isSignalInFrame(
const std::vector<float> &digits,
double deltaCut,
double rmsCut,
94 int &frameMax,
int &frameMin,
double &frameMean,
double &frameRMS)
const;
103 double getPedestal(
const std::vector<float> &digits,
int pedStart,
int pedLgt)
const;
116 int getMaxAdder(
const std::vector<float> &digits,
int filterLength,
int signalStart,
117 int signalLength,
int &tMax,
int &tMaxFrame,
int &adderFrame)
const;
119 int getMaxSample(
const std::vector<float> &digits,
int signalStart,
int signalLength
120 ,
int &tMax,
int &tMaxFrame,
int &sampleFrame)
const;
122 double calculatePeak(
const std::vector<float> &digits,
int peakPos,
double ped,
123 double &position)
const;
137 ,
int filterLength,
double ped,
double &position)
const;
149 double getTime(
const std::vector<float> &digits,
int signalStart
150 ,
int signalLength,
double ped)
const;
virtual StatusCode finalize()
int getMaxAdder(const std::vector< float > &digits, int filterLength, int signalStart, int signalLength, int &tMax, int &tMaxFrame, int &adderFrame) const
Get position of maximal adder (sum of <filterLength> samples) in whole frame and in signal window (<s...
double calculatePeak(const std::vector< float > &digits, int peakPos, double ped, double &position) const
bool isSignalInFrame(const std::vector< float > &digits, double deltaCut, double rmsCut, int &frameMax, int &frameMin, double &frameMean, double &frameRMS) const
Find min and max sample Calculate mean and RMS of all samples.
virtual StatusCode initialize()
Initializer.
::StatusCode StatusCode
StatusCode definition for legacy code.
~TileRawChannelBuilderFlatFilter()
Destructor.
void flatFilter(const std::vector< uint32_t > &digits, const int gain, double &litude, double &time) const
Filter given digits using FlatFilter method.
double getTime(const std::vector< float > &digits, int signalStart, int signalLength, double ped) const
Calculate the time of signal in window of <signalLength> starting at <signalStart> Result is sum of t...
double getPedestal(const std::vector< float > &digits, int pedStart, int pedLgt) const
Calculate pedestal as mean of <pedLgt> samples starting from <pedStart>
double calculateFlatFilter(const std::vector< float > &digits, int filterStart, int filterLength, double ped, double &position) const
Calculate energy using flat filter Sum of <filterLength> samples starting at <filterStart> Requires p...
def time(flags, cells_name, *args, **kw)
int getMaxSample(const std::vector< float > &digits, int signalStart, int signalLength, int &tMax, int &tMaxFrame, int &sampleFrame) const
TileRawChannelBuilderFlatFilter(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
virtual TileRawChannel * rawChannel(const TileDigits *digits, const EventContext &ctx)
Builder virtual method to be implemented by subclasses.
static const InterfaceID & interfaceID()
AlgTool InterfaceID.