GET library
GETCommon.hh File Reference
#include "GGlobal.hh"
#include "GBaseFunctions.hh"
#include "GLogMessage.hh"
#include "GString.hh"
#include "TSystem.h"
#include "TRandom3.h"
#include "TMath.h"
#include "TGraphErrors.h"
#include "TGraph2DErrors.h"
#include "TFile.h"
#include "RRealSampleFFT.hh"
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/sax/HandlerBase.hpp>
#include <xercesc/parsers/XercesDOMParser.hpp>
#include <xercesc/dom/DOM.hpp>
#include <xercesc/util/XMLString.hpp>
#include "GETMetaFrame.hh"

Go to the source code of this file.

Namespaces

 GET
 
 GET::CFG
 This namespace defines configuration files values.
 

Macros

#define GET_EOF   -1
 End of file returned value.
 
#define GET_FILE_ERROR   1
 Error code for file problem.
 
#define GET_FRAME_ERROR   3
 Error code for frame problem.
 
#define GET_FRAME_WARN   -2
 Warning code for MFM frames problem.
 
#define GET_MAX_DEPTH   512
 Maximum data depth.
 
#define GET_SWAP_BYTES(a, b)   { byte __tmp = a; a = b; b = __tmp; }
 Macro inverting 2 bytes values.
 

Typedefs

typedef RRealSampleFFT GETSample
 Define the data type for samples.
 

Enumerations

Channels configuration
enum  GET::CFG::TriggerInhibit { inhibitChannel, inhibitTriggerData, inhibitTriggerFunction, inhibitNone }
 Defines the trigger inhibit identifiers.
 
enum  GET::CFG::CSAGain { csa10pC, csa120fC, csa1pC, csa240fC }
 Defines the CSA gain identifiers.
 
enum  GET::CFG::ReadingMode { readAlways, readNever, readOnlyIfHit }
 Defines the reading modes identifiers.
 
AGet configuration
enum  GET::CFG::TestModeRange { capa10pF, capa120fF, capa1pF, capa240fF }
 Defines the test mode capacitors values identifiers.
 
enum  GET::CFG::PeakingTime {
  peaking70, peaking117, peaking232, peaking280,
  peaking334, peaking383, peaking502, peaking541,
  peaking568, peaking632, peaking721, peaking760,
  peaking831, peaking870, peaking976, peaking1014
}
 Defines the peaking time values identifiers.
 
enum  GET::CFG::TestModeSelection { testModeCalibration, testModeFunctionality, testModeNothing, testModeTest }
 Defines the test mode selection identifiers.
 
enum  GET::CFG::TSCAPointer { anySCAPointer, col0or128or256or384, col0or256, column0 }
 Defines the SCA pointer identifiers.
 
enum  GET::CFG::Vicm { vicm125V, vicm135V, vicm155V, vicm165V }
 Defines the Vicm values identifiers.
 

Variables

TRandom3 GETRandom
 Random numbers generator. More...
 
Experimental / simulation data modes
static const u_short GET::modeUndefined = 0
 The samples are filled from an experimental data file (in channel output sample)
 
static const u_short GET::modeData = 1
 The samples are filled from an experimental data file (in channel output sample)
 
static const u_short GET::modeSimul = 2
 The samples are filled from an experimental data file (in channel output sample)
 
Channel signal sample identifier
static const u_short GET::signalUndef = 0
 Undefined signal sample.
 
static const u_short GET::signalTst = 1
 Test input (simulation) signal sample.
 
static const u_short GET::signalOut = 2
 Output (experimental data) signal sample.
 
static const u_short GET::signalRec = 3
 Reconstructed signal sample.
 
Channel information identifier for analyser (histograms filling)
static const u_short GET::dataAmplitude = 0x0000
 Computed signal amplitude (depends on amplitude mode)
 
static const u_short GET::dataIntegral = 0x0001
 Integral of signal data.
 
