test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
L1AcceptBunchCrossing.cc File Reference
#include "DataFormats/Scalers/interface/L1AcceptBunchCrossing.h"
#include "DataFormats/Scalers/interface/ScalersRaw.h"
#include <cstdio>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const L1AcceptBunchCrossing &c)
 Pretty-print operator for L1AcceptBunchCrossing. More...
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const L1AcceptBunchCrossing c 
)

Pretty-print operator for L1AcceptBunchCrossing.

Pretty-print operator for L1AcceptBunchCrossings.

Definition at line 43 of file L1AcceptBunchCrossing.cc.

References L1AcceptBunchCrossing::bunchCrossing(), L1AcceptBunchCrossing::eventType(), L1AcceptBunchCrossing::l1AcceptOffset(), geometryCSVtoXML::line, L1AcceptBunchCrossing::orbitNumber(), and alignCSCRings::s.

44 {
45  char line[128];
46 
47  sprintf(line,
48  "L1AcceptBC Offset:%2d Orbit:%10d [0x%8.8X] BC:%4d [0x%3.3X] EvtTyp:%d",
49  c.l1AcceptOffset(),
50  c.orbitNumber(),
51  c.orbitNumber(),
52  c.bunchCrossing(),
53  c.bunchCrossing(),
54  c.eventType());
55  s << line << std::endl;
56 
57  return s;
58 }
unsigned int bunchCrossing() const
unsigned int eventType() const
unsigned int orbitNumber() const