CMS 3D CMS Logo

L1DataEmulDigi.h File Reference

#include <ostream>
#include <string>
#include <utility>
#include <vector>
#include "DataFormats/L1Trigger/interface/L1MonitorDigi.h"

Go to the source code of this file.

Classes

struct  GltDEDigi
class  L1DataEmulDigi

Functions

std::ostream & operator<< (std::ostream &, const GltDEDigi &)
std::ostream & operator<< (std::ostream &, const L1DataEmulDigi &)


Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const GltDEDigi  
)

Definition at line 105 of file L1DataEmulDigi.cc.

References begin, GltDEDigi::globalDBit, GltDEDigi::gltDecBits, GltDEDigi::gltTchBits, and i.

00105                                                             {
00106   GltDEDigi::GltBits dbits[2], tbits[2];
00107   bool glbit[2];
00108   for(int i=0; i<2; i++) {
00109     glbit[i]=glt.globalDBit[i];
00110     dbits[i]=glt.gltDecBits[i];
00111     tbits[i]=glt.gltTchBits[i];
00112   }
00113   s << "GT DEdigi"
00114     << " decision: "
00115     << glbit[0];
00116   if(glbit[0]!=glbit[1])
00117     s << "(data), " << glbit[1] << "(emul)";
00118   s << "\n data dec-word: ";
00119   for(GltDEDigi::GltBits::const_iterator i=dbits[0].begin();
00120       i!=dbits[0].end(); i++)  s<<*i; 
00121   s << "\n emul dec-word: ";
00122   for(GltDEDigi::GltBits::const_iterator i=dbits[1].begin();
00123       i!=dbits[1].end(); i++)  s<<*i; 
00124   s << "\n data techical: ";
00125   for(GltDEDigi::GltBits::const_iterator i=tbits[0].begin();
00126       i!=tbits[0].end(); i++)  s<<*i; 
00127   s << "\n emul technical: ";
00128   for(GltDEDigi::GltBits::const_iterator i=tbits[1].begin();
00129       i!=tbits[1].end(); i++)  s<<*i; 
00130   return s;
00131 }

std::ostream& operator<< ( std::ostream &  ,
const L1DataEmulDigi  
)

Definition at line 52 of file L1DataEmulDigi.cc.

References L1DataEmulDigi::cid(), L1DataEmulDigi::data(), L1DataEmulDigi::rank(), L1DataEmulDigi::sid(), L1DataEmulDigi::type(), L1DataEmulDigi::x1(), L1DataEmulDigi::x2(), and L1DataEmulDigi::x3().

00052                                                                 {
00053     unsigned word[2];
00054     float rankarr[2];
00055     de.data(word);
00056     de.rank(rankarr);
00057     s << "DEdigi"
00058       << " subsystem: "  << std::setw(2) << de.sid()
00059       << " (cid."        << std::setw(2) << de.cid() << ")"
00060       << " location: " 
00061       << "(" << std::setw(5) << std::setprecision(2) << de.x1() 
00062       << "," << std::setw(5) << std::setprecision(2) << de.x2() 
00063       << "," << std::setw(5) << std::setprecision(2) << de.x3() << ")"
00064       << " type: " << de.type()
00065       << std::hex << std::setfill('0')
00066       << " dword:0x" << std::setw(8)<< word[0]
00067       << " eword:0x" << std::setw(8)<< word[1]
00068       << std::dec << std::setfill(' ')
00069       << " rank:"
00070       << "(" << std::setw(5) << std::setprecision(2) << rankarr[0] 
00071       << "," << std::setw(5) << std::setprecision(2) << rankarr[1] << ")";
00072     return s;
00073 }


Generated on Tue Jun 9 17:52:11 2009 for CMSSW by  doxygen 1.5.4