KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVSignal Class Reference

Detailed Description

Definition at line 14 of file KVSignal.h.

#include <KVSignal.h>

Inheritance diagram for KVSignal:

Public Types

enum  SignalType {
  kQH1 , kI1 , kQL1 , kQ2 ,
  kI2 , kQ3 , kADC , kUNKDT
}
 
- Public Types inherited from TGraph
enum  EStatusBits
 
- Public Types inherited from TObject
enum  EDeprecatedStatusBits
 
enum  EStatusBits
 

Public Member Functions

 KVSignal ()
 Default constructor.
 
 KVSignal (const char *name, const char *title)
 Write your code here.
 
 KVSignal (const TString &name, const TString &title)
 
virtual ~KVSignal ()
 Destructor.
 
void Add (Double_t fact)
 
void ApplyModifications (TGraph *newSignal=0, Int_t nsa=-1)
 apply modifications of fAdc to the original signal
 
double ApplyNewton (double l, double x0)
 
void ApplyWindowing (int window_type=3)
 fast fourier transform and windowing of the signal (modify only fAdc)
 
Double_t ARC_CFD (Double_t threshold=0.3, Double_t tdelay=10)
 Interpolations.
 
virtual void BuildCubicSignal (double taufinal)
 
virtual void BuildCubicSplineSignal (double taufinal)
 
void BuildReverseTimeSignal ()
 
virtual void BuildSmoothingSplineSignal (double taufinal, double l=1, int nbits=-1)
 
void ChangeChannelWidth (Double_t newwidth)
 
Double_t ComputeAmplitude ()
 Compute and return the absolute value of the signal amplitude.
 
virtual Double_t ComputeBaseLine ()
 
Double_t ComputeCFDThreshold (Double_t threshold=0.5)
 calculate the time during which the signal is higher than th*fAmplitude
 
virtual Double_t ComputeDuration (Double_t th=0.2)
 calculate the time during which the signal is higher than th*fAmplitude
 
virtual Double_t ComputeEndLine ()
 
Bool_t ComputeMeanAndSigma (Double_t start, Double_t stop, Double_t &mean, Double_t &sigma)
 
Bool_t ComputeMeanAndSigma (Int_t start, Int_t stop, Double_t &mean, Double_t &sigma)
 compute mean value and rms of a subset of samples
 
virtual void ComputeRawAmplitude (void)
 
Double_t ComputeRiseTime ()
 
KVSignalConvertTo (const Char_t *type)
 
void Copy (TObject &obj) const
 
Double_t CubicInterpolation (float *data, int x2, double fmax, int Nrecurr)
 
void DeduceFromName ()
 
virtual double EvalCubicSpline (double X)
 
int FFT (bool p_bInverseTransform, double *p_lpRealOut, double *p_lpImagOut)
 returns the lenght of FFT( power of 2)
 
TH1FFT2Histo (int output, TH1 *hh=0)
 
Double_t FindTzeroCFDCubic (double level, int Nrecurr)
 
double FindTzeroCFDCubic_rev (double level, double tend, int Nrecurr)
 
double FindTzeroLeadingEdgeCubic (double LEVEL, int Nrecurr)
 
void FIR_ApplyMovingAverage (int npoints)
 
void FIR_ApplyRCHighPass (double time_usec, int reverse=0)
 
void FIR_ApplyRCLowPass (double time_usec, int reverse=0)
 
void FIR_ApplyRecursiveFilter (double a0, int N, double *a, double *b, int reverse)
 signal will be: y[n]=a0*x[n]+sum a[k] x[k] + sum b[k] y[k]
 
void FIR_ApplySemigaus (double tau_usec)
 
int FIR_ApplySmoothingSpline (double l, int nbits=-1)
 
void FIR_ApplyTrapezoidal (double trise, double tflat)
 different shapers (modify only fAdc)
 
Double_t GetAmplitude () const
 
Double_t GetAmplitudeTriggerValue () const
 routines to manage threshold for minimum charge in the detector
 
TArrayFGetArray ()
 
Double_t GetBaseLine () const
 
Double_t GetBLFirst () const
 
Double_t GetBLLength () const
 
Double_t GetChannelWidth () const
 
virtual double GetDataCubicSpline (double t)
 see HSIEH S.HOU IEEE Trans. Acoustic Speech, vol. ASSP-26, NO.6, DECEMBER 1978
 
virtual double GetDataInter (double t)
 
virtual double GetDataInterCubic (double t)
 
virtual double GetDataSmoothingSplineLTI (double t)
 
const Char_tGetDetectorName () const
 
Double_t GetEndLine () const
 
Int_t GetIndex () const
 
Double_t GetInterpolatedChannelWidth () const
 
Int_t GetNFPGAValues () const
 
Int_t GetNSamples () const
 
Double_t GetPSAParameter (const Char_t *parname)
 DeduceFromName has to be called before.
 
virtual void GetPSAResult (KVDetector *) const
 
Double_t GetRawAmplitude () const
 
Double_t GetRiseTime () const
 
Double_t GetSemiGaussSigma () const
 
Double_t GetShaperFlatTop () const
 
Double_t GetShaperRiseTime () const
 
Double_t GetSigmaBaseLine () const
 
Double_t GetSigmaEndLine () const
 
Double_t GetTauRC () const
 
const Char_tGetType () const
 
Double_t GetYmax () const
 
Double_t GetYmin () const
 
Bool_t HasFPGA () const
 
virtual Bool_t IsCharge () const
 
virtual Bool_t IsCurrent () const
 
Bool_t IsFired ()
 ComputeBaseLine and ComputeEndLine methods have to be called before.
 
Bool_t IsLongEnough () const
 
virtual bool IsOK ()
 
virtual void LoadPSAParameters ()
 
void Multiply (Double_t fact)
 multiply the signal (modify only fAdc)
 
void PoleZeroSuppression (Double_t tauRC)
 
void Print (Option_t *chopt="") const
 
Bool_t PSAHasBeenComputed () const
 
virtual void RemoveBaseLine ()
 
virtual void Set (Int_t n)
 
void SetADCData ()
 
void SetAmplitudeTriggerValue (Double_t val)
 
void SetBaseLineLength (Int_t length, Int_t first=0)
 
void SetChannelWidth (double width)
 
void SetData (Int_t nn, Double_t *xx, Double_t *yy)
 operation on data arrays
 
virtual void SetDefaultValues ()
 To be defined in child class.
 
void SetDetectorName (const Char_t *name)
 
void SetInterpolatedChannelWidth (double width)
 
void SetInterpolation (Bool_t with=kTRUE)
 
void SetMaxT (double t)
 
void SetNSamples (int nn)
 
void SetPoleZeroCorrection (Bool_t with=kTRUE)
 
