7#include "FairRootManager.h"
10#include "TEveManager.h"
11#include "TEveTreeTools.h"
19: FairTask(
"MpdPointSetDraw", 0),
30: FairTask(name, iVerbose),
46 if (
fVerbose > 0) cout<<
"MpdPointSetDraw::Init()"<<endl;
48 FairRootManager* fManager = FairRootManager::Instance();
50 fPointList = (TClonesArray*) fManager->GetObject(GetName());
53 LOG(error)<<
"MpdPointSetDraw::Init() branch "<<GetName()<<
" not found! Task will be deactivated";
59 if (
fVerbose > 1) cout<<
"MpdPointSetDraw::Init() get instance of MpdEventManager"<<endl;
68 if (
fVerbose > 0) cout<<
"MpdPointSetDraw::Exec()"<<endl;
75 if (
fVerbose > 0) cout<<
"MpdPointSetDraw::Exec() the number of points is "<<
fPointList->GetEntries()<<endl;
77 TEvePointSet* q =
new TEvePointSet(GetName(), npoints, TEvePointSelectorConsumer::kTVT_XYZ);
80 q->SetMarkerSize(1.5);
83 for (Int_t
i = 0;
i < npoints;
i++)
89 q->SetNextPoint(vec.X(), vec.Y(), vec.Z());
91 if (
fVerbose > 2) cout<<
"MpdPointSetDraw::Exec() add point to EVE set: "<<
i<<endl;
93 else cout<<
"CRITICAL ERROR: MpdPointSetDraw::Exec() point is not TObject"<<endl;
105 return new TNamed(Form(
"Point %d",
i),
"");
static MpdEventManager * Instance()
virtual TVector3 GetVector(TObject *obj)=0
TClonesArray * fPointList
virtual void RemoveEveElementList()=0
virtual void Exec(Option_t *option)
virtual InitStatus Init()
virtual void AddEveElementList()=0
virtual TObject * GetValue(TObject *obj, Int_t i)
virtual ~MpdPointSetDraw()
virtual void SetParContainers()
MpdEventManager * fEventManager