Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:22:31

0001 // @(#)root/eve7:$Id$
0002 // Author: Matevz Tadel, Alja Tadel 2018
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2019, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT7_REveViewContext
0013 #define ROOT7_REveViewContext
0014 
0015 namespace ROOT {
0016 namespace Experimental {
0017 
0018 class REveTableViewInfo;
0019 class REveTrackPropagator;
0020 
0021 class REveViewContext  {
0022 private:
0023    float m_R{100};
0024    float m_Z{100};
0025    REveTrackPropagator *m_trackPropagator{nullptr};
0026    REveTableViewInfo *fTableInfo{nullptr};
0027 
0028 public:
0029    REveViewContext() = default;
0030    virtual ~REveViewContext() {}
0031 
0032    void SetBarrel(float r, float z) { m_R = r; m_Z = z; }
0033 
0034    void SetTrackPropagator(REveTrackPropagator *p) { m_trackPropagator = p; }
0035    void SetTableViewInfo(REveTableViewInfo *ti) { fTableInfo = ti; }
0036 
0037    float GetMaxR() const { return m_R; }
0038    float GetMaxZ() const { return m_Z; }
0039    REveTrackPropagator *GetPropagator() const { return m_trackPropagator; }
0040    REveTableViewInfo *GetTableViewInfo() const { return fTableInfo; }
0041 };
0042 }
0043 }
0044 
0045 #endif