void SetSemiGaussSigma (Double_t sig)
 
void SetShaperFlatTop (Double_t flat)
 
void SetShaperRiseTime (Double_t rise)
 
void SetTauRC (Int_t taurc)
 
void SetTrapShaperParameters (Double_t rise, Double_t flat)
 
void SetType (const Char_t *type)
 
void ShiftLeft (double)
 ---------------— OPERATORI ------------------—//
 
void ShiftRight (double)
 
void TestDraw ()
 
Bool_t TestWidth () const
 
virtual void TreateSignal ()
 
virtual void UpdatePSAParameter (KVDBParameterList *par)
 
- Public Member Functions inherited from TGraph
 TGraph ()
 
 TGraph (const char *filename, const char *format="%lg %lg", Option_t *option="")
 
 TGraph (const TF1 *f, Option_t *option="")
 
 TGraph (const TGraph &gr)
 
 TGraph (const TH1 *h)
 
 TGraph (const TVectorD &vx, const TVectorD &vy)
 
 TGraph (const TVectorF &vx, const TVectorF &vy)
 
 TGraph (Int_t n)
 
 TGraph (Int_t n, const Double_t *x, const Double_t *y)
 
 TGraph (Int_t n, const Double_t *y, Double_t start=0., Double_t step=1.)
 
 TGraph (Int_t n, const Float_t *x, const Float_t *y)
 
 TGraph (Int_t n, const Int_t *x, const Int_t *y)
 
 ~TGraph () override
 
virtual void AddPoint (Double_t x, Double_t y)
 
virtual void Apply (TF1 *f)
 
void Browse (TBrowser *b) override
 
virtual Double_t Chisquare (TF1 *f1, Option_t *option="") const
 
virtual void ComputeRange (Double_t &xmin, Double_t &ymin, Double_t &xmax, Double_t &ymax) const
 
Int_t DistancetoPrimitive (Int_t px, Int_t py) override
 
void Draw (Option_t *chopt="") override
 
virtual void DrawGraph (Int_t n, const Double_t *x=nullptr, const Double_t *y=nullptr, Option_t *option="")
 
virtual void DrawGraph (Int_t n, const Float_t *x, const Float_t *y, Option_t *option="")
 
virtual void DrawGraph (Int_t n, const Int_t *x, const Int_t *y, Option_t *option="")
 
virtual void DrawPanel ()
 
virtual Double_t Eval (Double_t x, TSpline *spline=nullptr, Option_t *option="") const
 
void ExecuteEvent (Int_t event, Int_t px, Int_t py) override
 
virtual void Expand (Int_t newsize)
 
virtual void Expand (Int_t newsize, Int_t step)
 
TObjectFindObject (const char *name) const override
 
TObjectFindObject (const TObject *obj) const override
 
virtual TFitResultPtr Fit (const char *formula, Option_t *option="", Option_t *goption="", Axis_t xmin=0, Axis_t xmax=0)
 
virtual TFitResultPtr Fit (TF1 *f1, Option_t *option="", Option_t *goption="", Axis_t xmin=0, Axis_t xmax=0)
 
virtual void FitPanel ()
 
virtual Double_t GetCorrelationFactor () const
 
virtual Double_t GetCovariance () const
 
Bool_t GetEditable () const
 
virtual Double_t GetErrorX (Int_t bin) const
 
virtual Double_t GetErrorXhigh (Int_t bin) const
 
virtual Double_t GetErrorXlow (Int_t bin) const
 
virtual Double_t GetErrorY (Int_t bin) const
 
virtual Double_t GetErrorYhigh (Int_t bin) const
 
virtual Double_t GetErrorYlow (Int_t bin) const
 
virtual Double_tGetEX () const
 
virtual Double_tGetEXhigh () const
 
virtual Double_tGetEXhighd () const
 
virtual Double_tGetEXlow () const
 
virtual Double_tGetEXlowd () const
 
virtual Double_tGetEY () const
 
virtual Double_tGetEYhigh () const
 
virtual Double_tGetEYhighd () const
 
virtual Double_tGetEYlow () const
 
virtual Double_tGetEYlowd () const
 
TF1GetFunction (const char *name) const
 
virtual TH1FGetHistogram () const
 
TListGetListOfFunctions () const
 
Double_t GetMaximum () const
 
Int_t GetMaxSize () const
 
virtual Double_t GetMean (Int_t axis=1) const
 
Double_t GetMinimum () const
 
Int_t GetN () const
 
char * GetObjectInfo (Int_t px, Int_t py) const override
 
virtual Int_t GetPoint (Int_t i, Double_t &x, Double_t &y) const
 
virtual Double_t GetPointX (Int_t i) const
 
virtual Double_t GetPointY (Int_t i) const
 
virtual Double_t GetRMS (Int_t axis=1) const
 
Double_tGetX () const
 
TAxisGetXaxis () const
 
Double_tGetY () const
 
TAxisGetYaxis () const
 
virtual void InitExpo (Double_t xmin=0, Double_t xmax=0)
 
virtual void InitGaus (Double_t xmin=0, Double_t xmax=0)
 
virtual void InitPolynom (Double_t xmin=0, Double_t xmax=0)
 
virtual Int_t InsertPoint ()
 
virtual void InsertPointBefore (Int_t ipoint, Double_t x, Double_t y)
 
virtual Double_t Integral (Int_t first=0, Int_t last=-1) const
 
TClassIsA () const override
 
virtual Bool_t IsEditable () const
 
virtual Bool_t IsHighlight () const
 
virtual Int_t IsInside (Double_t x, Double_t y) const
 
virtual void LeastSquareFit (Int_t m, Double_t *a, Double_t xmin=0, Double_t xmax=0)
 
virtual void LeastSquareLinearFit (Int_t n, Double_t &a0, Double_t &a1, Int_t &ifail, Double_t xmin=0, Double_t xmax=0)
 
virtual Int_t Merge (TCollection *list)
 
virtual void MovePoints (Double_t dx, Double_t dy, Bool_t logx=kFALSE, Bool_t logy=kFALSE)
 
TGraphoperator= (const TGraph &)
 
void Paint (Option_t *chopt="") override
 
void PaintGraph (Int_t npoints, const Double_t *x, const Double_t *y, Option_t *chopt)
 
void PaintGrapHist (Int_t npoints, const Double_t *x, const Double_t *y, Option_t *chopt)
 
virtual void PaintStats (TF1 *fit)
 
void Print (Option_t *chopt="") const override
 
void RecursiveRemove (TObject *obj) override
 
virtual Int_t RemovePoint ()
 
virtual Int_t RemovePoint (Int_t ipoint)
 
void SaveAs (const char *filename, Option_t *option="") const override
 
void SavePrimitive (std::ostream &out, Option_t *option="") override
 
