CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Typedefs | Functions
LTCDigi.h File Reference
#include <vector>
#include <ostream>
#include <string>
#include "boost/cstdint.hpp"

Go to the source code of this file.

Classes

class  LTCDigi
 

Typedefs

typedef std::vector< LTCDigiLTCDigiCollection
 

Functions

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

Typedef Documentation

typedef std::vector<LTCDigi> LTCDigiCollection

Definition at line 107 of file LTCDigi.h.

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
static std::string locTime(uint64_t t)
Definition: LTCDigi.cc:110
unsigned int ramTrigger() const
Definition: LTCDigi.h:56
int sourceID() const
Definition: LTCDigi.h:42
uint32_t orbitNumber() const
Definition: LTCDigi.h:39
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
static std::string utcTime(uint64_t t)
Definition: LTCDigi.cc:99
uint32_t triggerInputStatus() const
Definition: LTCDigi.h:46
uint64_t bstGpsTime() const
Definition: LTCDigi.h:49
uint32_t triggerInhibitNumber() const
Definition: LTCDigi.h:47
int daqPartition() const
Definition: LTCDigi.h:44
unsigned int runNumber() const
Definition: LTCDigi.h:36
unsigned int eventNumber() const
Definition: LTCDigi.h:34