GET library
|
#include <GETAsAd.hh>
Public Member Functions | |
Constructors, affectation, destructor | |
GETAsAd (u_int n=0, double dt=0.01L) | |
virtual | ~GETAsAd () |
GET configuration | |
virtual int | ResetConfig () |
const GETCfgAsAd * | GetConfig () const |
GETCfgAsAd * | GetConfig () |
Initialization functions | |
virtual void | Reset () |
virtual void | Init (u_int n, double dt) |
virtual void | ClearEvent () |
GET system core objects functions | |
virtual string | GetObjectId () const |
virtual string | GetSerialId () const |
void | SetSerialId (const string &ser_id) |
virtual u_int | GetChildrenNumber () const |
virtual const GETObject * | GetChild (u_int i) const |
virtual GETObject * | GetChild (u_int i) |
const GETAGet & | operator[] (u_int n) const |
GETAGet & | operator[] (u_int n) |
Read / write of custom objects scheme | |
int | SaveSamples (const string &filename, u_short info=GET::signalOut) |
int | ReadSamples (const string &filename, u_short info=GET::signalOut) |
int | SaveOutputs (const string &filename) |
int | ReadOutputs (const string &filename) |
int | SaveReconstructed (const string &filename) |
int | ReadReconstructed (const string &filename) |
Processes functions | |
virtual int | SetResponseFunctions (const string &rf_file) |
ROOT related functions | |
ClassDef (GETAsAd, 0) | |
![]() | |
GETObject () | |
virtual | ~GETObject () |
int | GetId () const |
virtual string | GetFullId () const |
virtual u_int | GetSignalChannelCount () const |
virtual u_int | GetTotalChannelCount () const |
virtual u_int | GetChannelCount () const |
virtual GETChannel * | GetSignalChannel (u_int n) |
virtual GETChannel * | GetTotalChannel (u_int n) |
virtual GETChannel * | GetChannel (u_int n) |
const GETObject * | GetParent () const |
GETObject * | GetParent () |
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) |
GETResponse * | GetResponse (bool force=true) |
GETFilter * | GetFilter (bool force=true) |
GETSignalModifier * | GetNoiseIn (bool force=true) |
GETSignalModifier * | GetNoiseOut (bool force=true) |
GETProcess * | GetOutputCorrection (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 | |
GETAGet | aget [4] |
AGET chips. | |
GETCfgAsAd * | config |
Configuration data. | |
string | serial_id |
Unique board identifier. | |
![]() | |
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. | |
GETObject * | parent |
Parent AGet chip. | |
GETProcessLink | response |
Signal response function. | |
Private Member Functions | |
GObject (GETAsAd) | |
Friends | |
class | GETCfgAsAd |
class | GETCoBo |
This class describes the AsAd board, that holds 4 Aget chips.
In addition to the GETObject identification in the architecture, the AsAd boards are identified with a serial number, that may be used for calibration files identification. This serial number should be unique, and set by user for each AsAd board.
GETAsAd::GETAsAd | ( | u_int | n = 0 , |
double | dt = 0.01L |
||
) |
Base constructor.
n | sampling size of the channels |
dt | sampling period (us) |
References ASAD_SERIAL_UNDEF, config, Init(), and serial_id.
|
virtual |
Destructor.
References config.
GETAsAd::ClassDef | ( | GETAsAd | , |
0 | |||
) |
for use within ROOT.
|
virtual |
Clears all input/outout signals from each channel of each AGET chip.
Reimplemented from GETObject.
References aget, ASAD_SIZE, and GETObject::is_read.
|
inlinevirtual |
Return a GET core child object (NULL since channels have no children).
i | child number |
Implements GETObject.
References aget, and ASAD_SIZE.
Referenced by GETCfgAsAd::GETCfgAsAd().
|
inlinevirtual |
|
inlinevirtual |
Return the number of GET core children objects.
Implements GETObject.
References ASAD_SIZE.
Referenced by GETSystemAnalyser::BadChannelsWarning(), GETSystem::CalcMultiplicity(), GETHitMask::CreateThresholdXML(), and GETCfgAsAd::GETCfgAsAd().
|
inline |
|
inline |
|
inlinevirtual |
Return the object string identifier.
Implements GETObject.
|
inlinevirtual |
Return the (unique) serial identifier (that must be set by user).
References serial_id.
Referenced by GETSystem::SetAsAdResponseFunctions().
|
private |
Macro from GCpp library that defines the following functions:
|
virtual |
Initialisation of all individual channels. The AGET chips are resetted.
n | sampling size of the channels |
dt | sampling time step |
References aget, ASAD_SIZE, GETObject::id, GETAGet::Init(), GETObject::InitLocalData(), GETObject::parent, and Reset().
Referenced by GETAsAd(), and GETCoBo::Init().
|
inline |
Access to one of the AGET chip. There is no index verification.
n | AGet number |
References aget.
|
inline |
Access to one of the AGET chip. There is no index verification.
n | AGet number |
References aget.
|
inline |
Load the output samples (4x68) of the AsAd board to a file.
filename | name of the file to read |
References ReadSamples(), and GET::signalOut.
|
inline |
Load the reconstructed samples (4x68) of an AsAd board to a file.
filename | name of the file to read |
References ReadSamples(), and GET::signalRec.
int GETAsAd::ReadSamples | ( | const string & | filename, |
u_short | info = GET::signalOut |
||
) |
Load the samples (4x68) of the AsAd board to a file.
filename | name of the file to read |
info | channel signal identifier: GET::signalTst, GET::signalOut, GET::signalRec |
References GET::signalRec, and GET::signalTst.
Referenced by ReadOutputs(), ReadReconstructed(), and SetResponseFunctions().
|
virtual |
Function resetting all AGet chips (see GETAGet::Reset function).
References aget, and ASAD_SIZE.
Referenced by Init(), and GETCoBo::Reset().
|
virtual |
|
inline |
Save the output samples (4x68) of the AsAd board to a file.
filename | name of the file to write |
References SaveSamples(), and GET::signalOut.
|
inline |
Save the reconstructed samples (4x68) of the AsAd board to a file.
filename | name of the file to write |
References SaveSamples(), and GET::signalRec.
int GETAsAd::SaveSamples | ( | const string & | filename, |
u_short | info = GET::signalOut |
||
) |
Save the samples (4x68) of the AsAd board to a file.
filename | name of the file to write |
info | channel signal identifier: GET::signalTst, GET::signalOut, GET::signalRec |
References GET::signalRec, and GET::signalTst.
Referenced by SaveOutputs(), and SaveReconstructed().
|
virtual |
Function setting the response function from samples stored in the argument file.
The file must contain exactly the number of samples corresponding to the number of channels, including FPN (despite the FPN response function is not defined): 4x68. The file format is the writing format of GETSample.
rf_file | file with the response function samples |
References GETObject::GetChannel(), GETResponse::GetResponse(), GETObject::GetSampleDim(), GETObject::GetTimeStep(), GETObject::GetTotalChannelCount(), GETChannel::OutSample(), ReadSamples(), GETObject::SetResponse(), and GET::signalOut.
Referenced by GETSystem::SetAsAdResponseFunctions().
|
inline |