GET library
GETActarEventReader Class Reference

#include <GETActarEventReader.hh>

Inheritance diagram for GETActarEventReader:
GETActarTpc GETSystem GETObject

Public Member Functions

Constructor and destructor
 GETActarEventReader ()
 
virtual ~GETActarEventReader ()
 
Read of event files functions
virtual int Open ()
 
virtual bool IsOpen ()
 
virtual int Close ()
 
virtual int RunInit ()
 
virtual int FileOpen ()
 
virtual void FileClose ()
 
virtual void Reset ()
 
virtual int CreateEvent ()
 
virtual int ReadEvent ()
 
Graphical user interface modifications
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 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
 
virtual void DefineChannelParam (const string &def, bool hdef=false)
 
virtual void DefineChannelParam (int cobo, int asad, int aget, int chan, bool hdef=false)
 
virtual void DefinePadParam (const string &def, bool hdef=false)
 
virtual void DefinePadParam (int ix0, int ix1, int iy0, int iy1, bool hdef=false)
 
virtual int DefinePadSpectrum (int ix, int iy, bool fill=false)
 
virtual void PresetAnalysis ()
 
virtual void AnalysisStart ()
 
virtual void AnalysisStop ()
 
virtual void AnalysisEvent ()
 
Standard user hooks function
virtual int UserEventDefine ()
 
virtual int UserRunStart ()
 
virtual int UserEvent ()
 
virtual int UserUpdate ()
 
virtual int UserRefresh ()
 
virtual int UserRunStop ()
 
virtual int UserReset ()
 
virtual int UserQuit ()
 
virtual int UserFit ()
 
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)
 
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 (double &xmin, double &xmax, double &ymin, double &ymax, double &tmin, double &tmax)
 
 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 ()
 
bool ChannelHasData (u_int ic) 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 GETHitMaskSetHitMask (GETHitMask *mask)
 
GETHitMaskGetHitMask () const
 
virtual int SetAnalyser (GETSystemAnalyser *a)
 
GETSystemAnalyserGetAnalyser () const
 
virtual int SetCalibProcess (const string &calib_file)
 
virtual int SetBaselineCorrection (const string &bl_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 SetAutoBaselineLow (u_short num_lo, u_short off_lo=0)
 
virtual int SetAutoBaselineHigh (u_short num_hi, u_short off_hi=0)
 
u_int GetEventCount () const
 
string GetRunFileName () const
 
virtual int OpenRunFile (const string &fname)
 
virtual int OpenRunSerie (const string &pattern, const string &serie)
 
virtual int CloseRunFile ()
 
bool IsRunFileOpen () const
 
GETRunFileGetRunFile ()
 
virtual int ReadEvent (bool process=true)
 
virtual int AnalyseRawEvent ()
 
virtual int AnalyseCorEvent ()
 
virtual int ExtractXMLFileHeaderFrame ()
 
virtual int ExtractCoboTopoFrame ()
 
virtual int ExtractEbyedatFrame ()
 
virtual int ExtractMergeFrame ()
 
virtual int ProcessFrameData (MFMCommonFrame *frame)
 
virtual int ProcessMergeFrameData (MFMMergeFrame *frame)
 
virtual int ProcessCoBoFrameData (MFMCoboFrame *frame)
 
virtual int ProcessEbyedatFrameData (MFMEbyedatFrame *frame)
 
virtual GETChannelGetMaximumChannel (u_short info=GET::signalOut, bool integ=false)
 
virtual int OutputCorrectFPN (u_int opt_fpn=GET::CoBoCorrectFPN4)
 
virtual int ZeroSuppression (double thr=0.)
 
virtual int AnyFrameUser (MFMCommonFrame &frame)
 
virtual int MergeFrameUser (MFMMergeFrame &frame)
 
virtual int CoBoFrameUser (MFMCoboFrame &frame)
 
virtual int EbyedatFrameUser (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 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

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.
 
GETActarTpcAnalyserget_analyser
 Pointer to the analyser object associated to GET system.
 
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.
 
TH3 * h_exyt
 X-Y and T pads signal amplitude histogram.
 
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_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
 Create histograms associated to channels array parameters.
 
bool hok_pads
 Indicates that some single pad histograms are defined.
 
bool * hok_pad
 Create pad histograms associated to channels array parameters.
 
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_channels
 Indicates that some single channel parameters are defined.
 
bool * pok_chan
 Test for single channels array parameters creation.
 
int ip_evtnum
 Parameter index for event number.
 
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_sum_all
 Parameter index for GET signal sum (all channels)
 
int ip_sum_thr
 Parameter index for GET signal sum (channels above threshold)
 
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
 Parameter index for single channels.
 
int read_mult
 Readout channels multiplicity (with FPN)
 
int pads_mult
 Pads multiplicity.
 
int bad_events
 Number of bad events in the run.
 
double sum_all_a0
 Calibration parameter for GET sum.
 
double sum_all_a1
 Calibration parameter for GET sum.
 
double sum_thr_a0
 Calibration parameter for GET sum.
 
double sum_thr_a1
 Calibration parameter for GET sum.
 
Variables related to preselected analysis
string pad_signal_page
 Page name for automatic display of pads signal.
 
GStringList default_analysis
 Analysis loaded at initialization.
 
- 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.
 
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.
 
u_int cobo_number
 Number of CoBo modules controlled.
 
GETCfgSetupconfig
 Configuration data.
 
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.
 
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.
 
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)
 
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)
 
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

