GET library
GETActarEventReader Class Reference

#include <GETActarEventReader.hh>

Inheritance diagram for GETActarEventReader:
GETActarTpc GETSystem GETObject

Public Member Functions

Constructor and destructor
 GETActarEventReader (bool construct=true)
 
virtual ~GETActarEventReader ()
 
Read of event files functions
virtual int Open ()
 
virtual bool IsOpen ()
 
virtual int Close ()
 
virtual int RunInit ()
 
virtual int RunStart ()
 
virtual int RunStop ()
 
virtual int FileOpen ()
 
virtual void FileClose ()
 
virtual void ResetFileList ()
 
virtual void Reset ()
 
virtual void Quit ()
 
virtual bool RunChanged () const
 
virtual int CreateEvent ()
 
virtual int ReadEvent ()
 
Graphical user interface modifications
virtual void Construct ()
 
virtual void SetColorMode ()
 
virtual void UpdateDisplay ()
 
virtual int HistoEventSlot (Int_t event, const GEVPage *page_ptr, const GEVPad *pad_ptr, const TH1 *histo_ptr, const Double_t x, const Double_t y)
 
virtual int HistoClickedSlot (const GEVPage *page_ptr, const GEVPad *pad_ptr, const TH1 *histo_ptr, const Double_t x, const Double_t y)
 
virtual void PadPlaneButton1Click (const TH2 *hpad, int ix, int iy)
 
virtual void PadPlaneButton1DoubleClick (const TH2 *hpad, int ix, int iy)
 
virtual void PadPlaneButton2Click (const TH2 *hpad, int ix, int iy)
 
virtual void PadPlaneButton2DoubleClick (const TH2 *hpad, int ix, int iy)
 
Analysis configuration function
virtual int ProcessCmdLine (int &argc, char **argv, bool supp=true)
 
virtual void ProcessLineHelp () const
 
virtual void SetDefaultAnalysis (const string &ana)
 
virtual void SetLookupTable (const string &ltfile)
 
virtual void ReadInitConfig ()
 
virtual void ReadRunConfig ()
 
virtual int ReadConfigFile (const string &cfg)
 
virtual int ReadConfigFile (FILE *fp)
 
virtual bool ConfigCommand (const GString &code, const GString &args="", FILE *fptr=NULL)
 
virtual bool ConfigCommandLine (const string &cmd, FILE *fptr=NULL)
 
virtual void GETInit ()
 
virtual GETActarTpcAnalyserDefineAnalyser ()
 
virtual void SetGETInitConfigFile (const string &cfg)
 
virtual void SetGETRunConfigFile (const string &cfg)
 
Analysis definition
string GetCoBoId (int i) const
 
string GetAsAdId (int i) const
 
string GetAGetId (int i) const
 
string GetChannelId (int i) const
 
string GetIndexId (int i) const
 
string GetPadId (int ix, int iy) const
 
string GetElecId (int i) const
 
string GetElecId (int co, int as, int ag, int ch) const
 
virtual void PresetChannelParam (const string &def, bool hdef=false)
 
virtual void PresetChannelParam (int cobo, int asad, int aget, int chan, bool hdef=false)
 
virtual void PresetChannelParam (int ich0=0, int ich1=-1, bool hdef=false)
 
virtual void PresetPadParam (const string &def, bool hdef=false)
 
virtual void PresetPadParam (int ix0, int ix1, int iy0, int iy1, bool hdef=false)
 
virtual int DefinePadSpectrum (int ix, int iy, bool fill=false)
 
virtual int DefineElecSpectrum (u_int cobo, u_int asad, u_int aget, u_int chan, bool fill=false)
 
virtual int DefineChannelSpectrum (int ich, bool fill=false)
 
virtual int DefineChannelSpectrum (int ich, const string &name, bool fill=false)
 
virtual void PresetAgetPage (const string &def)
 
virtual void PresetAgetPage (int cobo, int asad, int aget)
 
virtual void PresetAnalysis ()
 
virtual void PresetSystemAnalysis ()
 
virtual void PresetLoadedAnalysis ()
 
virtual void AnalysisStart ()
 
virtual void AnalysisStop ()
 
virtual void AnalysisEvent ()
 
virtual void IncrementSpectra () const
 
Selected events output files
virtual bool SetSelectedEventsFilter (const string &filter, const string &dir, u_int nmax=0)
 
virtual int OpenSelectedEventsFile (u_int nf)
 
virtual int CloseSelectedEventsFile (u_int nf)
 
virtual int CloseSelectedEventsFiles ()
 
virtual int WriteSelectedEvent ()
 
Standard user hooks function
virtual int UserEventDefine ()
 
virtual int UserRunStart ()
 
virtual int UserNewFile ()
 
virtual int UserEvent ()
 
virtual int UserUpdate ()
 
virtual int UserRefresh ()
 
virtual int UserRunStop ()
 
virtual int UserReset ()
 
virtual int UserQuit ()
 
virtual int UserFit ()
 
User hooks function from GETActarTpc class
virtual int UserRawEvent ()
 
virtual int UserCorEvent ()
 
ROOT related function
 ClassDef (GETActarEventReader, 0)
 
- Public Member Functions inherited from GETActarTpc
 GETActarTpc (u_int nx=0, u_int ny=0, u_int dim=0, double dt=0.01L)
 
virtual ~GETActarTpc ()
 
virtual int Init (u_int nx, u_int ny, u_int n, double dt)
 
virtual GETHitMaskSetHitMask (GETHitMaskXY *mask)
 
const GETHitMaskXYGetPadMask () const
 
GETHitMaskXYGetPadMask ()
 
virtual int ExtractCoboFrame ()
 
virtual GETChannelGetMaxSignalChannel (int *ipx=NULL, int *ipy=NULL, int *ipt=NULL)
 
virtual int GetSignalBoundaries (int &ixmin, int &ixmax, int &iymin, int &iymax, int &itmin, int &itmax)
 
virtual int GetSignalBoundaries (int &ixmin, int &ixmax, int &iymin, int &iymax)
 
virtual int GetSignalBoundaries (double &xmin, double &xmax, double &ymin, double &ymax, double &tmin, double &tmax)
 
virtual int GetSignalBoundaries (double &xmin, double &xmax, double &ymin, double &ymax)
 
 ClassDef (GETActarTpc, 0)
 
- Public Member Functions inherited from GETSystem
 GETSystem (u_int n_cobo=1, u_int dim=0, double dt=0.01L)
 
virtual ~GETSystem ()
 
virtual int ResetConfig ()
 
virtual int InitConfig ()
 
const GETCfgSetupGetConfig () const
 
GETCfgSetupGetConfig ()
 
virtual int ReadXMLConfig (const string &fname)
 
virtual int Init (u_int n_cobo, u_int n, double dt)
 
virtual void ClearEvent ()
 
u_int GetBadReadCount () const
 
const GETDataGetBadReadData () const
 
GETDataGetBadReadData ()
 
void SetBadDataCorrection (bool b)
 
bool ChannelHasData (u_int ic) const
 
u_int CalcMultiplicity (bool fpn=true)
 
u_int GetChannelMultiplicity () const
 
u_int GetAGetMultiplicity () const
 
u_int GetAsAdMultiplicity () const
 
u_int GetCoBoMultiplicity () const
 
virtual string GetObjectId () const
 
virtual u_int GetChildrenNumber () const
 
virtual const GETObjectGetChild (u_int i) const
 
virtual GETObjectGetChild (u_int i)
 
const GETCoBooperator[] (u_int n) const
 
GETCoBooperator[] (u_int n)
 
virtual u_int GetCoBoNumber () const
 
virtual u_int GetAsAdNumber () const
 
virtual int GetChannelIndex (const GETChannel *ch)
 
const GETLookupTableLookupTable () const
 
GETLookupTableLookupTable ()
 
virtual u_int GetChannelCount () const
 
virtual int GetChannelIndex (int ix, int iy) const
 
virtual GETChannelGetChannel (int ix, int iy) const
 
virtual GETChannelGetChannel (u_int n)
 
