|
ATLAS Offline Software
|
#include <VP1VertexCollection.h>
|
| VP1VertexCollection (VertexSysController *controller, const QString &key) |
|
virtual | ~VP1VertexCollection () |
|
void | init (VP1MaterialButtonBase *mat=0) |
|
QList< QWidget * > | provideExtraWidgetsForGuiRow () const |
|
QStringList | infoOnClicked (SoPath *pickedPath) |
|
COLOURBY | colourBy () const |
|
virtual COLOURBY | defaultColourBy () const |
|
void | setColourBy (COLOURBY) |
|
bool | visible () const |
|
bool | isLoaded () const |
|
bool | problemsLoading () const |
|
QString | text () const |
|
SoSwitch * | collSwitch () const |
| Add this somewhere in your scenegraph (do not add any children here!) More...
|
|
SoSeparator * | collSep () const |
| All 3D objects from this coll. More...
|
|
SoMaterial * | material () const |
|
double | collMaterialTransparency () const |
|
double | collMaterialBrightness () const |
|
virtual void | largeChangesBegin () |
|
virtual void | largeChangesEnd () |
|
virtual QByteArray | persistifiableState () const |
| Provide default implementation based on widget list + version. More...
|
|
virtual void | setState (const QByteArray &) |
| Provide default implementation based on widget list + version. More...
|
|
qint32 | collTypeID () const |
|
QByteArray | persistifiableID () const |
|
QString | section () const |
|
QString | sectionToolTip () const |
|
virtual QList< QWidget * > | widgetsForGuiRow () const |
|
void | setSystemBasePointer (IVP1System *sys) |
|
void | message (const QString &) const |
|
void | message (const QStringList &, const QString &addtoend="") const |
|
void | message (const QString &addtostart, const QStringList &, const QString &addtoend="") const |
|
void | messageDebug (const QString &) const |
|
void | messageDebug (const QStringList &, const QString &addtoend="") const |
|
void | messageDebug (const QString &addtostart, const QStringList &, const QString &addtoend="") const |
|
void | messageVerbose (const QString &) const |
|
void | messageVerbose (const QStringList &, const QString &addtoend="") const |
|
void | messageVerbose (const QString &addtostart, const QStringList &, const QString &addtoend="") const |
|
IVP1System * | systemBase () const |
|
QString | helperClassName () const |
|
Definition at line 32 of file VP1VertexCollection.h.
◆ COLOURBY
◆ VP1VertexCollection()
◆ ~VP1VertexCollection()
VP1VertexCollection::~VP1VertexCollection |
( |
| ) |
|
|
virtual |
◆ applyStates()
◆ assignDefaultMaterial()
void VP1VertexCollection::assignDefaultMaterial |
( |
SoMaterial * |
m | ) |
const |
|
protectedvirtual |
◆ checkBoxToolTip()
virtual QString VP1StdCollection::checkBoxToolTip |
( |
| ) |
const |
|
inlineprotectedvirtualinherited |
◆ collMaterialBrightness()
double VP1StdCollection::collMaterialBrightness |
( |
| ) |
const |
|
inherited |
◆ collMaterialTransparency()
double VP1StdCollection::collMaterialTransparency |
( |
| ) |
const |
|
inherited |
◆ collMaterialTransparencyAndBrightnessChanged()
virtual void VP1StdCollection::collMaterialTransparencyAndBrightnessChanged |
( |
| ) |
|
|
inlineprotectedvirtualinherited |
◆ collSep()
SoSeparator * VP1StdCollection::collSep |
( |
| ) |
const |
|
inherited |
All 3D objects from this coll.
belongs under here.
Definition at line 212 of file VP1StdCollection.cxx.
215 message(
"ERROR: collSep() called before init()");
◆ collSwitch()
SoSwitch * VP1StdCollection::collSwitch |
( |
| ) |
const |
|
inherited |
Add this somewhere in your scenegraph (do not add any children here!)
Definition at line 204 of file VP1StdCollection.cxx.
207 message(
"ERROR: collSwitch() called before init()");
◆ collTypeID()
qint32 VP1StdCollection::collTypeID |
( |
| ) |
const |
|
inherited |
◆ collVisibilityChanged
void VP1VertexCollection::collVisibilityChanged |
( |
bool |
vis | ) |
|
|
privateslot |
Definition at line 547 of file VP1VertexCollection.cxx.
554 QList< std::pair<const SoMaterial*, QList< const Trk::Track*> > > colAndTracks;
◆ colourBy()
COLOURBY VP1VertexCollection::colourBy |
( |
| ) |
const |
|
inline |
◆ colourByComboBoxItemChanged
void VP1VertexCollection::colourByComboBoxItemChanged |
( |
| ) |
|
|
privateslot |
◆ createCollections()
◆ defaultColourBy()
virtual COLOURBY VP1VertexCollection::defaultColourBy |
( |
| ) |
const |
|
inlinevirtual |
◆ extraWidgetsState()
virtual QByteArray VP1StdCollection::extraWidgetsState |
( |
| ) |
const |
|
inlineprotectedvirtualinherited |
◆ getStates()
◆ helperClassName()
QString VP1HelperClassBase::helperClassName |
( |
| ) |
const |
|
inlineinherited |
◆ infoOnClicked()
QStringList VP1VertexCollection::infoOnClicked |
( |
SoPath * |
pickedPath | ) |
|
Definition at line 489 of file VP1VertexCollection.cxx.
494 while (pickedPath->getLength()>3&&pickedPath->getNodeFromTail(0)->getTypeId()!=SoSeparator::getClassTypeId())
496 if (pickedPath->getNodeFromTail(0)->getTypeId()!=SoSeparator::getClassTypeId())
497 return QStringList() <<
"ERROR: Could not get vertex information for picked Node (1)";
498 SoSeparator * pickedSep =
static_cast<SoSeparator *
>(pickedPath->getNodeFromTail(0));
500 Imp::VertexHandle*vertexHandle(0);
502 if (vh->sep()==pickedSep) {
508 return QStringList() <<
"ERROR: Could not get vertex information for picked Node (1)";
515 l <<
"Reconstructed vertex from collection "+
text()+
":" ;
521 QList<const Trk::Track*> tracks;
522 QList<const Trk::TrackParticleBase*> trackparticles;
526 l <<
"--#Trk::Track's: "+
str(tracks.count());
527 l <<
"--#Trk::TrackParticleBase's: "+
str(trackparticles.count());
528 l <<
"======== Dump ========";
529 std::ostringstream
s;
531 l << QString(
s.str().c_str()).split(
'\n');
532 l <<
"======================";
◆ init()
◆ isLoaded()
bool VP1StdCollection::isLoaded |
( |
| ) |
const |
|
inherited |
◆ largeChangesBegin()
void VP1StdCollection::largeChangesBegin |
( |
| ) |
|
|
virtualinherited |
◆ largeChangesEnd()
void VP1StdCollection::largeChangesEnd |
( |
| ) |
|
|
virtualinherited |
◆ load()
bool VP1VertexCollection::load |
( |
| ) |
|
|
protectedvirtual |
◆ matButtonToolTip()
virtual QString VP1StdCollection::matButtonToolTip |
( |
| ) |
const |
|
inlineprotectedvirtualinherited |
◆ material()
SoMaterial * VP1StdCollection::material |
( |
| ) |
const |
|
inherited |
◆ message() [1/3]
void VP1HelperClassBase::message |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ message() [2/3]
void VP1HelperClassBase::message |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ message() [3/3]
void VP1HelperClassBase::message |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageDebug() [1/3]
void VP1HelperClassBase::messageDebug |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ messageDebug() [2/3]
void VP1HelperClassBase::messageDebug |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageDebug() [3/3]
void VP1HelperClassBase::messageDebug |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageVerbose() [1/3]
void VP1HelperClassBase::messageVerbose |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ messageVerbose() [2/3]
void VP1HelperClassBase::messageVerbose |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageVerbose() [3/3]
void VP1HelperClassBase::messageVerbose |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ persistifiableID()
QByteArray VP1Collection::persistifiableID |
( |
| ) |
const |
|
inherited |
◆ persistifiableState()
QByteArray VP1StdCollection::persistifiableState |
( |
| ) |
const |
|
virtualinherited |
◆ possibleChangeMatTranspOrBrightness
void VP1StdCollection::possibleChangeMatTranspOrBrightness |
( |
| ) |
|
|
slotinherited |
◆ problemsLoading()
bool VP1StdCollection::problemsLoading |
( |
| ) |
const |
|
inherited |
◆ provideCollTypeID()
qint32 VP1VertexCollection::provideCollTypeID |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ provideExtraWidgetsForGuiRow()
QList< QWidget * > VP1VertexCollection::provideExtraWidgetsForGuiRow |
( |
| ) |
const |
|
virtual |
◆ providePersistifiableID()
QByteArray VP1StdCollection::providePersistifiableID |
( |
| ) |
const |
|
protectedvirtualinherited |
◆ provideSection()
QString VP1VertexCollection::provideSection |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ provideSectionToolTip()
QString VP1VertexCollection::provideSectionToolTip |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ provideText()
QString VP1VertexCollection::provideText |
( |
| ) |
const |
|
protectedvirtual |
◆ provideWidgetsForGuiRow()
QList< QWidget * > VP1StdCollection::provideWidgetsForGuiRow |
( |
| ) |
const |
|
protectedvirtualinherited |
◆ recheckAllCuts
void VP1VertexCollection::recheckAllCuts |
( |
| ) |
|
|
slot |
Definition at line 436 of file VP1VertexCollection.cxx.
439 QList<const Trk::Track*> tracks;
440 QList<const Trk::TrackParticleBase*> trackparticles;
441 QList< std::pair<const SoMaterial*, QList< const Trk::Track*> > > colAndTracks;
445 const SoMaterial*
mat = vh->attached()?vh->determineMaterial():0;
446 colAndTracks.append(std::pair<
const SoMaterial*, QList< const Trk::Track*> >(
mat, tracks));
◆ rerandomiseRandomVertexColours
void VP1VertexCollection::rerandomiseRandomVertexColours |
( |
| ) |
|
|
privateslot |
◆ section()
QString VP1Collection::section |
( |
| ) |
const |
|
inherited |
◆ sectionToolTip()
QString VP1Collection::sectionToolTip |
( |
| ) |
const |
|
inherited |
◆ setColourBy()
Definition at line 321 of file VP1VertexCollection.cxx.
342 if (
i>=0&&i<m_d->comboBox_colourby->count()) {
347 message(
"ERROR: Problems finding correct text in combo box");
355 QList<const Trk::Track*> tracks;
356 QList<const Trk::TrackParticleBase*> trackparticles;
357 QList< std::pair<const SoMaterial*, QList< const Trk::Track*> > > colAndTracks;
360 const SoMaterial*
mat = vh->attached()?vh->determineMaterial():0;
361 colAndTracks.append(std::pair<
const SoMaterial*, QList< const Trk::Track*> >(
mat, tracks));
◆ setExtraWidgetsState()
virtual void VP1StdCollection::setExtraWidgetsState |
( |
const QByteArray & |
| ) |
|
|
inlineprotectedvirtualinherited |
◆ setHelperClassName()
void VP1HelperClassBase::setHelperClassName |
( |
const QString & |
n | ) |
|
|
inlineprotectedinherited |
◆ setState()
void VP1StdCollection::setState |
( |
const QByteArray & |
state | ) |
|
|
virtualinherited |
◆ setSystemBasePointer()
void VP1HelperClassBase::setSystemBasePointer |
( |
IVP1System * |
sys | ) |
|
|
inherited |
◆ setVisible
void VP1StdCollection::setVisible |
( |
bool |
b | ) |
|
|
slotinherited |
◆ str() [1/30]
◆ str() [2/30]
static QString VP1String::str |
( |
const bool |
b | ) |
|
|
inlinestaticinherited |
Definition at line 53 of file VP1String.h.
53 {
return b?
"True":
"False"; }
◆ str() [3/30]
static QString VP1String::str |
( |
const char * |
c | ) |
|
|
inlinestaticinherited |
◆ str() [4/30]
static QString VP1String::str |
( |
const double & |
d | ) |
|
|
inlinestaticinherited |
◆ str() [5/30]
static QString VP1String::str |
( |
const float & |
f | ) |
|
|
inlinestaticinherited |
◆ str() [6/30]
◆ str() [7/30]
QString VP1String::str |
( |
const QColor & |
c | ) |
|
|
staticinherited |
Definition at line 30 of file VP1String.cxx.
32 return c.isValid() ?
c.name() :
"Invalid";
◆ str() [8/30]
template<class T >
static QString VP1String::str |
( |
const QFlags< T > & |
f | ) |
|
|
inlinestaticinherited |
◆ str() [9/30]
template<class T >
static QString VP1String::str |
( |
const QList< T > & |
t | ) |
|
|
inlinestaticinherited |
◆ str() [10/30]
static QString VP1String::str |
( |
const QString & |
s | ) |
|
|
inlinestaticinherited |
◆ str() [11/30]
QString VP1String::str |
( |
const SbColor & |
c | ) |
|
|
staticinherited |
◆ str() [12/30]
QString VP1String::str |
( |
const SbVec2d & |
v | ) |
|
|
staticinherited |
◆ str() [13/30]
QString VP1String::str |
( |
const SbVec2f & |
v | ) |
|
|
staticinherited |
◆ str() [14/30]
QString VP1String::str |
( |
const SbVec2s & |
v | ) |
|
|
staticinherited |
◆ str() [15/30]
QString VP1String::str |
( |
const SbVec3d & |
v | ) |
|
|
staticinherited |
◆ str() [16/30]
QString VP1String::str |
( |
const SbVec3f & |
v | ) |
|
|
staticinherited |
◆ str() [17/30]
QString VP1String::str |
( |
const SbVec3s & |
v | ) |
|
|
staticinherited |
◆ str() [18/30]
QString VP1String::str |
( |
const SbVec4d & |
v | ) |
|
|
staticinherited |
◆ str() [19/30]
QString VP1String::str |
( |
const SbVec4f & |
v | ) |
|
|
staticinherited |
◆ str() [20/30]
template<class T >
static QString VP1String::str |
( |
const T * |
t | ) |
|
|
inlinestaticinherited |
Definition at line 87 of file VP1String.h.
87 {
return str(
static_cast<const void*
>(
t)); }
◆ str() [21/30]
QString VP1String::str |
( |
const void * |
p | ) |
|
|
staticinherited |
Definition at line 48 of file VP1String.cxx.
54 return QString (
s.str().c_str());
◆ str() [22/30]
◆ str() [23/30]
static QString VP1String::str |
( |
int |
n | ) |
|
|
inlinestaticinherited |
◆ str() [24/30]
static QString VP1String::str |
( |
long |
n | ) |
|
|
inlinestaticinherited |
◆ str() [25/30]
static QString VP1String::str |
( |
qlonglong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [26/30]
static QString VP1String::str |
( |
qulonglong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [27/30]
static QString VP1String::str |
( |
short int |
n | ) |
|
|
inlinestaticinherited |
◆ str() [28/30]
static QString VP1String::str |
( |
uint |
n | ) |
|
|
inlinestaticinherited |
◆ str() [29/30]
static QString VP1String::str |
( |
ulong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [30/30]
static QString VP1String::str |
( |
unsigned short int |
n | ) |
|
|
inlinestaticinherited |
◆ systemBase()
IVP1System* VP1HelperClassBase::systemBase |
( |
| ) |
const |
|
inlineinherited |
◆ text()
QString VP1StdCollection::text |
( |
| ) |
const |
|
inherited |
◆ toBaseCollList()
Definition at line 80 of file VP1Collection.h.
82 QList<VP1Collection*>
l;
84 l << static_cast<T*>(
t);
◆ tracksFromVertexChanged
void VP1VertexCollection::tracksFromVertexChanged |
( |
QList< std::pair< const SoMaterial *, QList< const Trk::Track * > > > & |
| ) |
|
|
signal |
◆ updateAllShapes
void VP1VertexCollection::updateAllShapes |
( |
| ) |
|
|
slot |
◆ updateStates()
Definition at line 118 of file VP1Collection.cxx.
121 QMapIterator<QByteArray,QByteArray>
it(newInfo);
122 while (
it.hasNext()) {
124 state.insert(
it.key(),
it.value());
◆ verbose()
static bool VP1HelperClassBase::verbose |
( |
| ) |
|
|
inlinestaticinherited |
◆ visibilityChanged
void VP1StdCollection::visibilityChanged |
( |
bool |
| ) |
|
|
signalinherited |
◆ visible()
bool VP1StdCollection::visible |
( |
| ) |
const |
|
inherited |
◆ warnUndeletedInstances()
void VP1HelperClassBase::warnUndeletedInstances |
( |
| ) |
|
|
staticinherited |
Definition at line 183 of file VP1HelperClassBase.cxx.
185 if (vp1helperclassbase_instanceMap.empty())
187 std::cout <<
"WARNING: Detected "<<vp1helperclassbase_instanceMap.size()<<
" undeleted helper class instances:"<<std::endl;
190 for (
it = vp1helperclassbase_instanceMap.begin();
it!=
itE;++
it) {
191 std::cout <<
" ==> "<<
it->first<<
": "<<
it->first->m_helpername.toStdString()
192 << (
it->second.isEmpty()?QString(
""):
" (in system "+
it->
second+
")").toStdString()<<std::endl;
◆ widgetsForGuiRow()
QList< QWidget * > VP1Collection::widgetsForGuiRow |
( |
| ) |
const |
|
virtualinherited |
◆ m_colourby
COLOURBY VP1VertexCollection::m_colourby |
|
private |
◆ m_d
Imp* VP1VertexCollection::m_d |
|
private |
◆ m_helpername
QString VP1HelperClassBase::m_helpername |
|
privateinherited |
◆ m_system
◆ s_vp1verbose
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
JetConstituentVector::iterator iterator
QMap< QByteArray, QByteArray > VP1CollStates
Const iterator class for DataVector/DataList.
const Trk::RecVertex & recVertex(void) const
Returns a reference to reconstructed vertex.
static QString comboBoxEntry_ColourByRandom()
VP1StdCollection(IVP1System *, const QString &helperClassName)
QList< QWidget * > widgetsForGuiRow
void serialise(const std::vector< const IRoiDescriptor * > &rois, roiserial_type &s)
serialise an entire vector of IRoiDescriptors
virtual QList< QWidget * > provideWidgetsForGuiRow() const =0
qint32 collTypeID() const
void messageVerbose(const QString &) const
static const bool s_vp1verbose
void collVisibilityChanged(bool vis)
virtual void init(VP1MaterialButtonBase *button=0)
virtual void largeChangesBegin()
static VP1CameraHelper * animatedZoomToPath(SoCamera *camera, SoGroup *sceneroot, SoPath *path, double duration_in_secs=1.0, double clipVolPercent=100.0, double slack=1.0, const SbVec3f &lookat=SbVec3f(999, 999, 999), const SbVec3f &upvec=SbVec3f(999, 999, 999), bool varySpeed=true, bool forceCircular=false)
virtual QByteArray extraWidgetsState() const
static QString str(const QString &s)
void messageDebug(const QString &) const
static bool deserialiseSoMaterial(QByteArray &, SoMaterial *&)
bool printVerboseInfoOnClick() const
QStringList getKeys() const
def save(self, fileName="./columbo.out")
VP1VertexCollection * theclass
std::vector< Trk::VxTrackAtVertex * > * vxTrackAtVertex(void)
Unconst pointer to the vector of tracks Required by some of the vertex fitters.
static const char * prefix_msg()
VertexSysController * controller
void findAssociatedTracks(const Trk::VxCandidate *vtx, QList< const Trk::Track * > &tracks, QList< const Trk::TrackParticleBase * > &trackparticles)
VP1MaterialButtonBase * matButton
void visibilityChanged(bool)
void recheckCut(VertexHandle *vh)
virtual MsgStream & dump(MsgStream &sl) const
Output Method for MsgStream, to be overloaded by child classes.
const QString & name() const
virtual QList< QWidget * > provideExtraWidgetsForGuiRow() const
QList< VertexHandle * > vertices
void tracksFromVertexChanged(QList< std::pair< const SoMaterial *, QList< const Trk::Track * > > > &)
QList< QWidget * > extraWidgets
void setColourBy(COLOURBY)
const Amg::Vector3D & position() const
return position of vertex
void rerandomiseRandomVertexColours()
bool problemsLoading() const
virtual void collMaterialTransparencyAndBrightnessChanged()
double lastMatTransparency
static QColor sbcol2qcol(const SbColor &)
IVP1System * systemBase() const
virtual QByteArray providePersistifiableID() const =0
virtual QList< QWidget * > widgetsForGuiRow() const
static const char * prefix_debug()
bool widgetsForGuiRowProvided
virtual void largeChangesEnd()
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
virtual QString provideSection() const =0
QComboBox * comboBox_colourby
bool sectionToolTipProvided
static const char * prefix_verbose()
int largechangescount_sep
static void messageDebug(const QString &)
virtual QString provideSectionToolTip() const
int largechangescount_switch
SoSeparator * collSep() const
All 3D objects from this coll.
VP1VertexCollection(VertexSysController *controller, const QString &key)
static QString comboBoxEntry_ColourByCollection()
bool printInfoOnClick() const
void message(const QString &) const
void colourByComboBoxItemChanged()
virtual COLOURBY defaultColourBy() const
virtual QString provideText() const =0
void message(const QString &) const
virtual qint32 provideCollTypeID() const
virtual void setExtraWidgetsState(const QByteArray &)
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.