00001 /* 00002 * \class GenPruneTool 00003 * 00004 * \brief Prune away redundant GenEvent data 00005 * 00006 * Zhe Wang Apr. 10, 2010 00007 * 00008 */ 00009 00010 #ifndef _GEN_PRUNE_TOOL_H_ 00011 #define _GEN_PRUNE_TOOL_H_ 00012 00013 #include "DybTool/IGenPruneTool.h" 00014 #include "GaudiAlg/GaudiTool.h" 00015 00016 class GenPruneTool : public GaudiTool , 00017 virtual public IGenPruneTool 00018 { 00019 public: 00020 00021 GenPruneTool(const std::string& type, 00022 const std::string& name, 00023 const IInterface* parent); 00024 00025 virtual ~GenPruneTool(); 00026 00027 StatusCode prune(DayaBay::GenHeader* genHeader); 00028 00029 StatusCode setMaxVertices(int MaxVertices) { 00030 m_maxVertices = MaxVertices; 00031 return StatusCode::SUCCESS; 00032 } 00033 00034 // Tool interface 00035 virtual StatusCode initialize(); 00036 virtual StatusCode finalize(); 00037 00038 private: 00046 00047 int m_maxVertices; 00048 00049 }; 00050 00051 00052 #endif /* _GEN_PRUNE_TOOL_H_ */