virtual int GetTestChannelIndex ()
 
virtual GETChannelGetTestChannel ()
 
virtual GETChannelSetTestChannel (int i)
 
virtual GETHitMaskSetHitMask (GETHitMask *mask)
 
GETHitMaskGetHitMask () const
 
virtual int SetAnalyser (GETSystemAnalyser *a)
 
GETSystemAnalyserGetAnalyser () const
 
virtual int SetCalibProcess (const string &calib_file, u_short opt=0)
 
virtual int SetBaselineCorrection (const string &bl_file)
 
virtual int SetTimeCorrectionProcess (const string &shift_file)
 
virtual int SetOutputSmoothing (double width)
 
virtual int SetAutoBaseline (u_short num_lo, u_short num_hi, u_short off_lo=0, u_short off_hi=0)
 
virtual int SetAutoBLoffset (u_short itmin, u_short itmax)
 
virtual int SetResponseFunctions (const string &rf_file)
 
virtual int SetAsAdResponseFunctions (const string &rf_file)
 
virtual int OpenRunFile (const string &fname)
 
virtual int OpenRunSerie (const string &pattern, const string &serie)
 
virtual int CloseRunFile ()
 
void IncrEventCount ()
 
u_int GetEventCount () const
 
string GetRunFileName () const
 
bool IsRunFileOpen () const
 
GETRunFileGetRunFile ()
 
MFMCommonFrame * GetCurrentMFMFrame ()
 
int GetAcqEventNumber () const
 
uint64_t GetAcqEventTimeStamp () const
 
double GetAcqEventTimeSec () const
 
virtual void SelectAnalysis (u_short sel)
 
virtual void SetAnalysis (u_short sel, bool b=true)
 
virtual void SetInputRecAnalysis (bool b=true)
 
virtual void SetRawDataAnalysis (bool b=true)
 
virtual void SetCorDataAnalysis (bool b=true)
 
u_short GetAnalysisFlags () const
 
bool AnalyseInputRec () const
 
bool AnalyseRawData () const
 
bool AnalyseCorData () const
 
virtual int AnalyseEvent ()
 
virtual int AnalyseRawEvent ()
 
virtual int AnalyseCorEvent ()
 
virtual bool AnalysingRaw () const
 
virtual bool AnalysingCor () const
 
virtual int ExtractXMLFileHeaderFrame ()
 
virtual int ExtractCoboTopoFrame ()
 
virtual int ExtractEbyedatFrame ()
 
virtual int ExtractMergeFrame ()
 
virtual int ProcessFrameData (MFMCommonFrame *frame)
 
virtual int ProcessEbyedatFrameData (MFMEbyedatFrame *frame)
 
virtual int ProcessMergeFrameData (MFMMergeFrame *frame)
 
virtual int ProcessCoBoFrameData (MFMCoboFrame *frame)
 
u_int GetCoBoFrameRead () const
 
u_int GetCoBoFrameError () const
 
u_int GetCoBoFrameRecover () const
 
virtual void ClearCoBoDataRead ()
 
virtual int CheckCoBoData (u_int cobo, u_int asad, u_int &aget, u_int &chan, u_int &buck, u_int val)
 
virtual u_int CheckCoBoFrameBadChannels (int ico, int ias)
 
virtual u_int CorrectCoBoFrameBadData (int ico, int ias)
 
virtual GETChannelGetMaximumChannel (u_short info=GET::signalOut, bool integ=false)
 
void SetOutputData0correction (u_int n)
 
void SetOutputDataNcorrection (u_int n)
 
u_int GetOutputData0correction () const
 
u_int GetOutputDataNcorrection () const
 
virtual int OutputCorrectData0 ()
 
virtual int OutputCorrectDataN ()
 
virtual int OutputCorrectFPN (u_int opt_fpn=GET::CoBoCorrectFPN4)
 
virtual int ZeroSuppression (double thr=0.)
 
virtual int UserAnyFrame (MFMCommonFrame &frame)
 
virtual int UserMergeFrame (MFMMergeFrame &frame)
 
virtual int UserCoBoFrame (MFMCoboFrame &frame)
 
virtual int UserEbyedatFrame (MFMEbyedatFrame &frame)
 
 ClassDef (GETSystem, 0)
 
virtual void SetZeroSuppressMode (double thr=0.)
 
virtual void SetSaturationValue (int val)
 
virtual int GetSaturationValue () const
 
virtual int GetSaturationCount () const
 
virtual bool IsChannelSaturated (u_int ich)
 
virtual bool IsChannelSaturated (const GETChannel &ch)
 
- Public Member Functions inherited from GETObject
 GETObject ()
 
virtual ~GETObject ()
 
int GetId () const
 
virtual string GetFullId () const
 
virtual u_int GetSignalChannelCount () const
 
virtual u_int GetTotalChannelCount () const
 
virtual GETChannelGetSignalChannel (u_int n)
 
virtual GETChannelGetTotalChannel (u_int n)
 
const GETObjectGetParent () const
 
GETObjectGetParent ()
 
virtual void SetTimeStep (double dt)
 
u_int GetSampleDim ()
 
double GetTimeStep ()
 
virtual void SetReadoutFlag (bool b=true)
 
bool GetReadoutFlag () const
 
virtual u_int GetReadoutMultiplicity (bool fpn=true) const
 
virtual double GetSignalSum (u_short info=GET::signalOut)
 
virtual void InitLocalData (u_int n, double dt)
 
virtual void ValidDataSet ()
 
virtual void ValidSimulSet ()
 
virtual void SetResponse (GETResponse *ptr, bool recur=true, bool fpn=false)
 
virtual void SetResponse (GETResponse &obj, bool recur=true, bool fpn=false)
 
virtual void SetFilter (GETFilter *ptr, bool recur=true, bool fpn=false)
 
virtual void SetFilter (GETFilter &obj, bool recur=true, bool fpn=false)
 
virtual void SetNoiseIn (GETSignalModifier *ptr, bool recur=true, bool fpn=false)
 
virtual void SetNoiseIn (GETSignalModifier &obj, bool recur=true, bool fpn=false)
 
virtual void SetNoiseOut (GETSignalModifier *ptr, bool recur=true, bool fpn=false)
 
virtual void SetNoiseOut (GETSignalModifier &obj, bool recur=true, bool fpn=false)
 
virtual void SetOutputCorrection (GETProcess *ptr, bool recur=true, bool fpn=false)
 
virtual void SetOutputCorrection (GETProcess &obj, bool recur=true, bool fpn=false)
 
virtual void RemoveOutputCorrection ()
 
virtual void SetOutputCorrectionList (bool warn=true)
 
virtual void AddOutputCorrection (GETProcess *ptr, bool recur=true, bool fpn=false)
 
virtual void AddOutputCorrection (GETProcess &obj, bool recur=true, bool fpn=false)
 
GETResponseGetResponse (bool force=true)
 
GETFilterGetFilter (bool force=true)
 
GETSignalModifierGetNoiseIn (bool force=true)
 
GETSignalModifierGetNoiseOut (bool force=true)
 
GETProcessGetOutputCorrection (bool force=true)
 
virtual int ProcessData (bool in_noise=true)
 
virtual int ProcessOutFromTst (bool in_noise=true, bool out_noise=true)
 
virtual int ProcessRecFromOut (bool out_corr=true)
 
virtual int ProcessOutputCorrection ()
 
 ClassDef (GETObject, 0)
 

Protected Attributes

Additions to the GUI
TGNumberEntryField * w_anal_stat_mfm
 MFM event number.
 
Variables related to GET system
bool get_init
 GET initialization flag.
 
u_int get_dim
 GET system channels size.
 
double get_dt
 GET system time step.
 
u_int get_nx
 ACTAR TPC pads number along X.
 
u_int get_ny
 ACTAR TPC pads number along X.
 
double time_ref
 Run reference time (1st event) in sec.
 
double vdrift
 Signal drift velocity: if defined, use Z distance instead of time.
 
GETActarTpcAnalyserget_analyser
 Pointer to the analyser object associated to GET system.
 
