16#include <FairEventManager.h>
17#include <FairRootManager.h>
22#include <TClonesArray.h>
23#include <TEveManager.h>
24#include <TEveTreeTools.h>
25#include <TGenericClassInfo.h>
32 : FairTask(
"CbmPointSetArrayDraw", 0)
52 : FairTask(name, iVerbose)
61 , fColorMode(colorMode)
62 , fMarkerMode(markerMode)
69 LOG(debug) <<
"CbmPointSetArrayDraw::Init()";
70 FairRootManager* fManager = FairRootManager::Instance();
71 fPointList =
static_cast<TClonesArray*
>(fManager->GetObject(GetName()));
73 LOG(warn) <<
"CbmPointSetArrayDraw::Init() branch " << GetName() <<
" Not found! Task will be deactivated ";
76 LOG(debug1) <<
"CbmPointSetArrayDraw::Init() get track list" <<
fPointList;
78 LOG(debug1) <<
"CbmPointSetArrayDraw::Init() get instance of FairEventManager ";
94 l->SetSourceCS(TEvePointSelectorConsumer::kTVT_XYZ);
95 l->SetMarkerColor(kRed);
97 l->SetMarkerSize(2.0);
100 l->InitBins(
"Hits", npoints, 0.5, npoints + 0.5);
103 for (Int_t i = 1; i <= npoints; i++) {
104 TObject* p =
static_cast<TObject*
>(
fPointList->At(i - 1));
107 l->Fill(vec.X(), vec.Y(), vec.Z(), i);
119 gEve->Redraw3D(kFALSE);
128 LOG(debug2) <<
"-I- CbmPointSetArrayDraw::GetVector(): " << p->
GetX() <<
" " << p->
GetY() <<
" " << p->
GetZ() <<
" ";
145 Double_t cluSize = p->
GetFlag();
147 cluSize = ((int) cluSize % 100) / 2;
148 LOG(debug3) <<
"-I- CbmPointSetArrayDraw::GetClusterSize(): " << cluSize;
158 LOG(debug3) <<
"-I- CbmPointSetArrayDraw::GetTot(): " << tot;
177 for (Int_t i = 0; i < npoints; i++) {
186 LOG(debug3) << std::setprecision(15) <<
"-I- CbmPointSetArrayDraw::DetermineTimeBins: fTimeOffset " <<
fTimeOffset;
200 fl->RemoveElementsLocal();
ClassImp(CbmPointSetArrayDraw)
static FairEventManager * fEventManager
FairEventManager * fEventManager
virtual InitStatus Init()
TClonesArray * fPointList
virtual void Exec(Option_t *option)
Double_t GetTime(TObject *obj)
void DetermineTimeOffset()
virtual void SetParContainers()
Double_t GetTot(TObject *obj)
Int_t GetClusterSize(TObject *obj)
Int_t GetPointId(TObject *obj)
virtual ~CbmPointSetArrayDraw()
TVector3 GetVector(TObject *obj)
void ApplyTitles()
Apply BBox-Titles to all bins.
void SetMarkerMode(Int_t markerMode)
void SetColorMode(Int_t colorMode)
void FillValues(Int_t id, Double_t time, Double_t tot, Int_t cluSize, Int_t index)
FillQuantities.
void ApplyColorMode()
Apply ColorMode to bins.
void InitValues(Int_t npoints)
Init Arrays for physical Quantities.
void ApplyMarkerMode()
Apply MarkerMode to bins.