//<<<<<< INCLUDES                                                       >>>>>>

#include "Utilities/Configuration/interface/Architecture.h"
#include "Utilities/UI/interface/SimpleConfiguration.h"
#include "Visualisation/CustomTracker/interface/VisCuTkEvSimHitsTwig.h"

#include "Ig_Modules/Ig3DModel/interface/Ig3DRep.h"
#include "Ig_Modules/IgTextModel/interface/IgTextRep.h"

#include <qapplication.h>
#include <strstream>

//<<<<<< PRIVATE DEFINES                                                >>>>>>
//<<<<<< PRIVATE CONSTANTS                                              >>>>>>
//<<<<<< PRIVATE TYPES                                                  >>>>>>
//<<<<<< PRIVATE VARIABLE DEFINITIONS                                   >>>>>>
//<<<<<< PUBLIC VARIABLE DEFINITIONS                                    >>>>>>
//<<<<<< CLASS STRUCTURE INITIALIZATION                                 >>>>>>
//<<<<<< PRIVATE FUNCTION DEFINITIONS                                   >>>>>>
//<<<<<< PUBLIC FUNCTION DEFINITIONS                                    >>>>>>
//<<<<<< MEMBER FUNCTION DEFINITIONS                                    >>>>>>

/** Initialise Tracker sim tracks twig. */
VisCuTkEvSimHitsTwig::VisCuTkEvSimHitsTwig (IgState *state, IgTwig *parent)
    : EventObserverTwig (state, parent, "Sim Hits")
{
}



/** Update object property description. */
void
VisCuTkEvSimHitsTwig::update (IgTextRep *rep)
{
    // Get debugging dump.
    EventObserverTwig::update (rep);

    // Prepare the property description.
    std::ostrstream text;
    text << "<table width='100%'><tr><td>For visualisation the SIM HITS that pass through the tracker part selected in 3D window </td><td>"
	 << "</table>"
	 << '\0';

    // Send it over.
    qApp->lock ();
    rep->setText (text.str ());
    text.freeze (0);
    qApp->unlock (false);
}

/** Update object property description. */
void
VisCuTkEvSimHitsTwig::update (Ig3DRep *rep)
{
    // Get debugging dump.
    EventObserverTwig::update (rep);

    qApp->lock ();



    rep->clear ();
    
    qApp->unlock (false);
}