static const u_short GET::dataFullSignal = 0x0002
 Full signal data (for 3D)
 
static const u_short GET::dataTime = 0x0004
 Time of maximum value of signal data.
 
static const u_short GET::dataTimeBin = 0x000C
 Time bucket of maximum value of signal data.
 
static const u_short GET::dataHit = 0x0010
 Whether the channel is hit (1) or not (0)
 
static const u_short GET::dataNoSat = 0x0020
 Whether not to consider saturated data (in summary histo filling)
 
static const u_short GET::dataNoBad = 0x0040
 Whether not to consider channels with check problems (in summary histo filling)
 
Analysis options
static const u_short GET::analyseInputRec = 0x0001
 Perform input signal reconstruction.
 
static const u_short GET::analyseRaw = 0x0002
 Perform raw signal analysis.
 
static const u_short GET::analyseCor = 0x0004
 Perform corrected signal analysis.
 
static const u_short GET::analyseAll = 0x0006
 Perform raw and corrected signal analysis.
 
static const u_short GET::analyseRecAll = 0x0007
 Perform raw and corrected signal analysis with input signal reconstruction.
 
Channels amplitude and timing analysis modes
static const u_short GET::amplitudeMaxSignal = 0x0000
 Channel amplitude calculation mode: maximum signal time bucket.
 
static const u_short GET::amplitudeIntegAll = 0x0001
 Channel amplitude calculation mode: integrate all signal.
 
static const u_short GET::amplitudeIntegTOT = 0x0002
 Channel amplitude calculation mode: integrate signal over threshold around maximum.
 
static const u_short GET::amplitudeIntegThr = 0x0003
 Channel amplitude calculation mode: integrate all signal over threshold.
 
static const u_short GET::amplitudeQuadraticMax = 0x0004
 Channel amplitude (and time) from quadratic estimate on 3 points.
 
static const u_short GET::amplitudeFitFct = 0x001F
 Flag indicating fit function.
 
static const u_short GET::amplitudeFit = 0x0010
 Flag indicating fit mode.
 
static const u_short GET::amplitudeFitG = 0x0011
 Flag indicating Gauss fit mode.
 
static const u_short GET::amplitudeFitGSC = 0x0012
 Flag indicating Gauss x SinC fit mode.
 
static const u_short GET::amplitudeFitSqG = 0x0013
 Flag indicating Square convolution with Gauss fit mode.
 
static const u_short GET::amplitudeFitSqGSC = 0x0014
 Flag indicating Square convolution with Gauss x SinC fit mode.
 
static const u_short GET::amplitudeFitInteg = 0x0100
 Flag indicating fit integral result.
 
static const u_short GET::amplitudeMaxFitG = 0x0011
 Channel amplitude calculation mode: maximum of a Gauss fit (with constant background)
 
static const u_short GET::amplitudeIntegFitG = 0x0111
 Channel amplitude calculation mode: integral of a Gauss fit (with constant background)
 
static const u_short GET::amplitudeMaxFitGSC = 0x0012
 Channel amplitude calculation mode: maximum of a Gauss x SinC fit (with constant background)
 
static const u_short GET::amplitudeIntegFitGSC = 0x0112
 Channel amplitude calculation mode: integral of a Gauss x SinC fit (with constant background)
 
static const u_short GET::amplitudeMaxFitSqG = 0x0013
 Channel amplitude calculation mode: maximum of a Square convolution with Gauss fit (with constant background)
 
static const u_short GET::amplitudeIntegFitSqG = 0x0113
 Channel amplitude calculation mode: maximum of a Square convolution with Gauss fit (with constant background)
 
static const u_short GET::amplitudeMaxFitSqGSC = 0x0014
 Channel amplitude calculation mode: maximum of a Square convolution with Gauss x SinC fit (with constant background)
 
