8#include <mdst/dataobjects/KlId.h>
9#include <mdst/dataobjects/ECLCluster.h>
10#include <mdst/dataobjects/KLMCluster.h>
11#include <framework/datastore/StoreArray.h>
12#include <gtest/gtest.h>
48 EXPECT_FALSE(klid->
isECL());
49 EXPECT_FALSE(klid->
isKLM());
50 EXPECT_TRUE(std::isnan(klid->
getKlId()));
55 EXPECT_TRUE(klid->
isECL());
56 EXPECT_TRUE(klid->
isKLM());
57 EXPECT_EQ(0.5, klid->
getKlId());
static DataStore & Instance()
Instance of singleton Store.
void setInitializeActive(bool active)
Setter for m_initializeActive.
Test class for the KlId object.
Klong identifcation (KlId) datastore object to store results from KlId calculations.
double getKlId() const
get the klong classifier output
bool isECL() const
is this ID originally a ECL Cluster ?
bool isKLM() const
is this ID originally a KLM Cluster ?
void addRelationTo(const RelationsInterface< BASE > *object, float weight=1.0, const std::string &namedRelation="") const
Add a relation from this object to another object (with caching).
bool registerInDataStore(DataStore::EStoreFlags storeFlags=DataStore::c_WriteOut)
Register the object/array in the DataStore.
Accessor to arrays stored in the data store.
T * appendNew()
Construct a new T object at the end of the array.
bool registerRelationTo(const StoreArray< TO > &toArray, DataStore::EDurability durability=DataStore::c_Event, DataStore::EStoreFlags storeFlags=DataStore::c_WriteOut, const std::string &namedRelation="") const
Register a relation to the given StoreArray.
Abstract base class for different kinds of events.