CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
LTCDigi.cc File Reference
#include "DataFormats/LTCDigi/interface/LTCDigi.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &stream, const LTCDigi &myDigi)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const LTCDigi myDigi 
)

Definition at line 53 of file LTCDigi.cc.

References LTCDigi::bstGpsTime(), LTCDigi::bunchNumber(), LTCDigi::daqPartition(), LTCDigi::eventNumber(), LTCDigi::HasTriggered(), i, LTCDigi::locTime(), LTCDigi::orbitNumber(), LTCDigi::ramTrigger(), LTCDigi::runNumber(), LTCDigi::sourceID(), LTCDigi::triggerInhibitNumber(), LTCDigi::triggerInputStatus(), LTCDigi::utcTime(), and LTCDigi::vmeTrigger().

54 {
55  stream << "----------------------------------------"<< std::endl;
56  stream << "Dumping LTC digi. " << std::endl;
57  stream << "Source ID: " << myDigi.sourceID() << std::endl;
58  stream << "Run, event: " << myDigi.runNumber()
59  << ", " << myDigi.eventNumber () << std::endl;
60  stream << "N_Inhibit:" << myDigi.triggerInhibitNumber() << std::endl;
61  stream << LTCDigi::utcTime(myDigi.bstGpsTime()) << std::endl;
62  stream << LTCDigi::locTime(myDigi.bstGpsTime()) << std::endl;
64  stream << "Partition: " << myDigi.daqPartition() << std::endl;
65  stream << "Bunch #: " << myDigi.bunchNumber() << std::endl;
66  stream << "Orbit #: " << myDigi.orbitNumber() << std::endl;
67 
68  // Trigger information
69  stream << "Trigger Bits(0-5):" ;
70  for (int i = 0; i < 6; ++i ) {
71  if ( myDigi.HasTriggered(i) )
72  stream << "1";
73  else
74  stream << "0";
75  stream << " ";
76  }
77  stream << std::endl;
78 
79  //
80  stream << "Ram trigger: " << myDigi.ramTrigger() << std::endl;
81  stream << "VME trigger: " << myDigi.vmeTrigger() << std::endl;
82 
83  stream << "++++++++++++++++++++++++++++++++++++++++"<< std::endl;
84 
85  stream << "Raw Data" << std::endl;
86  stream << "Trigger Input status: 0x"
87  << std::hex << myDigi.triggerInputStatus() << std::endl;
88  stream << "GPS time: 0x"
89  << std::hex << myDigi.bstGpsTime() << std::endl;
90 
91  stream << "----------------------------------------"<< std::endl;
92  stream << std::dec << std::endl;
93 
94  return stream;
95 }
int i
Definition: DBlmapReader.cc:9
unsigned int ramTrigger() const
Definition: LTCDigi.h:55
cms_uint64_t bstGpsTime() const
Definition: LTCDigi.h:48
int sourceID() const
Definition: LTCDigi.h:41
unsigned int vmeTrigger() const
Definition: LTCDigi.h:51
bool HasTriggered(int i) const
Definition: LTCDigi.h:70
unsigned int bunchNumber() const
Definition: LTCDigi.h:37
cms_uint32_t triggerInputStatus() const
Definition: LTCDigi.h:45
int daqPartition() const
Definition: LTCDigi.h:43
cms_uint32_t orbitNumber() const
Definition: LTCDigi.h:38
cms_uint32_t triggerInhibitNumber() const
Definition: LTCDigi.h:46
unsigned int runNumber() const
Definition: LTCDigi.h:35
unsigned int eventNumber() const
Definition: LTCDigi.h:33
static std::string locTime(cms_uint64_t t)
Definition: LTCDigi.cc:109
static std::string utcTime(cms_uint64_t t)
Definition: LTCDigi.cc:98