00001 #include "Event/SimTrigCommand.h" 00002 #include "Conventions/Trigger.h" 00003 00004 bool DayaBay::SimTrigCommand::LessThan(DayaBay::SimTrigCommand* d1, 00005 DayaBay::SimTrigCommand* d2) 00006 { 00007 return d1->m_clockCycle < d2->m_clockCycle; 00008 } 00009 00010 std::ostream& DayaBay::SimTrigCommand::fillStream(std::ostream& s) const 00011 { 00012 s << std::endl << "{ "; 00013 s << "trigCommand : " << std::endl; 00014 s << "Detector: " << m_detector.detName() << std::endl; 00015 s << "Type: " << DayaBay::Trigger::AsString(m_type) << std::endl; 00016 s << "ClockCycle: " << m_clockCycle << std::endl; 00017 s << "nhit: " << m_nhit << std::endl; 00018 s << "esum: " << m_esumAdc << std::endl; 00019 s << "esumComp: " << m_esumComp << std::endl; 00020 s << std::endl; 00021 s << " }"; 00022 return s; 00023 }