virtual void Scale (Double_t c1=1., Option_t *option="y")
 
virtual void SetEditable (Bool_t editable=kTRUE)
 
virtual void SetHighlight (Bool_t set=kTRUE)
 
virtual void SetHistogram (TH1F *h)
 
virtual void SetMaximum (Double_t maximum=-1111)
 
virtual void SetMinimum (Double_t minimum=-1111)
 
void SetName (const char *name="") override
 
void SetNameTitle (const char *name="", const char *title="") override
 
virtual void SetPoint (Int_t i, Double_t x, Double_t y)
 
virtual void SetPointX (Int_t i, Double_t x)
 
virtual void SetPointY (Int_t i, Double_t y)
 
virtual void SetStats (Bool_t stats=kTRUE)
 
void SetTitle (const char *title="") override
 
virtual void Sort (Bool_t(*greater)(const TGraph *, Int_t, Int_t)=&TGraph::CompareX, Bool_t ascending=kTRUE, Int_t low=0, Int_t high=-1111)
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
void UseCurrentStyle () override
 
void Zero (Int_t &k, Double_t AZ, Double_t BZ, Double_t E2, Double_t &X, Double_t &Y, Int_t maxiterations)
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TNamed &named)
 
 TNamed (const TString &name, const TString &title)
 
virtual ~TNamed ()
 
void Clear (Option_t *option="") override
 
TObjectClone (const char *newname="") const override
 
Int_t Compare (const TObject *obj) const override
 
void Copy (TObject &named) const override
 
virtual void FillBuffer (char *&buffer)
 
const char * GetName () const override
 
const char * GetTitle () const override
 
ULong_t Hash () const override
 
TClassIsA () const override
 
Bool_t IsSortable () const override
 
void ls (Option_t *option="") const override
 
TNamedoperator= (const TNamed &rhs)
 
void Print (Option_t *option="") const override
 
virtual Int_t Sizeof () const
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TObject
 TObject ()
 
 TObject (const TObject &object)
 
virtual ~TObject ()
 
void AbstractMethod (const char *method) const
 
virtual void AppendPad (Option_t *option="")
 
ULong_t CheckedHash ()
 
virtual const char * ClassName () const
 
virtual void Delete (Option_t *option="")
 
virtual void DrawClass () const
 
virtual TObjectDrawClone (Option_t *option="") const
 
virtual void Dump () const
 
virtual void Error (const char *method, const char *msgfmt,...) const
 
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 
virtual Option_tGetDrawOption () const
 
virtual const char * GetIconName () const
 
virtual Option_tGetOption () const
 
virtual UInt_t GetUniqueID () const
 
virtual Bool_t HandleTimer (TTimer *timer)
 
Bool_t HasInconsistentHash () const
 
virtual void Info (const char *method, const char *msgfmt,...) const
 
virtual Bool_t InheritsFrom (const char *classname) const
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 
virtual void Inspect () const
 
void InvertBit (UInt_t f)
 
Bool_t IsDestructed () const
 
virtual Bool_t IsEqual (const TObject *obj) const
 
virtual Bool_t IsFolder () const
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
void MayNotUse (const char *method) const
 
virtual Bool_t Notify ()
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, void *vp)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, void *vp)
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 
virtual void Pop ()
 
virtual Int_t Read (const char *name)
 
void ResetBit (UInt_t f)
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 
virtual void SetDrawOption (Option_t *option="")
 
virtual void SetUniqueID (UInt_t uid)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const
 
- Public Member Functions inherited from TAttLine
 TAttLine ()
 
 TAttLine (Color_t lcolor, Style_t lstyle, Width_t lwidth)
 
virtual ~TAttLine ()
 
void Copy (TAttLine &attline) const
 
Int_t DistancetoLine (Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
 
virtual Color_t GetLineColor () const
 
virtual Style_t GetLineStyle () const
 
virtual Width_t GetLineWidth () const
 
virtual void Modify ()
 
virtual void ResetAttLine (Option_t *option="")
 
virtual void SaveLineAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
 
virtual void SetLineAttributes ()
 
virtual void SetLineColor (Color_t lcolor)
 
virtual void SetLineColorAlpha (Color_t lcolor, Float_t lalpha)
 
virtual void SetLineStyle (Style_t lstyle)
 
virtual void SetLineWidth (Width_t lwidth)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TAttFill
 TAttFill ()
 
 TAttFill (Color_t fcolor, Style_t fstyle)
 
virtual ~TAttFill ()
 
void Copy (TAttFill &attfill) const
 
virtual Color_t GetFillColor () const
 
virtual Style_t GetFillStyle () const
 
virtual Bool_t IsTransparent () const
 
virtual void Modify ()
 
virtual void ResetAttFill (Option_t *option="")
 
virtual void SaveFillAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001)
 
virtual void SetFillAttributes ()
 
virtual void SetFillColor (Color_t fcolor)
 
virtual void SetFillColorAlpha (Color_t fcolor, Float_t falpha)
 
virtual void SetFillStyle (Style_t fstyle)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TAttMarker
 TAttMarker ()
 
 TAttMarker (Color_t color, Style_t style, Size_t msize)
 
virtual ~TAttMarker ()
 
void Copy (TAttMarker &attmarker) const
 
virtual Color_t GetMarkerColor () const
 
virtual Size_t GetMarkerSize () const
 
virtual Style_t GetMarkerStyle () const
 
virtual void Modify ()
 
virtual void ResetAttMarker (Option_t *toption="")
 
virtual void SaveMarkerAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1)
 
virtual void SetMarkerAttributes ()
 
virtual void SetMarkerColor (Color_t mcolor=1)
 
virtual void SetMarkerColorAlpha (Color_t mcolor, Float_t malpha)
 
virtual void SetMarkerSize (Size_t msize=1)
 
virtual void SetMarkerStyle (Style_t mstyle=1)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static int FFT (unsigned int p_nSamples, bool p_bInverseTransform, double *p_lpRealIn, double *p_lpImagIn, double *p_lpRealOut, double *p_lpImagOut)
 
static KVSignalMakeSignal (const char *sig_type)
 Create new KVSignal instance corresponding to sig_type.
 
- Static Public Member Functions inherited from TGraph
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static Bool_t CompareArg (const TGraph *gr, Int_t left, Int_t right)
 
static Bool_t CompareRadius (const TGraph *gr, Int_t left, Int_t right)
 
static Bool_t CompareX (const TGraph *gr, Int_t left, Int_t right)
 
static Bool_t CompareY (const TGraph *gr, Int_t left, Int_t right)
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TNamed
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TObject
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Longptr_t GetDtorOnly ()
 
static Bool_t GetObjectStat ()
 
static void SetDtorOnly (void *obj)
 
