00001 #ifndef HtrXmlPatternTool_h_included 00002 #define HtrXmlPatternTool_h_included 1 00003 00004 #include "DataFormats/HcalDetId/interface/HcalElectronicsId.h" 00005 #include "HtrXmlPatternSet.h" 00006 #include "HtrXmlPatternToolParameters.h" 00007 #include "HtrXmlPatternWriter.h" 00008 00009 class HtrXmlPatternTool { 00010 public: 00011 HtrXmlPatternTool(HtrXmlPatternToolParameters* m_params); 00012 ~HtrXmlPatternTool(); 00013 void Fill(const HcalElectronicsId HEID,HBHEDigiCollection::const_iterator data); 00014 void Fill(const HcalElectronicsId HEID,HFDigiCollection::const_iterator data); 00015 void Fill(const HcalElectronicsId HEID,HODigiCollection::const_iterator data); 00016 void prepareDirs(); 00017 void createHists(); 00018 void writeXML(); 00019 HtrXmlPatternSet* GetPatternSet() {return m_patternSet;} 00020 private: 00021 HtrXmlPatternSet* m_patternSet; 00022 HtrXmlPatternToolParameters* m_params; 00023 HtrXmlPatternWriter m_xmlWriter; 00024 }; 00025 00026 #endif