CMS 3D CMS Logo

CSCTFTBSPBlock.cc File Reference

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

Go to the source code of this file.

Functions

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

Variables

static const char *const kIdString = "$Id: CSCTFTBSPBlock.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 CSCTFTBSPBlock bx 
)

pretty-print

Definition at line 230 of file CSCTFTBSPBlock.cc.

References CSCTFTBSPBlock::dtData(), i, j, CSCTFTBSPBlock::spData(), and CSCTFTBSPBlock::spHeader().

00231 { 
00232   //vector<CSCTFTBSPData> sp = bx.spData();
00233   std::vector<CSCTFTBDTData> dt = bx.dtData();
00234   CSCTFTBSPHeader hdr = bx.spHeader();
00235   stream << hdr;
00236   if(hdr.getTrackMode(1)||hdr.getTrackMode(2)||hdr.getTrackMode(3)
00237      ||hdr.getVPDTBit(1)||hdr.getVPDTBit(2))
00238     stream<<"\tSP Event Data (Tracks and DT Track Stubs):\n";
00239   for(unsigned i=0;i<dt.size();i++)
00240     {
00241       stream<<"\t Link "<< i << dt[i];
00242     }
00243   for(unsigned j=0;j<bx.spData().size();j++)
00244     {
00245       stream<<bx.spData()[j];
00246     }
00247   return stream;
00248 }


Variable Documentation

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

Definition at line 111 of file CSCTFTBSPBlock.cc.

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

Definition at line 112 of file CSCTFTBSPBlock.cc.


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