Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
DataFormats
EcalDigi
interface
EcalFEMSample.h
Go to the documentation of this file.
1
#ifndef DIGIECAL_ECALFEMSAMPLE_H
2
#define DIGIECAL_ECALFEMSAMPLE_H
3
4
#include <ostream>
5
#include <cstdint>
6
14
class
EcalFEMSample
{
15
public
:
16
EcalFEMSample
() {
theSample
= 0; }
17
EcalFEMSample
(uint16_t
data
) {
theSample
=
data
; }
18
EcalFEMSample
(
int
adc
,
int
gainId
);
19
21
uint16_t
raw
()
const
{
return
theSample
; }
23
int
adc
()
const
{
return
theSample
& 0xFFF; }
25
int
gainId
()
const
{
return
(
theSample
>> 12) & 0x3; }
27
uint16_t
operator()
() {
return
theSample
; }
28
29
private
:
30
uint16_t
theSample
;
31
};
32
33
std::ostream&
operator<<
(std::ostream&,
const
EcalFEMSample
&);
34
35
#endif
EcalFEMSample::adc
int adc() const
get the ADC sample (12 bits)
Definition:
EcalFEMSample.h:23
EcalFEMSample::raw
uint16_t raw() const
get the raw word
Definition:
EcalFEMSample.h:21
operator<<
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition:
ALILine.cc:167
EcalFEMSample::operator()
uint16_t operator()()
for streaming
Definition:
EcalFEMSample.h:27
EcalFEMSample::EcalFEMSample
EcalFEMSample(uint16_t data)
Definition:
EcalFEMSample.h:17
EcalFEMSample::theSample
uint16_t theSample
Definition:
EcalFEMSample.h:30
EcalFEMSample
Definition:
EcalFEMSample.h:14
EcalFEMSample::EcalFEMSample
EcalFEMSample()
Definition:
EcalFEMSample.h:16
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:79
EcalFEMSample::gainId
int gainId() const
get the gainId (2 bits)
Definition:
EcalFEMSample.h:25
Generated for CMSSW Reference Manual by
1.8.5