#ifndef __INCLUDE_TwigTk2D__
#define __INCLUDE_TwigTk2D__

#include <Inventor/SbString.h>
#include "Visualisation/OrcaVis/interface/AutoTwig.h"
#include "Ig_Extensions/IgGeant3/interface/G3Pars.h"
#include "CommonDet/BasicDet/interface/DetUnit.h"

#include <Inventor/SbLinear.h>
#include <qwidget.h>
#include <fstream>
#include "Visualisation/CustomTracker/interface/TkSceneUpdate.h"
#include "Visualisation/CustomTracker/interface/TkSelectionWindow.h"
/**
*      Graphical/GUI representation of the Barrel Pixel Detectors
*
*      \author Stephane Perries, Eric Chabanat   26/04/2001
*/

class TwigTk2D : public AutoTwig {
public:
        typedef IgQtTwig inherited;
	explicit TwigTk2D(IgQtTwig* parent, SbString nm, bool b=true, bool c=false)  : 
          AutoTwig(parent, nm, b, c) { }
	void drawMe();
	void drawSimHits();
	
protected:
        virtual void printInfo( ostream & ostr, const SoNode* node ) const;	

private:
	SoSeparator* root;
	SoSeparator* rootp;
    	TkSceneUpdate *nw;
	TkSelectionWindow *w;
	QWidget *WindowTk2D;
	ostream* ostr;
  };

#endif
