20 if (
fSpadic->GetUseBaselineAvg())
21 return samples->at(0);
23 Float_t baseline = 0.0;
25 if (itend > samples->end()) itend = samples->end();
26 for (
auto isample = samples->begin(); isample < itend; isample++) {
48 return digiTriggerType;
53 Int_t uniqueModuleId, ULong64_t time,
64 auto energy =
fSpadic->MaxAdcToEnergyCal(maxadc);
69 auto digi = std::unique_ptr<CbmTrdDigi>(
new CbmTrdDigi(padChNr, uniqueModuleId, energy, time, triggerType, errClass));
ClassImp(CbmConverterManager)
Base class for extracting of information from raw signals to digi level.
virtual Float_t GetMaxAdcValue(const std::vector< std::int16_t > *samples)=0
Get the MaxAdc value.
UInt_t fNrOfPresamples
Number of presamples before the signal starts (SPADIC default 2)
static CbmTrdDigi::eTriggerType GetDigiTriggerType(Spadic::eTriggerType tt)
Get the Digi Trigger Type from the raw message triggertype.
virtual ULong64_t GetBinTimeShift(const std::vector< std::int16_t > *samples)=0
Get the Bin Time Shift value.
std::shared_ptr< CbmTrdSpadic > fSpadic
CbmTrdRawToDigiBaseR()
Construct a new CbmTrdRawToDigiBaseR object.
Float_t GetBaseline(const std::vector< std::int16_t > *samples)
Get the Baseline value.
ULong64_t fCurrentTimeshift
Bin timeshift for the current sample set in [ns].
std::unique_ptr< CbmTrdDigi > MakeDigi(const std::vector< std::int16_t > *samples, Int_t padChNr, Int_t uniqueModuleId, ULong64_t time, CbmTrdDigi::eTriggerType triggerType, Int_t errClass)
Get digi from input values. Implemented in the derived classes.
@ kNeigh
Neighbor trigger.
@ kSandN
Self and neighbor trigger at the same time.