|
ATLAS Offline Software
|
Go to the documentation of this file.
21 #include <Inventor/C/errors/debugerror.h>
22 #include <Inventor/nodes/SoLineSet.h>
23 #include <Inventor/nodes/SoPointSet.h>
24 #include <Inventor/nodes/SoVertexProperty.h>
25 #include <Inventor/nodes/SoMaterial.h>
26 #include <Inventor/nodes/SoCone.h>
27 #include <Inventor/nodes/SoSeparator.h>
28 #include <Inventor/nodes/SoTranslation.h>
29 #include <Inventor/nodes/SoRotationXYZ.h>
30 #include <Inventor/nodes/SoScale.h>
31 #include <Inventor/nodes/SoDrawStyle.h>
32 #include <Inventor/nodes/SoCoordinate3.h>
33 #include <Inventor/nodes/SoGroup.h>
35 #include <Inventor/SoPath.h>
43 #include "GeoModelKernel/Units.h"
44 #define SYSTEM_OF_UNITS GeoModelKernelUnits // --> 'GeoModelKernelUnits::cm'
46 #include "GaudiKernel/SystemOfUnits.h"
47 #define SYSTEM_OF_UNITS Gaudi::Units // --> 'Gaudi::Units::cm'
68 SoSeparator *
sep =
nullptr;
91 QString
name()
const {
return QString::fromStdString(
m_met->
name() ); }
199 m_d->
sep =
new SoSeparator();
253 sep =
new SoSeparator();
257 SoGroup * dash =
new SoGroup();
259 SoRotationXYZ *
r =
new SoRotationXYZ();
264 SoTranslation *
t=
new SoTranslation();
265 t->translation.setValue(0, 0, 0);
269 SoDrawStyle *drawStyle =
new SoDrawStyle;
271 drawStyle->lineWidth.setValue(1. *
thickness);
272 drawStyle->linePattern.setValue(0xFF00);
273 dash->addChild(drawStyle);
276 SoCoordinate3 *coords =
new SoCoordinate3;
277 SbVec3f* vert =
new SbVec3f[2];
278 vert[0] = SbVec3f(0.0, 0.0, 0.0);
280 coords->point.setValues(0, 2, vert);
282 dash->addChild(coords);
284 SoLineSet *lineSet =
new SoLineSet ;
285 lineSet->numVertices.set1Value(0, 2) ;
286 dash->addChild(lineSet);
290 base =
new SoGroup();
291 base->addChild(dash);
316 cone->bottomRadius = 50.;
317 trans->translation = SbVec3f(0,-0.5*
h,0);
320 SbString strHeight, strRadius;
321 (cone->height).
get(strHeight);
322 (cone->bottomRadius).
get(strRadius);
323 std::cout <<
"input - energy: " <<
energy <<
" - scale: " <<
scale <<
" - maxR: " << maxR <<
" - h: " <<
h <<
" --- updated cone - height: " << strHeight.getString() <<
" - bottom radius: " << strRadius.getString() << std::endl;
343 if (
sep->getNumChildren()<6) {
371 l <<
"--MissingEt: ";
461 TSOSitem->setText(0, QString(
"Info: " ) );
463 QString dParameters(
"(");
467 dParameters+=
"name: ";
469 dParameters+=
", met: ";
471 dParameters+=
", phi: ";
473 dParameters+=
", sumet: ";
480 dParameters +=
" [more info in the main Message Box]";
482 TSOSitem->setText(1, dParameters );
const xAOD::MissingET * m_met
const MissingEtCollHandle * theCollHandle
Base class for all AOD object collections This class primarily handles setting up the interface,...
SoMaterial * material() const
virtual SoMaterial * determineMaterial()
Should be implemented by children, in order to change the material depending on the interface etc.
float sumet() const
Returns.
void setScale(const double &sc)
virtual void clear3DObjects()
Delete objects.
virtual ~MissingEtHandle()
float phi() const
Returns .
void updateConeHeightParameters(SoCone *, SoTranslation *, const double &energy) const
const AODCollHandleBase * collHandle() const
virtual void fillObjectBrowser(QList< QTreeWidgetItem * > &list)
Create and fill the object browser QTreeWidgetItem.
static QString str(const QString &s)
MissingEtHandle * theclass
void updateConeHeightParameters() const
virtual bool has3DObjects()
Returns true if the 3D objects have been created.
void fillObjectBrowser(QList< QTreeWidgetItem * > &listOfItems)
This gives the list of object's properties, shown in the 'Information' field in the Browser,...
Principal data object for Missing ET.
float mpx() const
Returns .
QString shortInfo() const
This returns the information shown about the object in the object browser.
QTreeWidgetItem * browserTreeItem() const
Return the QTreeWidgetItem;.
MissingEtHandle(AODCollHandleBase *, const xAOD::MissingET *)
const std::string & name() const
Identifier getters.
const MissingEtCollectionSettingsButton * theCollSettingsButton
static void messageVerbose(const QString &)
virtual QStringList clicked() const
This gives the complete information about the object, shown in the main Message Box.
virtual SoNode * nodes()
Returns the 3Dobjects.
static void messageDebug(const QString &)
void createShapeFromJetParameters()
const MissingEtCollectionSettingsButton & collSettingsButton() const
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
float mpy() const
Returns .
float met() const
Returns .