int current_run_num
 Run number of current file.
 
int prev_run_num
 Run number of previous file.
 
bool run_changed
 Indicate whether a new run has started (from run number)
 
string get_init_default
 Default file for GET system initialization.
 
string get_init_cfg
 File for GET system initialization.
 
string get_run_cfg
 File for GET system run parameters.
 
string get_lookup_table
 File for GET system look-up table.
 
bool get_lt_rpad
 Whether the look-up table file contains the pad number.
 
bool get_lt_invxy
 Whether the look-up table file has inverted X-Y pads.
 
Variables related to histograms created from GET data
TH2 * h_full_raw
 Full raw data summary histogram.
 
TH2 * h_full_out
 Full output corrected data summary histogram.
 
TH1 * h_max_raw
 Raw data max amplitude summary histogram.
 
TH1 * h_max_cor
 Corrected data max amplitude summary histogram.
 
TH1 * h_time_raw
 Raw data time summary histogram.
 
TH1 * h_time_cor
 Corrected data time summary histogram.
 
TH3 * h_exyt
 X-Y and T pads signal amplitude histogram.
 
TH2 * h_dxy
 X-Y histogram for pads with data.
 
TH2 * h_hxy
 X-Y pads hits histogram.
 
TH2 * h_txy
 X-Y pads signal time histogram.
 
TH2 * h_exy
 X-Y pads signal amplitude histogram.
 
TH2 * h_ext
 X-T pads signal amplitude histogram.
 
TH2 * h_eyt
 X-T pads signal amplitude histogram.
 
TH1 * h_ex
 X signal projection histogram.
 
TH1 * h_ey
 X signal projection histogram.
 
TH1 * h_et
 X signal projection histogram.
 
int tdim_nt
 Number of bins of the time axis for the XY-T 3D histogram.
 
double tdim_t0
 Lower value of the time axis for the XY-T 3D histogram.
 
double tdim_t1
 Upper value of the time axis for the XY-T 3D histogram.
 
bool hok_full_raw
 Test for full raw event histogram creation.
 
bool hok_full_out
 Test for full corrected event histogram creation.
 
bool hok_pads_xyt_e
 Test for XY+T pads amplitude histograms creation.
 
bool hok_pads_xy_d
 Test for XY histograms for pads data creation.
 
bool hok_pads_xy_h
 Test for XY pads hits histograms creation.
 
bool hok_pads_xy_t
 Test for XY pads time histograms creation.
 
bool hok_pads_xy_e
 Test for XY pads amplitude histograms creation.
 
bool hok_pads_xt_e
 Test for XT pads amplitude histograms creation.
 
bool hok_pads_yt_e
 Test for YT pads amplitude histograms creation.
 
bool hok_pads_x_e
 Test for X projection histograms creation.
 
bool hok_pads_y_e
 Test for Y projection histograms creation.
 
bool hok_pads_t_e
 Test for T projection histograms creation.
 
bool hok_channels
 Indicates that some single channel histograms are defined.
 
bool * hok_chan_out
 Create histograms associated to channels array parameters.
 
bool hok_pads
 Indicates that some single pad histograms are defined.
 
bool * hok_pad_out
 Create pad histograms associated to channels array parameters.
 
bool hok_elec
 Indicates that some single electronics channels histograms are defined.
 
bool * hok_elec_out
 Create electronics channels histograms associated to channels array parameters.
 
bool * aget_page
 AGet signal pages creation flags.
 
Variables related to parameters created from GET data
bool pok_data_read
 Test for data read per channel array parameter creation.
 
bool pok_max_raw
 Test for channel raw maximum summary array parameter creation.
 
bool pok_max_cor
 Test for channel corrected maximum summary array parameter creation.
 
bool pok_time_raw
 Test for channel raw time summary array parameter creation.
 
bool pok_time_cor
 Test for channel corrected time summary array parameter creation.
 
bool pok_channels
 Indicates that some single channel parameters are defined.
 
bool * pok_chan_out
 Test for single channels array parameters creation (output signal)
 
int ip_evtnum
 Parameter index for event number.
 
int ip_evtacq
 Parameter index for event number in GET acquisition.
 
int ip_evttime
 Parameter index for event time (sec.) in GET acquisition.
 
int ip_max_raw
 Parameter index for array of maximum values for raw signals.
 
int ip_max_cor
 Parameter index for array of maximum values for corrected signals.
 
int ip_time_raw
 Parameter index for array of time values for raw signals.
 
int ip_time_cor
 Parameter index for array of time values for corrected signals.
 
int ip_eamp_all
 Parameter index for GET signal sum of channels maximum (all channels)
 
int ip_eamp_thr
 Parameter index for GET signal sum of channels maximum (channels above threshold)
 
int ip_eint_all
 Parameter index for GET signal sum of channels integral (all channels)
 
int ip_eint_thr
 Parameter index for GET signal sum of channels integral (channels above threshold)
 
int ip_mmax_sum
 Parameter index for GET signal sum from multiple maxima analysis.
 
int ip_max_signal
 Parameter index for maximum signal value.
 
int ip_max_channel
 Parameter index for channel number maximum signal.
 
int ip_read_mult
 Readout channels multiplicity parameter.
 
int ip_pads_mult
 Multiplicity of pads above (soft) threshold.
 
int ip_saturation_count
 parameter for number of saturated channels
 
int ip_noise
 Parameter for array of channels noise.
 
int ip_data_read
 Readout data number per channel parameter.
 
int ip_data_chk
 Parameter for data checks.
 
int ip_base_chk
 Parameter for baseline fluctuation check.
 
int ip_resol_amp
 Parameter for amplitude resolution analysis.
 
int ip_xmin
 Parameter index for pads signal boundaries.
 
int ip_xmax
 Parameter index for pads signal boundaries.
 
int ip_xlen
 Parameter index for pads signal boundaries.
 
int ip_ymin
 Parameter index for pads signal boundaries.
 
int ip_ymax
 Parameter index for pads signal boundaries.
 
int ip_ylen
 Parameter index for pads signal boundaries.
 
int ip_tmin
 Parameter index for pads signal boundaries.
 
int ip_tmax
 Parameter index for pads signal boundaries.
 
int ip_tlen
 Parameter index for pads signal boundaries.
 
int * ip_chan_out
 Parameter index for single channels output signal.
 
int * ip_chan_rec
 Parameter index for single channels reconstructed signal.
 
int * ip_chan_fit
 Parameter index for single channels fitted signal.
 
int read_mult
 Readout channels multiplicity (with FPN)
 
int pads_mult
 Pads multiplicity.
 
int bad_events
 Number of bad events in the run.
 
double ampl_all_c0
 Calibration parameter for sum of channels maximum.
 
double ampl_all_c1
 Calibration parameter for sum of channels maximum.
 
double ampl_thr_c0
 Calibration parameter for sum of channels (above threshold) maximum.
 
double ampl_thr_c1
 Calibration parameter for sum of channels (above threshold) maximum.
 
double eint_all_c0
 Calibration parameter for sum of channels integral.
 
double eint_all_c1
 Calibration parameter for sum of channels integral.
 
double eint_thr_c0
 Calibration parameter for sum of channels (above threshold) integral.
 
double eint_thr_c1
 Calibration parameter for sum of channels (above threshold) integral.
 
Variables related to preselected analysis
string pad_signal_page
 Page name for automatic display of pads signal.
 
GStringList default_analysis
 Analysis loaded at initialization.
 
Selected events output file
string selTxtColor
 Highlight for selected events messages.
 
string selTxtNorm
 End of highlight for selected events messages.
 
u_int selEventNum
 Number of selected events outputs.
 
u_int selEventCount [16]
 Counts of selected events.
 
string selEventDir [16]
 Names of the directories for selected events output.
 
string selEventFname
 Base file name (set at start of new run)
 
FILE * selEventFilePtr [16]
 File pointers for selected events.
 
int selEventFileLun [16]
 Logical units of file for selected events.
 
u_int selEventFileSub [16]
 Selected events sub-file number.
 
