8 #include <mdst/dataobjects/V0.h>
9 #include <mdst/dataobjects/TrackFitResult.h>
10 #include <mdst/dataobjects/Track.h>
12 #include <framework/datastore/StoreArray.h>
16 #include <gtest/gtest.h>
27 class V0Test :
public ::testing::Test {
32 DataStore::Instance().setInitializeActive(
true);
34 tracks.registerInDataStore();
37 DataStore::Instance().setInitializeActive(
false);
43 DataStore::Instance().reset();
47 short m_default_index = -1;
66 EXPECT_ANY_THROW(std::get<0>(myV0.
getTracks()));
67 EXPECT_ANY_THROW(std::get<1>(myV0.
getTracks()));
bool registerInDataStore(DataStore::EStoreFlags storeFlags=DataStore::c_WriteOut)
Register the object/array in the DataStore.
Accessor to arrays stored in the data store.
Set up a few arrays and objects in the datastore.
virtual void TearDown()
clear datastore
virtual void SetUp()
register Particle array
Object holding information for V0s.
std::pair< TrackFitResult *, TrackFitResult * > getTrackFitResults() const
Get pair of the TrackFitResults, that are part of the V0 particle.
std::pair< Track *, Track * > getTracks() const
Get pair of yhe Tracks, that are part of the V0 particle.
std::pair< short, short > getTrackIndices() const
Get indices of the Tracks, that are part of the V0 particle.
std::pair< short, short > getTrackFitResultIndices() const
Get indices of the TrackFitResults, that are part of the V0 particle.
TEST_F(V0Test, PointerGetters)
Test Pointer Getter.
Abstract base class for different kinds of events.