CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QIE11DataFrame.cc
Go to the documentation of this file.
3 
4 void QIE11DataFrame::setCapid0(int cap0) {
5  edm::DataFrame::operator[](0)&=0xFCFF; // inversion of the capid0 mask
7 }
8 
9 void QIE11DataFrame::setFlags(uint16_t v) {
11 }
12 
13 void QIE11DataFrame::setSample(edm::DataFrame::size_type isample, int adc, int tdc, bool soi) {
14  if (isample>=size()) return;
16 }
17 
18 std::ostream& operator<<(std::ostream& s, const QIE11DataFrame& digi) {
19  if (digi.detid().det()==DetId::Hcal) {
20  s << HcalGenericDetId(digi.detid());
21  } else {
22  s << "DetId(" << digi.detid().rawId() << ")";
23  }
24  s << " " << digi.samples() << " samples";
25  if (digi.linkError()) s << " LinkError ";
26  if (digi.capidError()) s << " CapIdError ";
27  if (digi.wasMarkAndPass()) s << " M&P ";
28  s << std::endl;
29  for (int i=0; i<digi.samples(); i++) {
30  s << " ADC=" << digi[i].adc() << " TDC=" << digi[i].tdc() << " CAPID=" << digi[i].capid();
31  if (digi[i].soi()) s << " SOI ";
32  s << std::endl;
33  }
34  return s;
35 }
int adc(sample_type sample)
get the ADC sample (12 bits)
DetId detid() const
Get the detector id.
void setSample(edm::DataFrame::size_type isample, int adc, int tdc, bool soi=false)
set the sample contents
int i
Definition: DBlmapReader.cc:9
static const int OFFSET_CAPID
void setCapid0(int cap0)
static const int MASK_CAPID
static const int MASK_ADC
void setFlags(uint16_t v)
set the flag word
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
unsigned int size_type
Definition: DataFrame.h:17
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
static const int MASK_TDC
bool linkError() const
data_type & operator[](size_type i)
Definition: DataFrame.h:37
bool capidError() const
bool wasMarkAndPass() const
was this a mark-and-pass ZS event?
static const int OFFSET_TDC
static const int MASK_SOI
size_type size() const
Definition: DataFrame.h:63
Detector det() const
get the detector field from this detid
Definition: DetId.h:35
int samples() const
total number of samples in the digi