u_int selEventFileCnt [16]
 Number of events in the sub-file.
 
u_int selEventFileMax [16]
 Max. number of events in the sub-file.
 
string selFilterName [16]
 Names of the filters for event selection.
 
Filter * selFilterPtr [16]
 Pointer to the filters for event selection.
 
u_int pauseFilterNum
 Number of filters that cause the analysis pause.
 
string pauseFilterName [16]
 Names of the filters.
 
Filter * pauseFilterPtr [16]
 Pointer to the filters.
 
u_int pauseFilterCount [16]
 Names of the filters.
 
bool pauseFilterStop [16]
 The filter stops event reading (else, only update)
 
Automatic reset/save histogram families at run start/stop
u_int runFamilyNum
 Number of run families.
 
string runFamilyName [16]
 Names of run families.
 
GString runFamilyFile [16]
 File names of run families (empty for no save)
 
- Protected Attributes inherited from GETActarTpc
GETHitMaskXYpad_mask
 Pointer to the hit mask (same as base class hit mask, but known as GETHitMaskXY)
 
- Protected Attributes inherited from GETSystem
GETSystemAnalyseranalyser
 Pointer to a data analyser.
 
int bad_cobo_channel_aget [512]
 Memorize AGET number for bad channels.
 
u_int bad_cobo_channel_count
 Number for bad channels in CoBo read.
 
int bad_cobo_channel_index [512]
 Memorize Channel number for bad channels.
 
u_int bad_cobo_read_check
 Counter of bad data needed for missing channels in data check.
 
u_int bad_cobo_read_count
 Number of bad data read.
 
GETData bad_cobo_read_data [512]
 Bad data array.
 
u_int bad_cobo_read_min
 Minimum number of data to keep channels in data.
 
u_int bad_read_count
 Number of bad data read.
 
GETData bad_read_data [512]
 Bad data array.
 
u_int channel_count
 Total number of channels.
 
bool * channel_hit
 Whether the channel contains data.
 
GETChannel ** channel_summary
 Summary of channels pointers.
 
GETCoBocobo
 Array of CoBo modules.
 
int cobo_filled [4 *68 *512]
 Memorization of data read in CoBo frame.
 
u_int cobo_frame_error
 Number of CoBo frames with errors.
 
u_int cobo_frame_read
 Total number of CoBo frames.
 
u_int cobo_frame_recover
 Number of CoBo frames with errors that could be recovered.
 
int cobo_last_bucket [4 *68]
 Memorization of last time bucket read / channel.
 
u_int cobo_number
 Number of CoBo modules controlled.
 
GETCfgSetupconfig
 Configuration data.
 
bool cor_data
 Whether processing corrected data.
 
u_int data0_num
 Number of time buckets to set to 0 at beginning of data samples.
 
u_int dataN_num
 Number of time buckets to set to 0 at end of data samples.
 
u_int event_count
 Number of events read (in file)
 
GETHitMaskhit_mask
 Pointer to the hit mask.
 
GETLookupTable lookup_table
 Lookup table.
 
char * mfm_buffer
 MFM frames data buffer.
 
char ** mfm_buffer_adr
 Pointer of allocated buffer.
 
int mfm_buffer_size
 Size of allocated buffer.
 
uint64_t mfm_event_clock
 Event clock time from MFM frames.
 
int mfm_event_num
 Event number from MFM frames.
 
bool mfm_event_set
 Test is event number / time stamp is set.
 
double mfm_event_time
 Event time (sec) from MFM frames.
 
MFMCommonFrame * mfm_frame
 Common frame for MFM in/out.
 
MFMCoboFrame * mfm_frame_cobo
 Specific CoBo frame for MFM in/out.
 
u_int mfm_frame_count
 Frame number in current file.
 
u_int mult_aget
 Multiplicity of non empty AGet.
 
u_int mult_asad
 Multiplicity of non empty AsAd.
 
u_int mult_channel
 Multiplicity of non empty channels.
 
u_int mult_cobo
 Multiplicity of non empty CoBo.
 
GETRunFilerun_file
 Pointer to the input run data.
 
u_int saturation_count
 Number of saturated channels (computed at raw event analysis)
 
u_int saturation_mult
 Number of saturated data to consider a channel as saturated.
 
u_int saturation_value
 Coder value for channel saturation (set to 0 not to perform the analysis)
 
u_short selected_analysis
 Flag for selected analysis (see GETSystem::SelectAnalysis function)
 
int test_channel
 Channel index for test outputs (-1 for none)
 
double zero_threshold
 Threshold for raw data zero suppression.
 
- Protected Attributes inherited from GETObject
GETProcessLink filter
 Signal processing filter.
 
int id
 Object identifier number (set by the parent, in filiation)
 
bool is_read
 Flag indicating some data was read for the object (from exp. raw data)
 
GETProcessLink noise_in
 Simulation input noise generator.
 
GETProcessLink noise_out
 Simulation output noise generator.
 
GETProcessLink output_corr
 Output signal correction before reconstruction of input.
 
GETObjectparent
 Parent AGet chip.
 
GETProcessLink response
 Signal response function.
 

Private Member Functions

 GObject (GETActarEventReader)
 

Additional Inherited Members

- Static Public Member Functions inherited from GETSystem
static void SetOptions (u_int opts)
 
static void SetOption (u_int flags, bool b=true)
 
static u_int GetOptions ()
 
static bool GetOption (u_int flags)
 
- Static Protected Attributes inherited from GETSystem
static u_int options = 0
 Options for GET system.
 

Detailed Description

Constructor & Destructor Documentation

GETActarEventReader::GETActarEventReader ( bool  construct = true)

Default constructor of the analysis class.

Parameters
constructif set to true (default), the GUI is constructed (for use in derived classes to avoid the construction at creation of the base class).

References GET::analyseAll, GET_INIT_SETUP_DEFAULT_FILE, GET_PAD_SIGNAL_PAGE, GET_RUN_FAMILY_MAX, and GET_SELECT_MAX.

GETActarEventReader::~GETActarEventReader ( )
virtual

Destructor of the analysis class.

References aget_page, hok_chan_out, hok_elec_out, hok_pad_out, ip_chan_fit, ip_chan_out, ip_chan_rec, and pok_chan_out.

Member Function Documentation

void GETActarEventReader::AnalysisEvent ( )
virtual

Function called by event reading function, to fill parameters and predefined histograms.

References ampl_all_c0, ampl_all_c1, ampl_thr_c0, ampl_thr_c1, GETSystem::AnalyseCorData(), GETSystem::AnalyseInputRec(), bad_events, GETSystemAnalyser::BadChannelsWarning(), GETSystem::CalcMultiplicity(), GETActarTpcAnalyser::ComputeSumInt(), GETActarTpcAnalyser::ComputeSumMax(), eint_all_c0, eint_all_c1, eint_thr_c0, eint_thr_c1, get_analyser, GET_BAD_DATA_BASELINE, GET_BAD_DATA_DELTA, GET_BAD_DATA_READ, get_dim, get_dt, GETSystemAnalyser::GetBaseFluctuationsHisto(), GETSystem::GetChannel(), GETSystemAnalyser::GetChannelsNoiseHisto(), GETSystemAnalyser::GetDataContinuityBadCount(), GETSystemAnalyser::GetDataNumberBadCount(), GETSystemAnalyser::GetFluctuationsBadCount(), GETObject::GetFullId(), GETLookupTable::GetIpx(), GETLookupTable::GetIpy(), GETSystemAnalyser::GetMaximumChannel(), GETSystemAnalyser::GetMaximumSignal(), GETSystemAnalyser::GetMultiMaxSumAll(), GETHitMaskXY::GetNhitPads(), GETChannel::GetReadoutCount(), GETObject::GetReadoutFlag(), GETSystemAnalyser::GetResolutionHisto(), GETSystem::GetSaturationCount(), GETActarTpc::GetSignalBoundaries(), GETObject::GetTotalChannelCount(), h_max_cor, h_max_raw, h_time_cor, h_time_raw, ip_base_chk, ip_chan_fit, ip_chan_out, ip_chan_rec, ip_data_chk, ip_data_read, ip_eamp_all, ip_eamp_thr, ip_eint_all, ip_eint_thr, ip_max_channel, ip_max_cor, ip_max_raw, ip_max_signal, ip_mmax_sum, ip_noise, ip_pads_mult, ip_read_mult, ip_resol_amp, ip_saturation_count, ip_time_cor, ip_time_raw, ip_tlen, ip_tmax, ip_tmin, ip_xlen, ip_xmax, ip_xmin, ip_ylen, ip_ymax, ip_ymin, GETSystemAnalyser::IsChannelBad(), GETSystem::LookupTable(), GETChannel::OutSample(), GETActarTpc::pad_mask, pads_mult, pok_channels, pok_data_read, pok_max_cor, pok_max_raw, pok_time_cor, pok_time_raw, read_mult, GETChannel::RecSample(), and GETSystemAnalyser::SetChannelFctParameters().

