00001 #ifndef COPYTRUTHPARTICLES_H 00002 #define COPYTRUTHPARTICLES_H 00003 00004 #include "AsgTools/AsgTool.h" 00005 #include "JetInterface/IJetExecuteTool.h" 00006 #include "xAODTruth/TruthParticle.h" 00007 00008 00009 // Do I need IAsgTool? I need AsgTool for the eventStore() 00010 class CopyTruthParticles : public IJetExecuteTool, public asg::AsgTool { 00011 ASG_TOOL_INTERFACE(CopyTruthParticles) 00012 ASG_TOOL_CLASS(CopyTruthParticles, IJetExecuteTool) 00013 public: 00014 00016 CopyTruthParticles(const std::string& name); 00017 00019 00020 virtual int execute() const; 00022 00024 virtual bool classify(const xAOD::TruthParticle* tp) const = 0; 00025 00026 00027 protected: 00028 00030 std::string m_outputname; 00031 00033 double m_ptmin; 00034 00035 }; 00036 00037 00038 #endif