CMS 3D CMS Logo

DCSFlagTxt.cc File Reference

#include <ostream>
#include "CalibTracker/SiStripRunSummary/interface/ClassID.h"
#include "CalibTracker/SiStripRunSummary/interface/TECFlagTxt.h"
#include "CalibTracker/SiStripRunSummary/interface/TIBFlagTxt.h"
#include "CalibTracker/SiStripRunSummary/interface/TIDFlagTxt.h"
#include "CalibTracker/SiStripRunSummary/interface/TOBFlagTxt.h"
#include "CalibTracker/SiStripRunSummary/interface/DCSFlagTxt.h"
#include "CalibTracker/SiStripRunSummary/interface/DCSFlagXML.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &roOut, const DCSFlagTxt &roFLAG)
 Make flag printable.


Function Documentation

std::ostream& operator<< ( std::ostream &  roOut,
const DCSFlagTxt roFLAG 
)

Make flag printable.

Flag output format is defined by:

std::ostream &operator <<( std::ostream &roOut, const Flag &roFLAG);

Parameters:
roOut Output stream where flag should be written
roFLAG Flag to be written
Returns:
Reference to output stream.

Definition at line 43 of file DCSFlagTxt.cc.

References lat::endl(), and FlagTxt::getChild().

00043                                                             {
00044 
00045   // Print DCS info: use Flag operator <<
00046   roOut << dynamic_cast<const Flag &>( roFLAG);
00047 
00048   // Try TEC Child
00049   if( TECFlagTxt *poTECFlagTxt = 
00050         dynamic_cast<TECFlagTxt *>( roFLAG.getChild<TECFlagTxt>()) ) {
00051 
00052     roOut << std::endl << *poTECFlagTxt;
00053   }
00054         
00055   // Try TIB Child
00056   if( TIBFlagTxt *poTIBFlagTxt = 
00057         dynamic_cast<TIBFlagTxt *>( roFLAG.getChild<TIBFlagTxt>()) ) {
00058 
00059     roOut << std::endl << *poTIBFlagTxt;
00060   }
00061 
00062   // Try TID Child
00063   if( TIDFlagTxt *poTIDFlagTxt = 
00064         dynamic_cast<TIDFlagTxt *>( roFLAG.getChild<TIDFlagTxt>()) ) {
00065 
00066     roOut << std::endl << *poTIDFlagTxt;
00067   }
00068 
00069   // Try TOB Child
00070   if( TOBFlagTxt *poTOBFlagTxt = 
00071         dynamic_cast<TOBFlagTxt *>( roFLAG.getChild<TOBFlagTxt>()) ) {
00072 
00073     roOut << std::endl << *poTOBFlagTxt;
00074   }
00075 
00076   return roOut;
00077 }


Generated on Tue Jun 9 17:51:16 2009 for CMSSW by  doxygen 1.5.4