Referenced by ReadEvent().

void GETActarEventReader::AnalysisStart ( )
virtual

Function called at run start for specific run analysis initialization.

References bad_events, and ReadRunConfig().

void GETActarEventReader::AnalysisStop ( )
virtual

Function called at run start for specific end run analysis.

References bad_events.

int GETActarEventReader::Close ( )
virtual

Implementation of the pure virtual function from RunBase to close a file from the GET system.

References IsOpen().

int GETActarEventReader::CloseSelectedEventsFile ( u_int  nf)
virtual

Close events selection sub-file for a selection filter

Parameters
nfindex of the selection filter

References selEventFileLun, selEventFilePtr, and selEventNum.

Referenced by CloseSelectedEventsFiles(), and WriteSelectedEvent().

int GETActarEventReader::CloseSelectedEventsFiles ( )
virtual

Function that closes the files for selected events output. The function returns 0 if no error occured.

References CloseSelectedEventsFile(), selEventCount, selEventFilePtr, selEventNum, selFilterName, selTxtColor, and selTxtNorm.

Referenced by RunStop().

bool GETActarEventReader::ConfigCommand ( const GString &  code,
const GString &  args = "",
FILE *  fptr = NULL 
)
virtual

Function that sets a configuration parameter from a command line.

The valid command line in the class are:

  • general commands:
    • VERB <v>: set the verbosity
    • RND <seed>: set the random generator seed (integer)
  • commands from the analyser classes:
  • pre-initialization commands
    (they should be called once, to create the GET system, before other analysis configuration options):
    • DT <period>: set the GET system samples write period
    • DIM <dim>: set the GET system samples depth (dimension)
    • GET <dim> <dt>: set the ACTAR/GET system samples depth (dimension) and period (equivalent to DT and DIM)
    • NPADS <nx> <ny>: set the number of pads of the pad plane along X and Y axis
    • READ_LT <lt_file> [nopad] [invxy]: read a look-up table file (this must be done before INIT of the GET system)
      • nopad indicates the format with no pad number in first column of the file
      • invxy indicates inverted X-Y pads
    • WRITE_LT <lt_file>: write a look-up table file (after the INIT of the GET system)
    • INIT: create the GET system
  • analysis configuration:
    • GET_RUN <pattern>: set the GET run files pattern
    • INCL <cfg_file>: include another configuration file
    • RCFG <cfg_run>: set pattern or file for configuration set at run start
    • ANA <def_file>: load definition file for spectra, filters pages after structures definitions initialization
  • GET system analyser parameters and histograms definitions:
    • TDIM <dim>: set the dimension for time axis of created histograms
    • VDRIFT <vd>: set the drift velocity for the conversion from time to Z-dimension
    • total energy deposit scale
      • CALIB_EAMP_ALL <a0> <a1>: coefficients for total energy deposit from maximum signal of all pads
      • CALIB_EAMP_THR <a0> <a1>: coefficients for total energy deposit from maximum signal of pads above threshold
      • CALIB_EINT_ALL <a0> <a1>: coefficients for total energy deposit from integral signal of all pads
      • CALIB_EINT_THR <a0> <a1>: coefficients for total energy deposit from integral signal of pads above threshold
    • automatically filled histograms:
      • H_GET_FULL_RAW
        H_GET_FULL_COR
        H_GET_FULL: create the full data histogram (channel number as X-axis, time bucket as Y-axis, and signal amplitude as Z)
      • H_PROJ <id> <id>...: create projection histograms, according to the specified identifiers:
        • XYT: 3D signal amplitude
        • XY_D: pads containing data
        • XY_H: pads with valid hit
        • XY_T: time value for pads
        • XY_E, XT_E, YT_E, 2D_E: 2D amplitude projections (selected or all)
        • XY: all pads projections: amplitude, time, data and hits
        • 1D_E or 1D: 1D amplitude projections (all)
        • X, Y, T: 1D amplitude projection
      • H_CHAN <cobo asad aget chan>: create channels histograms (for the identifiers, -1 means all)
      • H_PAD <ix0 ix1 iy0 iy1>: create pads signal histograms for a selected range of pads
      • AGET_PAGE <cobo asad aget>: create full AGet signa page (for the identifiers, -1 means all)
    • parameters:
      • P_SUMMARY
        P_SUMMARY_RAW
        P_SUMMARY_COR
      • P_DATA_READ
      • P_CHAN <cobo asad aget chan>: create channels parameters (for the identifiers, -1 means all)
  • GET selected events outputs:
    • SEL_FILTER <filt_name> <dir_name>: set a filter to select events that are written in output files created in the directory
    • PAUSE_FILTER <filt_name> [NoStop]: set a filter to pause the analysis or update display (with option NoStop)
Parameters
codeparameter(s) identifier
argsadditional arguments
fptrfile pointer (in case more information should be read)

References ampl_all_c0, ampl_all_c1, ampl_thr_c0, ampl_thr_c1, GETActarTpcAnalyser::ConfigCommand(), GETLookupTable::DumpTable(), eint_all_c0, eint_all_c1, eint_thr_c0, eint_thr_c1, get_analyser, get_dim, get_dt, get_init, get_lookup_table, get_lt_invxy, get_lt_rpad, get_nx, get_ny, GET_RUN_FAMILY_MAX, GETInit(), GETRandom, hok_full_out, hok_full_raw, hok_pads_t_e, hok_pads_x_e, hok_pads_xt_e, hok_pads_xy_d, hok_pads_xy_e, hok_pads_xy_h, hok_pads_xy_t, hok_pads_xyt_e, hok_pads_y_e, hok_pads_yt_e, GETSystem::LookupTable(), pauseFilterName, pauseFilterNum, pauseFilterStop, pok_data_read, pok_max_cor, pok_max_raw, pok_time_cor, pok_time_raw, PresetAgetPage(), PresetChannelParam(), PresetPadParam(), GET::ProcessSingleFrames, ReadConfigFile(), runFamilyFile, runFamilyName, runFamilyNum, selTxtColor, selTxtNorm, SetDefaultAnalysis(), SetGETRunConfigFile(), GETSystem::SetOptions(), SetSelectedEventsFilter(), tdim_nt, tdim_t0, tdim_t1, and vdrift.

Referenced by ConfigCommandLine(), and ReadConfigFile().

bool GETActarEventReader::ConfigCommandLine ( const string &  cmd,
FILE *  fptr = NULL 
)
virtual

Function that sets a configuration parameter from a setup file line.

Parameters
cmdsetup line
fptrfile pointer (in case more information should be read)

References ConfigCommand().

void GETActarEventReader::Construct ( )
virtual

Redefinition of function from GEVRunBase for the GUI.

References w_anal_stat_mfm.

GETActarTpcAnalyser * GETActarEventReader::DefineAnalyser ( )
virtual

Function defining the analyser associated to the GETSystem, at system initialization (in GETInit() function).

References GETSystem::analyser, and GETSystem::SetAnalyser().

Referenced by GETInit().

int GETActarEventReader::DefineChannelSpectrum ( int  ich,
bool  fill = false 
)
virtual

