8 #ifndef GET_ACTAR_EVENT_READER_HH
9 #define GET_ACTAR_EVENT_READER_HH
11 #include "GEVSimulRun.hh"
16 #define GET_INIT_SETUP_DEFAULT_FILE "get_init_setup.dat"
19 #define GET_VALID_TRACK_FILTER_NAME "F_ValidTrack"
22 #define GET_PAD_SIGNAL_PAGE "TestPadSignal"
24 #define GET_BAD_DATA_BASELINE 1
25 #define GET_BAD_DATA_DELTA 2
26 #define GET_BAD_DATA_READ 4
29 #define GET_SELECT_MAX 16
32 #define GET_FILTER_PAUSE 16
35 #define GET_RUN_FAMILY_MAX 16
352 virtual int Open ( );
354 virtual int Close ( );
355 virtual int RunInit ( );
359 virtual int FileOpen ( );
360 virtual void FileClose ( );
365 virtual void Reset ( );
366 virtual void Quit ( );
384 const GEVPage * page_ptr,
385 const GEVPad * pad_ptr,
386 const TH1 * histo_ptr,
387 const Double_t x,
const Double_t y );
390 const GEVPad * pad_ptr,
391 const TH1 * histo_ptr,
392 const Double_t x,
const Double_t y );
404 virtual int ProcessCmdLine (
int & argc,
char ** argv,
bool supp =
true );
414 virtual bool ConfigCommand (
const GString & code,
const GString & args =
"", FILE * fptr = NULL );
432 string GetPadId (
int ix,
int iy )
const;
434 string GetElecId (
int co,
int as,
int ag,
int ch )
const;
443 virtual void PresetPadParam (
const string & def,
bool hdef =
false );
444 virtual void PresetPadParam (
int ix0,
int ix1,
int iy0,
int iy1,
bool hdef =
false );
539 #ifndef GET_ACTAR_EVENT_READER_LINKDEF_H
540 #define GET_ACTAR_EVENT_READER_LINKDEF_H
541 #if defined (__MAKECINT__) || defined (__ROOTCLING__)
542 #pragma link C++ class GETActarEventReader;
561 {
char str[16]; sprintf ( str,
"C%02d", i );
return (
string(str) ); }
567 {
char str[16]; sprintf ( str,
"A%01d", i );
return (
string(str) ); }
573 {
char str[16]; sprintf ( str,
"G%01d", i );
return (
string(str) ); }
579 {
char str[16]; sprintf ( str,
"Ch%02d", i );
return (
string(str) ); }
586 {
char str[16]; sprintf ( str,
"%05d", i );
return (
string(str) ); }
593 {
char str[16]; sprintf ( str,
"x%03d_y%03d", ix, iy );
return (
string(str) ); }
604 return (
GetElecId(cobo,asad,aget,chan) ); }
int ip_evtacq
Parameter index for event number in GET acquisition.
Definition: GETActarEventReader.hh:240
u_int runFamilyNum
Number of run families.
Definition: GETActarEventReader.hh:335
string GetIndexId(int i) const
Definition: GETActarEventReader.hh:585
virtual int DefineElecSpectrum(u_int cobo, u_int asad, u_int aget, u_int chan, bool fill=false)
Definition: GETActarEventReader.cpp:2556
virtual void AnalysisStart()
Definition: GETActarEventReader.cpp:3127
int ip_ylen
Parameter index for pads signal boundaries.
Definition: GETActarEventReader.hh:270
int ip_evtnum
Parameter index for event number.
Definition: GETActarEventReader.hh:239
string selTxtNorm
End of highlight for selected events messages.
Definition: GETActarEventReader.hh:309
int read_mult
Readout channels multiplicity (with FPN)
Definition: GETActarEventReader.hh:279
virtual int HistoClickedSlot(const GEVPage *page_ptr, const GEVPad *pad_ptr, const TH1 *histo_ptr, const Double_t x, const Double_t y)
Definition: GETActarEventReader.cpp:832
string pad_signal_page
Page name for automatic display of pads signal.
Definition: GETActarEventReader.hh:298
string GetChannelId(int i) const
Definition: GETActarEventReader.hh:578
virtual int GetAGet(u_int nch) const
Definition: GETLookupTable.icc:43
virtual void AnalysisStop()
Definition: GETActarEventReader.cpp:3138
virtual void PadPlaneButton2DoubleClick(const TH2 *hpad, int ix, int iy)
Definition: GETActarEventReader.cpp:1066
double eint_all_c0
Calibration parameter for sum of channels integral.
Definition: GETActarEventReader.hh:289
string pauseFilterName[16]
Names of the filters.
Definition: GETActarEventReader.hh:327
GETActarTpcAnalyser * get_analyser
Pointer to the analyser object associated to GET system.
Definition: GETActarEventReader.hh:163
virtual void UpdateDisplay()
Definition: GETActarEventReader.cpp:227
double tdim_t1
Upper value of the time axis for the XY-T 3D histogram.
Definition: GETActarEventReader.hh:202
TH1 * h_et
X signal projection histogram.
Definition: GETActarEventReader.hh:198
bool hok_pads_xy_h
Test for XY pads hits histograms creation.
Definition: GETActarEventReader.hh:209
bool hok_pads_xt_e
Test for XT pads amplitude histograms creation.
Definition: GETActarEventReader.hh:212
int ip_tmax
Parameter index for pads signal boundaries.
Definition: GETActarEventReader.hh:272
FILE * selEventFilePtr[16]
File pointers for selected events.
Definition: GETActarEventReader.hh:316
double eint_thr_c1
Calibration parameter for sum of channels (above threshold) integral.
Definition: GETActarEventReader.hh:292
u_int get_nx
ACTAR TPC pads number along X.
Definition: GETActarEventReader.hh:157
GETActarEventReader(bool construct=true)
Definition: GETActarEventReader.cpp:25
virtual int CloseSelectedEventsFiles()
Definition: GETActarEventReader.cpp:3554
const GETLookupTable & LookupTable() const
Definition: GETSystem.icc:182
virtual void PadPlaneButton1Click(const TH2 *hpad, int ix, int iy)
Definition: GETActarEventReader.cpp:930
int ip_ymax
Parameter index for pads signal boundaries.
Definition: GETActarEventReader.hh:269
int ip_tmin
Parameter index for pads signal boundaries.
Definition: GETActarEventReader.hh:271
virtual int UserEvent()
Definition: GETActarEventReader.cpp:3734
virtual bool SetSelectedEventsFilter(const string &filter, const string &dir, u_int nmax=0)
Definition: GETActarEventReader.cpp:3428
virtual int UserFit()
Definition: GETActarEventReader.cpp:3806
double get_dt
GET system time step.
Definition: GETActarEventReader.hh:156
virtual void GETInit()
Definition: GETActarEventReader.cpp:2134
double ampl_thr_c1
Calibration parameter for sum of channels (above threshold) maximum.
Definition: GETActarEventReader.hh:287
int ip_xlen
Parameter index for pads signal boundaries.
Definition: GETActarEventReader.hh:267
int ip_ymin
Parameter index for pads signal boundaries.
Definition: GETActarEventReader.hh:268
GString runFamilyFile[16]
File names of run families (empty for no save)
Definition: GETActarEventReader.hh:337
virtual bool ConfigCommand(const GString &code, const GString &args="", FILE *fptr=NULL)
Definition: GETActarEventReader.cpp:1665
virtual bool IsOpen()
Definition: GETActarEventReader.cpp:275
int ip_saturation_count
parameter for number of saturated channels
Definition: GETActarEventReader.hh:258
double eint_thr_c0
Calibration parameter for sum of channels (above threshold) integral.
Definition: GETActarEventReader.hh:291
bool * aget_page
AGet signal pages creation flags.
Definition: GETActarEventReader.hh:225
double ampl_all_c0
Calibration parameter for sum of channels maximum.
Definition: GETActarEventReader.hh:284
bool hok_full_out
Test for full corrected event histogram creation.
Definition: GETActarEventReader.hh:205
bool hok_pads_t_e
Test for T projection histograms creation.
Definition: GETActarEventReader.hh:216
virtual void Quit()
Definition: GETActarEventReader.cpp:550
virtual void ReadRunConfig()
Definition: GETActarEventReader.cpp:1437
bool hok_pads_yt_e
Test for YT pads amplitude histograms creation.
Definition: GETActarEventReader.hh:213
int current_run_num
Run number of current file.
Definition: GETActarEventReader.hh:165
virtual int ReadConfigFile(const string &cfg)
Definition: GETActarEventReader.cpp:1485
virtual void PresetAgetPage(const string &def)
Definition: GETActarEventReader.cpp:2440
bool hok_pads_xyt_e
Test for XY+T pads amplitude histograms creation.
Definition: GETActarEventReader.hh:207
string GetCoBoId(int i) const
Definition: GETActarEventReader.hh:560
virtual void PresetPadParam(const string &def, bool hdef=false)
Definition: GETActarEventReader.cpp:2386
string get_init_default
Default file for GET system initialization.
Definition: GETActarEventReader.hh:169
double eint_all_c1
Calibration parameter for sum of channels integral.
Definition: GETActarEventReader.hh:290
GObject(GETActarEventReader)
bool hok_pads_xy_t
Test for XY pads time histograms creation.
Definition: GETActarEventReader.hh:210
bool get_init
GET initialization flag.
Definition: GETActarEventReader.hh:154
TH1 * h_ex
X signal projection histogram.
Definition: GETActarEventReader.hh:196
string GetAGetId(int i) const
Definition: GETActarEventReader.hh:572
int ip_xmax
Parameter index for pads signal boundaries.
Definition: GETActarEventReader.hh:266
bool hok_pads_y_e
Test for Y projection histograms creation.
Definition: GETActarEventReader.hh:215
TH2 * h_exy
X-Y pads signal amplitude histogram.
Definition: GETActarEventReader.hh:192
int ip_evttime
Parameter index for event time (sec.) in GET acquisition.
Definition: GETActarEventReader.hh:241
string GetAsAdId(int i) const
Definition: GETActarEventReader.hh:566
int ip_pads_mult
Multiplicity of pads above (soft) threshold.
Definition: GETActarEventReader.hh:257
virtual int UserRunStart()
Definition: GETActarEventReader.cpp:3716
virtual GETActarTpcAnalyser * DefineAnalyser()
Definition: GETActarEventReader.cpp:2186
TH1 * h_time_raw
Raw data time summary histogram.
Definition: GETActarEventReader.hh:184
int tdim_nt
Number of bins of the time axis for the XY-T 3D histogram.
Definition: GETActarEventReader.hh:200
string selTxtColor
Highlight for selected events messages.
Definition: GETActarEventReader.hh:308
int ip_eint_thr
Parameter index for GET signal sum of channels integral (channels above threshold) ...
Definition: GETActarEventReader.hh:250
#define GET_SELECT_MAX
! Maximum number of selected events output files
Definition: GETActarEventReader.hh:29
virtual void Construct()
Definition: GETActarEventReader.cpp:182
TH2 * h_dxy
X-Y histogram for pads with data.
Definition: GETActarEventReader.hh:189
u_int pauseFilterCount[16]
Names of the filters.
Definition: GETActarEventReader.hh:329
bool pok_time_raw
Test for channel raw time summary array parameter creation.
Definition: GETActarEventReader.hh:233
virtual int UserQuit()
Definition: GETActarEventReader.cpp:3787
double tdim_t0
Lower value of the time axis for the XY-T 3D histogram.
Definition: GETActarEventReader.hh:201
u_int selEventFileMax[16]
Max. number of events in the sub-file.
Definition: GETActarEventReader.hh:320
double time_ref
Run reference time (1st event) in sec.
Definition: GETActarEventReader.hh:160
int pads_mult
Pads multiplicity.
Definition: GETActarEventReader.hh:280
int ip_data_read
Readout data number per channel parameter.
Definition: GETActarEventReader.hh:260
bool hok_pads_xy_d
Test for XY histograms for pads data creation.
Definition: GETActarEventReader.hh:208
virtual int GetCoBo(u_int nch) const
Definition: GETLookupTable.icc:31
#define GET_FILTER_PAUSE
! Maximum number of filters to pause analysis
Definition: GETActarEventReader.hh:32
virtual int Open()
Definition: GETActarEventReader.cpp:243
bool hok_channels
Indicates that some single channel histograms are defined.
Definition: GETActarEventReader.hh:218
bool pok_max_raw
Test for channel raw maximum summary array parameter creation.
Definition: GETActarEventReader.hh:231
TH3 * h_exyt
X-Y and T pads signal amplitude histogram.
Definition: GETActarEventReader.hh:187
virtual int DefinePadSpectrum(int ix, int iy, bool fill=false)
Definition: GETActarEventReader.cpp:2527
int ip_resol_amp
Parameter for amplitude resolution analysis.
Definition: GETActarEventReader.hh:263
virtual void SetLookupTable(const string <file)
Definition: GETActarEventReader.cpp:1380
int bad_events
Number of bad events in the run.
Definition: GETActarEventReader.hh:282
bool get_lt_rpad
Whether the look-up table file contains the pad number.
Definition: GETActarEventReader.hh:173
virtual int UserEventDefine()
Definition: GETActarEventReader.cpp:3704
GETProcessLink filter
Signal processing filter.
Definition: GETObject.hh:53
int ip_base_chk
Parameter for baseline fluctuation check.
Definition: GETActarEventReader.hh:262
TH1 * h_ey
X signal projection histogram.
Definition: GETActarEventReader.hh:197
bool * hok_chan_out
Create histograms associated to channels array parameters.
Definition: GETActarEventReader.hh:219
TH2 * h_hxy
X-Y pads hits histogram.
Definition: GETActarEventReader.hh:190
string GetPadId(int ix, int iy) const
Definition: GETActarEventReader.hh:592
int ip_time_cor
Parameter index for array of time values for corrected signals.
Definition: GETActarEventReader.hh:245
bool pok_max_cor
Test for channel corrected maximum summary array parameter creation.
Definition: GETActarEventReader.hh:232
TH2 * h_full_out
Full output corrected data summary histogram.
Definition: GETActarEventReader.hh:181
int ip_tlen
Parameter index for pads signal boundaries.
Definition: GETActarEventReader.hh:273
int ip_eamp_all
Parameter index for GET signal sum of channels maximum (all channels)
Definition: GETActarEventReader.hh:247
int * ip_chan_out
Parameter index for single channels output signal.
Definition: GETActarEventReader.hh:274
string get_init_cfg
File for GET system initialization.
Definition: GETActarEventReader.hh:170
bool run_changed
Indicate whether a new run has started (from run number)
Definition: GETActarEventReader.hh:167
GETCoBo * cobo
Array of CoBo modules.
Definition: GETSystem.hh:162
TH2 * h_full_raw
Full raw data summary histogram.
Definition: GETActarEventReader.hh:180
virtual int Close()
Definition: GETActarEventReader.cpp:283
int ip_xmin
Parameter index for pads signal boundaries.
Definition: GETActarEventReader.hh:265
virtual int UserCorEvent()
Definition: GETActarEventReader.cpp:3830
Definition: GETActarTpcAnalyser.hh:66
virtual void SetGETRunConfigFile(const string &cfg)
Definition: GETActarEventReader.cpp:2216
bool hok_elec
Indicates that some single electronics channels histograms are defined.
Definition: GETActarEventReader.hh:222
string get_run_cfg
File for GET system run parameters.
Definition: GETActarEventReader.hh:171
virtual void Reset()
Definition: GETActarEventReader.cpp:526
string selFilterName[16]
Names of the filters for event selection.
Definition: GETActarEventReader.hh:321
string GetElecId(int i) const
Definition: GETActarEventReader.hh:599
Filter * pauseFilterPtr[16]
Pointer to the filters.
Definition: GETActarEventReader.hh:328
bool get_lt_invxy
Whether the look-up table file has inverted X-Y pads.
Definition: GETActarEventReader.hh:174
int ip_time_raw
Parameter index for array of time values for raw signals.
Definition: GETActarEventReader.hh:244
TH1 * h_time_cor
Corrected data time summary histogram.
Definition: GETActarEventReader.hh:185
virtual void PresetAnalysis()
Definition: GETActarEventReader.cpp:2792
bool * hok_elec_out
Create electronics channels histograms associated to channels array parameters.
Definition: GETActarEventReader.hh:223
int ip_max_channel
Parameter index for channel number maximum signal.
Definition: GETActarEventReader.hh:254
double ampl_all_c1
Calibration parameter for sum of channels maximum.
Definition: GETActarEventReader.hh:285
virtual void SetColorMode()
Definition: GETActarEventReader.cpp:213
virtual void SetDefaultAnalysis(const string &ana)
Definition: GETActarEventReader.cpp:1371
int * ip_chan_rec
Parameter index for single channels reconstructed signal.
Definition: GETActarEventReader.hh:275
GStringList default_analysis
Analysis loaded at initialization.
Definition: GETActarEventReader.hh:300
bool hok_pads_xy_e
Test for XY pads amplitude histograms creation.
Definition: GETActarEventReader.hh:211
virtual void PadPlaneButton2Click(const TH2 *hpad, int ix, int iy)
Definition: GETActarEventReader.cpp:1056
bool pok_time_cor
Test for channel corrected time summary array parameter creation.
Definition: GETActarEventReader.hh:234
bool pok_channels
Indicates that some single channel parameters are defined.
Definition: GETActarEventReader.hh:235
virtual int OpenSelectedEventsFile(u_int nf)
Definition: GETActarEventReader.cpp:3471
virtual int UserRunStop()
Definition: GETActarEventReader.cpp:3762
virtual void AnalysisEvent()
Definition: GETActarEventReader.cpp:3152
u_int get_ny
ACTAR TPC pads number along X.
Definition: GETActarEventReader.hh:158
bool hok_pads_x_e
Test for X projection histograms creation.
Definition: GETActarEventReader.hh:214
int ip_max_cor
Parameter index for array of maximum values for corrected signals.
Definition: GETActarEventReader.hh:243
string selEventFname
Base file name (set at start of new run)
Definition: GETActarEventReader.hh:315
int ip_max_signal
Parameter index for maximum signal value.
Definition: GETActarEventReader.hh:253
u_int get_dim
GET system channels size.
Definition: GETActarEventReader.hh:155
virtual void IncrementSpectra() const
Definition: GETActarEventReader.cpp:3372
int prev_run_num
Run number of previous file.
Definition: GETActarEventReader.hh:166
virtual int UserRawEvent()
Definition: GETActarEventReader.cpp:3820
virtual bool ConfigCommandLine(const string &cmd, FILE *fptr=NULL)
Definition: GETActarEventReader.cpp:1553
string get_lookup_table
File for GET system look-up table.
Definition: GETActarEventReader.hh:172
virtual void SetGETInitConfigFile(const string &cfg)
Definition: GETActarEventReader.cpp:2201
virtual int ProcessCmdLine(int &argc, char **argv, bool supp=true)
Definition: GETActarEventReader.cpp:1092
virtual void PresetSystemAnalysis()
Definition: GETActarEventReader.cpp:2804
TH1 * h_max_raw
Raw data max amplitude summary histogram.
Definition: GETActarEventReader.hh:182
virtual int DefineChannelSpectrum(int ich, bool fill=false)
Definition: GETActarEventReader.cpp:2599
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)
Definition: GETActarEventReader.cpp:737
virtual int UserRefresh()
Definition: GETActarEventReader.cpp:3754
string runFamilyName[16]
Names of run families.
Definition: GETActarEventReader.hh:336
double vdrift
Signal drift velocity: if defined, use Z distance instead of time.
Definition: GETActarEventReader.hh:161
virtual int UserUpdate()
Definition: GETActarEventReader.cpp:3744
virtual int UserReset()
Definition: GETActarEventReader.cpp:3779
virtual void PresetChannelParam(const string &def, bool hdef=false)
Definition: GETActarEventReader.cpp:2231
bool hok_full_raw
Test for full raw event histogram creation.
Definition: GETActarEventReader.hh:204
virtual int CreateEvent()
Definition: GETActarEventReader.cpp:569
virtual int RunStart()
Definition: GETActarEventReader.cpp:355
int ip_eint_all
Parameter index for GET signal sum of channels integral (all channels)
Definition: GETActarEventReader.hh:249
TH2 * h_txy
X-Y pads signal time histogram.
Definition: GETActarEventReader.hh:191
TH1 * h_max_cor
Corrected data max amplitude summary histogram.
Definition: GETActarEventReader.hh:183
int ip_eamp_thr
Parameter index for GET signal sum of channels maximum (channels above threshold) ...
Definition: GETActarEventReader.hh:248
int ip_data_chk
Parameter for data checks.
Definition: GETActarEventReader.hh:261
bool hok_pads
Indicates that some single pad histograms are defined.
Definition: GETActarEventReader.hh:220
Definition: GETActarTpc.hh:27
int ip_max_raw
Parameter index for array of maximum values for raw signals.
Definition: GETActarEventReader.hh:242
virtual void ProcessLineHelp() const
Definition: GETActarEventReader.cpp:1302
u_int selEventCount[16]
Counts of selected events.
Definition: GETActarEventReader.hh:313
double ampl_thr_c0
Calibration parameter for sum of channels (above threshold) maximum.
Definition: GETActarEventReader.hh:286
virtual void ReadInitConfig()
Definition: GETActarEventReader.cpp:1392
Definition: GETActarEventReader.hh:138
int selEventFileLun[16]
Logical units of file for selected events.
Definition: GETActarEventReader.hh:317
virtual ~GETActarEventReader()
Definition: GETActarEventReader.cpp:163
virtual int ReadEvent()
Definition: GETActarEventReader.cpp:669
bool pok_data_read
Test for data read per channel array parameter creation.
Definition: GETActarEventReader.hh:230
virtual void ResetFileList()
Definition: GETActarEventReader.cpp:513
virtual int UserNewFile()
Definition: GETActarEventReader.cpp:3726
u_int selEventNum
Number of selected events outputs.
Definition: GETActarEventReader.hh:312
TGNumberEntryField * w_anal_stat_mfm
MFM event number.
Definition: GETActarEventReader.hh:149
virtual int GetChannel(u_int nch) const
Definition: GETLookupTable.icc:49
virtual int RunStop()
Definition: GETActarEventReader.cpp:415
u_int pauseFilterNum
Number of filters that cause the analysis pause.
Definition: GETActarEventReader.hh:326
virtual int GetAsAd(u_int nch) const
Definition: GETLookupTable.icc:37
bool * pok_chan_out
Test for single channels array parameters creation (output signal)
Definition: GETActarEventReader.hh:236
bool pauseFilterStop[16]
The filter stops event reading (else, only update)
Definition: GETActarEventReader.hh:330
virtual void PadPlaneButton1DoubleClick(const TH2 *hpad, int ix, int iy)
Definition: GETActarEventReader.cpp:944
u_int selEventFileCnt[16]
Number of events in the sub-file.
Definition: GETActarEventReader.hh:319
bool * hok_pad_out
Create pad histograms associated to channels array parameters.
Definition: GETActarEventReader.hh:221
string selEventDir[16]
Names of the directories for selected events output.
Definition: GETActarEventReader.hh:314
TH2 * h_eyt
X-T pads signal amplitude histogram.
Definition: GETActarEventReader.hh:194
int ip_noise
Parameter for array of channels noise.
Definition: GETActarEventReader.hh:259
virtual int WriteSelectedEvent()
Definition: GETActarEventReader.cpp:3600
#define GET_RUN_FAMILY_MAX
! Maximum number of histogram families to reset/save at run start/stop
Definition: GETActarEventReader.hh:35
int ip_mmax_sum
Parameter index for GET signal sum from multiple maxima analysis.
Definition: GETActarEventReader.hh:251
u_int selEventFileSub[16]
Selected events sub-file number.
Definition: GETActarEventReader.hh:318
TH2 * h_ext
X-T pads signal amplitude histogram.
Definition: GETActarEventReader.hh:193
virtual bool RunChanged() const
Definition: GETActarEventReader.hh:552
virtual void PresetLoadedAnalysis()
Definition: GETActarEventReader.cpp:3113
int ip_read_mult
Readout channels multiplicity parameter.
Definition: GETActarEventReader.hh:256
Filter * selFilterPtr[16]
Pointer to the filters for event selection.
Definition: GETActarEventReader.hh:322
int * ip_chan_fit
Parameter index for single channels fitted signal.
Definition: GETActarEventReader.hh:276
virtual int CloseSelectedEventsFile(u_int nf)
Definition: GETActarEventReader.cpp:3528