//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Criterion information during track matching // // // Environment: // Software developed for the PANDA Detector at FAIR. // // Author List: // Felix Boehmer TUM (original author) // // //----------------------------------------------------------- #ifndef MATCHINGCRITERION_HH #define MATCHINGCRITERION_HH #include #include "TString.h" #include "TObject.h" class MatchingCriterion : public TObject { public: MatchingCriterion(); MatchingCriterion(const TString& name, double val); virtual ~MatchingCriterion() {;} //Beware: there is no check of cLow actually IS smaller than cHigh! void setCuts(double cLow, double cHigh) {fCutL=cLow; fCutH=cHigh;} double getValue() const {return fCriterion;} TString getName() const {return fName;} //In case you wonder: I want to save the storage space of adding another boolean flag to //the members, hence the dynamic evaluation bool isConstrained() const; //return true if cuts were set std::pair getCuts() const; private: double fCriterion; TString fName; double fCutL, fCutH; public: ClassDef(MatchingCriterion,1) }; #endif