Member Function Documentation

void GETActarEventReader::AnalysisEvent ( )
virtual
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.

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
  • 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)
    • 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 automatic parameters and histograms definitions:
    • TDIM <dim>: set the dimension for time axis of created histograms
    • SUM_ALL <a0> <a1>: coefficients for sum signal of all pads
    • SUM_THR <a0> <a1>: coefficients for sum signal of pads above threshold
  • channels and pads parameters/histograms:
  • commands from the analysis class (see GETSystemAnalyser::ConfigCommand and GETActarTpcAnalyser::ConfigCommand)
    • THR..., AMPL..., TIME...
    • READ_CHK..., BASE_CHK..., DELTA_CHK...
    • FPN..., SMOOTH..., CAL..., AB..., ABL..., ABH...
    • G_MASK...
Parameters
codeparameter(s) identifier
argsadditional arguments
fptrfile pointer (in case more information should be read)

References GETActarTpcAnalyser::ConfigCommand(), DefineChannelParam(), DefinePadParam(), GETLookupTable::DumpTable(), get_analyser, get_dim, get_dt, get_init, get_lookup_table, get_lt_invxy, get_lt_rpad, get_nx, get_ny, GETInit(), hok_full_out, hok_full_raw, hok_pads_t_e, hok_pads_x_e, hok_pads_xt_e, 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(), pok_data_read, pok_max_cor, pok_max_raw, ReadConfigFile(), SetDefaultAnalysis(), SetGETRunConfigFile(), sum_all_a0, sum_all_a1, sum_thr_a0, sum_thr_a1, tdim_nt, tdim_t0, and tdim_t1.

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::DefineChannelParam ( 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 DefinePadParam().

void GETActarEventReader::DefineChannelParam ( 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.

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

References GETSystem::cobo, GETSystem::GetChannelIndex(), GETSystem::GetCoBoNumber(), GETObject::GetTotalChannelCount(), hok_chan, hok_channels, pok_chan, and pok_channels.

void GETActarEventReader::DefinePadParam ( 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

References DefineChannelParam().

Referenced by ConfigCommand().

void GETActarEventReader::DefinePadParam ( 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, hok_pads, GETSystem::LookupTable(), pok_chan, and pok_channels.

int GETActarEventReader::DefinePadSpectrum ( int  ix,
int  iy,
bool  fill = false 
)
virtual
string GETActarEventReader::GetAGetId ( int  i) const
inline

Function defining a standardized short identifier for an AGet chip.

Parameters
iAGet index (0-3)

Referenced by DefinePadSpectrum(), and PresetAnalysis().

string GETActarEventReader::GetAsAdId ( int  i) const
inline

Function defining a standardized short identifier for an AsAd board.

Parameters
iAsad index (0-3)

Referenced by DefinePadSpectrum(), and PresetAnalysis().

string GETActarEventReader::GetChannelId ( int  i) const
inline

Function defining a standardized short identifier for an AGet channel.

Parameters
ichannel index (0-67)

Referenced by DefinePadSpectrum(), and PresetAnalysis().

string GETActarEventReader::GetCoBoId ( int  i) const
inline

Function defining a standardized short identifier for a CoBo module.

Parameters
iCoBo index

Referenced by DefinePadSpectrum(), and PresetAnalysis().

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 DefinePadSpectrum(), and PresetAnalysis().

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(), and PresetAnalysis().

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

Function called on a click in a page spectrum.

Parameters
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(), GETChannel::GetSaturationCount(), and GETSystem::LookupTable().

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(), GETChannel::GetSaturationCount(), GETSystem::LookupTable(), PadPlaneButton1Click(), PadPlaneButton1DoubleClick(), PadPlaneButton2Click(), and PadPlaneButton2DoubleClick().

bool GETActarEventReader::IsOpen ( )
virtual

Test si le fichier de données est ouvert.

References GETSystem::IsRunFileOpen().

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(), and pad_signal_page.

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::PresetAnalysis ( )
virtual
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().

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().

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 specifi reset.

Reimplemented from GETSystem.

References GETActarTpcAnalyser::ClearAnalysis(), and get_analyser.

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.

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::UserQuit ( )
virtual

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

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.

int GETActarEventReader::UserUpdate ( )
virtual

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


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