static void SetObjectStat (Bool_t stat)
 
- Static Public Member Functions inherited from TAttLine
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TAttFill
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TAttMarker
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Width_t GetMarkerLineWidth (Style_t style)
 
static Style_t GetMarkerStyleBase (Style_t style)
 

Private Member Functions

virtual void BuildCubicSignal ()
 
virtual void BuildCubicSplineSignal ()
 
virtual void BuildSmoothingSplineSignal ()
 
void init ()
 
void ResetIndexes ()
 
void TreateOldSignalName ()
 

Private Attributes

TArrayF fAdc
 
Double_t fAmplitude
 results of signal treatement
 
Double_t fBaseLine
 base line mean value
 
Int_t fChannel
 signal type (see KVSignal::SignalType enum)
 
Double_t fChannelWidth
 channel width in ns
 
Double_t fChannelWidthInt
 internal parameter channel width of interpolated signal in ns
 
TString fDetName
 name of the detector, the signal is linked to, needed to find it in the KVMultiDetector
 
Double_t fEndLine
 mean value of the signal line at the end
 
Int_t fFirstBL
 
Int_t fFPGAOutputNumbers
 ASsociated FPGA energy outputs.
 
Double_t fIMax
 position of the maximum in channel
 
Int_t fIndex
 index deduced from block, quartet and telescope numbering
 
Double_t fInterpolatedChannelWidth
 channel width used to produced the interpolated signal
 
Int_t fLastBL
 first and last channel number to compute the base line
 
Double_t fMinimumValueForAmplitude
 Minimum value to say if detector has been hitted.
 
Bool_t fPSAIsDone
 indicate if PSA has been done
 
Double_t fRiseTime
 rise time of the signal
 
Double_t fSemiGaussSigma
 sigma of the semi-gaussian shaper
 
Double_t fSigmaBase
 base line rms
 
Double_t fSigmaEnd
 rms value of the signal line at the end
 
Double_t fTauRC
 tau_rc of the electronics. Used for pole zero cancellation.
 
Double_t fTMax
 position of the maximum in ns
 
Double_t fTrapFlatTop
 flat top of the trapezoidal shaper
 
Double_t fTrapRiseTime
 rise time of the trapezoidal shaper
 
TString fType
 string to identify the signal type : "QH1", "I2" etc ...
 
Bool_t fWithInterpolation
 use of interpolation or not
 
Bool_t fWithPoleZeroCorrection
 use or nor pole zero correction
 
Double_t fYmax
 raw min/max of the signal
 
Double_t fYmin
 

Additional Inherited Members

- Public Attributes inherited from TGraph
 kClipFrame
 
 kIsHighlight
 
 kIsSortedX
 
 kNoStats
 
 kNotEditable
 
 kResetHisto
 
- Public Attributes inherited from TObject
 kBitMask
 
 kCanDelete
 
 kCannotPick
 
 kHasUUID
 
 kInconsistent
 
 kInvalidObject
 
 kIsOnHeap
 
 kIsReferenced
 
 kMustCleanup
 
 kNoContextMenu
 
 kNotDeleted
 
 kObjInCanvas
 
 kOverwrite
 
 kSingleKey
 
 kWriteDelete
 
 kZombie
 
- Protected Member Functions inherited from TGraph
virtual Double_t ** Allocate (Int_t newsize)
 
Double_t ** AllocateArrays (Int_t Narrays, Int_t arraySize)
 
virtual void CopyAndRelease (Double_t **newarrays, Int_t ibegin, Int_t iend, Int_t obegin)
 
virtual Bool_t CopyPoints (Double_t **newarrays, Int_t ibegin, Int_t iend, Int_t obegin)
 
Bool_t CtorAllocate ()
 
virtual Bool_t DoMerge (const TGraph *g)
 
Double_t ** ExpandAndCopy (Int_t size, Int_t iend)
 
virtual void FillZero (Int_t begin, Int_t end, Bool_t from_ctor=kTRUE)
 
TString SaveArray (std::ostream &out, const char *suffix, Int_t frameNumber, Double_t *arr)
 
void SaveHistogramAndFunctions (std::ostream &out, const char *varname, Int_t &frameNumber, Option_t *option)
 
Double_t ** ShrinkAndCopy (Int_t size, Int_t iend)
 
virtual void SwapPoints (Int_t pos1, Int_t pos2)
 
virtual void UpdateArrays (const std::vector< Int_t > &sorting_indices, Int_t numSortedPoints, Int_t low)
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 
void MakeZombie ()
 
- Static Protected Member Functions inherited from TGraph
static void SwapValues (Double_t *arr, Int_t pos1, Int_t pos2)
 
- Protected Attributes inherited from TGraph
TListfFunctions
 
TH1FfHistogram
 
Double_t fMaximum
 
Int_t fMaxSize
 
Double_t fMinimum
 
Int_t fNpoints
 
Double_tfX
 
Double_tfY
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 
- Protected Attributes inherited from TObject
 kOnlyPrepStep
 
- Protected Attributes inherited from TAttLine
Color_t fLineColor
 
Style_t fLineStyle
 
Width_t fLineWidth
 
- Protected Attributes inherited from TAttFill
Color_t fFillColor
 
Style_t fFillStyle
 
- Protected Attributes inherited from TAttMarker
Color_t fMarkerColor
 
Size_t fMarkerSize
 
Style_t fMarkerStyle
 

Member Enumeration Documentation

◆ SignalType

Enumerator
kQH1 
kI1 
kQL1 
kQ2 
kI2 
kQ3 
kADC 
kUNKDT 

Definition at line 16 of file KVSignal.h.

Constructor & Destructor Documentation

◆ KVSignal() [1/3]

KVSignal::KVSignal ( )

Default constructor.

Definition at line 88 of file KVSignal.cpp.

◆ KVSignal() [2/3]

KVSignal::KVSignal ( const char *  name,
const char *  title 
)

Write your code here.

Definition at line 100 of file KVSignal.cpp.

◆ KVSignal() [3/3]

KVSignal::KVSignal ( const TString name,
const TString title 
)

Definition at line 112 of file KVSignal.cpp.

◆ ~KVSignal()

KVSignal::~KVSignal ( )
virtual

Destructor.

Definition at line 124 of file KVSignal.cpp.

Member Function Documentation

◆ Add()

void KVSignal::Add ( Double_t  fact)

Definition at line 1790 of file KVSignal.cpp.

◆ ApplyModifications()

void KVSignal::ApplyModifications ( TGraph newSignal = 0,
Int_t  nsa = -1 
)

apply modifications of fAdc to the original signal

Info("ApplyModifications","called with %d",((newSignal==0)?0:1));.

Definition at line 1765 of file KVSignal.cpp.

◆ ApplyNewton()

