FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairPointSetDraw.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 // -------------------------------------------------------------------------
9 // ----- FairPointSetDraw header file -----
10 // ----- Created 10/12/07 by M. Al-Turany -----
11 // -------------------------------------------------------------------------
12 
20 #ifndef FAIRPOINTSETDRAW_H
21 #define FAIRPOINTSETDRAW_H
22 
23 #include "FairTask.h" // for FairTask, InitStatus
24 
25 #include <Rtypes.h> // for Int_t, Color_t, etc
26 
27 class TEvePointSet;
28 class TObject;
29 class TVector3;
30 class FairDataSourceI;
31 
32 class FairPointSetDraw : public FairTask
33 {
34  public:
37 
45  FairPointSetDraw(const char* name, FairDataSourceI* dataSource, Color_t color, Style_t mstyle, Int_t iVerbose = 1);
46 
55  FairPointSetDraw(const char* name, Color_t color, Style_t mstyle, Int_t iVerbose = 1);
56 
58  virtual ~FairPointSetDraw();
59 
61  void SetVerbose(Int_t iVerbose) { fVerbose = iVerbose; };
63  virtual void Exec(Option_t* option);
64  void Reset();
65 
66  virtual void SetUseTimeOffset(Bool_t val) { fUseTimeOffset = val; };
67 
68  virtual void SetDataSource(FairDataSourceI* source) { fDataSource = source; }
69 
70  protected:
71  virtual TVector3 GetVector(TObject* obj) = 0;
72  // virtual TObject* GetValue(TObject* obj, Int_t i);
73 
74  Int_t fVerbose; // Verbosity level
75  virtual void SetParContainers();
76  virtual InitStatus Init();
78  virtual void Finish();
79  TEvePointSet* fq = nullptr;
80  Color_t fColor;
81  Style_t fStyle;
82  Bool_t fUseTimeOffset = kTRUE;
83 
84  private:
86  FairPointSetDraw& operator=(const FairPointSetDraw&);
87  FairDataSourceI* fDataSource = nullptr;
88 
89  ClassDef(FairPointSetDraw, 1);
90 };
91 
92 #endif
InitStatus
Definition: FairTask.h:33
virtual void SetDataSource(FairDataSourceI *source)
virtual void SetUseTimeOffset(Bool_t val)
virtual InitStatus Init()
virtual void Finish()
TEvePointSet * fq
void SetVerbose(Int_t iVerbose)
Abstract interface class to handle different input data for event and timebased data.
virtual void SetParContainers()
virtual TVector3 GetVector(TObject *obj)=0
virtual void Exec(Option_t *option)