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 54 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().

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