double KVSignal::ApplyNewton ( double  l,
double  x0 
)

Definition at line 1515 of file KVSignal.cpp.

◆ ApplyWindowing()

void KVSignal::ApplyWindowing ( int  window_type = 3)

fast fourier transform and windowing of the signal (modify only fAdc)

vedi pag. 468 oppenheim-shafer

Definition at line 926 of file KVSignal.cpp.

◆ ARC_CFD()

Double_t KVSignal::ARC_CFD ( Double_t  threshold = 0.3,
Double_t  tdelay = 10 
)

Interpolations.

time of passage of the threshold

Definition at line 654 of file KVSignal.cpp.

◆ BuildCubicSignal() [1/2]

void KVSignal::BuildCubicSignal ( )
privatevirtual

Definition at line 1386 of file KVSignal.cpp.

◆ BuildCubicSignal() [2/2]

void KVSignal::BuildCubicSignal ( double  taufinal)
virtual

Definition at line 1363 of file KVSignal.cpp.

◆ BuildCubicSplineSignal() [1/2]

void KVSignal::BuildCubicSplineSignal ( )
privatevirtual

Definition at line 1351 of file KVSignal.cpp.

◆ BuildCubicSplineSignal() [2/2]

void KVSignal::BuildCubicSplineSignal ( double  taufinal)
virtual

Definition at line 1328 of file KVSignal.cpp.

◆ BuildReverseTimeSignal()

void KVSignal::BuildReverseTimeSignal ( )

Definition at line 606 of file KVSignal.cpp.

◆ BuildSmoothingSplineSignal() [1/2]

void KVSignal::BuildSmoothingSplineSignal ( )
privatevirtual

Definition at line 1424 of file KVSignal.cpp.

◆ BuildSmoothingSplineSignal() [2/2]

void KVSignal::BuildSmoothingSplineSignal ( double  taufinal,
double  l = 1,
int  nbits = -1 
)
virtual

Definition at line 1396 of file KVSignal.cpp.

◆ ChangeChannelWidth()

void KVSignal::ChangeChannelWidth ( Double_t  newwidth)

Definition at line 474 of file KVSignal.cpp.

◆ ComputeAmplitude()

Double_t KVSignal::ComputeAmplitude ( )

Compute and return the absolute value of the signal amplitude.

routines dedicated to calculate the amplitude (use of filter)

Definition at line 619 of file KVSignal.cpp.

◆ ComputeBaseLine()

Double_t KVSignal::ComputeBaseLine ( )
virtual

compute mean value of the signal and the rms between limits defined by fFirstBL and fLastBL

Reimplemented in KVI1, and KVI2.

Definition at line 491 of file KVSignal.cpp.

◆ ComputeCFDThreshold()

Double_t KVSignal::ComputeCFDThreshold ( Double_t  threshold = 0.5)

calculate the time during which the signal is higher than th*fAmplitude

Definition at line 539 of file KVSignal.cpp.

◆ ComputeDuration()

Double_t KVSignal::ComputeDuration ( Double_t  th = 0.2)
virtual

calculate the time during which the signal is higher than th*fAmplitude

Definition at line 509 of file KVSignal.cpp.

◆ ComputeEndLine()

Double_t KVSignal::ComputeEndLine ( )
virtual

same as ComputeBaseLine method but made on the end of the signal in the same length as for the base line

Definition at line 564 of file KVSignal.cpp.

◆ ComputeMeanAndSigma() [1/2]

Bool_t KVSignal::ComputeMeanAndSigma ( Double_t  start,
Double_t  stop,
Double_t mean,
Double_t sigma 
)

assuming that X axis is in time unit (ms) divide the X values by the fChannelWidth value which allow to set the Xaxis in time units compute mean value and sigma values between "start" and "stop" point included

Definition at line 745 of file KVSignal.cpp.

◆ ComputeMeanAndSigma() [2/2]

Bool_t KVSignal::ComputeMeanAndSigma ( Int_t  start,
Int_t  stop,
Double_t mean,
Double_t sigma 
)

compute mean value and rms of a subset of samples

compute mean value and sigma values between "start" point included and "stop" point excluded for example : ComputeMeanAndSigma(0,50,mean,sigma) compute values for the first 50 points

Definition at line 693 of file KVSignal.cpp.

◆ ComputeRawAmplitude()

void KVSignal::ComputeRawAmplitude ( void  )
virtual

routines to calculate the raw amplitude without filter

Definition at line 440 of file KVSignal.cpp.

◆ ComputeRiseTime()

Double_t KVSignal::ComputeRiseTime ( )

routines dedicated to calculate the rise time (use of filter)

Definition at line 636 of file KVSignal.cpp.

◆ ConvertTo()

KVSignal * KVSignal::ConvertTo ( const Char_t type)

Definition at line 133 of file KVSignal.cpp.

◆ Copy()

void KVSignal::Copy ( TObject obj) const
virtual

This method copies the current state of 'this' object into 'obj' You should add here any member variables, for example: (supposing a member variable KVSignal::fToto) CastedObj.fToto = fToto; or CastedObj.SetToto( GetToto() ); TGraph::Copy((TGraph&)obj); KVSignal& CastedObj = (KVSignal&)obj;

Reimplemented from TObject.

Definition at line 169 of file KVSignal.cpp.

◆ CubicInterpolation()

Double_t KVSignal::CubicInterpolation ( float *  data,
int  x2,
double  fmax,
int  Nrecurr 
)

NOTA: tutti i conti fatti con i tempi in "canali". aggiungero' il *fChannelWidth solo nel return.

Definition at line 1163 of file KVSignal.cpp.

◆ DeduceFromName()

void KVSignal::DeduceFromName ( )

methods used to identify to from which detector/telescope/quartet/block the signal is associated it is assumed that the name of the signal is defined as it is in the raw data generated by fazia_reader which convert raw acquisition file in raw ROOT files

Definition at line 288 of file KVSignal.cpp.

◆ EvalCubicSpline()

double KVSignal::EvalCubicSpline ( double  X)
virtual

Definition at line 1577 of file KVSignal.cpp.

◆ FFT() [1/2]

int KVSignal::FFT ( bool  p_bInverseTransform,
double *  p_lpRealOut,
double *  p_lpImagOut 
)

returns the lenght of FFT( power of 2)

Definition at line 1071 of file KVSignal.cpp.

◆ FFT() [2/2]

int KVSignal::FFT ( unsigned int  p_nSamples,
bool  p_bInverseTransform,
double *  p_lpRealIn,
double *  p_lpImagIn,
double *  p_lpRealOut,
double *  p_lpImagOut 
)
static

copiata e adattata da: http://www.codeproject.com/audio/waveInFFT.asp l'unico vettore che puo' essere NULL e' p_lpImagIn

