23 #include <TClonesArray.h>
24 #include <TEveBoxSet.h>
25 #include <TEveManager.h>
40 , fDataSource(dataSource)
46 , fDataSource(nullptr)
51 LOG(debug) <<
"FairBoxSetDraw::Init()";
58 LOG(error) <<
"FairBoxSetDraw::Init() branch " << GetName() <<
" Not found! Task will be deactivated ";
85 bool checkTime = tmin < tmax;
92 if (time + fTimeWindowMinus < tmin || time - fTimeWindowPlus > tmax) {
100 gEve->Redraw3D(kFALSE);
107 set->AddBox(point.X(), point.Y(), point.Z());
109 LOG(debug2) <<
"FairBoxSetDraw::Init() Add point " << i <<
": " << point.X() <<
" " << point.Y() <<
" " << point.Z()
118 aBoxSet->Reset(FairBoxSet::kBT_AABoxFixedDim, kFALSE, 64);
119 aBoxSet->SetDefWidth(
fX);
120 aBoxSet->SetDefHeight(
fY);
121 aBoxSet->SetDefDepth(
fZ);
FairEventManager * fEventManager
virtual void Exec(Option_t *option)
virtual InitStatus Init()
virtual Int_t GetValue(TObject *obj, Int_t i)
virtual ~FairBoxSetDraw()
Float_t GetEvtTime()
current time in ns to display in the event display. Either set value or event time taken from FairRoo...
virtual void RetrieveData(double time)
FairDataSourceI * fDataSource
ClassImp(FairEventBuilder)
Handles a TClonesArray as input object. No timebased operations are done and the TClonesArray is hand...
virtual TVector3 GetVector(TObject *obj)=0
virtual void SetParContainers()
virtual double GetTime(int index)
virtual TObject * GetData(int index)=0
void GetTimeLimits(Double_t &min, Double_t &max)
FairBoxSet * CreateBoxSet()
Abstract interface class to handle different input data for event and timebased data.
virtual void SetTimeWindowMinus(Double_t val)
virtual void AddBoxes(FairBoxSet *set, TObject *obj, Int_t i=0)
static FairEventManager * Instance()
Double_t fTimeWindowMinus
virtual InitStatus Init()
virtual void SetTimeWindowPlus(Double_t val)