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

◆ LTCDigiCollection

typedef std::vector<LTCDigi> LTCDigiCollection

Definition at line 91 of file LTCDigi.h.

Function Documentation

◆ operator<<()

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

Definition at line 45 of file LTCDigi.cc.

45  {
46  stream << "----------------------------------------" << std::endl;
47  stream << "Dumping LTC digi. " << std::endl;
48  stream << "Source ID: " << myDigi.sourceID() << std::endl;
49  stream << "Run, event: " << myDigi.runNumber() << ", " << myDigi.eventNumber() << std::endl;
50  stream << "N_Inhibit:" << myDigi.triggerInhibitNumber() << std::endl;
51  stream << LTCDigi::utcTime(myDigi.bstGpsTime()) << std::endl;
52  stream << LTCDigi::locTime(myDigi.bstGpsTime()) << std::endl;
54  stream << "Partition: " << myDigi.daqPartition() << std::endl;
55  stream << "Bunch #: " << myDigi.bunchNumber() << std::endl;
56  stream << "Orbit #: " << myDigi.orbitNumber() << std::endl;
57 
58  // Trigger information
59  stream << "Trigger Bits(0-5):";
60  for (int i = 0; i < 6; ++i) {
61  if (myDigi.HasTriggered(i))
62  stream << "1";
63  else
64  stream << "0";
65  stream << " ";
66  }
67  stream << std::endl;
68 
69  //
70  stream << "Ram trigger: " << myDigi.ramTrigger() << std::endl;
71  stream << "VME trigger: " << myDigi.vmeTrigger() << std::endl;
72 
73  stream << "++++++++++++++++++++++++++++++++++++++++" << std::endl;
74 
75  stream << "Raw Data" << std::endl;
76  stream << "Trigger Input status: 0x" << std::hex << myDigi.triggerInputStatus() << std::endl;
77  stream << "GPS time: 0x" << std::hex << myDigi.bstGpsTime() << std::endl;
78 
79  stream << "----------------------------------------" << std::endl;
80  stream << std::dec << std::endl;
81 
82  return stream;
83 }

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(), cms::cuda::stream, LTCDigi::triggerInhibitNumber(), LTCDigi::triggerInputStatus(), LTCDigi::utcTime(), and LTCDigi::vmeTrigger().

mps_fire.i
i
Definition: mps_fire.py:428
LTCDigi::ramTrigger
unsigned int ramTrigger() const
Definition: LTCDigi.h:50
cms::cuda::stream
cudaStream_t stream
Definition: HistoContainer.h:57
LTCDigi::HasTriggered
bool HasTriggered(int i) const
Definition: LTCDigi.h:60
LTCDigi::triggerInhibitNumber
cms_uint32_t triggerInhibitNumber() const
Definition: LTCDigi.h:44
LTCDigi::daqPartition
int daqPartition() const
Definition: LTCDigi.h:41
LTCDigi::vmeTrigger
unsigned int vmeTrigger() const
Definition: LTCDigi.h:49
LTCDigi::utcTime
static std::string utcTime(cms_uint64_t t)
Definition: LTCDigi.cc:85
LTCDigi::eventNumber
unsigned int eventNumber() const
Definition: LTCDigi.h:31
LTCDigi::bstGpsTime
cms_uint64_t bstGpsTime() const
Definition: LTCDigi.h:46
LTCDigi::bunchNumber
unsigned int bunchNumber() const
Definition: LTCDigi.h:35
LTCDigi::orbitNumber
cms_uint32_t orbitNumber() const
Definition: LTCDigi.h:36
LTCDigi::runNumber
unsigned int runNumber() const
Definition: LTCDigi.h:33
LTCDigi::sourceID
int sourceID() const
Definition: LTCDigi.h:39
LTCDigi::triggerInputStatus
cms_uint32_t triggerInputStatus() const
Definition: LTCDigi.h:43
LTCDigi::locTime
static std::string locTime(cms_uint64_t t)
Definition: LTCDigi.cc:96
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143