Definition at line 962 of file KVSignal.cpp.

◆ FFT2Histo()

TH1 * KVSignal::FFT2Histo ( int  output,
TH1 hh = 0 
)

Definition at line 1104 of file KVSignal.cpp.

◆ FindTzeroCFDCubic()

Double_t KVSignal::FindTzeroCFDCubic ( double  level,
int  Nrecurr 
)

recurr=1 means: linear + 1 approx recurr=0 == FindTzeroCFD

Definition at line 885 of file KVSignal.cpp.

◆ FindTzeroCFDCubic_rev()

double KVSignal::FindTzeroCFDCubic_rev ( double  level,
double  tend,
int  Nrecurr 
)

recurr=1 means: linear + 1 approx recurr=0 == FindTzeroCFD

Definition at line 1591 of file KVSignal.cpp.

◆ FindTzeroLeadingEdgeCubic()

double KVSignal::FindTzeroLeadingEdgeCubic ( double  LEVEL,
int  Nrecurr 
)

Definition at line 676 of file KVSignal.cpp.

◆ FIR_ApplyMovingAverage()

void KVSignal::FIR_ApplyMovingAverage ( int  npoints)

Definition at line 1731 of file KVSignal.cpp.

◆ FIR_ApplyRCHighPass()

void KVSignal::FIR_ApplyRCHighPass ( double  time_usec,
int  reverse = 0 
)

f=1/(2*pi*tau) se tau[ns] allora f->[GHz] fsampling=1/fChannelWidth [GHz] printf("fChannelWidth=%f\n",fChannelWidth);

Definition at line 1654 of file KVSignal.cpp.

◆ FIR_ApplyRCLowPass()

void KVSignal::FIR_ApplyRCLowPass ( double  time_usec,
int  reverse = 0 
)

f=1/(2*pi*tau) se tau[ns] allora f->[GHz] fsampling=1/fChannelWidth [GHz]

Definition at line 1632 of file KVSignal.cpp.

◆ FIR_ApplyRecursiveFilter()

void KVSignal::FIR_ApplyRecursiveFilter ( double  a0,
int  N,
double *  a,
double *  b,
int  reverse 
)

signal will be: y[n]=a0*x[n]+sum a[k] x[k] + sum b[k] y[k]

non con double! memcpy(datax, datay, NSamples*sizeof(float));

Definition at line 1675 of file KVSignal.cpp.

◆ FIR_ApplySemigaus()

void KVSignal::FIR_ApplySemigaus ( double  tau_usec)

Definition at line 1613 of file KVSignal.cpp.

◆ FIR_ApplySmoothingSpline()

int KVSignal::FIR_ApplySmoothingSpline ( double  l,
int  nbits = -1 
)

This method is never called with nbits>2, therefore nmax=50 ALWAYS and dynamic arrays xvec & yvec can safely be of fixed size If ever we want to use nbits>2, this will have to be changed

Definition at line 1437 of file KVSignal.cpp.

◆ FIR_ApplyTrapezoidal()

void KVSignal::FIR_ApplyTrapezoidal ( double  trise,
double  tflat 
)

different shapers (modify only fAdc)

Definition at line 839 of file KVSignal.cpp.

◆ GetAmplitude()

Double_t KVSignal::GetAmplitude ( ) const
inline

Definition at line 250 of file KVSignal.h.

◆ GetAmplitudeTriggerValue()

Double_t KVSignal::GetAmplitudeTriggerValue ( ) const
inline

routines to manage threshold for minimum charge in the detector

Definition at line 343 of file KVSignal.h.

◆ GetArray()

TArrayF * KVSignal::GetArray ( )
inline

Definition at line 124 of file KVSignal.h.

◆ GetBaseLine()

Double_t KVSignal::GetBaseLine ( ) const
inline

Definition at line 219 of file KVSignal.h.

◆ GetBLFirst()

Double_t KVSignal::GetBLFirst ( ) const
inline

Definition at line 201 of file KVSignal.h.

◆ GetBLLength()

Double_t KVSignal::GetBLLength ( ) const
inline

Definition at line 205 of file KVSignal.h.

◆ GetChannelWidth()

Double_t KVSignal::GetChannelWidth ( ) const
inline

Definition at line 172 of file KVSignal.h.

◆ GetDataCubicSpline()

double KVSignal::GetDataCubicSpline ( double  t)
virtual

see HSIEH S.HOU IEEE Trans. Acoustic Speech, vol. ASSP-26, NO.6, DECEMBER 1978

Definition at line 1241 of file KVSignal.cpp.

◆ GetDataInter()

double KVSignal::GetDataInter ( double  t)
virtual

Definition at line 1201 of file KVSignal.cpp.

◆ GetDataInterCubic()

double KVSignal::GetDataInterCubic ( double  t)
virtual

Definition at line 1220 of file KVSignal.cpp.

◆ GetDataSmoothingSplineLTI()

double KVSignal::GetDataSmoothingSplineLTI ( double  t)
virtual

Definition at line 1558 of file KVSignal.cpp.

◆ GetDetectorName()

const Char_t * KVSignal::GetDetectorName ( ) const
inline

routines to link signal to its detector in kaliveda framework

Definition at line 85 of file KVSignal.h.

◆ GetEndLine()

Double_t KVSignal::GetEndLine ( ) const
inline

Definition at line 228 of file KVSignal.h.

◆ GetIndex()

Int_t KVSignal::GetIndex ( ) const
inline

Definition at line 104 of file KVSignal.h.

◆ GetInterpolatedChannelWidth()

Double_t KVSignal::GetInterpolatedChannelWidth ( ) const
inline

Definition at line 320 of file KVSignal.h.

◆ GetNFPGAValues()

Int_t KVSignal::GetNFPGAValues ( ) const
inline

Definition at line 129 of file KVSignal.h.

◆ GetNSamples()

Int_t KVSignal::GetNSamples ( ) const
inline

Definition at line 188 of file KVSignal.h.

◆ GetPSAParameter()

Double_t KVSignal::GetPSAParameter ( const Char_t parname)

DeduceFromName has to be called before.

routines to read/change PSA parameters from configuration file or database

Definition at line 341 of file KVSignal.cpp.

◆ GetPSAResult()

virtual void KVSignal::GetPSAResult ( KVDetector ) const
inlinevirtual

store results of PSA in detector signals

Reimplemented in KVI1, KVI2, KVQ2, KVQ3, KVQH1, and KVQL1.

Definition at line 155 of file KVSignal.h.

◆ GetRawAmplitude()

Double_t KVSignal::GetRawAmplitude ( ) const
inline

Definition at line 329 of file KVSignal.h.

◆ GetRiseTime()

Double_t KVSignal::GetRiseTime ( ) const
inline

