8 #ifndef GET_SYSTEM_ANALYSER_HH
9 #define GET_SYSTEM_ANALYSER_HH
15 #include "RExtremaFinder.hh"
17 #include "TFitResultPtr.h"
18 #include "TFitResult.h"
386 virtual void Reset ( );
420 virtual bool ConfigCommand (
const GString & code,
const GString & args =
"", FILE * fptr = NULL );
528 TH2D *
CreateChannelsHisto2D (
const string & name,
int ny,
double ymin,
double ymax,
const string & ytit =
"",
bool fpn =
true );
530 TH2I *
CreateChannelsHisto2I (
const string & name,
int ny,
double ymin,
double ymax,
const string & ytit =
"",
bool fpn =
true );
537 int ny,
double ymin,
double ymax,
bool fpn =
true );
538 int FillFullEventHisto ( TH2D * hptr,
bool reset =
true,
bool fpn =
true,
double scale = 1. );
int * fluct_cnt
Number of events for baseline check.
Definition: GETSystemAnalyser.hh:371
bool IsAmplitudeDataComputed() const
Definition: GETSystemAnalyser.icc:82
void SetMaximaScaling(double fact)
Definition: GETSystemAnalyser.icc:98
TH2D * CreateChannelsHisto2D(const string &name, int ny, double ymin, double ymax, const string &ytit="", bool fpn=true)
Definition: GETSystemAnalyser.cpp:2251
double * amax_time
Array of maximum amplitude times.
Definition: GETSystemAnalyser.hh:323
RExtremaFinder mmax_finder
Multiple maxima analyser.
Definition: GETSystemAnalyser.hh:329
u_int events_count
Number of events since analysis cleard.
Definition: GETSystemAnalyser.hh:300
double ** mmax_amplitude
Maxima values arrays for each channel.
Definition: GETSystemAnalyser.hh:334
virtual int ProcessResolutionAnalysis()
Definition: GETSystemAnalyser.cpp:1930
int data_num_min
Lower value for bad range of data / channel.
Definition: GETSystemAnalyser.hh:340
virtual int AnalyseRawEvent()
Definition: GETSystemAnalyser.cpp:284
void SetTimingMode(u_short mode)
Definition: GETSystemAnalyser.cpp:1039
TH1D * GetResolutionHisto() const
Definition: GETSystemAnalyser.icc:167
virtual void ComputeAmplitudeData()
Definition: GETSystemAnalyser.cpp:1432
bool fluct_on
Whether baseline fluctuations analysis is ON.
Definition: GETSystemAnalyser.hh:365
GETSystem * get_ptr
Pointer to the GET system object.
Definition: GETSystemAnalyser.hh:292
int data_num_max
Upper value for bad range of data / channel.
Definition: GETSystemAnalyser.hh:341
void ResetMaximaData()
Definition: GETSystemAnalyser.cpp:1355
TH1D * h_channels_fluct
Pointer to the channels baseline fluctuations analysis summary average histogram. ...
Definition: GETSystemAnalyser.hh:372
u_short timing_mode
Signal timing analysis mode.
Definition: GETSystemAnalyser.hh:317
u_int GetEventsSkip()
Definition: GETSystemAnalyser.icc:25
TH1D * CreateChannelsMaxRawHisto(const string &hname)
Definition: GETSystemAnalyser.cpp:1475
void SetTimingModeCFD(double frac, double delay)
Definition: GETSystemAnalyser.cpp:1058
double mmax_scale
Scaling factor for amplitude.
Definition: GETSystemAnalyser.hh:336
virtual void ClearEvent()
Definition: GETSystemAnalyser.cpp:252
TH2I * GetResolutionMaxHisto() const
Definition: GETSystemAnalyser.icc:163
void InitMaximaData()
Definition: GETSystemAnalyser.cpp:1379
TH1D * CreateChannelsMaxCorHisto(const string &hname)
Definition: GETSystemAnalyser.cpp:1493
virtual void BadChannelsWarning()
Definition: GETSystemAnalyser.cpp:384
void SetSelectedData(u_short id)
Definition: GETSystemAnalyser.icc:36
static const u_short dataMaxSignal
Maximum value of signal data.
Definition: GETCommon.hh:115
u_int events_skip
Number of first events to skip for analysis.
Definition: GETSystemAnalyser.hh:301
virtual int GetFluctuationsBadCount() const
Definition: GETSystemAnalyser.icc:183
virtual void InitDataNumberCheck(u_int n0, u_int n1)
Definition: GETSystemAnalyser.cpp:1525
int FillFullEventHisto(TH2D *hptr, bool reset=true, bool fpn=true, double scale=1.)
Definition: GETSystemAnalyser.cpp:2390
TH1D * GetChannelsMaxRawHisto() const
Definition: GETSystemAnalyser.icc:102
TH1D * h_resol_rms
Pointer to the channels amplitude variations histogram.
Definition: GETSystemAnalyser.hh:356
bool mmax_analysis
Whether multiple maxima analysis is requested.
Definition: GETSystemAnalyser.hh:330
virtual int AnalyseCorEvent()
Definition: GETSystemAnalyser.cpp:339
bool * channel_bad
Whether the channel contains bad data.
Definition: GETSystemAnalyser.hh:297
u_int rms_imin
Lower limit for RMS analysis.
Definition: GETSystemAnalyser.hh:360
TH1D * h_channels_max_cor
Pointer to the channels summary histogram with maximum corrected output values.
Definition: GETSystemAnalyser.hh:309
virtual int ProcessFluctuationsAnalysis()
Definition: GETSystemAnalyser.cpp:2098
virtual int FillCumulFluctuationsHisto(TH2 *hptr)
Definition: GETSystemAnalyser.cpp:2159
int resol_dim
Dimension of amplitude axis.
Definition: GETSystemAnalyser.hh:351
virtual int GetDataContinuityBadCount() const
Definition: GETSystemAnalyser.icc:129
virtual int FillCumulNoiseHisto(TH2 *hptr)
Definition: GETSystemAnalyser.cpp:1814
TH2D * h_full_event_raw
Pointer to the histogram with full raw data (before processing)
Definition: GETSystemAnalyser.hh:304
double amplitude_window
Signal amplitude analysis window size (for fit or average)
Definition: GETSystemAnalyser.hh:315
virtual int ProcessNoiseAnalysis()
Definition: GETSystemAnalyser.cpp:1768
double * fluct_sum
Cumulated values for baseline check.
Definition: GETSystemAnalyser.hh:370
GETHitMask * hit_mask
Pointer to the hit mask (same as base class hit mask, but known as GETHitMaskXY)
Definition: GETSystemAnalyser.hh:293
u_int fluct_imax
Upper limit for baseline fluctuations analysis.
Definition: GETSystemAnalyser.hh:367
virtual int GetDataNumberBadCount() const
Definition: GETSystemAnalyser.icc:118
Definition: GETHitMask.hh:29
u_int mmax_max
Maximum number of maxima per channel.
Definition: GETSystemAnalyser.hh:332
int fluct_bad
Number of bad channels in fluctuations analysis.
Definition: GETSystemAnalyser.hh:369
virtual int ReadConfigFile(const string &cfg)
Definition: GETSystemAnalyser.cpp:439
double resol_step
Lower limit of amplitude axis.
Definition: GETSystemAnalyser.hh:354
bool resol_on
Whether amplitude resolution analysis is ON.
Definition: GETSystemAnalyser.hh:350
bool IsFluctuationsAnalysisON() const
Definition: GETSystemAnalyser.icc:178
TH1D ** CreateAllChannelsHisto(const string &prefix="GET_", const string &suffix="")
Definition: GETSystemAnalyser.cpp:2639
TH1I * h_channels_data_num
Pointer to the channels summary histogram with number of raw data per channel.
Definition: GETSystemAnalyser.hh:310
virtual void InitDataContinuityCheck(double dmax)
Definition: GETSystemAnalyser.cpp:1594
bool IsMaximaDataComputed() const
Definition: GETSystemAnalyser.icc:87
virtual int CalcChannelMaxima(u_int ic)
Definition: GETSystemAnalyser.cpp:1268
virtual void InitResolutionAnalysis(int n, double amin, double amax)
Definition: GETSystemAnalyser.cpp:1874
u_int ch_max_index
Channel with maximum amplitude.
Definition: GETSystemAnalyser.hh:326
double timing_cfd_fraction
CFD fraction for timing analysis.
Definition: GETSystemAnalyser.hh:318
int CumulChannelsSummaryHisto(TH2 *hptr, u_short mode=GET::dataMaxSignal, bool fpn=true)
Definition: GETSystemAnalyser.cpp:2554
virtual int CalcChannelOutput(u_int ic, double &vmax, double &tmax)
Definition: GETSystemAnalyser.cpp:1087
int data_cont_bad
Number of bad channels in analysis of the data continuity.
Definition: GETSystemAnalyser.hh:347
bool IsDataContinuityCheckON() const
Definition: GETSystemAnalyser.icc:125
GETSystemAnalyser(GETSystem *get=NULL)
Definition: GETSystemAnalyser.cpp:19
void ClearAmplitudeData()
Definition: GETSystemAnalyser.cpp:1409
double resol_min
Lower limit of amplitude axis.
Definition: GETSystemAnalyser.hh:352
virtual bool ConfigCommand(const GString &code, const GString &args="", FILE *fptr=NULL)
Definition: GETSystemAnalyser.cpp:550
double ** mmax_time
Maxima times arrays for each channel.
Definition: GETSystemAnalyser.hh:335
TH1D * GetChannelsMaxCorHisto() const
Definition: GETSystemAnalyser.icc:106
double fluct_warn
Baseline fluctuation value to issue a warning.
Definition: GETSystemAnalyser.hh:368
TH1D * h_channels_rms
Pointer to the channels RMS analysis summary histogram.
Definition: GETSystemAnalyser.hh:362
bool mmax_computed
Whether multiple maxima analysis is performed.
Definition: GETSystemAnalyser.hh:331
TH1D * CreateChannelsHisto1D(const string &name, const string &ytit="", bool fpn=true)
Definition: GETSystemAnalyser.cpp:2217
RRealSampleFFT GETSample
Define the data type for samples.
Definition: GETCommon.hh:27
u_int GetChannelNumber() const
Definition: GETSystemAnalyser.icc:12
int FillAllChannelsHisto(TH1D **htab, bool reset=true)
Definition: GETSystemAnalyser.cpp:2688
bool IsResolutionAnalysisON() const
Definition: GETSystemAnalyser.icc:159
TH1D * GetBaseFluctuationsHisto() const
Definition: GETSystemAnalyser.icc:174
virtual void ClearBaseFluctuations()
Definition: GETSystemAnalyser.cpp:2077
double resol_max
Upper limit of amplitude axis.
Definition: GETSystemAnalyser.hh:353
void SetAmplitudeMode(u_short mode, double win=0.)
Definition: GETSystemAnalyser.cpp:1007
int FillChannelsSummaryHisto(TH1D *hptr, u_short mode=GET::dataMaxSignal, bool fpn=true, bool reset=true)
Definition: GETSystemAnalyser.cpp:2469
virtual void SetNoiseRange(u_int i0=2, u_int i1=509)
Definition: GETSystemAnalyser.cpp:1700
TH2I * h_resol_ampl
Pointer to the channels versus amplitude maximum histogram.
Definition: GETSystemAnalyser.hh:355
ClassDef(GETSystemAnalyser, 0)
virtual void Reset()
Definition: GETSystemAnalyser.cpp:112
virtual void InitBaseFluctuations(u_int i0=2, u_int i1=32, double warn=0.)
Definition: GETSystemAnalyser.cpp:2002
Definition: GETSystemAnalyser.hh:281
TH2I * CreateChannelsHisto2I(const string &name, int ny, double ymin, double ymax, const string &ytit="", bool fpn=true)
Definition: GETSystemAnalyser.cpp:2318
void InitAmplitudeData()
Definition: GETSystemAnalyser.cpp:1329
u_int GetNoiseIndexMin() const
Definition: GETSystemAnalyser.icc:138
int data_num_bad
Number of bad channels in analysis of the data per channel.
Definition: GETSystemAnalyser.hh:342
u_int fluct_imin
Lower limit for baseline fluctuations analysis.
Definition: GETSystemAnalyser.hh:366
u_short amplitude_mode
Signal amplitude analysis mode.
Definition: GETSystemAnalyser.hh:314
virtual void ClearResolutionAnalysis()
Definition: GETSystemAnalyser.cpp:1914
TH1I * CreateChannelsHisto1I(const string &name, const string &ytit="", bool fpn=true)
Definition: GETSystemAnalyser.cpp:2284
virtual ~GETSystemAnalyser()
Definition: GETSystemAnalyser.cpp:100
void SetAmplitudeWindow(double win)
Definition: GETSystemAnalyser.cpp:1027
TH1D * GetChannelsNoiseHisto() const
Definition: GETSystemAnalyser.icc:148
virtual int AnalyseRunStop()
Definition: GETSystemAnalyser.cpp:243
void SetEventsSkip(u_int n)
Definition: GETSystemAnalyser.icc:21
TH2D * CreateFullEventCorHisto(const string &hname)
Definition: GETSystemAnalyser.cpp:982
u_int GetNoiseIndexMax() const
Definition: GETSystemAnalyser.icc:144
u_int rms_imax
Upper limit for RMS analysis.
Definition: GETSystemAnalyser.hh:361
virtual int AnalyseRunStart()
Definition: GETSystemAnalyser.cpp:237
bool amax_computed
Whether the maximum amplitude / time is computed.
Definition: GETSystemAnalyser.hh:321
u_short selected_data
Information on the channel data to analyse: GET::signalOut (default), GET::signalTst or GET::signalRe...
Definition: GETSystemAnalyser.hh:295
TH2D * h_full_event_cor
Pointer to the histogram with full data after corrections (if any)
Definition: GETSystemAnalyser.hh:305
bool rms_on
Whether noise analysis is ON.
Definition: GETSystemAnalyser.hh:359
TH1D * h_channels_max_raw
Pointer to the channels summary histogram with maximum raw output values.
Definition: GETSystemAnalyser.hh:308
TH2D * CreateFullEventRawHisto(const string &hname)
Definition: GETSystemAnalyser.cpp:965
double data_cont_max
Maximum variation for continuity.
Definition: GETSystemAnalyser.hh:346
virtual int ProcessDataContinuityCheck()
Definition: GETSystemAnalyser.cpp:1655
TH1D * CreateChannelSummaryHisto(const string &name, bool fpn=true)
Definition: GETSystemAnalyser.icc:211
GObject(GETSystemAnalyser)
u_int * mmax_num
Number of maxima for each channel.
Definition: GETSystemAnalyser.hh:333
TH2D * CreateFullEventHisto(const string &name, bool fpn=true)
Definition: GETSystemAnalyser.cpp:2360
u_int GetAnalysisEventsCounter()
Definition: GETSystemAnalyser.icc:29
virtual u_int GetMaximumChannel() const
Definition: GETSystemAnalyser.icc:63
TH2D * GetFullEventCorHisto() const
Definition: GETSystemAnalyser.icc:74
double * amax_amplitude
Array of maximum amplitude values.
Definition: GETSystemAnalyser.hh:322
bool IsNoiseAnalysisON() const
Definition: GETSystemAnalyser.icc:152
virtual void ClearAnalysis()
Definition: GETSystemAnalyser.cpp:224
TH2D * GetFullEventRawHisto() const
Definition: GETSystemAnalyser.icc:70
double timing_cfd_delay
CFD offset for timing analysis.
Definition: GETSystemAnalyser.hh:319
virtual double GetMaximumSignal() const
Definition: GETSystemAnalyser.icc:53
int GetSelectedData() const
Definition: GETSystemAnalyser.icc:43
bool data_num_on
Whether the analysis of number of data per channel is ON.
Definition: GETSystemAnalyser.hh:339
virtual int SetSystem(GETSystem *gptr)
Definition: GETSystemAnalyser.cpp:175
virtual int ProcessDataNumberCheck()
Definition: GETSystemAnalyser.cpp:1556
Definition: GETSystem.hh:126
bool IsDataNumberCheckON() const
Definition: GETSystemAnalyser.icc:113
bool channel_bad_flag
Whether there are bad channels.
Definition: GETSystemAnalyser.hh:298
virtual bool ContinuityCheck(GETSample &sample)
Definition: GETSystemAnalyser.cpp:1624
double ch_max_signal
Maximum channel amplitude value.
Definition: GETSystemAnalyser.hh:325
bool data_cont_on
Whether the analysis of data discontinuity is ON.
Definition: GETSystemAnalyser.hh:345