Function that create a pad histogram (if it is not already created) identified by channel index.

Parameters
ichchannel index
fillwhether the histogram is filled

References GetIndexId(), GETObject::GetTotalChannelCount(), and hok_channels.

Referenced by DefineElecSpectrum(), DefinePadSpectrum(), and PresetSystemAnalysis().

int GETActarEventReader::DefineChannelSpectrum ( int  ich,
const string &  name,
bool  fill = false 
)
virtual

Function that create an histogram on a pad or channel (if it is not already created) with the corresponding parameter.

Parameters
ichchannel index
fillwhether the histogram is filled
namebase name for channel histogram (default is built from electronics indexes)

References GET::amplitudeFit, get_analyser, get_dim, get_dt, GETSystemAnalyser::GetAmplitudeMode(), GETSystem::GetChannel(), GetElecId(), GETSystemAnalyser::GetSelectedSignalData(), GETObject::GetTotalChannelCount(), ip_chan_fit, ip_chan_out, ip_chan_rec, GETChannel::OutSample(), pok_chan_out, pok_channels, GETChannel::RecSample(), GETSystemAnalyser::SetChannelFctParameters(), and GET::signalRec.

int GETActarEventReader::DefineElecSpectrum ( u_int  cobo,
u_int  asad,
u_int  aget,
u_int  chan,
bool  fill = false 
)
virtual

Function that create a pad histogram (if it is not already created) identified by electronics modules indexes.

Parameters
coboindex of CoBo module
asadindex of AsAd board from CoBo module (0-3)
agetindex of AGET chip on AsAd board (0-3)
chanindex of channel in AGET chip (0-67)
fillwhether the histogram is filled

References DefineChannelSpectrum(), GETSystem::GetChildrenNumber(), GETSystem::GetCoBoNumber(), GetElecId(), and hok_elec.

Referenced by PresetSystemAnalysis().

int GETActarEventReader::DefinePadSpectrum ( int  ix,
int  iy,
bool  fill = false 
)
virtual

Function that create a pad histogram (if it is not already created) identified by (X,Y) pad indexes.

Parameters
ixX pad index
iyY pad index
fillwhether the histogram is filled

References DefineChannelSpectrum(), GETLookupTable::GetChannel(), GetPadId(), hok_pads, and GETSystem::LookupTable().

Referenced by PadPlaneButton1DoubleClick(), and PresetSystemAnalysis().

string GETActarEventReader::GetAGetId ( int  i) const
inline

Function defining a standardized short identifier for an AGet chip.

Parameters
iAGet index (0-3)

Referenced by GetElecId(), and PresetSystemAnalysis().

string GETActarEventReader::GetAsAdId ( int  i) const
inline

Function defining a standardized short identifier for an AsAd board.

Parameters
iAsad index (0-3)

Referenced by GetElecId(), and PresetSystemAnalysis().

string GETActarEventReader::GetChannelId ( int  i) const
inline

Function defining a standardized short identifier for an AGet channel.

Parameters
ichannel index (0-67)

Referenced by GetElecId().

string GETActarEventReader::GetCoBoId ( int  i) const
inline

Function defining a standardized short identifier for a CoBo module.

Parameters
iCoBo index

Referenced by GetElecId(), and PresetSystemAnalysis().

string GETActarEventReader::GetElecId ( int  i) const
inline

Function defining a standardized short identifier for an electronics channel.

Parameters
iglobal channel index

References GETSystem::cobo, GETLookupTable::GetAGet(), GETLookupTable::GetAsAd(), GETLookupTable::GetChannel(), GETLookupTable::GetCoBo(), and GETSystem::LookupTable().

Referenced by DefineChannelSpectrum(), DefineElecSpectrum(), and PresetSystemAnalysis().

string GETActarEventReader::GetElecId ( int  co,
int  as,
int  ag,
int  ch 
) const
inline

Function defining a standardized short identifier for an electronics channel.

Parameters
coCoBo index
asAsAd index in CoBo (0-3)
agAGET index in AsAd (0-3)
chChannel index in AGET (0-67)

References GetAGetId(), GetAsAdId(), GetChannelId(), and GetCoBoId().

string GETActarEventReader::GetIndexId ( int  i) const
inline

Function defining a standardized short identifier for a channel of the whole GET system.

Parameters
ichannel index

Referenced by DefineChannelSpectrum().

string GETActarEventReader::GetPadId ( int  ix,
int  iy 
) const
inline

Function defining a standardized short identifier for a pad.

Parameters
ixpad index along X (0-...)
iypad index along Y (0-...)

Referenced by DefinePadSpectrum().

GETActarEventReader::GObject ( GETActarEventReader  )
private

Macro from GCpp library that defines the following functions:

  • ClassName(): return the real class name of the object
  • StaticClassName(): return the used class name of the object (that may be a base class of the real object).
  • IsInstanceOf<T>(): return true if the current object is an instance of the template class name argument
  • Clone(): return an allocated copy of the object.
int GETActarEventReader::HistoClickedSlot ( const GEVPage *  page_ptr,
const GEVPad *  pad_ptr,
const TH1 *  histo_ptr,
const Double_t  x,
const Double_t  y 
)
virtual
int GETActarEventReader::HistoEventSlot ( Int_t  event,
const GEVPage *  page_ptr,
const GEVPad *  pad_ptr,
const TH1 *  histo_ptr,
const Double_t  x,
const Double_t  y 
)
virtual

Function called when mouse moving on a page spectrum.

Parameters
eventevent type identifier (see EEventType in ROOT)
page_ptrpage pointer
pad_ptrpad pointer
histo_ptrhistogram pointer
xhistogram X position
yhistogram Y position

References GETSystem::cobo, get_nx, get_ny, GETLookupTable::GetAGet(), GETLookupTable::GetAsAd(), GETLookupTable::GetChannel(), GETSystem::GetChannel(), GETLookupTable::GetCoBo(), GETLookupTable::GetIpx(), GETLookupTable::GetIpy(), GETChannel::GetSaturationCount(), GETObject::GetTotalChannelCount(), GETSystem::LookupTable(), PadPlaneButton1Click(), PadPlaneButton1DoubleClick(), PadPlaneButton2Click(), and PadPlaneButton2DoubleClick().

void GETActarEventReader::IncrementSpectra ( ) const
virtual

Reimplementation of the GEVRunBase function in order to check events selection for writting in the selected events output files.

References pauseFilterCount, pauseFilterName, pauseFilterNum, pauseFilterPtr, pauseFilterStop, selEventNum, selTxtColor, selTxtNorm, UpdateDisplay(), and WriteSelectedEvent().

bool GETActarEventReader::IsOpen ( )
virtual

Test whether the run file is open.

References GETSystem::IsRunFileOpen().

Referenced by Close(), Open(), and ReadEvent().

int GETActarEventReader::Open ( )
virtual

Implementation of the pure virtual function from RunBase to open a file from the GET system.

References IsOpen(), GETSystem::IsRunFileOpen(), and GETSystem::OpenRunFile().

int GETActarEventReader::OpenSelectedEventsFile ( u_int  nf)
virtual

Open the next events selection sub-file for a selection filter

Parameters
nfindex of the selection filter

References selEventDir, selEventFileCnt, selEventFileLun, selEventFilePtr, selEventFileSub, selEventFname, selEventNum, selFilterName, selFilterPtr, selTxtColor, and selTxtNorm.

Referenced by WriteSelectedEvent().

void GETActarEventReader::PadPlaneButton1Click ( const TH2 *  hpad,
int  ix,
int  iy 
)
virtual

Function called when a pad plane histo is clicked. This function is also called in case of double-click

Parameters
hpadpointer to the pad histogram
ixX pad index
iyY pad index

Referenced by HistoEventSlot().

void GETActarEventReader::PadPlaneButton1DoubleClick ( const TH2 *  hpad,
int  ix,
int  iy 
)
virtual

Function called when a pad plane histo is double-clicked. If the spectrum corresponding to the pad signal is not defined, it is created. The pad signal spectrum is defined (if not yet done) and plotted in the first plot of pad signal page (created if not defined).

