19 #include <TClonesArray.h>
20 #include <TEveManager.h>
21 #include <TEvePointSet.h>
22 #include <TEveTreeTools.h>
56 , fDataSource(dataSource)
61 LOG(info) <<
"FairPointSetDraw::Init()";
64 if (fDataSource ==
nullptr) {
68 LOG(error) <<
"FairPointSetDraw::Init() branch " << GetName() <<
" not found!";
78 Double_t timeOffset = 0.0;
84 Int_t npoints = fDataSource->
GetNData();
86 TEvePointSet* q =
new TEvePointSet(GetName(), npoints, TEvePointSelectorConsumer::kTVT_XYZ);
89 q->SetMarkerSize(1.5);
93 bool checkTime = tmin < tmax;
95 for (Int_t i = 0; i < npoints; ++i) {
99 double time = fDataSource->
GetTime(i);
104 if (time < tmin || time > tmax) {
109 q->SetNextPoint(vec.X(), vec.Y(), vec.Z());
113 gEve->Redraw3D(kFALSE);
virtual InitStatus Init()
virtual void RetrieveData(double time)
ClassImp(FairEventBuilder)
Handles a TClonesArray as input object. No timebased operations are done and the TClonesArray is hand...
virtual InitStatus Init()
virtual double GetTime(int index)
virtual TObject * GetData(int index)=0
void GetTimeLimits(Double_t &min, Double_t &max)
Abstract interface class to handle different input data for event and timebased data.
static FairEventManager * Instance()
virtual ~FairPointSetDraw()
virtual void SetParContainers()
virtual TVector3 GetVector(TObject *obj)=0
virtual void Exec(Option_t *option)