10 #include "CbmTofHit.h"
12 #include <FairEventManager.h>
13 #include <FairLogger.h>
14 #include <FairRootManager.h>
18 #include <TClonesArray.h>
19 #include <TEveManager.h>
20 #include <TEveTreeTools.h>
21 #include <TGenericClassInfo.h>
28 : FairTask(
"CbmPointSetArrayDraw", 0)
31 , fEventManager(nullptr)
49 : FairTask(name, iVerbose)
52 , fEventManager(nullptr)
58 , fColorMode(colorMode)
59 , fMarkerMode(markerMode)
63 LOG(debug) <<
"CbmPointSetArrayDraw::Init()";
64 FairRootManager* fManager = FairRootManager::Instance();
65 fPointList =
static_cast<TClonesArray*
>(fManager->GetObject(GetName()));
67 LOG(warn) <<
"CbmPointSetArrayDraw::Init() branch " << GetName()
68 <<
" Not found! Task will be deactivated ";
71 LOG(debug1) <<
"CbmPointSetArrayDraw::Init() get track list" <<
fPointList;
74 <<
"CbmPointSetArrayDraw::Init() get instance of FairEventManager ";
89 l->SetSourceCS(TEvePointSelectorConsumer::kTVT_XYZ);
90 l->SetMarkerColor(kRed);
92 l->SetMarkerSize(2.0);
95 l->InitBins(
"Hits", npoints, 0.5, npoints + 0.5);
98 for (Int_t
i = 1;
i <= npoints;
i++) {
99 TObject* p =
static_cast<TObject*
>(
fPointList->At(
i - 1));
102 l->Fill(vec.X(), vec.Y(), vec.Z(),
i);
118 gEve->Redraw3D(kFALSE);
126 LOG(debug2) <<
"-I- CbmPointSetArrayDraw::GetVector(): " << p->
GetX() <<
" "
127 << p->
GetY() <<
" " << p->
GetZ() <<
" ";
134 LOG(debug2) <<
"-I- CbmPointSetArrayDraw::GetTime(): "
143 Double_t cluSize = p->
GetFlag();
146 cluSize = (cluSize - 100) / 2;
150 LOG(debug3) <<
"-I- CbmPointSetArrayDraw::GetClusterSize(): " << cluSize;
159 LOG(debug3) <<
"-I- CbmPointSetArrayDraw::GetTot(): " << tot;
176 for (Int_t
i = 0;
i < npoints;
i++) {
186 LOG(debug3) << std::setprecision(15)
187 <<
"-I- CbmPointSetArrayDraw::DetermineTimeBins: fTimeOffset "
201 fl->RemoveElementsLocal();