Parameters
hpadpointer to the pad histogram
ixX pad index
iyY pad index

References DefinePadSpectrum(), get_analyser, GETSystemAnalyser::GetSelectedSignalData(), pad_signal_page, and GET::signalRec.

Referenced by HistoEventSlot().

void GETActarEventReader::PadPlaneButton2Click ( const TH2 *  hpad,
int  ix,
int  iy 
)
virtual

Function called when a pad plane histo is clicked. This function is also called in case of double-click

Parameters
hpadpointer to the pad histogram
ixX pad index
iyY pad index

Referenced by HistoEventSlot().

void GETActarEventReader::PadPlaneButton2DoubleClick ( const TH2 *  hpad,
int  ix,
int  iy 
)
virtual

Function called when a pad plane histo is clicked.

Parameters
hpadpointer to the pad histogram
ixX pad index
iyY pad index

Referenced by HistoEventSlot().

void GETActarEventReader::PresetAgetPage ( const string &  def)
virtual

Function indicating to create the page to display all channels from an AGET chip.

Parameters
defAGet definition (cobo asad aget)

Referenced by ConfigCommand().

void GETActarEventReader::PresetAgetPage ( int  cobo,
int  asad,
int  aget 
)
virtual

Function indicating to create the page to display all channels from an AGET chip (and corresponding histograms).

Parameters
coboCoBo module (-1 for all)
asadAsAd board (-1 for all)
agetAGet chip (-1 for all)

References aget_page, ASAD_SIZE, GETSystem::cobo, COBO_SIZE, GETSystem::GetCoBoNumber(), hok_elec, hok_elec_out, and PresetChannelParam().

void GETActarEventReader::PresetAnalysis ( )
virtual

Function that creates the analysis structures predefined from the initialization configuration file, and loads the preselected definitions. It is called by the GETActarEventReader::RunInit function.

References PresetLoadedAnalysis(), and PresetSystemAnalysis().

void GETActarEventReader::PresetChannelParam ( const string &  def,
bool  hdef = false 
)
virtual

Function indicating that the parameters associated to selected channels have to be created, and optionally the corresponding histograms.

Parameters
defchannels definition (cobo asad aget channel numbers, -1 for all)
hdefwhether the corresponding histograms are also created

References GETSystem::cobo.

Referenced by ConfigCommand(), and PresetAgetPage().

void GETActarEventReader::PresetChannelParam ( int  cobo,
int  asad,
int  aget,
int  chan,
bool  hdef = false 
)
virtual

Function indicating that the parameters associated to selected channels have to be created, and optionally the corresponding histograms (labelled with electronics modules indexes).

Parameters
coboCoBo number (-1 for all)
asadAsAd number (-1 for all)
agetAGet number (-1 for all)
chanChannel number (-1 for all)
hdefwhether the corresponding electronics channel histograms are also created

References GETSystem::cobo, GETSystem::GetChannelIndex(), GETSystem::GetCoBoNumber(), GETObject::GetTotalChannelCount(), hok_elec, hok_elec_out, pok_chan_out, and pok_channels.

void GETActarEventReader::PresetChannelParam ( int  ich0 = 0,
int  ich1 = -1,
bool  hdef = false 
)
virtual

Function indicating that the parameters associated to selected channels have to be created, and optionally the corresponding histograms (labelled with absolute channel indexes).

Parameters
ich0first channel index
ich1last channel index (-1 for all)
hdefwhether the corresponding channel histograms are also created

References GETObject::GetTotalChannelCount(), hok_chan_out, hok_channels, pok_chan_out, and pok_channels.

void GETActarEventReader::PresetLoadedAnalysis ( )
virtual

Function that loads the predefinedin the initialization configuration file.

References default_analysis.

Referenced by PresetAnalysis().

void GETActarEventReader::PresetPadParam ( const string &  def,
bool  hdef = false 
)
virtual

Function indicating that the parameters associated to selected channels have to be created, and optionally the corresponding histograms.

Parameters
defchannels definition (ix0 ix1 iy0 iy1)
hdefwhether the corresponding histograms are also created

Referenced by ConfigCommand().

void GETActarEventReader::PresetPadParam ( int  ix0,
int  ix1,
int  iy0,
int  iy1,
bool  hdef = false 
)
virtual

Function indicating that the parameters associated to selected channels have to be created, and optionally the corresponding histograms.

Parameters
ix0lower X pad index
ix1upper X pad index
iy0lower Y pad index
iy1upper Y pad index
hdefwhether the corresponding histograms are also created

References get_nx, get_ny, GETLookupTable::GetChannel(), hok_pad_out, hok_pads, GETSystem::LookupTable(), pok_chan_out, and pok_channels.

void GETActarEventReader::PresetSystemAnalysis ( )
virtual

Function that creates the analysis structures predefined from the initialization configuration file.

References aget_page, GET::amplitudeFit, ASAD_SIZE, GETSystem::cobo, COBO_SIZE, GETSystemAnalyser::CreateFullEventCorHisto(), GETSystemAnalyser::CreateFullEventRawHisto(), GETActarTpcAnalyser::CreateInTrackMeanHisto(), GETActarTpcAnalyser::CreateInTrackPatternHisto(), GETActarTpcAnalyser::CreateOffTrackMeanHisto(), GETActarTpcAnalyser::CreateOffTrackPatternHisto(), GETActarTpcAnalyser::CreateTprojectionHisto(), GETActarTpcAnalyser::CreateXprojectionHisto(), GETActarTpcAnalyser::CreateXTamplitudeHisto(), GETActarTpcAnalyser::CreateXYamplitudeHisto(), GETActarTpcAnalyser::CreateXYdataHisto(), GETActarTpcAnalyser::CreateXYhitsHisto(), GETActarTpcAnalyser::CreateXYTHisto(), GETActarTpcAnalyser::CreateXYtimeHisto(), GETActarTpcAnalyser::CreateYprojectionHisto(), GETActarTpcAnalyser::CreateYTamplitudeHisto(), DefineChannelSpectrum(), DefineElecSpectrum(), DefinePadSpectrum(), get_analyser, get_dim, GETLookupTable::GetAGet(), GetAGetId(), GETSystemAnalyser::GetAmplitudeMode(), GETLookupTable::GetAsAd(), GetAsAdId(), GETLookupTable::GetChannel(), GETSystem::GetChannel(), GETActarTpcAnalyser::GetChannelsNoiseHistoXY(), GETLookupTable::GetCoBo(), GetCoBoId(), GETSystem::GetCoBoNumber(), GetElecId(), GETLookupTable::GetIpx(), GETLookupTable::GetIpy(), GETObject::GetSampleDim(), GETSystemAnalyser::GetSelectedSignalData(), GETObject::GetTimeStep(), GETObject::GetTotalChannelCount(), h_dxy, h_et, h_ex, h_ext, h_exy, h_exyt, h_ey, h_eyt, h_full_out, h_full_raw, h_hxy, h_txy, hok_chan_out, hok_channels, hok_elec, hok_elec_out, hok_full_out, hok_full_raw, hok_pad_out, hok_pads, hok_pads_t_e, hok_pads_x_e, hok_pads_xt_e, hok_pads_xy_d, hok_pads_xy_e, hok_pads_xy_h, hok_pads_xy_t, hok_pads_xyt_e, hok_pads_y_e, hok_pads_yt_e, ip_chan_fit, ip_chan_out, ip_chan_rec, GETChannel::IsFPNChannel(), GETSystemAnalyser::IsNoiseAnalysisON(), GETActarTpcAnalyser::IsOffTrackAnalysisON(), GETSystem::LookupTable(), pok_chan_out, pok_channels, GET::signalRec, tdim_nt, tdim_t0, tdim_t1, and vdrift.

Referenced by PresetAnalysis().

int GETActarEventReader::ProcessCmdLine ( int &  argc,
char **  argv,
bool  supp = true 
)
virtual

Function that processes the command line arguments. The arguments that are recognized and processed are removed from the arguments list, and the parameters argc and argv are modified accordingly.

