|
ATLAS Offline Software
|
Go to the documentation of this file.
36 #include <Inventor/nodes/SoSeparator.h>
37 #include <Inventor/nodes/SoMaterial.h>
38 #include <Inventor/nodes/SoSwitch.h>
39 #include "Inventor/nodes/SoDrawStyle.h"
40 #include "Inventor/nodes/SoLightModel.h"
51 #include <QTreeWidgetItem>
52 #include <qdatetime.h>
61 #endif // BUILDVP1LIGHT
99 m_cut_r_allowall(true),
100 m_cut_z_allowall(true),
101 m_cut_rz_allwillfail(false)
106 QString safetext(
text());
107 safetext.replace(
' ',
'_');
108 safetext.replace(
'[',
'_');
109 safetext.replace(
']',
'_');
110 safetext.replace(
'/',
'_');
111 safetext.replace(
'.',
'_');
112 safetext.replace(
',',
'_');
113 safetext.replace(
'<',
'_');
114 safetext.replace(
'>',
'_');
115 safetext.replace(
'&',
'_');
124 #ifndef BUILDVP1LIGHT
135 #if defined BUILDVP1LIGHT
145 #endif // BUILDVP1LIGHT
192 messageVerbose(
"No collSettingsButton set! Can't call init(), so crash is imminent...");
193 throw std::runtime_error(
"Vertex - No collSettingsButton set!");
206 #if defined BUILDVP1LIGHT
218 message(
"Error: Could not retrieve collection with key="+
name());
223 message(
"Error: Could not retrieve vertex collection with key="+
name());
226 #endif //BUILDVP1LIGHT
232 if( ! coll->hasStore() ) {
233 message(
"No auxiliary store got associated to the Vertex container with key: " +
name());
240 for (
auto vertex : *coll) {
241 qInfo() <<
" (x, y, z) = (" <<
vertex->x() <<
", " <<
vertex->y() <<
", " <<
vertex->z() <<
")";
246 for (
it = coll->begin() ;
it != itEnd; ++
it) {
273 messageVerbose(
"VertexCollHandle::cut() - passing in handle of wrong type! Aborting.");
278 messageVerbose(
"VertexCollHandle::cut() - returning false as m_cut_rz_allwillfail is set.");
336 message(
"ERROR - wrong handle type passed to VertexCollHandle::addHandle!");
447 des.disableUnrestoredChecks();
448 if (
des.version()!=0&&
des.version()!=1) {
449 messageDebug(
"Warning: Ignoring state with wrong version");
452 bool vis =
des.restoreBool();
454 QByteArray matState =
des.restoreByteArray();
456 QByteArray extraWidgetState =
des.version()>=1 ?
des.restoreByteArray() : QByteArray();
459 if (extraWidgetState!=QByteArray())
466 messageDebug(
"VertexCollHandle::persistifiableState() - start...");
485 messageDebug(
"VertexCollHandle::persistifiableState() - end.");
def retrieve(aClass, aKey=None)
JetConstituentVector::iterator iterator
void setExtraWidgetsState(const QByteArray &)
Const iterator class for DataVector/DataList.
bool m_cut_ry_allwillfail
Vertex_v1 Vertex
Define the latest version of the vertex class.
Base class for all AOD object collections This class primarily handles setting up the interface,...
std::vector< VertexHandle * >::iterator itHandlesEnd
void serialise(const std::vector< const IRoiDescriptor * > &rois, roiserial_type &s)
serialise an entire vector of IRoiDescriptors
virtual QByteArray persistifiableState() const
Provide specific implementation.
const VertexCollectionSettingsButton & collSettingsButton() const
void messageVerbose(const QString &) const
SoSwitch * collSwitch() const
Add this somewhere in your scenegraph (do not add any children here!)
virtual void init(VP1MaterialButtonBase *button=0)
void resetCachedValuesCuts()
double getPositionY() const
VertexCollHandle(AODSysCommonData *, const QString &name, xAOD::Type::ObjectType)
VP1Interval m_cut_allowedZ
void setCutAllowedR(const VP1Interval &)
void hintNumberOfHandlesInEvent(unsigned)
static QString str(const QString &s)
virtual bool load()
Actually load the EDM objects.
void messageDebug(const QString &) const
bool excludeInterval() const
QList< AODHandleBase * > handlesList
const AODSysCommonData * common() const
QStringList getKeys() const
virtual bool cut(AODHandleBase *)
void setCutAllowedZ(const VP1Interval &)
void addHandle(AODHandleBase *)
virtual void setupSettingsFromControllerSpecific(const AODSystemController *)
For extensions specific to this collection.
bool m_cut_rz_allwillfail
void visibilityChanged(bool)
void recheckCutStatusOfAllNotVisibleHandles()
QByteArray extraWidgetsState() const
void recheckCutStatusOfAllHandles()
const QString & name() const
std::vector< VertexHandle * > handles
QList< AODHandleBase * > getHandlesList() const
VertexCollectionSettingsButton * collSettingsButton
VP1Interval m_cut_allowedY
static QStringList availableCollections(IVP1System *)
void setupSettingsFromController(const AODSystemController *)
IVP1System * systemBase() const
virtual ~VertexCollHandle()
bool contains(const double &x) const
double getPositionZ() const
void cleanupPtrContainer(T &) const
void handleIterationBegin()
Interface for non-const operations on an auxiliary store.
void setCutAllowedY(const VP1Interval &)
void collVisibilityChanged(bool)
AODHandleBase * getNextHandle()
double getPositionX() const
void message(const QString &) const
void update3DObjectsOfAllHandles()
virtual void init(VP1MaterialButtonBase *matBut=0)
virtual void setState(const QByteArray &)
Provide specific implementation.
VertexCollHandle * theclass
void recheckCutStatusOfAllVisibleHandles()
std::vector< VertexHandle * >::iterator itHandles
VP1Interval m_cut_allowedR