GET library
GETCommon.hh File Reference
#include "GGlobal.hh"
#include "GBaseFunctions.hh"
#include "GLogMessage.hh"
#include "GString.hh"
#include "TRandom3.h"
#include "TMath.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_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
static const u_short GET::dataMaxSignal = 0x0000
 Maximum value of signal data.
 
static const u_short GET::dataIntegral = 0x0001
 Maximum 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)
 
Channels amplitude and timing analysis modes
static const u_short GET::amplitudeMaxSignal = 0
 Channel amplitude calculation mode: maximum signal time bucket.
 
static const u_short GET::amplitudeLocalAvg = 1
 Channel amplitude calculation mode: average around maximum signal time bucket.
 
static const u_short GET::amplitudeLocalFitP2 = 2
 Channel amplitude calculation mode: quadratic fit around maximum signal time bucket.
 
static const u_short GET::timingMaxSignal = 0
 Channel timing from maximum amplitude.
 
static const u_short GET::timingCFD = 1
 Channel timing from CFD algorithm.
 
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::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::CoBoCorrectEvents = 0x00000FFF
 all options for corrections when reading events
 
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.
 
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

Unique random generator for GET library.

Referenced by GETCalibProcess::ProcessSample(), and GETNoise::ProcessSample().