CbmRoot
_GTestCbmEvent.cxx File Reference
#include "CbmEvent.h"
#include "CbmDefs.h"
#include "CbmMatch.h"
#include "CbmVertex.h"
#include <TMatrixTSym.h>
#include <gtest/gtest-spi.h>
#include <gtest/gtest.h>
#include <vector>
#include "compareVertex.h"
Include dependency graph for _GTestCbmEvent.cxx:

Go to the source code of this file.

Functions

void compareEventDataMembers (CbmEvent &test, Int_t evnumber, Double_t starttime, Double_t endtime, Int_t numobjects, CbmMatch *match, CbmVertex *vertex)
 
void compareEventMap (CbmEvent &test, Int_t numobjects, Int_t numobjectstype, ECbmDataType type, std::vector< UInt_t > indices)
 
 TEST (_GTestCbmEvent, CheckDefaultConstructor)
 
 TEST (_GTestCbmEvent, CheckStandardConstructor)
 
 TEST (_GTestCbmEvent, CheckSettersAndGetters)
 
 TEST (_GTestCbmEvent, CheckAddData)
 
 TEST (_GTestCbmEvent, CheckSetVertex)
 

Function Documentation

◆ compareEventDataMembers()

void compareEventDataMembers ( CbmEvent test,
Int_t  evnumber,
Double_t  starttime,
Double_t  endtime,
Int_t  numobjects,
CbmMatch match,
CbmVertex vertex 
)

◆ compareEventMap()

void compareEventMap ( CbmEvent test,
Int_t  numobjects,
Int_t  numobjectstype,
ECbmDataType  type,
std::vector< UInt_t >  indices 
)

Definition at line 61 of file _GTestCbmEvent.cxx.

References CbmEvent::GetIndex(), CbmEvent::GetNofData(), and i.

Referenced by TEST().

◆ TEST() [1/5]

TEST ( _GTestCbmEvent  ,
CheckAddData   
)

◆ TEST() [2/5]

TEST ( _GTestCbmEvent  ,
CheckDefaultConstructor   
)

Definition at line 84 of file _GTestCbmEvent.cxx.

◆ TEST() [3/5]

TEST ( _GTestCbmEvent  ,
CheckSettersAndGetters   
)

Definition at line 98 of file _GTestCbmEvent.cxx.

References compareEventDataMembers().

◆ TEST() [4/5]

TEST ( _GTestCbmEvent  ,
CheckSetVertex   
)

Definition at line 287 of file _GTestCbmEvent.cxx.

References compareEventDataMembers(), and CbmEvent::SetVertex().

◆ TEST() [5/5]

TEST ( _GTestCbmEvent  ,
CheckStandardConstructor   
)

Definition at line 89 of file _GTestCbmEvent.cxx.

References compareEventDataMembers().