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.

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

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 }
int daqPartition() const
Definition: LTCDigi.h:41
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
unsigned int ramTrigger() const
Definition: LTCDigi.h:50
cms_uint64_t bstGpsTime() const
Definition: LTCDigi.h:46
bool HasTriggered(int i) const
Definition: LTCDigi.h:60
unsigned int vmeTrigger() const
Definition: LTCDigi.h:49
unsigned int bunchNumber() const
Definition: LTCDigi.h:35
cms_uint32_t orbitNumber() const
Definition: LTCDigi.h:36
unsigned int eventNumber() const
Definition: LTCDigi.h:31
int sourceID() const
Definition: LTCDigi.h:39
cms_uint32_t triggerInputStatus() const
Definition: LTCDigi.h:43
unsigned int runNumber() const
Definition: LTCDigi.h:33
cms_uint32_t triggerInhibitNumber() const
Definition: LTCDigi.h:44
static std::string locTime(cms_uint64_t t)
Definition: LTCDigi.cc:96
static std::string utcTime(cms_uint64_t t)
Definition: LTCDigi.cc:85