Definition at line 241 of file KVSignal.h.

◆ GetSemiGaussSigma()

Double_t KVSignal::GetSemiGaussSigma ( ) const
inline

Definition at line 288 of file KVSignal.h.

◆ GetShaperFlatTop()

Double_t KVSignal::GetShaperFlatTop ( ) const
inline

Definition at line 275 of file KVSignal.h.

◆ GetShaperRiseTime()

Double_t KVSignal::GetShaperRiseTime ( ) const
inline

Definition at line 271 of file KVSignal.h.

◆ GetSigmaBaseLine()

Double_t KVSignal::GetSigmaBaseLine ( ) const
inline

Definition at line 223 of file KVSignal.h.

◆ GetSigmaEndLine()

Double_t KVSignal::GetSigmaEndLine ( ) const
inline

Definition at line 232 of file KVSignal.h.

◆ GetTauRC()

Double_t KVSignal::GetTauRC ( ) const
inline

Definition at line 304 of file KVSignal.h.

◆ GetType()

const Char_t * KVSignal::GetType ( ) const
inline

Definition at line 98 of file KVSignal.h.

◆ GetYmax()

Double_t KVSignal::GetYmax ( ) const
inline

Definition at line 337 of file KVSignal.h.

◆ GetYmin()

Double_t KVSignal::GetYmin ( ) const
inline

Definition at line 333 of file KVSignal.h.

◆ HasFPGA()

Bool_t KVSignal::HasFPGA ( ) const
inline

Definition at line 134 of file KVSignal.h.

◆ init()

void KVSignal::init ( )
private

Definition at line 42 of file KVSignal.cpp.

◆ IsCharge()

virtual Bool_t KVSignal::IsCharge ( ) const
inlinevirtual

Reimplemented in KVQ2, KVQ3, KVQH1, and KVQL1.

Definition at line 109 of file KVSignal.h.

◆ IsCurrent()

virtual Bool_t KVSignal::IsCurrent ( ) const
inlinevirtual

Reimplemented in KVI1, and KVI2.

Definition at line 113 of file KVSignal.h.

◆ IsFired()

Bool_t KVSignal::IsFired ( )

ComputeBaseLine and ComputeEndLine methods have to be called before.

Definition at line 581 of file KVSignal.cpp.

◆ IsLongEnough()

Bool_t KVSignal::IsLongEnough ( ) const

Definition at line 186 of file KVSignal.cpp.

◆ IsOK()

bool KVSignal::IsOK ( )
virtual

Definition at line 149 of file KVSignal.cpp.

◆ LoadPSAParameters()

void KVSignal::LoadPSAParameters ( )
virtual

Reimplemented in KVChargeSignal, KVCurrentSignal, KVI1, KVI2, KVQ2, KVQ3, KVQH1, and KVQL1.

Definition at line 387 of file KVSignal.cpp.

◆ MakeSignal()

KVSignal * KVSignal::MakeSignal ( const char *  sig_type)
static

Create new KVSignal instance corresponding to sig_type.

Definition at line 1852 of file KVSignal.cpp.

◆ Multiply()

void KVSignal::Multiply ( Double_t  fact)

multiply the signal (modify only fAdc)

double FindMedia(double tsta, double tsto); double FindMedia(int tsta, int tsto); double FindSigma2(double tsta, double tsto); double FindSigma2(int tsta, int tsto);

Definition at line 1781 of file KVSignal.cpp.

◆ PoleZeroSuppression()

void KVSignal::PoleZeroSuppression ( Double_t  tauRC)

Definition at line 1748 of file KVSignal.cpp.

◆ Print()

void KVSignal::Print ( Option_t chopt = "") const
virtual

Reimplemented from TObject.

Definition at line 415 of file KVSignal.cpp.

◆ PSAHasBeenComputed()

Bool_t KVSignal::PSAHasBeenComputed ( ) const
inline

Definition at line 159 of file KVSignal.h.

◆ RemoveBaseLine()

void KVSignal::RemoveBaseLine ( )
virtual

Definition at line 594 of file KVSignal.cpp.

◆ ResetIndexes()

void KVSignal::ResetIndexes ( )
private

Definition at line 76 of file KVSignal.cpp.

◆ Set()

void KVSignal::Set ( Int_t  n)
virtual

Reimplemented from TGraph.

Definition at line 195 of file KVSignal.cpp.

◆ SetADCData()

void KVSignal::SetADCData ( )

Definition at line 229 of file KVSignal.cpp.

◆ SetAmplitudeTriggerValue()

void KVSignal::SetAmplitudeTriggerValue ( Double_t  val)
inline

Definition at line 347 of file KVSignal.h.

◆ SetBaseLineLength()

void KVSignal::SetBaseLineLength ( Int_t  length,
Int_t  first = 0 
)
inline

routines dedicated to calculate the baseline

Definition at line 196 of file KVSignal.h.

◆ SetChannelWidth()

void KVSignal::SetChannelWidth ( double  width)
inline

Indicate the value in (ns or us) of TGraph X axis width

Definition at line 167 of file KVSignal.h.

◆ SetData()

void KVSignal::SetData ( Int_t  nn,
Double_t xx,
Double_t yy 
)

operation on data arrays

Definition at line 207 of file KVSignal.cpp.

◆ SetDefaultValues()

void KVSignal::SetDefaultValues ( )
virtual

To be defined in child class.

Reimplemented in KVChargeSignal, KVCurrentSignal, KVI1, KVI2, KVQ2, KVQ3, KVQH1, and KVQL1.

Definition at line 397 of file KVSignal.cpp.

◆ SetDetectorName()

void KVSignal::SetDetectorName ( const Char_t name)
inline

Definition at line 89 of file KVSignal.h.

◆ SetInterpolatedChannelWidth()

void KVSignal::SetInterpolatedChannelWidth ( double  width)
inline

Definition at line 316 of file KVSignal.h.

◆ SetInterpolation()

void KVSignal::SetInterpolation ( Bool_t  with = kTRUE)
inline

parameters for interpolation

Definition at line 312 of file KVSignal.h.

◆ SetMaxT()

void KVSignal::SetMaxT ( double  t)
inline

Definition at line 179 of file KVSignal.h.

◆ SetNSamples()

void KVSignal::SetNSamples ( int  nn)
inline

Definition at line 184 of file KVSignal.h.

◆ SetPoleZeroCorrection()

void KVSignal::SetPoleZeroCorrection ( Bool_t  with = kTRUE)
inline

parameters for Pole-Zero correction

Definition at line 296 of file KVSignal.h.

◆ SetSemiGaussSigma()

void KVSignal::SetSemiGaussSigma ( Double_t  sig)
inline

parameters for semi gaussian filter

Definition at line 284 of file KVSignal.h.

