10#include "TEveManager.h"
17 : FairTask(
"MpdBoxSetDraw", 0),
38 : FairTask(name, iVerbose),
64 if (
fVerbose > 1) cout<<
"MpdBoxSetDraw::Init()"<<endl;
66 fManager = FairRootManager::Instance();
68 fList = (TClonesArray*) FairRootManager::Instance()->GetObject(GetName());
71 cout<<
"MpdBoxSetDraw::Init() branch "<<GetName()<<
" not found! Task will be deactivated"<<endl;
75 if (
fVerbose > 2) cout<<
"MpdBoxSetDraw::Init() get track list "<<
fList<<endl;
78 if (
fVerbose > 2) cout<<
"MpdBoxSetDraw::Init() get instance of MpdEventManager"<<endl;
81 fStartFunctor =
new StopTime();
82 fStopFunctor =
new StopTime();
95 if (FairRunAna::Instance()->IsTimeStamp())
98 Double_t eventTime =
fManager->GetEventTime();
105 if (
fVerbose > 1) cout<<GetName()<<
" fList: "<<
fList->GetEntries()<<endl;
107 for (Int_t
i = 0;
i <
fList->GetEntriesFast();
i++)
109 TObject* p =
fList->At(
i);
120 set->AddBox(point.X(), point.Y(), point.Z());
122 if (
fVerbose > 2) cout<<
"MpdBoxSetDraw::Init() Add point "<<
i<<
": "<<point.X()<<
" "<<point.Y()<<
" "<<point.Z()<<
" "<<endl;
134 aBoxSet->Reset(MpdBoxSet::kBT_AABoxFixedDim, kFALSE, 64);
135 aBoxSet->SetDefWidth(
fX);
136 aBoxSet->SetDefHeight(
fY);
137 aBoxSet->SetDefDepth(
fZ);
virtual TVector3 GetVector(TObject *obj)=0
virtual void SetParContainers()
Double_t fTimeWindowMinus
FairRootManager * fManager
virtual void Exec(Option_t *option)
virtual void AddBoxes(MpdBoxSet *set, TObject *obj, Int_t i=0)
MpdBoxSet * CreateBoxSet()
virtual Int_t GetValue(TObject *obj, Int_t i)
MpdEventManager * fEventManager
virtual InitStatus Init()
static MpdEventManager * Instance()