00001 #ifndef HtrXmlPatternWriter_h_included 00002 #define HtrXmlPatternWriter_h_included 1 00003 00004 #include "HtrXmlPatternSet.h" 00005 #include <ostream> 00006 00007 class HtrXmlPatternWriter { 00008 public: 00009 HtrXmlPatternWriter(); 00010 void setTagName(std::string tn) { m_tagName=tn; } 00011 void writePattern(HalfHtrData* spigotData, int fiber, std::ostream& os, int level=0); 00012 private: 00013 void packWordsStd(int adc0, int adc1, int adc2, int capid, unsigned int& w1, unsigned int& w2); 00014 std::string m_tagName, m_stamp; 00015 }; 00016 00017 #endif