00001 // SimpleConstituentUserInfo.h 00002 00003 #ifndef jet__SimpleConstituentUserInfo_H 00004 #define jet__SimpleConstituentUserInfo_H 00005 00006 // David Adams 00007 // January 2014 00008 // 00009 // Implementation of IConstituentUserInfo without indexing. 00010 00011 #include "JetEDM/IConstituentUserInfo.h" 00012 00013 namespace jet { 00014 00015 class SimpleConstituentUserInfo : public IConstituentUserInfo { 00016 00017 public: 00018 00019 // Default ctor. 00020 // Sets the particle null. 00021 SimpleConstituentUserInfo(); 00022 00023 // Ctor from IParticle and label. 00024 SimpleConstituentUserInfo(const xAOD::IParticle& par, std::string label); 00025 00026 // Return the particle pointer. 00027 const xAOD::IParticle* particle() const; 00028 00029 // Return the label. 00030 Label label() const; 00031 00032 private: 00033 00034 const xAOD::IParticle* m_ppar; 00035 Label m_label; 00036 00037 }; 00038 00039 } // end namespace jet 00040 00041 #endif