CMS 3D CMS Logo

Classes | Typedefs | Functions

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

{
   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;
}