CMS 3D CMS Logo

CSCTFTBFrontBlock.cc File Reference

#include <iostream>
#include <vector>
#include <string.h>
#include "EventFilter/CSCTFRawToDigi/src/CSCTFTBEventHeader.h"
#include "EventFilter/CSCTFRawToDigi/src/CSCTFTBFrontBlock.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &stream, const CSCTFTBFrontBlock &bx)

Variables

static const char *const kIdString = "$Id: CSCTFTBFrontBlock.cc,v 1.1 2007/04/26 23:39:19 kkotov Exp $"
static const char *const kTagString = "$Name: V02-15-07 $"


Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const CSCTFTBFrontBlock bx 
)

pretty-print

Definition at line 246 of file CSCTFTBFrontBlock.cc.

References CSCTFTBFrontBlock::frontData(), CSCTFTBFrontBlock::frontDigiData(), CSCTFTBFrontBlock::frontHeader(), i, j, CSCTFTBFrontBlock::size(), sr, and CSCTFTBFrontHeader::validPattern().

00247 {
00248   std::vector<std::vector<CSCTFTBFrontData> > sr = bx.frontData();
00249   stream << bx.frontHeader();
00250   if(bx.frontHeader().validPattern())
00251     stream << "\tFront Event Data (Track Stubs):\n";
00252   for(unsigned i = 1; i <= sr.size(); ++i)
00253     {
00254       if(sr[i-1].size()) stream<<"\tFPGA: "<<i<<'\n';
00255       for (unsigned j = 1;j <= sr[i-1].size();j++)
00256         {
00257           stream<<"\t Link: "<<j<<' '<<std::dec
00258                 <<" CSCID: " << bx.frontData(i,j).CSCIDPacked() << ' '
00259                 << bx.frontDigiData(i,j);
00260         }
00261     }
00262   return stream;
00263 }


Variable Documentation

const char* const kIdString = "$Id: CSCTFTBFrontBlock.cc,v 1.1 2007/04/26 23:39:19 kkotov Exp $" [static]

Definition at line 114 of file CSCTFTBFrontBlock.cc.

const char* const kTagString = "$Name: V02-15-07 $" [static]

Definition at line 115 of file CSCTFTBFrontBlock.cc.


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