CbmRoot
Loading...
Searching...
No Matches
CbmTrdRawToDigiMaxAdcR.h
Go to the documentation of this file.
1/* Copyright (C) 2021 Goethe-University Frankfurt, Frankfurt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Pascal Raisig [committer] */
4
19#ifndef CbmTrdRawToDigiMaxAdcR_H
20#define CbmTrdRawToDigiMaxAdcR_H
21
22#include "CbmTrdDigi.h" // for MakeDigi
24
25#include <Rtypes.h> // for types and classdef
26#include <RtypesCore.h>
27#include <TObject.h> // for TObject inheritance
28
29#include <cstddef>
30
32
33
34 public:
38
44
51
54
63 ULong64_t GetBinTimeShift(const std::vector<std::int16_t>* /*samples*/) { return 0; };
64
71 Float_t GetMaxAdcValue(const std::vector<std::int16_t>* samples);
72
80 void SetPeakingRange(size_t min, size_t max)
81 {
84 }
85
86
87 private:
93
102
103
104 protected:
105 public:
107};
108
109#endif
Base class for extracting of information from raw signals to digi level.
friend fscal max(fscal x, fscal y)
friend fscal min(fscal x, fscal y)
UInt_t fNrOfPresamples
Number of presamples before the signal starts (SPADIC default 2)
CbmTrdRawToDigiMaxAdcR(const CbmTrdRawToDigiMaxAdcR &)=delete
Copy constructor - not implemented!
Float_t GetMaxAdcValue(const std::vector< std::int16_t > *samples)
Get the MaxAdc value.
ClassDef(CbmTrdRawToDigiMaxAdcR, 2)
virtual ~CbmTrdRawToDigiMaxAdcR()
Destructor.
size_t fPeakingBinMax
Last sample to look for the max adc Default value is set based on the Shaping time + 5 samples safety...
CbmTrdRawToDigiMaxAdcR()
default Constructor with messages
size_t fPeakingBinMin
First sample to look for the max adc.
CbmTrdRawToDigiMaxAdcR operator=(const CbmTrdRawToDigiMaxAdcR &)
Assignment operator - not implemented!
ULong64_t GetBinTimeShift(const std::vector< std::int16_t > *)
Get the Bin Time Shift value.
void SetPeakingRange(size_t min, size_t max)
Set the peaking range in sample numbers.
static Double_t GetClockCycle()
Get the Clock Cycle.
static Float_t GetShapingTime()
Get the Shaping Time (Spadic default)