4 #include "KVChargeSignal.h"
377 if (!window)
return 0;
386 printf(
"npoints=%d - nsamples=%d - width=%d\n",
GetN(), nsamples,
width);
390 for (
Int_t ii = 0; ii < nsamples; ii += 1) {
395 if (nn == 0) xinf = xx;
401 printf(
"%d %lf %lf %lf\n", ii, xmoy, rms, mean);
412 Int_t ideb = irms_max;
415 Int_t iparcours = ideb - 1;
417 grms->
GetPoint(iparcours, xx, yafter);
418 while (yafter < ybefore) {
421 grms->
GetPoint(iparcours, xx, yafter);
424 grms->
GetPoint(iparcours + 1, xgauche, yy);
427 gmoy->
GetPoint(iparcours + 1, xx, ybas);
431 iparcours = ideb + 1;
433 grms->
GetPoint(iparcours, xx, yafter);
434 while (yafter < ybefore) {
437 grms->
GetPoint(iparcours, xx, yafter);
440 grms->
GetPoint(iparcours - 1, xdroite, yy);
443 gmoy->
GetPoint(iparcours - 1, xx, yhaut);
KVChargeSignal()
Default constructor.
Double_t GetMaxFluctuationsWindow(Double_t *window, Int_t width=10)
void LoadPSAParameters() override
void SetDefaultValues() override
void SetTauRC(Int_t taurc)
TString fType
string to identify the signal type
Double_t GetAmplitude() const
void SetPoleZeroCorrection(Bool_t with=kTRUE)
void SetBaseLineLength(Int_t length, Int_t first=0)
void SetTrapShaperParameters(Double_t rise, Double_t flat)
void SetType(const Char_t *type)
void SetChannelWidth(double width)
virtual void SetPoint(Int_t i, Double_t x, Double_t y)
virtual Int_t GetPoint(Int_t i, Double_t &x, Double_t &y) const
void Reset(Option_t *option="") override
virtual Double_t GetMean(Int_t axis=1) const
virtual Int_t Fill(const char *name, Double_t w)
Double_t GetRMS(Int_t axis=1) const
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const