CMS 3D CMS Logo

DQMFlagXML.h File Reference

#include <iosfwd>
#include <boost/serialization/nvp.hpp>
#include <boost/serialization/export.hpp>
#include <boost/serialization/version.hpp>
#include "CalibTracker/SiStripRunSummary/interface/FlagXML.h"
#include "CalibTracker/SiStripRunSummary/interface/ClassIDBase.h"

Go to the source code of this file.

Classes

class  DQMFlagXML
 XML format flag. More...

Functions

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


Function Documentation

std::ostream& operator<< ( std::ostream &  roOut,
const DQMFlagXML 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 DQMFlagXML.cc.

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

00043                                                             {
00044 
00045   // Print DQM info: use Flag operator <<
00046   roOut << dynamic_cast<const Flag &>( roFLAG);
00047 
00048   // Try TEC Child
00049   if( TECFlagXML *poTECFlagXML = dynamic_cast<TECFlagXML *>( roFLAG.getChild<TECFlagXML>())) {
00050     roOut << std::endl << *poTECFlagXML;
00051   }
00052         
00053   // Try TIB Child
00054   if( TIBFlagXML *poTIBFlagXML = dynamic_cast<TIBFlagXML *>( roFLAG.getChild<TIBFlagXML>())) {
00055     roOut << std::endl << *poTIBFlagXML;
00056   }
00057 
00058   // Try TID Child
00059   if( TIDFlagXML *poTIDFlagXML = dynamic_cast<TIDFlagXML *>( roFLAG.getChild<TIDFlagXML>())) {
00060     roOut << std::endl << *poTIDFlagXML;
00061   }
00062 
00063   // Try TOB Child
00064   if( TOBFlagXML *poTOBFlagXML = dynamic_cast<TOBFlagXML *>( roFLAG.getChild<TOBFlagXML>())) {
00065     roOut << std::endl << *poTOBFlagXML;
00066   }
00067 
00068   return roOut;
00069 }


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