00001 /** 00002 * \file AngleTripletScore.h 00003 * \brief A Score on the angle between three particles. 00004 * 00005 * Copyright 2007-2010 IMP Inventors. All rights reserved. 00006 */ 00007 00008 #ifndef IMPCORE_ANGLE_TRIPLET_SCORE_H 00009 #define IMPCORE_ANGLE_TRIPLET_SCORE_H 00010 00011 #include "core_config.h" 00012 #include <IMP/TripletScore.h> 00013 #include <IMP/UnaryFunction.h> 00014 #include <IMP/Pointer.h> 00015 00016 IMPCORE_BEGIN_NAMESPACE 00017 00018 //! Apply a function to the angle between three particles. 00019 /** */ 00020 class IMPCOREEXPORT AngleTripletScore : public TripletScore 00021 { 00022 IMP::internal::OwnerPointer<UnaryFunction> f_; 00023 public: 00024 //! Score the angle (in radians) using f 00025 AngleTripletScore(UnaryFunction *f); 00026 IMP_SIMPLE_TRIPLET_SCORE(AngleTripletScore); 00027 }; 00028 00029 IMPCORE_END_NAMESPACE 00030 00031 #endif /* IMPCORE_ANGLE_TRIPLET_SCORE_H */