static const u_short GET::amplitudeIntegFitSqGSC = 0x0114
 Channel amplitude calculation mode: maximum of a Square convolution with Gauss x SinC fit (with constant background)
 
static const u_short GET::amplitudeLocal = 0x0200
 Flag indicating local analysis mode.
 
static const u_short GET::amplitudeLocalAvg = 0x0200
 Channel amplitude calculation mode: average around maximum signal time bucket.
 
static const u_short GET::amplitudeLocalFitP2 = 0x0201
 Channel amplitude calculation mode: quadratic fit around maximum signal time bucket.
 
static const u_short GET::timingMaxSignal = 0x0000
 Channel timing from maximum amplitude.
 
static const u_short GET::timingCFD = 0x0001
 Channel timing from CFD algorithm.
 
static const u_short GET::timingQuadraticMax = 0x0002
 Channel timing from quadratic estimate on 3 points.
 
Reduced-CoBo options
static const u_int GET::RCoBoData0Correction = 0x00000001
 When reading experimental data, correct for sample 0 artefact.
 
static const u_int GET::RCoBoDataNCorrection = 0x00000002
 When reading experimental data, correct for last sample artefact.
 
static const u_int GET::RCoBoCorrectLC2 = 0x00000010
 When reading experimental data, correct for last cell read of AGet number 2.
 
static const u_int GET::RCoBoCorrectFPN1 = 0x00000020
 When reading experimental data, correct with closer FPN channel (only for signal channels)
 
static const u_int GET::RCoBoCorrectFPN2 = 0x00000040
 When reading experimental data, correct with 2 half chip FPN channels average (only for signal channels)
 
static const u_int GET::RCoBoCorrectFPN4 = 0x00000060
 When reading experimental data, correct with average FPN (only for signal channels)
 
static const u_int GET::RCoBoCorrectFPN = 0x00000060
 When reading experimental data, correct with average FPN (only for signal channels)
 
static const u_int GET::RCoBoCorrectEvents = 0x000000FF
 all option for corrections when reading events
 
All GET systems options
static const u_int GET::CoBoData0Correction = RCoBoData0Correction
 When reading experimental data, correct for first sample(s) artefact.
 
static const u_int GET::CoBoDataNCorrection = RCoBoDataNCorrection
 When reading experimental data, correct for last sample(s) artefact.
 
static const u_int GET::CoBoCorrectFPN1 = RCoBoCorrectFPN1
 When reading experimental data, correct with closer FPN channel (only for signal channels)
 
static const u_int GET::CoBoCorrectFPN2 = RCoBoCorrectFPN2
 When reading experimental data, correct with 2 half chip FPN channels average (only for signal channels)
 
static const u_int GET::CoBoCorrectFPN4 = RCoBoCorrectFPN4
 When reading experimental data, correct with average FPN (only for signal channels)
 
static const u_int GET::CoBoCorrectFPN = RCoBoCorrectFPN4
 When reading experimental data, correct with average FPN (only for signal channels)
 
static const u_int GET::CoBoZeroSuppress = 0x00000400
 
static const u_int GET::CoBoCorrectBadData = 0x00001000
 
static const u_int GET::CoBoCorrectEvents = 0x00001FFF
 All options for corrections when reading events.
 
Options for (un)merged events processing
static const u_int GET::MergedIncompleteSkip = 0x00001000
 Skip events with incomplete merged frames.
 
static const u_int GET::MergedIncompleteError = 0x00003000
 Error on events with incomplete merged frames.
 
static const u_int GET::ProcessSingleFrames = 0x00004000
 Process single CoBo/AsAd frames as events.
 
static const u_int GET::NoCoBoFrameUnpack = 0x00008000
 Do not unpack CoBo/AsAd frames (fast reading)
 
Filters options
static const u_int GET::filterNormalize = 0x00000001
 Normalize filter to conserve signal integral.
 

Detailed Description

Common include file for library sources.

Variable Documentation

TRandom3 GETRandom