00001
00002
00003 #ifndef JetConstituentsRetriever_H
00004 #define JetConstituentsRetriever_H
00005
00018
00019 #include "AsgTools/AsgTool.h"
00020 #include "JetInterface/IJetConstituentsRetriever.h"
00021 #include "JetInterface/IJetPseudojetRetriever.h"
00022 #include "AsgTools/ToolHandle.h"
00023
00024 class JetConstituentsRetriever
00025 : virtual public asg::AsgTool,
00026 virtual public IJetConstituentsRetriever {
00027 ASG_TOOL_CLASS(JetConstituentsRetriever, IJetConstituentsRetriever)
00028
00029 public:
00030
00031
00032 JetConstituentsRetriever(std::string name);
00033
00034
00035 StatusCode initialize();
00036
00038 int constituents(const xAOD::Jet& jet, PseudoJetVector& cons,
00039 NameList* pghostlabs =nullptr) const;
00040
00041
00042 void print() const;
00043
00044 private:
00045
00046 bool m_usepj;
00047 bool m_usejetcons;
00048 ToolHandle<IJetPseudojetRetriever> m_hpjr;
00049 NameList m_glabs;
00050 double m_gscale;
00051
00052 };
00053
00054 #endif