#include <EcalMatacqDigi.h>
Definition at line 16 of file EcalMatacqDigi.h.
EcalMatacqDigi::EcalMatacqDigi |
( |
| ) |
|
|
inline |
EcalMatacqDigi::EcalMatacqDigi |
( |
const std::vector< Short_t > & |
samples, |
|
|
const int & |
chId, |
|
|
const double & |
ts, |
|
|
const short & |
version = -1 , |
|
|
const double & |
tTrig = 999. |
|
) |
| |
|
inline |
Constructor
- Parameters
-
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 43 of file EcalMatacqDigi.h.
const float EcalMatacqDigi::adcCount |
( |
const int & |
i | ) |
const |
|
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 54 of file EcalMatacqDigi.h.
const float EcalMatacqDigi::amplitudeV |
( |
const int & |
i | ) |
const |
|
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 59 of file EcalMatacqDigi.h.
Referenced by operator<<().
int EcalMatacqDigi::attenuation_dB |
( |
| ) |
const |
|
inline |
void EcalMatacqDigi::attenuation_dB |
( |
int |
value | ) |
|
|
inline |
Sets the laser Logarithmic attenuator setting in -10dB unit. Between 0 and 5*(-10dB), -1 if unknown.
- Parameters
-
Definition at line 254 of file EcalMatacqDigi.h.
int EcalMatacqDigi::bxId |
( |
| ) |
const |
|
inline |
void EcalMatacqDigi::bxId |
( |
int |
value | ) |
|
|
inline |
Sets the bunch crossing id field contents.
- Parameters
-
Definition at line 137 of file EcalMatacqDigi.h.
int EcalMatacqDigi::chId |
( |
| ) |
const |
|
inline |
int EcalMatacqDigi::delayA |
( |
| ) |
const |
|
inline |
void EcalMatacqDigi::delayA |
( |
int |
value | ) |
|
|
inline |
Sets "Delay A" setting of laser delay box in ns.delayA
- Parameters
-
Definition at line 222 of file EcalMatacqDigi.h.
int EcalMatacqDigi::emtcDelay |
( |
| ) |
const |
|
inline |
void EcalMatacqDigi::emtcDelay |
( |
int |
value | ) |
|
|
inline |
Sets the WTE-to-Laser delay of EMTC in LHC clock unit.
- Parameters
-
Definition at line 232 of file EcalMatacqDigi.h.
int EcalMatacqDigi::emtcPhase |
( |
| ) |
const |
|
inline |
void EcalMatacqDigi::emtcPhase |
( |
int |
value | ) |
|
|
inline |
Sets the EMTC laser phase in 1/8th LHC clock unit.
- Parameters
-
Definition at line 242 of file EcalMatacqDigi.h.
int EcalMatacqDigi::id |
( |
| ) |
const |
|
inline |
void EcalMatacqDigi::init |
( |
void |
| ) |
|
|
inline |
int EcalMatacqDigi::l1a |
( |
| ) |
const |
|
inline |
void EcalMatacqDigi::l1a |
( |
int |
value | ) |
|
|
inline |
Sets level one accept counter of the event
- Parameters
-
Definition at line 147 of file EcalMatacqDigi.h.
int EcalMatacqDigi::laserPower |
( |
| ) |
const |
|
inline |
void EcalMatacqDigi::laserPower |
( |
int |
value | ) |
|
|
inline |
Sets the laser power setting in percents (set with the linear attenuator),
- Parameters
-
Definition at line 266 of file EcalMatacqDigi.h.
UInt_t EcalMatacqDigi::orbitId |
( |
| ) |
const |
|
inline |
void EcalMatacqDigi::orbitId |
( |
UInt_t |
value | ) |
|
|
inline |
Sets the LHC orbit ID of the event.
- Parameters
-
Definition at line 180 of file EcalMatacqDigi.h.
int EcalMatacqDigi::postTrig |
( |
| ) |
const |
|
inline |
void EcalMatacqDigi::postTrig |
( |
int |
value | ) |
|
|
inline |
Sets the Posttrig value (see Matacq documentation).
- Parameters
-
Definition at line 201 of file EcalMatacqDigi.h.
int EcalMatacqDigi::size |
( |
void |
| ) |
const |
|
inline |
void EcalMatacqDigi::swap |
( |
std::vector< short > & |
samples | ) |
|
|
inline |
Swaps samples with the passed samples. For package internal use.
- Parameters
-
samples | new time samples in unit used in raw data (a priori ADC count). |
Definition at line 82 of file EcalMatacqDigi.h.
Definition at line 24 of file EcalMatacqDigi.cc.
References attenuation_dB_, bxId_, chId_, data_, delayA_, emtcDelay_, emtcPhase_, l1a_, laserPower_, orbitId_, postTrig_, std::swap(), triggerType_, trigRec_, ts_, tTrigS_, tv_sec_, tv_usec_, vernier_, and version_.
30 #if (ECAL_MATACQ_DIGI_VERS>=2)
std::vector< Int_t > vernier_
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
std::vector< Short_t > data_
timeval EcalMatacqDigi::timeStamp |
( |
| ) |
const |
|
inline |
Gets the matacq data timestamp with fine granularity (89.1us)
- Returns
- acquisition date of the data expressed in number of "elapsed" second and microseconds since the EPOCH as defined in POSIX.1. See time() standard c function and gettimeofday UNIX function.
Definition at line 164 of file EcalMatacqDigi.h.
Referenced by MatacqDataFormatter::interpretRawData().
void EcalMatacqDigi::timeStamp |
( |
timeval |
value | ) |
|
|
inline |
int EcalMatacqDigi::triggerType |
( |
| ) |
const |
|
inline |
void EcalMatacqDigi::triggerType |
( |
int |
value | ) |
|
|
inline |
int EcalMatacqDigi::trigRec |
( |
| ) |
const |
|
inline |
void EcalMatacqDigi::trigRec |
( |
int |
value | ) |
|
|
inline |
Sets the Trig Rec value (see Matacq documentation)
- Parameters
-
Definition at line 191 of file EcalMatacqDigi.h.
float EcalMatacqDigi::ts |
( |
| ) |
const |
|
inline |
Gets time of sample i. i between 0 and size()-1.Gets sampling time in seconds
Definition at line 92 of file EcalMatacqDigi.h.
float EcalMatacqDigi::tTrig |
( |
| ) |
const |
|
inline |
Sets sampling time period
- Parameters
-
ts | sampling time period in seconds Gets time of trigger in seconds. |
- Returns
- (t_trig-t_0), with t_trig the trigger time and t_0 the first. Returns 999 if not available. sample time.
Definition at line 106 of file EcalMatacqDigi.h.
std::vector<int> EcalMatacqDigi::vernier |
( |
| ) |
const |
|
inline |
void EcalMatacqDigi::vernier |
( |
const std::vector< int > & |
value | ) |
|
|
inline |
short EcalMatacqDigi::version |
( |
| ) |
const |
|
inline |
Sets trigger time position
- Parameters
-
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. |
- Returns
- raw data format version, -1 if not available.
Definition at line 119 of file EcalMatacqDigi.h.
char EcalMatacqDigi::attenuation_dB_ |
|
private |
Logarithmic attenuator setting in -10dB unit. Between 0 and 5*(-10dB), -1 if unknown.
Definition at line 321 of file EcalMatacqDigi.h.
Referenced by swap().
Short_t EcalMatacqDigi::bxId_ |
|
private |
int EcalMatacqDigi::chId_ |
|
private |
std::vector<Short_t> EcalMatacqDigi::data_ |
|
private |
Int_t EcalMatacqDigi::delayA_ |
|
private |
Int_t EcalMatacqDigi::emtcDelay_ |
|
private |
Int_t EcalMatacqDigi::emtcPhase_ |
|
private |
Frequency mode. 1->1GHz sampling, 2->2GHz sampling
Definition at line 298 of file EcalMatacqDigi.h.
Int_t EcalMatacqDigi::l1a_ |
|
private |
Int_t EcalMatacqDigi::laserPower_ |
|
private |
Laser power in percents (set with the linear attenuator).
Definition at line 361 of file EcalMatacqDigi.h.
Referenced by swap().
const double EcalMatacqDigi::lsb_ = 0.25e-3 |
|
static |
const int EcalMatacqDigi::MAXSAMPLES = 2560 |
|
static |
Int_t EcalMatacqDigi::orbitId_ |
|
private |
Short_t EcalMatacqDigi::postTrig_ |
|
private |
char EcalMatacqDigi::triggerType_ |
|
private |
Short_t EcalMatacqDigi::trigRec_ |
|
private |
double EcalMatacqDigi::ts_ |
|
private |
Sampling period in seconds. In priniciple 1ns or 0.5ns
Definition at line 302 of file EcalMatacqDigi.h.
Referenced by swap().
double EcalMatacqDigi::tTrigS_ |
|
private |
Long64_t EcalMatacqDigi::tv_sec_ |
|
private |
Matacq acquisition time stampWe don't use timeval directly, because its typedef is platform dependent.
Definition at line 367 of file EcalMatacqDigi.h.
Referenced by swap().
Long64_t EcalMatacqDigi::tv_usec_ |
|
private |
std::vector<Int_t> EcalMatacqDigi::vernier_ |
|
private |
short EcalMatacqDigi::version_ |
|
private |