Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
REveViewContext.hxx
Go to the documentation of this file.
1 // @(#)root/eve7:$Id$
2 // Author: Matevz Tadel, Alja Tadel 2018
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT7_REveViewContext
13 #define ROOT7_REveViewContext
14 
15 namespace ROOT {
16 namespace Experimental {
17 
18 class REveTableViewInfo;
19 class REveTrackPropagator;
20 
21 class REveViewContext {
22 private:
23  float m_R{100};
24  float m_Z{100};
25  REveTrackPropagator *m_trackPropagator{nullptr};
26  REveTableViewInfo *fTableInfo{nullptr};
27 
28 public:
29  REveViewContext() = default;
30  virtual ~REveViewContext() {}
31 
32  void SetBarrel(float r, float z) { m_R = r; m_Z = z; }
33 
34  void SetTrackPropagator(REveTrackPropagator *p) { m_trackPropagator = p; }
35  void SetTableViewInfo(REveTableViewInfo *ti) { fTableInfo = ti; }
36 
37  float GetMaxR() const { return m_R; }
38  float GetMaxZ() const { return m_Z; }
39  REveTrackPropagator *GetPropagator() const { return m_trackPropagator; }
40  REveTableViewInfo *GetTableViewInfo() const { return fTableInfo; }
41 };
42 }
43 }
44 
45 #endif