◆ SetShaperFlatTop()

void KVSignal::SetShaperFlatTop ( Double_t  flat)
inline

Definition at line 267 of file KVSignal.h.

◆ SetShaperRiseTime()

void KVSignal::SetShaperRiseTime ( Double_t  rise)
inline

Definition at line 263 of file KVSignal.h.

◆ SetTauRC()

void KVSignal::SetTauRC ( Int_t  taurc)
inline

Definition at line 300 of file KVSignal.h.

◆ SetTrapShaperParameters()

void KVSignal::SetTrapShaperParameters ( Double_t  rise,
Double_t  flat 
)
inline

parameters for trapezoidal filter

Definition at line 258 of file KVSignal.h.

◆ SetType()

void KVSignal::SetType ( const Char_t type)
inline

Definition at line 94 of file KVSignal.h.

◆ ShiftLeft()

void KVSignal::ShiftLeft ( double  tshift)

---------------— OPERATORI ------------------—//

Definition at line 1800 of file KVSignal.cpp.

◆ ShiftRight()

void KVSignal::ShiftRight ( double  tshift)

Definition at line 1819 of file KVSignal.cpp.

◆ TestDraw()

void KVSignal::TestDraw ( )

Definition at line 1841 of file KVSignal.cpp.

◆ TestWidth()

Bool_t KVSignal::TestWidth ( ) const

Definition at line 458 of file KVSignal.cpp.

◆ TreateOldSignalName()

void KVSignal::TreateOldSignalName ( )
private

Definition at line 243 of file KVSignal.cpp.

◆ TreateSignal()

void KVSignal::TreateSignal ( )
virtual

routines to launch and control PSA

Reimplemented in KVI1, KVI2, KVQ2, KVQ3, KVQH1, and KVQL1.

Definition at line 406 of file KVSignal.cpp.

◆ UpdatePSAParameter()

void KVSignal::UpdatePSAParameter ( KVDBParameterList par)
virtual

Reimplemented in KVQ3.

Definition at line 359 of file KVSignal.cpp.

Member Data Documentation

◆ fAdc

TArrayF KVSignal::fAdc
private

needed to use the psa methods copied from FClasses of Firenze

Definition at line 36 of file KVSignal.h.

◆ fAmplitude

Double_t KVSignal::fAmplitude
private

results of signal treatement

amplitude of the signal

Definition at line 38 of file KVSignal.h.

◆ fBaseLine

Double_t KVSignal::fBaseLine
private

base line mean value

Definition at line 43 of file KVSignal.h.

◆ fChannel

Int_t KVSignal::fChannel
private

signal type (see KVSignal::SignalType enum)

Definition at line 29 of file KVSignal.h.

◆ fChannelWidth

Double_t KVSignal::fChannelWidth
private

channel width in ns

parameters for signal treatment which can be changed in the LoadPSAParameters() method if they are defined in the .kvrootrc file

Definition at line 51 of file KVSignal.h.

◆ fChannelWidthInt

Double_t KVSignal::fChannelWidthInt
private

internal parameter channel width of interpolated signal in ns

Definition at line 65 of file KVSignal.h.

◆ fDetName

TString KVSignal::fDetName
private

name of the detector, the signal is linked to, needed to find it in the KVMultiDetector

Definition at line 31 of file KVSignal.h.

◆ fEndLine

Double_t KVSignal::fEndLine
private

mean value of the signal line at the end

Definition at line 45 of file KVSignal.h.

◆ fFirstBL

Int_t KVSignal::fFirstBL
private

Definition at line 53 of file KVSignal.h.

◆ fFPGAOutputNumbers

Int_t KVSignal::fFPGAOutputNumbers
private

ASsociated FPGA energy outputs.

Definition at line 34 of file KVSignal.h.

◆ fIMax

Double_t KVSignal::fIMax
private

position of the maximum in channel

Definition at line 40 of file KVSignal.h.

◆ fIndex

Int_t KVSignal::fIndex
private

index deduced from block, quartet and telescope numbering

Definition at line 28 of file KVSignal.h.

◆ fInterpolatedChannelWidth

Double_t KVSignal::fInterpolatedChannelWidth
private

channel width used to produced the interpolated signal

Definition at line 52 of file KVSignal.h.

◆ fLastBL

Int_t KVSignal::fLastBL
private

first and last channel number to compute the base line

Definition at line 53 of file KVSignal.h.

◆ fMinimumValueForAmplitude

Double_t KVSignal::fMinimumValueForAmplitude
private

Minimum value to say if detector has been hitted.

Definition at line 60 of file KVSignal.h.

◆ fPSAIsDone

Bool_t KVSignal::fPSAIsDone
private

indicate if PSA has been done

internal parameters

Definition at line 64 of file KVSignal.h.

◆ fRiseTime

Double_t KVSignal::fRiseTime
private

rise time of the signal

Definition at line 39 of file KVSignal.h.

◆ fSemiGaussSigma

Double_t KVSignal::fSemiGaussSigma
private

sigma of the semi-gaussian shaper

Definition at line 57 of file KVSignal.h.

◆ fSigmaBase

Double_t KVSignal::fSigmaBase
private

base line rms

Definition at line 44 of file KVSignal.h.

◆ fSigmaEnd

Double_t KVSignal::fSigmaEnd
private

rms value of the signal line at the end

Definition at line 46 of file KVSignal.h.

◆ fTauRC

Double_t KVSignal::fTauRC
private

tau_rc of the electronics. Used for pole zero cancellation.

Definition at line 54 of file KVSignal.h.

◆ fTMax

Double_t KVSignal::fTMax
private

position of the maximum in ns

Definition at line 41 of file KVSignal.h.

◆ fTrapFlatTop

Double_t KVSignal::fTrapFlatTop
private

flat top of the trapezoidal shaper

Definition at line 56 of file KVSignal.h.

◆ fTrapRiseTime

Double_t KVSignal::fTrapRiseTime
private

rise time of the trapezoidal shaper

Definition at line 55 of file KVSignal.h.

◆ fType

TString KVSignal::fType
private

string to identify the signal type : "QH1", "I2" etc ...

Definition at line 32 of file KVSignal.h.

◆ fWithInterpolation

Bool_t KVSignal::fWithInterpolation
private

use of interpolation or not

Definition at line 59 of file KVSignal.h.

◆ fWithPoleZeroCorrection

Bool_t KVSignal::fWithPoleZeroCorrection
private

use or nor pole zero correction

Definition at line 58 of file KVSignal.h.

◆ fYmax

Double_t KVSignal::fYmax
private

raw min/max of the signal

Definition at line 42 of file KVSignal.h.

◆ fYmin

Double_t KVSignal::fYmin
private

Definition at line 42 of file KVSignal.h.