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

In This Package:

SimTrigCommandCollection.cc

Go to the documentation of this file.
00001 #include "Event/SimTrigCommandCollection.h"
00002 #include "Event/SimTrigCommand.h"
00003 #include <algorithm>
00004 
00005 void DayaBay::SimTrigCommandCollection::sort(){ 
00006     std::sort(m_commands.begin(), m_commands.end(), DayaBay::SimTrigCommand::LessThan); 
00007 }
00008 
00009 void DayaBay::SimTrigCommandCollection::addCommand(DayaBay::SimTrigCommand* tc){
00010   m_commands.push_back(tc);
00011 }
00012 
00013 std::ostream& DayaBay::SimTrigCommandCollection::fillStream(std::ostream& s) const
00014 {
00015     s << std::endl << "{ ";
00016     s << "trigCommandCollection : ";
00017     s << " {" << std::endl;
00018     s << " Detector:" <<  m_detector.detName() << std::endl;
00019     s << " Header: " << m_header << std::endl;
00020     s << " Contains: " << m_commands.size() << " commands" << std::endl;
00021     
00022     DayaBay::SimTrigCommandCollection::CommandContainer::const_iterator it;
00023     for( it = m_commands.begin() ; it != m_commands.end() ; ++it )
00024     {
00025       s << "{{{" << std::endl;
00026       s << **it << std::endl;
00027       s << "}}}" << std::endl;
00028     }
00029     
00030     s << " }"<< std::endl;
00031     s << " }";
00032     return s;
00033 }
| 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