//<<<<<< INCLUDES >>>>>> #include "Utilities/Configuration/interface/Architecture.h" #include "VisOrca/VisCustomTracker/interface/VisCuTkTwig.h" #include "CARF/G3Event/interface/G3EventProxy.h" #include "Ig_Modules/IgTextModel/interface/IgTextRep.h" #include #include #include //<<<<<< 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 the Tracker event twig. */ VisCuTkTwig::VisCuTkTwig (IgState *state, IgTwig *parent) : VisG3EventObserverTwig (state, parent, "CustomTracker event") { } /** Update object property description. */ void VisCuTkTwig::update (IgTextRep *rep) { // Get debugging dump. VisG3EventObserverTwig::update (rep); // Prepare the property description. std::ostringstream text; text << ""; text << "
Tracker Event #" << observed ()->simSignal ()->id ().eventInRun () << ", Run #" << observed ()->simSignal ()->id ().runNumber () << "
Visualisation cut on Pt: " << VisG3EventObserverTwig::ptFromRc () << " GeV.
" << "
Simple configurable in .orcarc: Visualisation:PtMin." << "
Default value: 1.0 GeV." << "
" << '\0'; // Send it over. qApp->lock (); rep->setText (text.str ()); qApp->unlock (false); } /** Update object property description. */ void VisCuTkTwig::update (Ig3DRep * /* void */) { qApp->lock (); QMessageBox::information ((QWidget*) 0, "Tracker Event Info", "CustomTracker Event Twig doesn't have a 3D representation \n" "and it doesn't control visibility of its children."); qApp->unlock (false); }