CMS 3D CMS Logo

Classes | Typedefs | Functions
LTCDigi.h File Reference
#include <vector>
#include <ostream>
#include <string>
#include "FWCore/Utilities/interface/typedefs.h"

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 106 of file LTCDigi.h.

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(), TauDecayModes::dec, LTCDigi::eventNumber(), LTCDigi::HasTriggered(), mps_fire::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 }
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