Belle II Software development
MuidBuilderTest Class Reference

Test for the MuidBuilder class, using the payloads in the default Global Tag. More...

Inheritance diagram for MuidBuilderTest:

Protected Member Functions

void SetUp () override
 Register the necessary objects in the DataStore and setup the Database.
 
void TearDown () override
 Clear the DataStore and reset the Database.
 

Protected Attributes

KLMMuidLikelihoodm_muid = nullptr
 Pointer to a Muid object.
 
MuidBuilderm_muidBuilder = nullptr
 Pointer to a MuidBuilder class.
 
std::vector< int > m_pdgVectorMinus = MuidElementNumbers::getPDGVector(-1)
 Vector of negative charged hypotheses.
 
std::vector< int > m_pdgVectorPlus = MuidElementNumbers::getPDGVector(1)
 Vector of positive charged hypotheses.
 

Detailed Description

Test for the MuidBuilder class, using the payloads in the default Global Tag.

Definition at line 38 of file MuidBuilderTest.cc.

Member Function Documentation

◆ SetUp()

void SetUp ( )
inlineoverrideprotected

Register the necessary objects in the DataStore and setup the Database.

Definition at line 43 of file MuidBuilderTest.cc.

44 {
45 /* DataStore. */
47 StoreArray<KLMMuidLikelihood> muids;
48 muids.registerInDataStore();
49 StoreObjPtr<EventMetaData> eventMetaData;
50 eventMetaData.registerInDataStore();
52 /* Database. */
53 eventMetaData.construct(1, 0, 0);
54 DBStore& dbStore = DBStore::Instance();
55 dbStore.update();
56 dbStore.updateEvent();
57 }
static DataStore & Instance()
Instance of singleton Store.
Definition: DataStore.cc:54
void setInitializeActive(bool active)
Setter for m_initializeActive.
Definition: DataStore.cc:94
static DBStore & Instance()
Instance of a singleton DBStore.
Definition: DBStore.cc:28

◆ TearDown()

void TearDown ( )
inlineoverrideprotected

Clear the DataStore and reset the Database.

Definition at line 60 of file MuidBuilderTest.cc.

61 {
64 }
void reset(EDurability durability)
Frees memory occupied by data store items and removes all objects from the map.
Definition: DataStore.cc:86
static void reset(bool keepConfig=false)
Reset the database instance.
Definition: Database.cc:50

Member Data Documentation

◆ m_muid

KLMMuidLikelihood* m_muid = nullptr
protected

Pointer to a Muid object.

Definition at line 67 of file MuidBuilderTest.cc.

◆ m_muidBuilder

MuidBuilder* m_muidBuilder = nullptr
protected

Pointer to a MuidBuilder class.

Definition at line 70 of file MuidBuilderTest.cc.

◆ m_pdgVectorMinus

std::vector<int> m_pdgVectorMinus = MuidElementNumbers::getPDGVector(-1)
protected

Vector of negative charged hypotheses.

Definition at line 73 of file MuidBuilderTest.cc.

◆ m_pdgVectorPlus

std::vector<int> m_pdgVectorPlus = MuidElementNumbers::getPDGVector(1)
protected

Vector of positive charged hypotheses.

Definition at line 76 of file MuidBuilderTest.cc.


The documentation for this class was generated from the following file: