00001 #include "Event/ElecPulseCollection.h" 00002 #include "Event/ElecPulseHeader.h" 00003 #include "Event/ElecPulse.h" 00004 00005 #include "Conventions/Detectors.h" 00006 00007 #include <ostream> 00008 00009 std::ostream& DayaBay::ElecPulseHeader::fillStream(std::ostream& s) const 00010 { 00011 s << "{ " << "pulse collections : " << std::endl; 00012 00013 PulseCollectionMap::const_iterator it, done = m_pulseCollection.end(); 00014 for (it = m_pulseCollection.begin(); it != done; ++it) { 00015 DayaBay::Detector d(it->first); 00016 00017 s << Site::AsString(d.site()) << "::" << d.detName() 00018 << " collection: " 00019 << std::endl; 00020 it->second->fillStream(s); 00021 } 00022 s << "}"; 00023 return s; 00024 } 00025 00026 void DayaBay::ElecPulseHeader::addPulseCollection(DayaBay::ElecPulseCollection* pc) 00027 { 00028 m_pulseCollection[pc->detector()] = pc; 00029 }