|
ATLAS Offline Software
|
#include <VP1TrackSystem.h>
|
| VP1TrackSystem (const QString &name="Tracks") |
|
virtual | ~VP1TrackSystem () |
|
void | systemcreate (StoreGateSvc *detstore) |
|
void | systemuncreate () |
|
QWidget * | buildController () |
|
void | buildEventSceneGraph (StoreGateSvc *sg, SoSeparator *root) |
|
void | systemerase () |
|
QByteArray | saveState () |
|
void | restoreFromState (QByteArray) |
|
void | userPickedNode (SoNode *pickedNode, SoPath *pickedPath) |
|
void | userSelectedSingleNode (SoCooperativeSelection *, SoNode *, SoPath *) |
|
void | userDeselectedSingleNode (SoCooperativeSelection *, SoNode *, SoPath *) |
|
void | userChangedSelection (SoCooperativeSelection *, QSet< SoNode * >, QSet< SoPath * >) |
|
void | userClickedOnBgd () |
|
SoCooperativeSelection * | selTracks () |
| Needed in TrackSystemController::objectBrowserClicked(QTreeWidgetItem * item, int) More...
|
|
SoCooperativeSelection * | selAscs () |
| Needed in TrackSystemController::objectBrowserClicked(QTreeWidgetItem * item, int) More...
|
|
SoMaterial * | materialFromVertex (const TrackHandleBase *trk) const |
| Returns the material for the vertex which knows this trackhandle (if known) More...
|
|
void | ensureBuildController () |
|
virtual void | buildPermanentSceneGraph (StoreGateSvc *detstore, SoSeparator *root) |
|
void | updateGUI () |
|
void | warnOnDisabledNotifications () const |
|
void | registerCamera (SoCamera *camera) |
|
void | registerViewer (SoQtViewer *viewer) |
|
void | registerSelectionNode (SoCooperativeSelection *) |
|
void | unregisterSelectionNode (SoCooperativeSelection *) |
|
void | setUserSelectionNotificationsEnabled (SoCooperativeSelection *sel, bool enabled) |
|
virtual void | deselectAll (SoCooperativeSelection *exception_sel=0) |
|
CamList | getCameraList () |
|
virtual QWidget * | buildExtraDisplayWidget () |
|
const QString & | name () const |
|
const QString & | information () const |
|
const QString & | contact_info () const |
|
QWidget * | controllerWidget () |
|
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 |
|
StoreGateSvc * | storeGate () const |
|
StoreGateSvc * | eventStore () const |
|
StoreGateSvc * | detectorStore () const |
|
ISvcLocator * | serviceLocator () const |
|
IToolSvc * | toolSvc () const |
|
State | state () const |
|
ActiveState | activeState () const |
|
Definition at line 36 of file VP1TrackSystem.h.
◆ CamList
◆ CamListItr
◆ ActiveState
◆ State
Enumerator |
---|
CONSTRUCTED | |
REFRESHED | |
ERASED | |
UNCREATED | |
Definition at line 143 of file IVP1System.h.
◆ VP1TrackSystem()
VP1TrackSystem::VP1TrackSystem |
( |
const QString & |
name = "Tracks" | ) |
|
Definition at line 136 of file VP1TrackSystem.cxx.
138 "System showing all track-like objects.",
139 "Edward.Moyse@cern.ch, Thomas.Kittelmann@cern.ch"),
m_d(
new Imp)
150 const unsigned n_chamber_t0_sources=2;
◆ ~VP1TrackSystem()
VP1TrackSystem::~VP1TrackSystem |
( |
| ) |
|
|
virtual |
◆ activateClickedOutside
void IVP13DSystem::activateClickedOutside |
( |
| ) |
|
|
privateslotinherited |
◆ activeState()
◆ allowUpdateGUI()
void IVP1System::allowUpdateGUI |
( |
| ) |
|
|
privateinherited |
◆ buildController()
QWidget * VP1TrackSystem::buildController |
( |
| ) |
|
|
virtual |
◆ buildEventSceneGraph()
void VP1TrackSystem::buildEventSceneGraph |
( |
StoreGateSvc * |
sg, |
|
|
SoSeparator * |
root |
|
) |
| |
|
virtual |
Implements IVP13DSystemSimple.
Definition at line 212 of file VP1TrackSystem.cxx.
217 SoComplexity * complexity =
new SoComplexity;
218 complexity->value.setValue(0.3
f);
219 root->addChild(complexity);
249 SoFont *myFont =
new SoFont;
250 myFont->name.setValue(
"Arial");
251 myFont->size.setValue(12.0);
278 std::vector<std::string>
key;
279 key.emplace_back(
"MooreMuonChamberT0s");
280 key.emplace_back(
"MboyMuonChamberT0s");
284 assert(
i<
key.size());
290 if (isThere && sg->
retrieve(chamberT0s,
key[
i]).isFailure())
291 message(
"Problems loading ChamberT0s!");
298 std::vector< std::pair< Identifier, float > >::const_iterator
it, itEnd=chamberT0s->getAllT0s().end();
299 for (
it=chamberT0s->getAllT0s().begin();
it!=itEnd; ++
it){
◆ buildExtraDisplayWidget()
virtual QWidget* IVP13DSystem::buildExtraDisplayWidget |
( |
| ) |
|
|
inlinevirtualinherited |
◆ buildPermanentSceneGraph()
void IVP13DSystemSimple::buildPermanentSceneGraph |
( |
StoreGateSvc * |
detstore, |
|
|
SoSeparator * |
root |
|
) |
| |
|
virtualinherited |
◆ channel()
◆ contact_info()
const QString & IVP1System::contact_info |
( |
| ) |
const |
|
inherited |
◆ controllerWidget()
QWidget * IVP1System::controllerWidget |
( |
| ) |
|
|
inherited |
◆ create()
◆ deleteController()
void IVP1System::deleteController |
( |
| ) |
|
|
privateinherited |
◆ deselectAll()
Reimplemented in VP1PrepRawDataSystem.
Definition at line 331 of file IVP13DSystem.cxx.
335 if (
it->second!=
this)
337 if (
it->first!=exception_sel) {
338 if (
it->first->policy.getValue()!=SoCooperativeSelection::SINGLE) {
340 it->first->deselectAll();
343 if (
it->first->getList()->getLength()==1) {
345 SoPath *
path =
static_cast<SoPath*
>(
it->first->getList()->get(0));
347 it->first->deselectAll();
◆ detectorStore()
◆ disallowUpdateGUI()
void IVP1System::disallowUpdateGUI |
( |
| ) |
|
|
privateinherited |
◆ emitTouchedMuonChambersChanged
void VP1TrackSystem::emitTouchedMuonChambersChanged |
( |
const std::set< GeoPVConstLink > & |
s | ) |
|
|
privateslot |
◆ ensureBuildController()
void IVP13DSystemSimple::ensureBuildController |
( |
| ) |
|
|
inherited |
◆ erase()
void IVP13DSystemSimple::erase |
( |
| ) |
|
|
privatevirtualinherited |
◆ eventStore()
◆ getCameraList()
std::set< SoCamera * > IVP13DSystem::getCameraList |
( |
| ) |
|
|
inherited |
Definition at line 395 of file IVP13DSystem.cxx.
400 SoCamera*cam = (*it)->getCamera();
402 cameralist.insert(cam);
◆ getSceneGraph()
SoSeparator * IVP13DSystemSimple::getSceneGraph |
( |
| ) |
const |
|
privatevirtualinherited |
◆ inactiveSystemTurnedActive
void IVP1System::inactiveSystemTurnedActive |
( |
| ) |
|
|
signalinherited |
◆ information()
const QString & IVP1System::information |
( |
| ) |
const |
|
inherited |
◆ isRefreshing()
bool IVP1System::isRefreshing |
( |
| ) |
|
|
privateinherited |
◆ itemFromSystemSelected
void IVP13DSystem::itemFromSystemSelected |
( |
| ) |
|
|
signalinherited |
◆ materialFromVertex()
Returns the material for the vertex which knows this trackhandle (if known)
Definition at line 997 of file VP1TrackSystem.cxx.
◆ message() [1/3]
void IVP1System::message |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ message() [2/3]
void IVP1System::message |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
Definition at line 400 of file IVP1System.cxx.
402 if (addtostart.isEmpty()) {
406 if (addtoend.isEmpty()) {
407 for (
const QString&
s :
l)
410 for (
const QString&
s :
l)
◆ message() [3/3]
void IVP1System::message |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
Definition at line 362 of file IVP1System.cxx.
364 if (addtoend.isEmpty()) {
365 for (
const QString&
s :
l)
368 for (
const QString&
s :
l)
◆ messageDebug() [1/3]
void IVP1System::messageDebug |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ messageDebug() [2/3]
void IVP1System::messageDebug |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
Definition at line 416 of file IVP1System.cxx.
418 if (addtostart.isEmpty()) {
422 if (addtoend.isEmpty()) {
423 for (
const QString&
s :
l)
426 for (
const QString&
s :
l)
◆ messageDebug() [3/3]
void IVP1System::messageDebug |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
Definition at line 374 of file IVP1System.cxx.
376 if (addtoend.isEmpty()) {
377 for (
const QString&
s :
l)
380 for (
const QString&
s :
l)
◆ messageVerbose() [1/3]
void IVP1System::messageVerbose |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ messageVerbose() [2/3]
void IVP1System::messageVerbose |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
Definition at line 432 of file IVP1System.cxx.
436 if (addtostart.isEmpty()) {
440 if (addtoend.isEmpty()) {
441 for (
const QString&
s :
l)
444 for (
const QString&
s :
l)
◆ messageVerbose() [3/3]
void IVP1System::messageVerbose |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
Definition at line 386 of file IVP1System.cxx.
390 if (addtoend.isEmpty()) {
391 for (
const QString&
s :
l)
394 for (
const QString&
s :
l)
◆ muonChamberT0sChanged
void VP1TrackSystem::muonChamberT0sChanged |
( |
const std::map< GeoPVConstLink, float > & |
, |
|
|
int |
|
|
) |
| |
|
signal |
The map is the dt0 per chamber, plus a label identifier, which by convention (!) is 0=Moore, 1=Muonboy.
◆ name()
const QString & IVP1System::name |
( |
| ) |
const |
|
inherited |
◆ needErase
void IVP1System::needErase |
( |
| ) |
|
|
signalinherited |
◆ newTrackSelected
◆ objectInMuonChamberSelected
void VP1TrackSystem::objectInMuonChamberSelected |
( |
const GeoPVConstLink & |
chamberPV | ) |
|
|
signal |
◆ possiblyEmitUsedIDProjectionsChanged
void VP1TrackSystem::possiblyEmitUsedIDProjectionsChanged |
( |
| ) |
|
|
privateslot |
◆ refit
void VP1TrackSystem::refit |
( |
| ) |
|
|
privateslot |
Definition at line 778 of file VP1TrackSystem.cxx.
786 if (!currentFitter) {
787 message(
"ERROR - Aborting refit as no fitter available.");
791 QList<const Trk::Track*> fittedtracks;
799 if (fittedtracks.empty())
return;
805 newtrackcoll->
init();
807 QList<TrackCollHandleBase*> newcols;
808 newcols << newtrackcoll;
815 col->setVisible(
true);
◆ refitFromPRDs()
- Parameters
-
currentFitter | currentFitter |
fittedtracks | fittedtracks |
Definition at line 819 of file VP1TrackSystem.cxx.
◆ refitSingleTrack()
Definition at line 892 of file VP1TrackSystem.cxx.
896 if (!trkhandle)
return;
904 currentFitter->
fit(Gaudi::Hive::currentContext(), *
track, outlier, hypo).
release();
907 message(
"Fit failed - no resulting track.");
911 fittedtracks << fittedtrk;
913 std::ostringstream
s;
◆ refresh()
void IVP13DSystemSimple::refresh |
( |
StoreGateSvc * |
storegate | ) |
|
|
privatevirtualinherited |
◆ registerCamera()
void IVP13DSystem::registerCamera |
( |
SoCamera * |
camera | ) |
|
|
inherited |
◆ registerController()
void IVP1System::registerController |
( |
QWidget * |
w | ) |
|
|
protectedinherited |
Definition at line 224 of file IVP1System.cxx.
231 messageVerbose(
"registerController w!=0 = "+QString(
w!=0?
"true":
"false"));
234 message(
"ERROR: Please don't register controllers after create().");
236 message(
"ERROR: Please only register controllers in CONSTRUCTED state.");
238 message(
"ERROR: Attempt to register null controller.");
242 message(
"ERROR: Attempt to register controller twice.");
◆ registerSelectionNode()
Definition at line 257 of file IVP13DSystem.cxx.
260 message(
"registerSelectionNode Error: NULL selection pointer!");
264 message(
"registerSelectionNode Error: Trying to register selection node more than once!");
◆ registerViewer()
void IVP13DSystem::registerViewer |
( |
SoQtViewer * |
viewer | ) |
|
|
inherited |
◆ restoreFromState()
void VP1TrackSystem::restoreFromState |
( |
QByteArray |
ba | ) |
|
|
virtual |
Reimplemented from IVP1System.
Definition at line 409 of file VP1TrackSystem.cxx.
413 if (
state.version()==0) {
415 message(
"Warning: State data has obsolete format - ignoring!");
418 if (
state.version()!=1) {
419 message(
"Warning: State data has wrong format - ignoring!");
430 state.disableUnrestoredChecks();
◆ saveState()
QByteArray VP1TrackSystem::saveState |
( |
| ) |
|
|
virtual |
◆ selAscs()
◆ selTracks()
◆ serviceLocator()
ISvcLocator * IVP1System::serviceLocator |
( |
| ) |
const |
|
inherited |
◆ setActiveState()
◆ setApplicableIDProjections
void VP1TrackSystem::setApplicableIDProjections |
( |
InDetProjFlags::InDetProjPartsFlags |
pixel, |
|
|
InDetProjFlags::InDetProjPartsFlags |
sct, |
|
|
InDetProjFlags::InDetProjPartsFlags |
trt |
|
) |
| |
|
slot |
Definition at line 473 of file VP1TrackSystem.cxx.
477 messageVerbose(
"Signal received in setApplicableIDProjections slot");
499 collhandle->updateInDetProjectionsOfAllHandles();
◆ setCanRegisterController()
void IVP1System::setCanRegisterController |
( |
const bool & |
c | ) |
|
|
privateinherited |
◆ setChannel()
◆ setRefreshing()
void IVP1System::setRefreshing |
( |
const bool & |
b | ) |
|
|
privateinherited |
◆ setSelectedPRDs
◆ setState()
◆ setUserSelectionNotificationsEnabled()
Definition at line 310 of file IVP13DSystem.cxx.
313 message(
"setUserSelectionNotificationsEnabled Error: NULL selection pointer!");
317 message(
"setUserSelectionNotificationsEnabled Error: Called for selection which was never registered!");
◆ state()
◆ storeGate()
◆ 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 |
◆ sysmessage
void IVP1System::sysmessage |
( |
QString |
| ) |
const |
|
signalinherited |
◆ systemcreate()
void VP1TrackSystem::systemcreate |
( |
StoreGateSvc * |
detstore | ) |
|
|
virtual |
◆ systemerase()
void VP1TrackSystem::systemerase |
( |
| ) |
|
|
virtual |
Reimplemented from IVP13DSystemSimple.
Definition at line 343 of file VP1TrackSystem.cxx.
370 +
" instances of AssociatedObjectHandleBase alive at end of systemerase(). "
371 "(ignore this warning if there is more than one track system instance).");
374 +
" instances of TrackHandleBase alive at end of systemerase(). "
375 "(ignore this warning if there is more than one track system instance).");
380 for(;itMat!=itMatEnd;++itMat) {
381 SoMaterial* curmat = itMat->second;
◆ systemuncreate()
void VP1TrackSystem::systemuncreate |
( |
| ) |
|
|
virtual |
◆ toolSvc()
IToolSvc * IVP1System::toolSvc |
( |
| ) |
const |
|
inherited |
◆ touchedMuonChambersChanged
void VP1TrackSystem::touchedMuonChambersChanged |
( |
const std::set< GeoPVConstLink > & |
| ) |
|
|
signal |
◆ tracksFromVertexChanged
void VP1TrackSystem::tracksFromVertexChanged |
( |
QList< std::pair< const SoMaterial *, QList< const Trk::Track * > > > & |
vertexList | ) |
|
|
slot |
Definition at line 973 of file VP1TrackSystem.cxx.
980 for (
const auto&
it : vertexList){
981 SoMaterial*
mat =
const_cast<SoMaterial*
>(
it.first);
994 if (coll->allowColourByVertex()) coll->updateMaterialOfAllHandles();
◆ uncreate()
void IVP13DSystemSimple::uncreate |
( |
| ) |
|
|
privatevirtualinherited |
◆ unregisterSelectionNode()
Definition at line 281 of file IVP13DSystem.cxx.
284 message(
"unregisterSelectionNode Error: NULL selection pointer!");
288 message(
"registerSelectionNode Error: Trying to unregister unknown selection node!");
◆ updateAlignment
void VP1TrackSystem::updateAlignment |
( |
| ) |
|
|
slot |
Special mode to allow in VP1 alignment tests.
Definition at line 923 of file VP1TrackSystem.cxx.
930 assert (
values.size()==6);
943 message (
"No selection manager - giving up.");
◆ updateGUI()
void IVP13DSystemSimple::updateGUI |
( |
| ) |
|
|
inlineinherited |
◆ updateSelectionMode
void VP1TrackSystem::updateSelectionMode |
( |
| ) |
|
|
privateslot |
◆ updateShownTotMomentum
void VP1TrackSystem::updateShownTotMomentum |
( |
| ) |
|
|
privateslot |
Definition at line 678 of file VP1TrackSystem.cxx.
703 SoVertexProperty * vertices =
new SoVertexProperty;
708 SoVertexProperty * vertices =
static_cast<SoVertexProperty*
>(
m_d->
totmomline->vertexProperty.getValue());
709 vertices->vertex.set1Value(0,totpos.x(),totpos.y(),totpos.z());
710 vertices->vertex.set1Value(1,
p2.x(),
p2.y(),
p2.z());
◆ usedIDProjectionsChanged
void VP1TrackSystem::usedIDProjectionsChanged |
( |
InDetProjFlags::DetTypeFlags |
| ) |
|
|
signal |
◆ userChangedSelection()
void VP1TrackSystem::userChangedSelection |
( |
SoCooperativeSelection * |
sel, |
|
|
QSet< SoNode * > |
, |
|
|
QSet< SoPath * > |
|
|
) |
| |
|
virtual |
◆ userClickedOnBgd()
void VP1TrackSystem::userClickedOnBgd |
( |
| ) |
|
|
virtual |
◆ userDeselectedSingleNode()
◆ userPickedNode()
void VP1TrackSystem::userPickedNode |
( |
SoNode * |
pickedNode, |
|
|
SoPath * |
pickedPath |
|
) |
| |
|
virtual |
◆ userSelectedSingleNode()
void VP1TrackSystem::userSelectedSingleNode |
( |
SoCooperativeSelection * |
sel, |
|
|
SoNode * |
node, |
|
|
SoPath * |
pickedPath |
|
) |
| |
|
virtual |
Reimplemented from IVP13DSystem.
Definition at line 549 of file VP1TrackSystem.cxx.
556 if (
node->getTypeId().isDerivedFrom(SoCylinder::getClassTypeId())) {
558 node=pickedPath->getTail();
562 message(
"ERROR: Unknown track.");
567 messageVerbose(
"userSelectedSingleNode - find measurements for track fit");
571 if (trackmeas.empty())
message(
"In refit mode, but no visible measurements found so can't do anything. Perhaps they're not enabled in 'Details'?");
575 bool oneunselected(
false);
577 if (!currentsel.contains(meas)) {
578 oneunselected =
true;
582 QList<const Trk::PrepRawData*> prdSet;
609 message(
"ERROR: Unknown selection.");
614 if (!pickedHandle||!pickedHandle->initiatesOwnZooms()) {
◆ verbose()
static bool IVP1System::verbose |
( |
| ) |
|
|
inlinestaticinherited |
◆ visibleObjectsChanged
void VP1TrackSystem::visibleObjectsChanged |
( |
| ) |
|
|
privateslot |
Definition at line 441 of file VP1TrackSystem.cxx.
447 std::vector< std::pair<const Trk::Track*, const SoMaterial*> > vistracks;
448 vistracks.reserve(trackhelper->visibleObjects().size());
449 std::map<const Trk::Track*,SoMaterial*>::const_iterator
it,
itE = trackhelper->visibleObjects().end();
450 for (
it = trackhelper->visibleObjects().begin();
it!=
itE;++
it)
451 vistracks.emplace_back(
it->first,
it->second);
460 std::vector< std::pair<const Trk::Segment*, const SoMaterial*> > vissegments;
461 vissegments.reserve(segmenthelper->visibleObjects().size());
462 std::map<const Trk::Segment*,SoMaterial*>::const_iterator
it,
itE = segmenthelper->visibleObjects().end();
463 for (
it = segmenthelper->visibleObjects().begin();
it!=
itE;++
it)
464 vissegments.emplace_back(
it->first,
it->second);
469 message(
"unexpected signal received in visibleObjectsChanged slot");
◆ visibleSegmentsChanged
◆ visibleTracksChanged
◆ warnOnDisabledNotifications()
void IVP13DSystemSimple::warnOnDisabledNotifications |
( |
| ) |
const |
|
inherited |
Definition at line 221 of file IVP13DSystemSimple.cxx.
223 QList<SoNode*> nodesR;
224 QList<SoNode*> nodesE;
227 if (!nodesR.isEmpty()) {
228 message(
"WARNING: Found "+
str(nodesR.count())+
" node"+QString(nodesR.count()>1?
"s":0)+
" with disabled notifications in permanent scenegraph:");
229 for (SoNode *
node : nodesR)
230 message(
" => Node ("+
str(
node)+
") of type "+QString(
node->getTypeId().getName().getString())+
", named "+QString(
node->getName().getString()));
232 if (!nodesE.isEmpty()) {
233 message(
"WARNING: Found "+
str(nodesE.count())+
" node"+QString(nodesE.count()>1?
"s":0)+
" with disabled notifications in event scenegraph:");
234 for (SoNode *
node : nodesE)
235 message(
" => Node ("+
str(
node)+
") of type "+QString(
node->getTypeId().getName().getString())+
", named "+QString(
node->getName().getString()));
◆ m_d
◆ s_vp1verbose
The documentation for this class was generated from the following files:
JetConstituentVector::iterator iterator
virtual void systemuncreate()
InDetProjFlags::DetTypeFlags lastEmittedUsedIDProjections
int multilayer(const Identifier &id) const
Access to components of the ID.
const TrackParameters * trackParameters() const
return ptr to trackparameters const overload
const QString contact_info
bool contains(const TKEY &key) const
Look up a keyed object in TDS (compare also tryRetrieve) returns false if object not available in TDS...
InDetProjFlags::InDetProjPartsFlags parts() const
static std::map< SoCooperativeSelection *, IVP13DSystem * > selection2system
void updateShownTotMomentum()
bool handleUserSelectedSingleNode(SoCooperativeSelection *, SoNode *, SoPath *, AssociatedObjectHandleBase *&)
TrackSystemController * controller() const
const TrkDetElementBase * associatedDetectorElement() const
return associated Detector Element
path
python interpreter configuration --------------------------------------—
static void made_selection(void *userdata, SoPath *path)
void vertexCutsAllowed(bool)
std::string find(const std::string &s)
return a remapped string
IVP13DSystemSimple(const QString &name, const QString &information, const QString &contact_info)
std::set< SoQtViewer * > viewers
virtual QWidget * buildController()
void serialise(const std::vector< const IRoiDescriptor * > &rois, roiserial_type &s)
serialise an entire vector of IRoiDescriptors
TrackLODManager * trackLODManager() const
void refitFromPRDs(const Trk::ITrackFitter *currentFitter, QList< const Trk::Track * > &fittedtracks)
SoSeparator * getAscObjAttachSep() const
const Trk::RIO_OnTrack * rioOnTrack() const
bool is_mdt(const Identifier &id) const
virtual QStringList clicked() const =0
Called when user selects the node (stringlist is displayed in messagebox).
virtual const Surface & associatedSurface() const override=0
Access to the Surface associated to the Parameters.
QList< const Trk::PrepRawData * > selectedPRDs
Stores links between chambers and the reconstructed T0.
void setSelectedPRDs(const QList< const Trk::PrepRawData * > &)
void restoreSettings(const QByteArray &)
bool is_csc(const Identifier &id) const
void inactiveSystemTurnedActive()
const std::string & technologyString(const int &index) const
const Trk::Track * trkTrackPointer() const
static void clickedoutside(void *userdata, SoCooperativeSelection *sel)
void ensureSelected(const QList< AssociatedObjectHandleBase * > &)
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)
int stationName(const Identifier &id) const
virtual Identifier identify() const =0
Identifier.
std::vector< double > alignmentShiftValue()
SoDrawStyle * ascObjDrawStyle() const
static QString str(const QString &s)
QByteArray saveSettings() const
virtual void buildPermanentSceneGraph(StoreGateSvc *detstore, SoSeparator *root)
void visibleSegmentsChanged(const std::vector< std::pair< const Trk::Segment *, const SoMaterial * > > &)
static const bool s_vp1verbose
QString nameOfNewlyFittedCollections() const
Base class for the XxxReadoutElement, with Xxx = Mdt, Rpc, Tgc, Csc.
QList< TrackCollHandleBase * > createCollections()
virtual QByteArray saveState()
StatusCode retrieve(const T *&ptr) const
Retrieve the default object into a const T*.
SoCooperativeSelection * root
Trk::ITrackFitter * trackFitter() const
virtual void buildEventSceneGraph(StoreGateSvc *sg, SoSeparator *root)=0
int alignmentShiftLevel()
void registerSelectionNode(SoCooperativeSelection *)
AscObjSelectionManager * ascObjSelManager
static const char * prefix_msg()
const MdtReadoutElement * getMdtReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
void muonChamberT0sChanged(const std::map< GeoPVConstLink, float > &, int)
The map is the dt0 per chamber, plus a label identifier, which by convention (!) is 0=Moore,...
const QString information
static void start_changeselection(void *userdata, SoSelection *sel)
const CscReadoutElement * getCscReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
TrackCommonFlags::SELECTIONMODE selMode
virtual void systemerase()
InDetProjFlags::DetTypeFlags currentUsedIDProjections() const
unsigned calcTotalMomentumOfSelectedHandles(Amg::Vector3D &totmom, Amg::Vector3D &totpos, double &mass) const
void setCommonData(TrackSysCommonData *)
set pointer to the common data
void usedIDProjectionsChanged(InDetProjFlags::DetTypeFlags)
const QString & name() const
SoCooperativeSelection * sel_tracks
InDetProjHelper * indetProjHelper_SCT() const
void visibleTracksChanged(const std::vector< std::pair< const Trk::Track *, const SoMaterial * > > &)
virtual void systemcreate(StoreGateSvc *detstore)
static int numberOfInstances()
void ensureBuildController()
const MdtIdHelper * mdtIdHelper() const
void newTrackSelected(const TrackHandleBase &)
void refitSingleTrack(const Trk::ITrackFitter *currentFitter, QList< const Trk::Track * > &fittedtracks)
bool printInfoOnSingleSelection() const
Trk::ParticleHypothesis fitterParticleHypthesis() const
StoreGateSvc * eventStore() const
void possiblyEmitUsedIDProjectionsChanged()
void sysmessage(QString) const
static ISvcLocator * serviceLocator()
int stationPhi(const Identifier &id) const
void setLastSelectedTrack(TrackHandleBase *sel)
const std::string & stationNameString(const int &index) const
static StoreGateSvc * eventStore()
static QColor sbcol2qcol(const SbColor &)
TrackCommonFlags::FITTERMODE fitterMode() const
bool fitterRemoveOutliers() const
std::set< SoCamera * > staticcameras
const std::string selection
void messageDebug(const QString &) const
StoreGateSvc * detectorStore() const
static IToolSvc * toolSvc()
TrackHandleBase * lastSelectedTrackHandle()
pointer to base of last selected track (zero if nothing selected)
void getNodesWithDisabledNotifications(SoGroup *, QList< SoNode * > &) const
static const char * prefix_debug()
TrackHandleBase * trackHandle(SoNode *n)
int stationEta(const Identifier &id) const
Eigen::Matrix< double, 3, 1 > Vector3D
virtual const Trk::PrepRawData * prepRawData() const =0
returns the PrepRawData (also known as RIO) object to which this RIO_OnTrack is associated.
bool orientAndZoomOnSingleSelection() const
void registerController(QWidget *)
virtual void init(VP1MaterialButtonBase *matBut=0)
static const MdtIdHelper * mdtIDHelper()
static const char * prefix_verbose()
static const MuonGM::MuonDetectorManager * muonDetMgr()
bool printTotMomentumOnMultiTrackSelection() const
QList< AssociatedObjectHandleBase * > getVisibleMeasurements() const
static void made_deselection(void *userdata, SoPath *path)
TrackCommonFlags::SELECTIONMODE selectionMode() const
QTreeWidget * trackObjBrowser() const
Returns a pointer to the Track Object Browser (if it exists)
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
int technology(const Identifier &id) const
void touchedMuonChambersChanged(const std::set< GeoPVConstLink > &)
IVP1ChannelWidget * channel
void unregisterSelectionNode(SoCooperativeSelection *)
void warnOnDisabledNotifications() const
static QString toString(const SELECTIONMODE &)
SoComplexity * ascObjComplexity() const
QSet< SoCooperativeSelection * > selectionsWithDisabledNotifications
InDetProjHelper * indetProjHelper_TRT() const
InDetProjHelper * indetProjHelper_Pixel() const
static void finished_changeselection(void *userdata, SoSelection *sel)
std::map< const Trk::Track *, SoMaterial * > vertexMaterialForTrackBases
TrackCollWidget * collWidget() const
virtual std::unique_ptr< Track > fit(const EventContext &ctx, const Track &track, const RunOutlierRemoval runOutlier=false, const ParticleHypothesis matEffects=Trk::nonInteracting) const =0
RE-FIT A TRACK.
VP1TrackSystem * theclass
virtual void userClickedOnBgd()
TrackSysCommonData * common
const CscIdHelper * cscIdHelper() const
virtual const TrkDetElementBase * detectorElement() const =0
returns the detector element, assoicated with the PRD of this class
const Trk::TrackStateOnSurface * trackStateOnSurface() const
bool clickedoutsideScheduled
bool canregistercontroller
static StoreGateSvc * detectorStore()
InDetProjFlags::InDetProjPartsFlags setParts(InDetProjFlags::InDetProjPartsFlags)
bool showTotMomentumOnMultiTrackSelection() const
static int numberOfInstances()
const QList< AssociatedObjectHandleBase * > & currentSelection() const
void ensureDeselected(const QList< AssociatedObjectHandleBase * > &)
std::vector< std::map< GeoPVConstLink, float > > chamberT0s
void setAttachNode(SoGroup *attachnode)
PVConstLink parentStationPV() const
void message(const QString &) const
virtual void deselectAll(SoCooperativeSelection *exception_sel=0)
void messageVerbose(const QString &) const
void setEventData(AscObjSelectionManager *)
void setNumberOfSelectedPRDsAndTracks(unsigned prds, unsigned trks)
void updateSelectionMode()
virtual void restoreFromState(QByteArray)