#include <EcalMatacqDigi.h>
Public Types | |
typedef int | key_type |
Public Member Functions | |
float | adcCount (const int &i) const |
float | amplitudeV (const int &i) const |
int | attenuation_dB () const |
void | attenuation_dB (int value) |
int | bxId () const |
void | bxId (int value) |
int | chId () const |
int | delayA () const |
void | delayA (int value) |
EcalMatacqDigi () | |
EcalMatacqDigi (const std::vector< Short_t > &samples, const int &chId, const double &ts, const short &version=-1, const double &tTrig=999.) | |
int | emtcDelay () const |
void | emtcDelay (int value) |
int | emtcPhase () const |
void | emtcPhase (int value) |
int | id () const |
void | init () |
int | l1a () const |
void | l1a (int value) |
int | laserPower () const |
void | laserPower (int value) |
UInt_t | orbitId () const |
void | orbitId (UInt_t value) |
int | postTrig () const |
void | postTrig (int value) |
int | size () const |
void | swap (std::vector< short > &samples) |
void | swap (EcalMatacqDigi &a) |
timeval | timeStamp () const |
void | timeStamp (timeval value) |
int | triggerType () const |
void | triggerType (int value) |
int | trigRec () const |
void | trigRec (int value) |
float | ts () const |
float | tTrig () const |
std::vector< int > | vernier () const |
void | vernier (const std::vector< int > &value) |
short | version () const |
Static Public Attributes | |
static const double | lsb_ = 0.25e-3 |
static const int | MAXSAMPLES = 2560 |
Private Attributes | |
char | attenuation_dB_ |
Short_t | bxId_ |
int | chId_ |
std::vector< Short_t > | data_ |
Int_t | delayA_ |
Int_t | emtcDelay_ |
Int_t | emtcPhase_ |
Int_t | l1a_ |
Int_t | laserPower_ |
Int_t | orbitId_ |
Short_t | postTrig_ |
char | triggerType_ |
Short_t | trigRec_ |
double | ts_ |
double | tTrigS_ |
Long64_t | tv_sec_ |
Long64_t | tv_usec_ |
std::vector< Int_t > | vernier_ |
short | version_ |
Definition at line 16 of file EcalMatacqDigi.h.
typedef int EcalMatacqDigi::key_type |
Definition at line 27 of file EcalMatacqDigi.h.
|
inline |
|
inline |
Constructor
samples | adc time samples |
chId | Matacq channel ID |
ts | sampling time in seconds |
version | Matacq raw data private version |
tTrigg | time position of the trigger in seconds |
Definition at line 41 of file EcalMatacqDigi.h.
References init().
|
inline |
Gets amplitude in ADC count of time sample i. i between 0 and size()-1. Note: Amplitude is pedestal subtracted at acquisition time.
Definition at line 53 of file EcalMatacqDigi.h.
References data_, and mps_fire::i.
Referenced by EcalPerEvtMatacqAnalyzer::analyze(), and EcalMatacqAnalyzer::analyze().
|
inline |
Gets amplitude in Volt of time sample i. i between 0 and size()-1. Note: Amplitude is pedestal subtracted at acquisition time.
Definition at line 58 of file EcalMatacqDigi.h.
References data_, mps_fire::i, and lsb_.
Referenced by operator<<().
|
inline |
Gets the laser logarithmic attenuator setting in -10dB unit. Between 0 and 5*(-10dB), -1 if unknown.
Definition at line 254 of file EcalMatacqDigi.h.
References attenuation_dB_.
Referenced by MatacqDataFormatter::interpretRawData().
|
inline |
Sets the laser Logarithmic attenuator setting in -10dB unit. Between 0 and 5*(-10dB), -1 if unknown.
value | new value |
Definition at line 260 of file EcalMatacqDigi.h.
References attenuation_dB_, and relativeConstraints::value.
|
inline |
Sets the raw data format, the digi is issued from.
version | internal matacq raw data format version Gets the bunch crossing id field contents. |
Definition at line 131 of file EcalMatacqDigi.h.
References bxId_.
Referenced by MatacqDataFormatter::interpretRawData().
|
inline |
Sets the bunch crossing id field contents.
value | new value |
Definition at line 136 of file EcalMatacqDigi.h.
References bxId_, and relativeConstraints::value.
|
inline |
Gets Matacq electronics channel id
Definition at line 62 of file EcalMatacqDigi.h.
References chId_.
|
inline |
Gets "Delay A" setting of laser delay box in ns.delayA
Definition at line 223 of file EcalMatacqDigi.h.
References delayA_.
Referenced by MatacqDataFormatter::interpretRawData().
|
inline |
Sets "Delay A" setting of laser delay box in ns.delayA
value | new value |
Definition at line 228 of file EcalMatacqDigi.h.
References delayA_, and relativeConstraints::value.
|
inline |
Gets the WTE-to-Laser delay of EMTC in LHC clock unit.
Definition at line 233 of file EcalMatacqDigi.h.
References emtcDelay_.
Referenced by MatacqDataFormatter::interpretRawData().
|
inline |
Sets the WTE-to-Laser delay of EMTC in LHC clock unit.
value | new value |
Definition at line 238 of file EcalMatacqDigi.h.
References emtcDelay_, and relativeConstraints::value.
|
inline |
Gets the EMTC laser phase in 1/8th LHC clock unit.
Definition at line 243 of file EcalMatacqDigi.h.
References emtcPhase_.
Referenced by MatacqDataFormatter::interpretRawData().
|
inline |
Sets the EMTC laser phase in 1/8th LHC clock unit.
value | new value |
Definition at line 248 of file EcalMatacqDigi.h.
References emtcPhase_, and relativeConstraints::value.
|
inline |
Definition at line 67 of file EcalMatacqDigi.h.
References chId_.
|
inline |
Definition at line 275 of file EcalMatacqDigi.h.
References attenuation_dB_, bxId_, delayA_, emtcDelay_, emtcPhase_, l1a_, laserPower_, orbitId_, postTrig_, triggerType_, trigRec_, tv_sec_, tv_usec_, and vernier_.
Referenced by EcalMatacqDigi().
|
inline |
Gets level one accept counter of the event
Definition at line 141 of file EcalMatacqDigi.h.
References l1a_.
Referenced by MatacqDataFormatter::interpretRawData().
|
inline |
Sets level one accept counter of the event
value | new value |
Definition at line 146 of file EcalMatacqDigi.h.
References l1a_, and relativeConstraints::value.
|
inline |
Gets the laser power setting in percents (set with the linear attenuator),
Definition at line 266 of file EcalMatacqDigi.h.
References laserPower_.
Referenced by MatacqDataFormatter::interpretRawData().
|
inline |
Sets the laser power setting in percents (set with the linear attenuator),
value | new value |
Definition at line 272 of file EcalMatacqDigi.h.
References laserPower_, and relativeConstraints::value.
|
inline |
Gets the LHC orbit ID of the event Available only for Matacq data format version >=3 and for P5 data.
Definition at line 182 of file EcalMatacqDigi.h.
References orbitId_.
Referenced by MatacqDataFormatter::interpretRawData().
|
inline |
Sets the LHC orbit ID of the event.
value | new value |
Definition at line 187 of file EcalMatacqDigi.h.
References orbitId_, and relativeConstraints::value.
|
inline |
Gets the Posttrig value (see Matacq documentation). Available only for Matacq data format version >=3.
Definition at line 203 of file EcalMatacqDigi.h.
References postTrig_.
Referenced by MatacqDataFormatter::interpretRawData().
|
inline |
Sets the Posttrig value (see Matacq documentation).
value | new value |
Definition at line 208 of file EcalMatacqDigi.h.
References postTrig_, and relativeConstraints::value.
|
inline |
Sets Matacq electronics channel idNumber of time samples
Definition at line 75 of file EcalMatacqDigi.h.
References data_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), EcalPerEvtMatacqAnalyzer::analyze(), EcalMatacqAnalyzer::analyze(), and operator<<().
|
inline |
Swaps samples with the passed samples. For package internal use.
samples | new time samples in unit used in raw data (a priori ADC count). |
Definition at line 81 of file EcalMatacqDigi.h.
References data_, EgammaValidation_cff::samples, and std::swap().
void EcalMatacqDigi::swap | ( | EcalMatacqDigi & | a | ) |
Definition at line 24 of file EcalMatacqDigi.cc.
References a, and std::swap().
|
inline |
Gets the matacq data timestamp with fine granularity (89.1us)
Definition at line 163 of file EcalMatacqDigi.h.
References tv_sec_, tv_usec_, and relativeConstraints::value.
Referenced by MatacqDataFormatter::interpretRawData().
|
inline |
Sets the matcq event timestmap
value | new value |
Definition at line 173 of file EcalMatacqDigi.h.
References tv_sec_, and tv_usec_.
|
inline |
Gets type of test trigger
Definition at line 151 of file EcalMatacqDigi.h.
References triggerType_.
Referenced by MatacqDataFormatter::interpretRawData().
|
inline |
Sets type of test trigger
value | new value |
Definition at line 156 of file EcalMatacqDigi.h.
References triggerType_, and relativeConstraints::value.
|
inline |
Gets the Trig Rec value (see Matacq documentation) Available only for Matacq data format version >=3.
Definition at line 193 of file EcalMatacqDigi.h.
References trigRec_.
Referenced by MatacqDataFormatter::interpretRawData().
|
inline |
Sets the Trig Rec value (see Matacq documentation)
value | new value |
Definition at line 198 of file EcalMatacqDigi.h.
References trigRec_, and relativeConstraints::value.
|
inline |
Gets time of sample i. i between 0 and size()-1.Gets sampling time in seconds
Definition at line 91 of file EcalMatacqDigi.h.
References ts_.
|
inline |
Sets sampling time period
ts | sampling time period in seconds Gets time of trigger in seconds. |
Definition at line 105 of file EcalMatacqDigi.h.
References tTrigS_.
Referenced by EcalPerEvtMatacqAnalyzer::analyze(), and EcalMatacqAnalyzer::analyze().
|
inline |
Gets the vernier values (see Matacq documentation)
Definition at line 213 of file EcalMatacqDigi.h.
References vernier_.
Referenced by MatacqDataFormatter::interpretRawData().
|
inline |
Sets verniers
value | new value |
Definition at line 218 of file EcalMatacqDigi.h.
References relativeConstraints::value, and vernier_.
|
inline |
Sets trigger time position
tTrigS | (t_trig-t_0) in seconds, with t_trig the time of MATACQ trigger and t_0 the time of the first sample of each MATACQ channel. version of raw data format, the digis originate from. |
Definition at line 118 of file EcalMatacqDigi.h.
References version_.
Referenced by validation.Sample::datasetpattern(), and validation.Sample::filename().
|
private |
Logarithmic attenuator setting in -10dB unit. Between 0 and 5*(-10dB), -1 if unknown.
Definition at line 324 of file EcalMatacqDigi.h.
Referenced by attenuation_dB(), and init().
|
private |
Bunch crossing Id
Definition at line 328 of file EcalMatacqDigi.h.
|
private |
Electronic channel id
Definition at line 297 of file EcalMatacqDigi.h.
|
private |
ADC count of time samples
Definition at line 301 of file EcalMatacqDigi.h.
Referenced by adcCount(), amplitudeV(), size(), and swap().
|
private |
"Delay A" setting of laser delay box in ns.
Definition at line 352 of file EcalMatacqDigi.h.
|
private |
WTE-to-Laser delay of EMTC in LHC clock unit.
Definition at line 356 of file EcalMatacqDigi.h.
Referenced by emtcDelay(), and init().
|
private |
EMTC laser phase in 1/8th LHC clock unit.
Definition at line 360 of file EcalMatacqDigi.h.
Referenced by emtcPhase(), and init().
|
private |
Event id. Actually LV1 ID.
Definition at line 332 of file EcalMatacqDigi.h.
|
private |
Laser power in percents (set with the linear attenuator).
Definition at line 364 of file EcalMatacqDigi.h.
Referenced by init(), and laserPower().
|
static |
LSB of ADC count in Volt
Definition at line 20 of file EcalMatacqDigi.h.
Referenced by amplitudeV().
|
static |
Maximum number of time samples
Definition at line 24 of file EcalMatacqDigi.h.
|
private |
Definition at line 336 of file EcalMatacqDigi.h.
|
private |
Posttrig value (see Matacq documentation)
Definition at line 344 of file EcalMatacqDigi.h.
Referenced by init(), and postTrig().
|
private |
Type of test trigger
Definition at line 319 of file EcalMatacqDigi.h.
Referenced by init(), and triggerType().
|
private |
Trig Rec value (see Matacq documentation)
Definition at line 340 of file EcalMatacqDigi.h.
|
private |
Sampling period in seconds. In priniciple 1ns or 0.5ns
Definition at line 305 of file EcalMatacqDigi.h.
Referenced by ts().
|
private |
|
private |
Matacq acquisition time stampWe don't use timeval directly, because its typedef is platform dependent.
Definition at line 370 of file EcalMatacqDigi.h.
Referenced by init(), and timeStamp().
|
private |
Definition at line 371 of file EcalMatacqDigi.h.
Referenced by init(), and timeStamp().
|
private |
Vernier values (see Matacq documentation)
Definition at line 348 of file EcalMatacqDigi.h.
|
private |
version of raw data format, the digis originate from.
Definition at line 313 of file EcalMatacqDigi.h.
Referenced by version().