#include <ostream>
#include "CalibTracker/SiStripRunSummary/interface/ClassID.h"
#include "CalibTracker/SiStripRunSummary/interface/DAQFlagTxt.h"
#include "CalibTracker/SiStripRunSummary/interface/DCSFlagTxt.h"
#include "CalibTracker/SiStripRunSummary/interface/DQMFlagTxt.h"
#include "CalibTracker/SiStripRunSummary/interface/TriggerFlagTxt.h"
#include "CalibTracker/SiStripRunSummary/interface/GlobalFlagTxt.h"
#include "CalibTracker/SiStripRunSummary/interface/GlobalFlagXML.h"
Go to the source code of this file.
Functions | |
std::ostream & | operator<< (std::ostream &roOut, const GlobalFlagTxt &roFLAG) |
Make flag printable. |
std::ostream& operator<< | ( | std::ostream & | roOut, | |
const GlobalFlagTxt & | roFLAG | |||
) |
Make flag printable.
Flag output format is defined by:
std::ostream &operator <<( std::ostream &roOut, const Flag &roFLAG);
roOut | Output stream where flag should be written | |
roFLAG | Flag to be written |
Definition at line 43 of file GlobalFlagTxt.cc.
References lat::endl(), and FlagTxt::getChild().
00043 { 00044 00045 // Print Global info: use Flag operator << 00046 roOut << dynamic_cast<const Flag &>( roFLAG); 00047 00048 // Try DAQ Child 00049 if( DAQFlagTxt *poDAQFlagTxt = 00050 dynamic_cast<DAQFlagTxt *>( roFLAG.getChild<DAQFlagTxt>()) ) { 00051 00052 roOut << std::endl << *poDAQFlagTxt; 00053 } 00054 00055 // Try DCS Child 00056 if( DCSFlagTxt *poDCSFlagTxt = 00057 dynamic_cast<DCSFlagTxt *>( roFLAG.getChild<DCSFlagTxt>()) ) { 00058 00059 roOut << std::endl << *poDCSFlagTxt; 00060 } 00061 00062 // Try DQM Child 00063 if( DQMFlagTxt *poDQMFlagTxt = 00064 dynamic_cast<DQMFlagTxt *>( roFLAG.getChild<DQMFlagTxt>()) ) { 00065 00066 roOut << std::endl << *poDQMFlagTxt; 00067 } 00068 00069 // Try Trigger Child 00070 if( TriggerFlagTxt *poTriggerFlagTxt = 00071 dynamic_cast<TriggerFlagTxt *>( roFLAG.getChild<TriggerFlagTxt>()) ) { 00072 00073 roOut << std::endl << *poTriggerFlagTxt; 00074 } 00075 00076 return roOut; 00077 }