| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

SimTrigCommandHeader.cc

Go to the documentation of this file.
00001 #include "Event/SimTrigCommandHeader.h"
00002 
00003 void DayaBay::SimTrigCommandHeader::addCommand(DayaBay::SimTrigCommand* tc){
00004   DayaBay::Detector det(tc->detector());
00005   m_collections[det]->addCommand(tc);
00006 }
00007 
00008 void DayaBay::SimTrigCommandHeader::addCollection(DayaBay::SimTrigCommandCollection* tcc){
00009   DayaBay::Detector det(tcc->detector());
00010   delete m_collections[det];
00011   m_collections[det]=tcc;
00012 }
00013 
00014 std::ostream& DayaBay::SimTrigCommandHeader::fillStream(std::ostream& s) const
00015 {
00016     s << std::endl << "{ ";
00017     s << "trigCommandHeader : ";
00018     s << "\tDetector: " << m_detector.detName() << std::endl;
00019     s << "\tContains " << m_collections.size() 
00020       << " CommandCollections:" << std::endl;
00021     s << "  {" << std::endl;
00022     
00023     DayaBay::SimTrigCommandHeader::detCollMap::const_iterator it;
00024     
00025     for(it = m_collections.begin(); it != m_collections.end(); ++it)
00026     {
00027       s << "{{" << std::endl;
00028       s << "Detector: " << (it->first).detName() << std::endl;
00029       s << *(it->second) << std::endl;
00030       s << "}}" << std::endl;
00031     }
00032     
00033     s << "  }" << std::endl;
00034     s << std::endl;
00035     s << " }";
00036     return s;
00037 }
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:30:57 2011 for SimTrigEvent by doxygen 1.4.7