Note that if the "--help" argument is present, no argument is processed anymore.

The function returns 0 if arguments are processed without problem or a positive value in case of error. The "--help" argument causes a -1 return value (so that the program may be interrupted).

Parameters
argcnumber of arguments
argvarray of arguments pointers
suppwhether the recognized arguments are removed

References ProcessLineHelp(), ReadInitConfig(), SetDefaultAnalysis(), SetGETInitConfigFile(), and SetGETRunConfigFile().

void GETActarEventReader::ProcessLineHelp ( ) const
virtual

Function issuing a message for command line options explanation.

Referenced by ProcessCmdLine().

void GETActarEventReader::Quit ( )
virtual

Function redefined from base class to force a reset.

int GETActarEventReader::ReadConfigFile ( const string &  cfg)
virtual

Function that reads setup parameters for GET system.

The function returns 0 if no error occured, a positive value in case of file error and a negative value if some invalid commands are found.

Parameters
cfgconfiguration file name

Referenced by ConfigCommand(), ReadInitConfig(), and ReadRunConfig().

int GETActarEventReader::ReadConfigFile ( FILE *  fp)
virtual

Function that reads setup parameters for GET system.

The function returns 0 if no error occured, a positive value in case of file error and a negative value if some invalid commands are found.

Parameters
fpsetup file pointer

References ConfigCommand().

int GETActarEventReader::ReadEvent ( )
virtual
void GETActarEventReader::ReadInitConfig ( )
virtual

Function that reads the initialization setup for GET system. The configuration file is defined by the SetGETInitConfigFile function. An initialization file is mandatory for building the GET system object that will process the data.

References get_init, get_init_cfg, get_init_default, and ReadConfigFile().

Referenced by ProcessCmdLine().

void GETActarEventReader::ReadRunConfig ( )
virtual

Function that reads the run setup parameters for GET system (if the filename is empty, the function does nothing). The run analysis configuration file can be defined with the SetGETRunConfigFile function. If the configuration file is not defined or is not found, the analysis configuration remains unchanged. In case the file exists, the output correction processes for all channels are removed, in order to be able to redefine new ones from the configuration file information.

References get_analyser, get_run_cfg, ReadConfigFile(), GETObject::RemoveOutputCorrection(), and GETActarTpcAnalyser::SetOffTrackCorrection().

Referenced by AnalysisStart().

void GETActarEventReader::Reset ( )
virtual

Function redefined from base class to implement specific reset.

Reimplemented from GETSystem.

References GETActarTpcAnalyser::ClearAnalysis(), get_analyser, pauseFilterCount, pauseFilterNum, prev_run_num, GETSystem::Reset(), selEventCount, and selEventNum.

void GETActarEventReader::ResetFileList ( )
virtual

Reimplemented from GEVRunBase to call RunStop only when run is stopped, not at new file with no run change.

References RunStop().

bool GETActarEventReader::RunChanged ( ) const
inlinevirtual

This function returns true, at run start, if the run number has changed. When a new file is open from the same run, it remains to false.

References run_changed.

int GETActarEventReader::RunStop ( )
virtual

Function reimplemented from GEVRunBase.

References CloseSelectedEventsFiles(), current_run_num, runFamilyFile, runFamilyName, runFamilyNum, and selEventNum.

Referenced by ResetFileList().

void GETActarEventReader::SetColorMode ( )
virtual

Restores the colors before display update. This restores the color palette in case it has been modified.

void GETActarEventReader::SetDefaultAnalysis ( const string &  ana)
virtual

Defines the default analysis loaded at initialization.

Parameters
anaanalysis (definitions) file

References default_analysis.

Referenced by ConfigCommand(), and ProcessCmdLine().

void GETActarEventReader::SetGETInitConfigFile ( const string &  cfg)
virtual

Function that defines the GET initialization configuration file.

Parameters
cfgrun configuration file

References get_init_cfg.

Referenced by ProcessCmdLine().

void GETActarEventReader::SetGETRunConfigFile ( const string &  cfg)
virtual

Function that defines the GET analysis configuration file at run start. If the file name is empty, no file is read (the parameters defined at initialization are used, or the default ones). The following codes are supported:

  • "%F" or "%nF" for file number
    Parameters
    cfgrun configuration file

References get_run_cfg.

Referenced by ConfigCommand(), and ProcessCmdLine().

void GETActarEventReader::SetLookupTable ( const string &  ltfile)
virtual

Defines the lookup table file.

Parameters
ltfiletable file

References get_lookup_table.

bool GETActarEventReader::SetSelectedEventsFilter ( const string &  filter,
const string &  dir,
u_int  nmax = 0 
)
virtual

Function that defines a new events selection output. If the selection is defined without error, the function returns the pointer to the filter.

Parameters
filtername of the filter
diroutput directory for output files
nmaxmax. number of events in the output files (change sub-number when reached) or 0 to keep same sub numbers than the input run files

References GETObject::filter, GET_SELECT_MAX, selEventDir, selEventFileMax, selEventNum, and selFilterName.

Referenced by ConfigCommand().

void GETActarEventReader::UpdateDisplay ( )
virtual

Redefinition of function from GEVRunBase for the GUI.

References GETSystem::GetAcqEventNumber(), and w_anal_stat_mfm.

Referenced by IncrementSpectra().

int GETActarEventReader::UserCorEvent ( )
virtual

Function called after the corrected / reconstructed data analysis. The function does nothing in this class, but may be used in derived classes.

Reimplemented from GETSystem.

int GETActarEventReader::UserEvent ( )
virtual

Function called after an new event has been read.

int GETActarEventReader::UserEventDefine ( )
virtual

This function is called only once, at initialization time (see GEVRunBase class documentation):

  • the definition of user additionnal parameters
  • the definition of contours and filters
  • the creation of spectra based on parameters (raw or user)
  • definition of graphical pages
int GETActarEventReader::UserFit ( )
virtual

This function is called when a fit is performed from the GUI pads, if the result is validated by the "done" button of the fit interface. To get acces to the fit result, see the GEVRunBase base class functions: GetFitSpectrum(), GetFitInfo(), GetFitResult(), ...

The fitter (fit class object) can be reached with the specific functions (depending of the fit type): GetFitter1D(), GetPeakFitter(), GetDecayFitter(),...

Note: the fitting object is destroyed after the call to the UserFit() function.

int GETActarEventReader::UserNewFile ( )
virtual

Function called when a new file is opened, with or without change of the run number.

int GETActarEventReader::UserQuit ( )
virtual

Function called when quitting the analysis, when "Quit" button is clicked.

int GETActarEventReader::UserRawEvent ( )
virtual

Function called after the raw data analysis. The function does nothing in this class, but may be used in derived classes.

Reimplemented from GETSystem.

int GETActarEventReader::UserRefresh ( )
virtual

Function called after the GUI pages have been updated, for customized displays.

int GETActarEventReader::UserReset ( )
virtual

Function called when the Reset button of the GUI is clicked.

int GETActarEventReader::UserRunStart ( )
virtual

Function called at the beginning of processing of a new run file.

int GETActarEventReader::UserRunStop ( )
virtual

Function called when the end of a run has been reached.

References GETSystem::cobo_frame_error, GETSystem::cobo_frame_read, and GETSystem::cobo_frame_recover.

int GETActarEventReader::UserUpdate ( )
virtual

Function called after the automatic incrementation of spectra (after event processing).

int GETActarEventReader::WriteSelectedEvent ( )
virtual

Function that tests the events selection filters and if the conditions are fulfilled, the events are written to the corresponding output files. The function returns 0 if no error occured.

References CloseSelectedEventsFile(), GETSystem::mfm_event_num, GETSystem::mfm_frame, OpenSelectedEventsFile(), selEventCount, selEventFileCnt, selEventFileLun, selEventFileMax, selEventFilePtr, selEventFileSub, selEventNum, selFilterName, selFilterPtr, selTxtColor, and selTxtNorm.

Referenced by IncrementSpectra().


The documentation for this class was generated from the following files: