![]() |
![]() |
#include <DataFormats/EcalDigi/interface/EcalMatacqDigi.h>
Public Types | |
typedef int | key_type |
Public Member Functions | |
const float | adcCount (const int &i) const |
Gets amplitude in ADC count of time sample i. | |
const float | amplitudeV (const int &i) const |
Gets amplitude in Volt of time sample i. | |
int | chId () const |
Gets Matacq electronics channel id. | |
EcalMatacqDigi (const std::vector< Short_t > &samples, const int &chId, const double &ts, const short &version=-1, const double &tTrig=999.) | |
Constructor. | |
EcalMatacqDigi () | |
Default constructor. | |
int | id () const |
For edm::SortedCollection. | |
int | size () const |
Sets Matacq electronics channel id. | |
void | swap (EcalMatacqDigi &a) |
void | swap (std::vector< short > &samples) |
Swaps samples with the passed samples. | |
float | ts () const |
Gets time of sample i. | |
float | tTrig () const |
Sets sampling time period. | |
short | version () const |
Sets trigger time position. | |
Static Public Attributes | |
static const double | lsb_ = 0.25e-3 |
LSB of ADC count in Volt. | |
static const int | MAXSAMPLES = 2560 |
Maximum number of time samples. | |
Private Attributes | |
int | chId_ |
Sets the raw data format, the digi is issued from. | |
std::vector< Short_t > | data_ |
ADC count of time samples. | |
int | freq |
Frequency mode. | |
double | ts_ |
Sampling period in seconds. | |
double | tTrigS_ |
Trigger time in seconds. | |
short | version_ |
version of raw data format, the digis originate from. |
Definition at line 15 of file EcalMatacqDigi.h.
typedef int EcalMatacqDigi::key_type |
Definition at line 26 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.
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 40 of file EcalMatacqDigi.h.
const float EcalMatacqDigi::adcCount | ( | const int & | i | ) | const [inline] |
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 54 of file EcalMatacqDigi.h.
Referenced by operator<<().
int EcalMatacqDigi::chId | ( | ) | const [inline] |
Gets Matacq electronics channel id.
Definition at line 58 of file EcalMatacqDigi.h.
References chId_.
00058 { return chId_;}
Definition at line 63 of file EcalMatacqDigi.h.
References chId_.
00063 { return chId_;}
Sets Matacq electronics channel id.
Number of time samples
Definition at line 71 of file EcalMatacqDigi.h.
References data_.
Referenced by operator<<().
00071 { return data_.size();}
void EcalMatacqDigi::swap | ( | EcalMatacqDigi & | a | ) |
void EcalMatacqDigi::swap | ( | std::vector< short > & | samples | ) | [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 77 of file EcalMatacqDigi.h.
References data_, and std::swap().
float EcalMatacqDigi::ts | ( | ) | const [inline] |
Gets time of sample i.
i between 0 and size()-1. Gets sampling time in seconds
Definition at line 87 of file EcalMatacqDigi.h.
References ts_.
00087 { return ts_;}
float EcalMatacqDigi::tTrig | ( | ) | const [inline] |
Sets sampling time period.
ts | sampling time period in seconds Gets time of trigger in seconds. |
Definition at line 101 of file EcalMatacqDigi.h.
References tTrigS_.
00101 { return tTrigS_;}
short EcalMatacqDigi::version | ( | ) | const [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 114 of file EcalMatacqDigi.h.
References version_.
00114 {return version_;}
int EcalMatacqDigi::chId_ [private] |
Sets the raw data format, the digi is issued from.
version | internal matacq raw data format version Electronic channel id |
Definition at line 126 of file EcalMatacqDigi.h.
std::vector<Short_t> EcalMatacqDigi::data_ [private] |
ADC count of time samples.
Definition at line 130 of file EcalMatacqDigi.h.
Referenced by adcCount(), amplitudeV(), size(), and swap().
int EcalMatacqDigi::freq [private] |
const double EcalMatacqDigi::lsb_ = 0.25e-3 [static] |
LSB of ADC count in Volt.
Definition at line 19 of file EcalMatacqDigi.h.
Referenced by amplitudeV().
const int EcalMatacqDigi::MAXSAMPLES = 2560 [static] |
double EcalMatacqDigi::ts_ [private] |
Sampling period in seconds.
In priniciple 1ns or 0.5ns
Definition at line 138 of file EcalMatacqDigi.h.
double EcalMatacqDigi::tTrigS_ [private] |
short EcalMatacqDigi::version_ [private] |
version of raw data format, the digis originate from.
Definition at line 146 of file EcalMatacqDigi.h.