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
210 virtual int Open ( );
212 virtual int Close ( );
213 virtual int RunInit ( );
215 virtual int FileOpen ( );
216 virtual void FileClose ( );
218 virtual void Reset ( );
220 virtual int CreateEvent ( );
221 virtual int ReadEvent ( );
229 const GEVPage * page_ptr,
230 const GEVPad * pad_ptr,
231 const TH1 * histo_ptr,
232 const Double_t x,
const Double_t y );
235 const GEVPad * pad_ptr,
236 const TH1 * histo_ptr,
237 const Double_t x,
const Double_t y );
249 virtual int ProcessCmdLine (
int & argc,
char ** argv,
bool supp =
true );
259 virtual bool ConfigCommand (
const GString & code,
const GString & args =
"", FILE * fptr = NULL );
276 string GetPadId (
int ix,
int iy )
const;
283 virtual void DefinePadParam (
const string & def,
bool hdef =
false );
284 virtual void DefinePadParam (
int ix0,
int ix1,
int iy0,
int iy1,
bool hdef =
false );
342 #pragma link C++ class GETActarEventReader;
352 {
char str[16]; sprintf ( str,
"C%02d", i );
return (
string(str) ); }
358 {
char str[16]; sprintf ( str,
"A%01d", i );
return (
string(str) ); }
364 {
char str[16]; sprintf ( str,
"G%01d", i );
return (
string(str) ); }
370 {
char str[16]; sprintf ( str,
"Ch%02d", i );
return (
string(str) ); }
377 {
char str[16]; sprintf ( str,
"%05d", i );
return (
string(str) ); }
384 {
char str[16]; sprintf ( str,
"x%03d_y%03d", ix, iy );
return (
string(str) ); }
string GetIndexId(int i) const
Definition: GETActarEventReader.hh:376
virtual void AnalysisStart()
Definition: GETActarEventReader.cpp:1943
int ip_ylen
Parameter index for pads signal boundaries.
Definition: GETActarEventReader.hh:172
int ip_evtnum
Parameter index for event number.
Definition: GETActarEventReader.hh:149
int read_mult
Readout channels multiplicity (with FPN)
Definition: GETActarEventReader.hh:179
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:456
string pad_signal_page
Page name for automatic display of pads signal.
Definition: GETActarEventReader.hh:193
string GetChannelId(int i) const
Definition: GETActarEventReader.hh:369
virtual void AnalysisStop()
Definition: GETActarEventReader.cpp:1954
virtual void PadPlaneButton2DoubleClick(const TH2 *hpad, int ix, int iy)
Definition: GETActarEventReader.cpp:631
GETActarTpcAnalyser * get_analyser
Pointer to the analyser object associated to GET system.
Definition: GETActarEventReader.hh:90
double tdim_t1
Upper value of the time axis for the XY-T 3D histogram.
Definition: GETActarEventReader.hh:122
TH1 * h_et
X signal projection histogram.
Definition: GETActarEventReader.hh:118
bool hok_pads_xy_h
Test for XY pads hits histograms creation.
Definition: GETActarEventReader.hh:127
bool hok_pads_xt_e
Test for XT pads amplitude histograms creation.
Definition: GETActarEventReader.hh:130
int ip_tmax
Parameter index for pads signal boundaries.
Definition: GETActarEventReader.hh:174
u_int get_nx
ACTAR TPC pads number along X.
Definition: GETActarEventReader.hh:87
virtual void PadPlaneButton1Click(const TH2 *hpad, int ix, int iy)
Definition: GETActarEventReader.cpp:537
double sum_thr_a0
Calibration parameter for GET sum.
Definition: GETActarEventReader.hh:186
int ip_ymax
Parameter index for pads signal boundaries.
Definition: GETActarEventReader.hh:171
int ip_tmin
Parameter index for pads signal boundaries.
Definition: GETActarEventReader.hh:173
virtual int UserEvent()
Definition: GETActarEventReader.cpp:2161
virtual int UserFit()
Definition: GETActarEventReader.cpp:2224
double get_dt
GET system time step.
Definition: GETActarEventReader.hh:86
virtual void GETInit()
Definition: GETActarEventReader.cpp:1482
int ip_xlen
Parameter index for pads signal boundaries.
Definition: GETActarEventReader.hh:169
int ip_ymin
Parameter index for pads signal boundaries.
Definition: GETActarEventReader.hh:170
virtual bool ConfigCommand(const GString &code, const GString &args="", FILE *fptr=NULL)
Definition: GETActarEventReader.cpp:1172
virtual bool IsOpen()
Definition: GETActarEventReader.cpp:145
int ip_saturation_count
parameter for number of saturated channels
Definition: GETActarEventReader.hh:160
bool hok_full_out
Test for full corrected event histogram creation.
Definition: GETActarEventReader.hh:125
bool hok_pads_t_e
Test for T projection histograms creation.
Definition: GETActarEventReader.hh:134
virtual void ReadRunConfig()
Definition: GETActarEventReader.cpp:991
bool hok_pads_yt_e
Test for YT pads amplitude histograms creation.
Definition: GETActarEventReader.hh:131
int * ip_chan
Parameter index for single channels.
Definition: GETActarEventReader.hh:176
virtual int ReadConfigFile(const string &cfg)
Definition: GETActarEventReader.cpp:1039
bool hok_pads_xyt_e
Test for XY+T pads amplitude histograms creation.
Definition: GETActarEventReader.hh:126
string GetCoBoId(int i) const
Definition: GETActarEventReader.hh:351
string get_init_default
Default file for GET system initialization.
Definition: GETActarEventReader.hh:92
double sum_all_a1
Calibration parameter for GET sum.
Definition: GETActarEventReader.hh:185
GObject(GETActarEventReader)
bool hok_pads_xy_t
Test for XY pads time histograms creation.
Definition: GETActarEventReader.hh:128
bool get_init
GET initialization flag.
Definition: GETActarEventReader.hh:84
TH1 * h_ex
X signal projection histogram.
Definition: GETActarEventReader.hh:116
string GetAGetId(int i) const
Definition: GETActarEventReader.hh:363
int ip_xmax
Parameter index for pads signal boundaries.
Definition: GETActarEventReader.hh:168
bool hok_pads_y_e
Test for Y projection histograms creation.
Definition: GETActarEventReader.hh:133
TH2 * h_exy
X-Y pads signal amplitude histogram.
Definition: GETActarEventReader.hh:112
string GetAsAdId(int i) const
Definition: GETActarEventReader.hh:357
int ip_pads_mult
Multiplicity of pads above (soft) threshold.
Definition: GETActarEventReader.hh:159
virtual int UserRunStart()
Definition: GETActarEventReader.cpp:2153
bool * hok_chan
Create histograms associated to channels array parameters.
Definition: GETActarEventReader.hh:136
int tdim_nt
Number of bins of the time axis for the XY-T 3D histogram.
Definition: GETActarEventReader.hh:120
virtual int UserQuit()
Definition: GETActarEventReader.cpp:2205
double tdim_t0
Lower value of the time axis for the XY-T 3D histogram.
Definition: GETActarEventReader.hh:121
int pads_mult
Pads multiplicity.
Definition: GETActarEventReader.hh:180
int ip_data_read
Readout data number per channel parameter.
Definition: GETActarEventReader.hh:162
double sum_thr_a1
Calibration parameter for GET sum.
Definition: GETActarEventReader.hh:187
bool hok_channels
Indicates that some single channel histograms are defined.
Definition: GETActarEventReader.hh:135
bool pok_max_raw
Test for channel raw maximum summary array parameter creation.
Definition: GETActarEventReader.hh:144
TH3 * h_exyt
X-Y and T pads signal amplitude histogram.
Definition: GETActarEventReader.hh:108
virtual int DefinePadSpectrum(int ix, int iy, bool fill=false)
Definition: GETActarEventReader.cpp:1725
int ip_resol_amp
Parameter for amplitude resolution analysis.
Definition: GETActarEventReader.hh:165
virtual void SetLookupTable(const string <file)
Definition: GETActarEventReader.cpp:934
int bad_events
Number of bad events in the run.
Definition: GETActarEventReader.hh:182
bool get_lt_rpad
Whether the look-up table file contains the pad number.
Definition: GETActarEventReader.hh:96
virtual int UserEventDefine()
Definition: GETActarEventReader.cpp:2140
int ip_base_chk
Parameter for baseline fluctuation check.
Definition: GETActarEventReader.hh:164
TH1 * h_ey
X signal projection histogram.
Definition: GETActarEventReader.hh:117
TH2 * h_hxy
X-Y pads hits histogram.
Definition: GETActarEventReader.hh:110
virtual void DefinePadParam(const string &def, bool hdef=false)
Definition: GETActarEventReader.cpp:1669
string GetPadId(int ix, int iy) const
Definition: GETActarEventReader.hh:383
bool pok_max_cor
Test for channel corrected maximum summary array parameter creation.
Definition: GETActarEventReader.hh:145
TH2 * h_full_out
Full output corrected data summary histogram.
Definition: GETActarEventReader.hh:104
int ip_tlen
Parameter index for pads signal boundaries.
Definition: GETActarEventReader.hh:175
double sum_all_a0
Calibration parameter for GET sum.
Definition: GETActarEventReader.hh:184
string get_init_cfg
File for GET system initialization.
Definition: GETActarEventReader.hh:93
GETCoBo * cobo
Array of CoBo modules.
Definition: GETSystem.hh:139
TH2 * h_full_raw
Full raw data summary histogram.
Definition: GETActarEventReader.hh:103
int ip_xmin
Parameter index for pads signal boundaries.
Definition: GETActarEventReader.hh:167
Definition: GETActarTpcAnalyser.hh:53
virtual void SetGETRunConfigFile(const string &cfg)
Definition: GETActarEventReader.cpp:1539
string get_run_cfg
File for GET system run parameters.
Definition: GETActarEventReader.hh:94
virtual void Reset()
Definition: GETActarEventReader.cpp:259
bool get_lt_invxy
Whether the look-up table file has inverted X-Y pads.
Definition: GETActarEventReader.hh:97
virtual void PresetAnalysis()
Definition: GETActarEventReader.cpp:1799
int ip_max_channel
Parameter index for channel number maximum signal.
Definition: GETActarEventReader.hh:156
virtual void SetDefaultAnalysis(const string &ana)
Definition: GETActarEventReader.cpp:925
GStringList default_analysis
Analysis loaded at initialization.
Definition: GETActarEventReader.hh:195
bool hok_pads_xy_e
Test for XY pads amplitude histograms creation.
Definition: GETActarEventReader.hh:129
virtual void DefineChannelParam(const string &def, bool hdef=false)
Definition: GETActarEventReader.cpp:1554
virtual void PadPlaneButton2Click(const TH2 *hpad, int ix, int iy)
Definition: GETActarEventReader.cpp:621
bool pok_channels
Indicates that some single channel parameters are defined.
Definition: GETActarEventReader.hh:146
virtual int UserRunStop()
Definition: GETActarEventReader.cpp:2189
virtual void AnalysisEvent()
Definition: GETActarEventReader.cpp:1968
u_int get_ny
ACTAR TPC pads number along X.
Definition: GETActarEventReader.hh:88
bool * hok_pad
Create pad histograms associated to channels array parameters.
Definition: GETActarEventReader.hh:138
bool hok_pads_x_e
Test for X projection histograms creation.
Definition: GETActarEventReader.hh:132
int ip_max_cor
Parameter index for array of maximum values for corrected signals.
Definition: GETActarEventReader.hh:151
int ip_sum_thr
Parameter index for GET signal sum (channels above threshold)
Definition: GETActarEventReader.hh:153
int ip_max_signal
Parameter index for maximum signal value.
Definition: GETActarEventReader.hh:155
u_int get_dim
GET system channels size.
Definition: GETActarEventReader.hh:85
int ip_sum_all
Parameter index for GET signal sum (all channels)
Definition: GETActarEventReader.hh:152
virtual bool ConfigCommandLine(const string &cmd, FILE *fptr=NULL)
Definition: GETActarEventReader.cpp:1107
string get_lookup_table
File for GET system look-up table.
Definition: GETActarEventReader.hh:95
virtual void SetGETInitConfigFile(const string &cfg)
Definition: GETActarEventReader.cpp:1524
virtual int ProcessCmdLine(int &argc, char **argv, bool supp=true)
Definition: GETActarEventReader.cpp:657
TH1 * h_max_raw
Raw data max amplitude summary histogram.
Definition: GETActarEventReader.hh:105
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:382
virtual int UserRefresh()
Definition: GETActarEventReader.cpp:2181
virtual int UserUpdate()
Definition: GETActarEventReader.cpp:2171
virtual int UserReset()
Definition: GETActarEventReader.cpp:2197
bool hok_full_raw
Test for full raw event histogram creation.
Definition: GETActarEventReader.hh:124
TH2 * h_txy
X-Y pads signal time histogram.
Definition: GETActarEventReader.hh:111
TH1 * h_max_cor
Corrected data max amplitude summary histogram.
Definition: GETActarEventReader.hh:106
int ip_data_chk
Parameter for data checks.
Definition: GETActarEventReader.hh:163
bool hok_pads
Indicates that some single pad histograms are defined.
Definition: GETActarEventReader.hh:137
Definition: GETActarTpc.hh:28
int ip_max_raw
Parameter index for array of maximum values for raw signals.
Definition: GETActarEventReader.hh:150
virtual void ProcessLineHelp() const
Definition: GETActarEventReader.cpp:867
virtual void ReadInitConfig()
Definition: GETActarEventReader.cpp:946
Definition: GETActarEventReader.hh:73
bool pok_data_read
Test for data read per channel array parameter creation.
Definition: GETActarEventReader.hh:143
virtual void PadPlaneButton1DoubleClick(const TH2 *hpad, int ix, int iy)
Definition: GETActarEventReader.cpp:551
TH2 * h_eyt
X-T pads signal amplitude histogram.
Definition: GETActarEventReader.hh:114
int ip_noise
Parameter for array of channels noise.
Definition: GETActarEventReader.hh:161
bool * pok_chan
Test for single channels array parameters creation.
Definition: GETActarEventReader.hh:147
TH2 * h_ext
X-T pads signal amplitude histogram.
Definition: GETActarEventReader.hh:113
int ip_read_mult
Readout channels multiplicity parameter.
Definition: GETActarEventReader.hh:158