PandaRoot
PndTrackCandDraw.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
20 #ifndef PndTrackCandDraw_H
21 #define PndTrackCandDraw_H
22 
23 #include "FairHitDraw.h"
24 #include "TClonesArray.h"
25 #include "TVector3.h"
26 
27 class FairBoxSet;
28 
29 class PndTrackCandDraw : public FairBoxSetDraw {
30 
31  public:
34 
39  PndTrackCandDraw(const char *TrackCandName, Int_t iVerbose = 1);
40 
42  virtual ~PndTrackCandDraw();
43  virtual InitStatus Init();
44 
45  virtual void AddBoxesTrackCand(FairBoxSet *set, TObject *obj, Int_t i = 0);
46  virtual void AddBoxesPndTrackCand(FairBoxSet *set, TObject *obj, Int_t i = 0);
47 
48  protected:
49  virtual TVector3 GetVector(TObject *obj);
50  virtual TVector3 GetVector(Int_t detId, Int_t hitId);
51  virtual TVector3 GetVector(FairLink link);
52  // virtual Int_t GetValue(TObject* obj,Int_t i);
53  virtual void AddBoxes(FairBoxSet *set, TObject *obj, Int_t i = 0);
54 
55  private:
56 
57  TClonesArray *fTrackCandList = nullptr;
58  FairRootManager *fManager = nullptr;
59 
60  ClassDef(PndTrackCandDraw, 1);
61 };
62 
63 #endif
virtual void AddBoxes(FairBoxSet *set, TObject *obj, Int_t i=0)
unsigned int i
Definition: P4_F32vec4.h:33
virtual TVector3 GetVector(TObject *obj)
Task to display PndTrackCand's in FairEventDisplay.
virtual ~PndTrackCandDraw()
virtual InitStatus Init()
virtual void AddBoxesTrackCand(FairBoxSet *set, TObject *obj, Int_t i=0)
virtual void AddBoxesPndTrackCand(FairBoxSet *set, TObject *obj, Int_t i=0)