CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_3_3/src/DataFormats/LTCDigi/src/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().

{
   stream << "----------------------------------------"<< std::endl;
   stream << "Dumping LTC digi. " << std::endl;
   stream << "Source ID: " << myDigi.sourceID() << std::endl;
   stream << "Run, event: " << myDigi.runNumber()
          << ", " << myDigi.eventNumber () << std::endl;
   stream << "N_Inhibit:" << myDigi.triggerInhibitNumber() << std::endl;
   stream << LTCDigi::utcTime(myDigi.bstGpsTime()) << std::endl;
   stream << LTCDigi::locTime(myDigi.bstGpsTime()) << std::endl;
   stream << "Partition: " << myDigi.daqPartition() << std::endl;
   stream << "Bunch #:   " << myDigi.bunchNumber()  << std::endl;
   stream << "Orbit #:   " << myDigi.orbitNumber()  << std::endl;

   // Trigger information
   stream << "Trigger Bits(0-5):" ;
   for (int i = 0; i < 6; ++i ) {
      if ( myDigi.HasTriggered(i) )
         stream << "1";
      else 
         stream << "0";
      stream << " ";
   }
   stream << std::endl;

   //
   stream << "Ram trigger: " << myDigi.ramTrigger() << std::endl;
   stream << "VME trigger: " << myDigi.vmeTrigger() << std::endl;

   stream << "++++++++++++++++++++++++++++++++++++++++"<< std::endl;
   
   stream << "Raw Data" << std::endl;
   stream << "Trigger Input status: 0x" 
          << std::hex << myDigi.triggerInputStatus() << std::endl;
   stream << "GPS time:             0x"
          << std::hex << myDigi.bstGpsTime() << std::endl;

   stream << "----------------------------------------"<< std::endl;
   stream << std::dec << std::endl;

   return stream;
}