#include "VisReco/VisRecoJets/interface/VisCaloTowerTwig.h"
#include "VisFramework/VisFrameworkBase/interface/VisEventProcessorService.h"
#include "VisFramework/VisFrameworkBase/interface/VisTwigFactroyService.h"
#include "VisFramework/VisFrameworkBase/interface/VisEventSelector.h"
#include "VisFramework/VisEventSetup/interface/VisEventSetupService.h"
#include "VisFramework/VisFrameworkBase/interface/debug.h"
#include "DataFormats/CaloTowers/interface/CaloTower.h"
#include "DataFormats/CaloTowers/interface/CaloTowerCollection.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Utilities/interface/TypeID.h"
#include "Iguana/Inventor/interface/IgSoTower.h"
#include "Iguana/Inventor/interface/IgSoCircularHist.h"
#include "Iguana/Inventor/interface/IgSoCalHit.h"
#include "Iguana/Inventor/interface/IgSoRectColHist.h"
#include "Iguana/Models/interface/IgTextRep.h"
#include "Iguana/GLModels/interface/Ig3DRep.h"
#include "Iguana/GLModels/interface/IgLegoRep.h"
#include "Iguana/GLModels/interface/IgRPhiRep.h"
#include "Iguana/GLModels/interface/IgRZRep.h"
#include "Iguana/Framework/interface/IgRepSet.h"
#include "Iguana/Studio/interface/IgDocumentData.h"
#include "Iguana/Studio/interface/IgQtLock.h"
#include <Inventor/nodes/SoMaterial.h>
#include <Inventor/nodes/SoSelection.h>
#include <qstring.h>
#include <qwhatsthis.h>
#include <sstream>
#include <iomanip>
Go to the source code of this file.
Defines | |
#define | QT_NO_EMIT |
Functions | |
VisQueuedTwig * | createThisTwig (IgState *state, IgTwig *parent, const std::string &name, const std::string &friendlyName, const std::string &modLabel, const std::string &instanceName, const std::string &processName) |
void | selectTower (void *userData, SoPath *pickPath) |
#define QT_NO_EMIT |
Definition at line 2 of file VisCaloTowerTwig.cc.
VisQueuedTwig* @18061::createThisTwig | ( | IgState * | state, | |
IgTwig * | parent, | |||
const std::string & | name, | |||
const std::string & | friendlyName, | |||
const std::string & | modLabel, | |||
const std::string & | instanceName, | |||
const std::string & | processName | |||
) | [static] |
Definition at line 46 of file VisCaloTowerTwig.cc.
References DBSPlugin::get(), and IgTwig::lookup().
00052 { 00053 IgTwig *rootTwig = IgDocumentData::get (state)->root (); 00054 IgTwig *eventTwig = 0; 00055 eventTwig = rootTwig->lookup ("/Objects/CMS Event and Detector/CaloTowers"); 00056 00057 if (! eventTwig) 00058 eventTwig = parent; 00059 00060 return new VisCaloTowerTwig (state, eventTwig, "[N/A] CaloTower (" + name + ")", 00061 friendlyName, modLabel, instanceName, processName); 00062 }
Definition at line 65 of file VisCaloTowerTwig.cc.
References arg, IgSoTower::emFraction, IgSoTower::energy, and prof2calltree::node.
Referenced by VisCaloTowerTwig::update().
00066 { 00067 if (pickPath->getTail ()->isOfType (IgSoTower::getClassTypeId ())) 00068 { 00069 SoNode *node; 00070 node = pickPath->getNode (pickPath->getLength () - 1); 00071 IgSoTower *pickedTower = dynamic_cast<IgSoTower *> (node); 00072 QWhatsThis::display (QString ("Et = %1 GeV, Em %2 %") 00073 .arg (pickedTower->energy.getValue (), 0, 'f', 2) 00074 .arg (pickedTower->emFraction.getValue () * 100, 0, 'f', 2)); 00075 } 00076 }