GET library
|
#include <GETLookupTable.hh>
Public Member Functions | |
Constructors, affectation, destructor | |
GETLookupTable (u_int nch=0, u_int nx=0, u_int ny=0) | |
virtual | ~GETLookupTable () |
Table building | |
virtual void | EraseTables () |
virtual int | InitTables (u_int nch, u_int nx, u_int ny) |
virtual int | InitTables (GETSystem &get, u_int nx, u_int ny) |
virtual bool | IsTableSet () const |
virtual int | SetDefaultTable (GETSystem &get, u_int nx, u_int ny) |
virtual int | SetHVpad64Table (GETSystem &get, u_int ny) |
Table data | |
virtual u_int | GetSize () const |
virtual int | GetPad (u_int nch) const |
virtual int | GetCoBo (u_int nch) const |
virtual int | GetAsAd (u_int nch) const |
virtual int | GetAGet (u_int nch) const |
virtual int | GetChannel (u_int nch) const |
virtual int | GetIpx (u_int nch) const |
virtual int | GetIpy (u_int nch) const |
virtual int | GetChannel (u_int ix, u_int iy) const |
virtual u_int | GetNpadX () const |
virtual u_int | GetNpadY () const |
virtual void | DumpTable (const string &fname, bool head=true) const |
virtual void | DumpTable (FILE *fp, bool head=true) const |
virtual void | DumpXY (const string &fname, bool head=true) const |
virtual void | DumpXY (FILE *fp, bool head=true) const |
virtual int | Read (const string &fname, bool rpad=true, bool invxy=false) |
virtual int | Read (FILE *fp, bool rpad=true, bool invxy=false) |
ROOT related functions | |
ClassDef (GETLookupTable, 0) | |
Protected Attributes | |
int * | aget |
AGet identifier. | |
int * | asad |
AsAd identifier. | |
int * | chan_xy |
Array identifying channel from ix and iy indexes. | |
int * | channel |
AGet channel identifier. | |
int * | cobo |
CoBo identifier. | |
bool | defined |
Whether the table data has been set. | |
int * | ipx |
Pad X number. | |
int * | ipy |
Pad Y number. | |
u_int | npad_x |
Number of pads along X. | |
u_int | npad_y |
Number of pads along Y. | |
int * | pad |
Pad identifier (effective signal channel) | |
u_int | pads_number |
Number of pads. | |
u_int | size |
Number of GET channels. | |
Private Member Functions | |
GObject (GETLookupTable) | |
This class defines a lookup table for a detector using the GET electronics.
The lookup table allows to relate the electronic channel identification to the detector physical channel. The FPN channels are not part of the detector physical channels.
The electronics channels are defined by their CoBo, AsAd, AGet and channel (in AGet) indexes. The physical channels are defined by their pad number and X/Y position index (for a pad plane detector).
GETLookupTable::GETLookupTable | ( | u_int | nch = 0 , |
u_int | nx = 0 , |
||
u_int | ny = 0 |
||
) |
Constructor. If the number of channel is defined, the tables are initialized.
nch | number of channels of the GET system |
nx | number of pads along X |
ny | number of pads along Y |
References aget, asad, chan_xy, channel, cobo, defined, InitTables(), ipx, ipy, npad_x, npad_y, pad, pads_number, and size.
|
virtual |
Destructor.
References EraseTables().
GETLookupTable::ClassDef | ( | GETLookupTable | , |
0 | |||
) |
for use within ROOT.
|
virtual |
Dump the look-up table into a formatted text file.
fname | name of the txte file |
head | whether a header line is printed |
Referenced by GETActarEventReader::ConfigCommand().
|
virtual |
|
virtual |
Dump the look-up table channel - XY correspondance.
fname | name of the txte file |
head | whether a header line is printed |
|
virtual |
|
virtual |
Deallocate the tables.
References aget, asad, chan_xy, channel, cobo, defined, ipx, ipy, pad, pads_number, and size.
Referenced by GETSystem::Init(), InitTables(), and ~GETLookupTable().
|
inlinevirtual |
Return the AGet chip number (in AsAd board) of a GET channel.
ch | GET system channel index |
Referenced by GETActarEventReader::DefinePadSpectrum(), GETActarEventReader::HistoClickedSlot(), and GETActarEventReader::HistoEventSlot().
|
inlinevirtual |
Return the AsAd board number (in CoBo module) of a GET channel.
ch | GET system channel index |
Referenced by GETActarEventReader::DefinePadSpectrum(), GETActarEventReader::HistoClickedSlot(), and GETActarEventReader::HistoEventSlot().
|
inlinevirtual |
Return the Channel number (in AGet chip) of a GET channel.
ch | GET system channel index |
Referenced by GETActarTpcAnalyser::ApplyOffTrackCorrection(), GETActarEventReader::DefinePadParam(), GETActarEventReader::DefinePadSpectrum(), GETHitMaskXY::ExpandHits(), GETSystem::GetChannel(), GETSystem::GetChannelIndex(), GETActarEventReader::HistoClickedSlot(), GETActarEventReader::HistoEventSlot(), GETHitMaskXY::IsHit(), GETHitMaskXY::IsValid(), GETHitMaskXY::IsValidHit(), GETActarEventReader::PresetAnalysis(), GETActarTpcAnalyser::ProcessNoiseAnalysis(), GETActarTpcAnalyser::ProcessOffTrackAnalysis(), GETHitMaskXY::SetHit(), and GETHitMaskXY::SetValid().
|
inlinevirtual |
Return the channel index (including FPN) from pad position.
ix | X pad index |
iy | Y pad index |
References chan_xy, npad_x, and pads_number.
|
inlinevirtual |
Return the CoBo module number of a GET channel.
ch | GET system channel index |
Referenced by GETActarEventReader::DefinePadSpectrum(), GETActarEventReader::HistoClickedSlot(), and GETActarEventReader::HistoEventSlot().
|
inlinevirtual |
Return the X position index on the pad plane of a GET channel.
ch | GET system channel index |
Referenced by GETActarTpcAnalyser::Export3D_POV(), GETActarTpcAnalyser::ExportPads_POV(), GETHitMaskXY::Fill2DMaskHisto(), GETActarTpcAnalyser::FillAutoHistograms(), GETActarTpcAnalyser::FillHistogram3D(), GETActarTpcAnalyser::FillHistogramXTmax(), GETActarTpcAnalyser::FillPadHistogram(), GETActarEventReader::PresetAnalysis(), and GETHitMaskXY::UpdateMask().
|
inlinevirtual |
Return the Y position index on the pad plane of a GET channel.
ch | GET system channel index |
Referenced by GETActarTpcAnalyser::Export3D_POV(), GETActarTpcAnalyser::ExportPads_POV(), GETHitMaskXY::Fill2DMaskHisto(), GETActarTpcAnalyser::FillAutoHistograms(), GETActarTpcAnalyser::FillHistogram3D(), GETActarTpcAnalyser::FillHistogramYTmax(), GETActarTpcAnalyser::FillPadHistogram(), GETActarEventReader::PresetAnalysis(), and GETHitMaskXY::UpdateMask().
|
inlinevirtual |
Return the number of pads in X dimension.
References npad_x.
Referenced by GETActarTpcAnalyser::ApplyOffTrackCorrection(), GETActarTpcAnalyser::CreateHistogram3D(), GETActarTpcAnalyser::CreateHistogramX(), GETActarTpcAnalyser::CreateHistogramXT(), GETActarTpcAnalyser::CreatePadHistogram(), GETHitMaskXY::ExpandHits(), GETActarTpcAnalyser::Export3D_POV(), GETActarTpcAnalyser::ExportPads_POV(), GETActarTpcAnalyser::ProcessNoiseAnalysis(), GETActarTpcAnalyser::ProcessOffTrackAnalysis(), and GETHitMaskXY::SetBorder().
|
inlinevirtual |
Return the number of pads in Y dimension.
References npad_y.
Referenced by GETActarTpcAnalyser::ApplyOffTrackCorrection(), GETActarTpcAnalyser::CreateHistogram3D(), GETActarTpcAnalyser::CreateHistogramY(), GETActarTpcAnalyser::CreateHistogramYT(), GETActarTpcAnalyser::CreatePadHistogram(), GETHitMaskXY::ExpandHits(), GETActarTpcAnalyser::Export3D_POV(), GETActarTpcAnalyser::ExportPads_POV(), GETActarTpcAnalyser::ProcessNoiseAnalysis(), GETActarTpcAnalyser::ProcessOffTrackAnalysis(), and GETHitMaskXY::SetBorder().
|
inlinevirtual |
Return the pad (signal channel) number associated to a GET channel.
ch | GET system channel index |
Referenced by GETActarTpcAnalyser::ComputeSumInt(), GETActarTpcAnalyser::ComputeSumMax(), GETActarTpcAnalyser::Export3D_POV(), GETActarTpcAnalyser::ExportPads_POV(), GETHitMaskXY::Fill2DMaskHisto(), GETActarTpcAnalyser::FillAutoHistograms(), GETActarTpcAnalyser::FillHistogram3D(), GETActarTpcAnalyser::FillHistogramXTmax(), GETActarTpcAnalyser::FillHistogramYTmax(), GETActarTpcAnalyser::FillPadHistogram(), and GETHitMaskXY::UpdateMask().
|
inlinevirtual |
Return the number of data in the look-up table.
References size.
|
private |
Macro from GCpp library that defines the following functions:
|
virtual |
Initializes tables. If the number of channels has changed, new tables are allocated and the data are initialized to -1. The function returns 0 if no error occured.
nch | number of channels of the GET system |
nx | number of pads along X |
ny | number of pads along Y |
References aget, AGET_CHANNELS, AGET_SIZE, asad, chan_xy, channel, cobo, defined, EraseTables(), ipx, ipy, npad_x, npad_y, pad, pads_number, and size.
Referenced by GETLookupTable(), InitTables(), SetDefaultTable(), and SetHVpad64Table().
|
virtual |
Initializes tables from a defined GET system.
get | the GET system |
nx | number of pads along X |
ny | number of pads along Y |
References AGET_SIZE, and InitTables().
|
inlinevirtual |
Return true if the table data have been defined.
References defined.
Referenced by GETHitMask::InitMask().
|
virtual |
Read a lookup table from a text file. The file format is:
fname | name of the file |
rpad | whether the pad index is read (else computed from ipx & ipy) |
invxy | whether the X & Y index are inverted |
Referenced by GETActarEventReader::GETInit().
|
virtual |
|
virtual |
Defines the default look-up table for a GET system. The function initilizes the tables. The default table is 1 row of pads per AGet.
get | the GET system |
nx | number of pads along X |
ny | number of pads along Y |
References aget, AGET_SIZE, asad, ASAD_SIZE, chan_xy, channel, cobo, defined, GETObject::GetTotalChannel(), InitTables(), ipx, ipy, GETChannel::IsSignalChannel(), npad_x, npad_y, pad, pads_number, and size.
Referenced by GETActarEventReader::GETInit(), and GETActarTpc::Init().
|
virtual |
Defines the look-up table for a GET system with HV pads version of ZAP. This function considers that there are 64 pads on X dimension. The function initilizes the tables.
get | the GET system |
ny | number of pads along Y |
References aget, AGET_CHANNELS, AGET_SIZE, asad, ASAD_SIZE, chan_xy, channel, cobo, defined, GETObject::GetTotalChannel(), InitTables(), ipx, ipy, GETChannel::IsSignalChannel(), npad_x, pad, pads_number, and size.