5#ifndef SHIPDATA_VECTORMCPOINTSOURCE_H_
6#define SHIPDATA_VECTORMCPOINTSOURCE_H_
8#include "FairDataSourceI.h"
9#include "FairRootManager.h"
17template <
typename Po
intType>
22 : FairDataSourceI(branchName) {}
24 InitStatus
Init()
override {
25 fVec = FairRootManager::Instance()
26 ->InitObjectAs<
const std::vector<PointType>*>(
27 GetBranchName().Data());
37 return const_cast<PointType*
>(&(*fVec)[index]);
40 double GetTime(
int index)
override {
return (*
fVec)[index].GetTime(); }
45 const std::vector<PointType>*
fVec =
nullptr;
VectorMCPointSource()=default
TObject * GetData(int index) override
const std::vector< PointType > * fVec
VectorMCPointSource(TString branchName)
InitStatus Init() override
double GetTime(int index) override