22 return charge > 0 ? charge : 0;
31 ULong64_t time =
static_cast<ULong64_t
>(
40 std::vector<CbmTrdSpadic::eResponsePars> pars = {
43 for (
auto ipar : pars)
63 TH1F hsignal(
"hsignal",
"hsignal", samples->size(), 0, samples->size() - 1);
66 for (
auto isample : *samples) {
67 if (isample < fSpadic->GetClippingStart()) hsignal.SetBinContent(ibin, (isample - baseline));
ClassImp(CbmConverterManager)
Class for extracting information from raw signals to digi level.
Software representation of the SPADIC v2.2+.
Float_t GetBaseline(const std::vector< std::int16_t > *samples)
Get the Baseline value.
void fixExtractionPars()
Fix the extraction parameters to the default values.
UInt_t fFitRangeStart
First sample that is used for the fit.
ULong64_t GetBinTimeShift(const std::vector< std::int16_t > *)
Get the Bin Time Shift value.
void fitResponse(const std::vector< std::int16_t > *samples)
Perform the fit of the input signal.
UInt_t fFitRangeEnd
Last sample that is used for the fit.
CbmTrdRawToDigiFitR()
default Constructor with messages
std::shared_ptr< TF1 > fResponseFunc
Response function.
void fixExtractionPar(CbmTrdSpadic::eResponsePars ipar)
Fix the passed extraction parameter (wrapper function)
Float_t GetMaxAdcValue(const std::vector< std::int16_t > *)
Get the MaxAdc value.
static Double_t GetClockCycle()
Get the Clock Cycle.
eResponsePars
enum for response parameters