Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TVirtualGeoConverter.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/geom:$Id$
0002 // Author: Mihaela Gheata   30/03/16
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, 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 #ifndef ROOT_TVirtualGeoConverter
0012 #define ROOT_TVirtualGeoConverter
0013 
0014 #include "TObject.h"
0015 
0016 class TGeoManager;
0017 
0018 class TVirtualGeoConverter : public TObject {
0019 
0020 protected:
0021    static TVirtualGeoConverter *fgGeoConverter; // Pointer to geometry converter
0022    TGeoManager *fGeom;                          // Pointer to geometry manager
0023 public:
0024    TVirtualGeoConverter(TGeoManager *geom);
0025    ~TVirtualGeoConverter() override;
0026 
0027    virtual void ConvertGeometry() {}
0028    static TVirtualGeoConverter *Instance(TGeoManager *geom = nullptr);
0029    static void SetConverter(const TVirtualGeoConverter *conv);
0030    void SetGeometry(TGeoManager *geom) { fGeom = geom; }
0031 
0032    ClassDefOverride(TVirtualGeoConverter, 0) // Abstract interface for geometry converters
0033 };
0034 
0035 #endif