#include <VP1AODSystem.h>
|
| | VP1AODSystem (const QString &name="Analysis") |
| virtual | ~VP1AODSystem () |
| void | systemcreate (StoreGateSvc *detstore) |
| void | systemuncreate () |
| QWidget * | buildController () |
| void | buildEventSceneGraph (StoreGateSvc *sg, SoSeparator *root) |
| void | systemerase () |
| QByteArray | saveState () |
| void | restoreFromState (QByteArray) |
| SoCooperativeSelection * | selObjects () const |
| void | userPickedNode (SoNode *pickedNode, SoPath *pickedPath) |
| | Reimplementing methods declared in IVP13DSystem.
|
| void | userSelectedSingleNode (SoCooperativeSelection *, SoNode *, SoPath *) |
| void | userDeselectedSingleNode (SoCooperativeSelection *, SoNode *, SoPath *) |
| void | userChangedSelection (SoCooperativeSelection *, const QSet< SoNode * > &, QSet< SoPath * >) |
| void | userClickedOnBgd () |
| 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 |
|
| static bool | verbose () |
| static QString | str (const QString &s) |
| static QString | str (const char *c) |
| static QString | str (const bool b) |
| static QString | str (const QColor &) |
| static QString | str (const SbColor &) |
| static QString | str (const VP1Interval &) |
| static QString | str (const SbVec2d &) |
| static QString | str (const SbVec2f &) |
| static QString | str (const SbVec2s &) |
| static QString | str (const SbVec3d &) |
| static QString | str (const SbVec3f &) |
| static QString | str (const SbVec3s &) |
| static QString | str (const SbVec4d &) |
| static QString | str (const SbVec4f &) |
| static QString | str (short int n) |
| static QString | str (unsigned short int n) |
| static QString | str (long n) |
| static QString | str (ulong n) |
| static QString | str (int n) |
| static QString | str (uint n) |
| static QString | str (qlonglong n) |
| static QString | str (qulonglong n) |
| static QString | str (const double &d) |
| static QString | str (const float &f) |
| static QString | str (const void *) |
| template<class T> |
| static QString | str (const T *t) |
| template<class T> |
| static QString | str (const QFlags< T > &f) |
| template<class T> |
| static QString | str (const HepGeom::BasicVector3D< T > &t) |
| static QString | str (const Amg::Vector3D &t) |
| template<class T> |
| static QString | str (const QList< T > &t) |
Definition at line 34 of file VP1AODSystem.h.
◆ CamList
◆ CamListItr
◆ ActiveState
◆ State
| Enumerator |
|---|
| CONSTRUCTED | |
| REFRESHED | |
| ERASED | |
| UNCREATED | |
Definition at line 143 of file IVP1System.h.
◆ VP1AODSystem()
| VP1AODSystem::VP1AODSystem |
( |
const QString & | name = "Analysis" | ) |
|
Definition at line 139 of file VP1AODSystem.cxx.
141"System showing all (x)AOD objects.",
142"Edward.Moyse@cern.ch, Riccardo.maria.bianchi@cern.ch, Sebastian.Andreas.Merkt@cern.ch"),
m_d(
new Imp)
143
144{
145 m_d->theclass =
this;
151}
IVP13DSystemSimple(const QString &name, const QString &information, const QString &contact_info)
const QString & name() const
Eigen::Matrix< double, 3, 1 > Vector3D
◆ ~VP1AODSystem()
| VP1AODSystem::~VP1AODSystem |
( |
| ) |
|
|
virtual |
Definition at line 154 of file VP1AODSystem.cxx.
155{
158 if(
m_d->common->controller()) {
159 if (
m_d->common->controller()->objBrowser()) {
160 m_d->common->controller()->objBrowser()->close();
161 }
162 }
163 }
164 }
166}
◆ activateClickedOutside
| void IVP13DSystem::activateClickedOutside |
( |
| ) |
|
|
privateslotinherited |
Definition at line 85 of file IVP13DSystem.cxx.
86{
87 if (!
m_d->clickedoutsideScheduled)
88 return;
89 m_d->clickedoutsideScheduled =
false;
91}
virtual void userClickedOnBgd()
◆ activeState()
◆ allowUpdateGUI()
| void IVP1System::allowUpdateGUI |
( |
| ) |
|
|
privateinherited |
◆ buildController()
| QWidget * VP1AODSystem::buildController |
( |
| ) |
|
|
virtual |
Reimplemented from IVP13DSystemSimple.
Definition at line 213 of file VP1AODSystem.cxx.
214{
216 AODSystemController * controller = new AODSystemController(this);
217 m_d->common =
new AODSysCommonData(
this,controller);
219
220
221
222
223
224
226 return controller;
227}
void setCommonData(AODSysCommonData *)
set pointer to the common data
void messageVerbose(const QString &) const
◆ buildEventSceneGraph()
| void VP1AODSystem::buildEventSceneGraph |
( |
StoreGateSvc * | sg, |
|
|
SoSeparator * | root ) |
|
virtual |
Implements IVP13DSystemSimple.
Definition at line 230 of file VP1AODSystem.cxx.
231{
232
233
235
236
237
238
239
240
241
242
243
244 m_d->selObjects =
new SoCooperativeSelection;
246 m_d->selObjects->ref();
248
249
250 m_d->common->setLastSelectedHandle(0);
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
269
270
271 m_d->common->controller()->collWidget()->setCollections(
m_d->createCollections());
272
273
274 for (VP1StdCollection* col :
m_d->common->controller()->collWidget()->collections<VP1StdCollection>()){
275
276 m_d->selObjects->addChild(col->collSwitch());
277 }
278
279 root->addChild(
m_d->selObjects);
280 if (!
m_d->totmomsep) {
281 m_d->totmomsep =
new SoSeparator;
282 m_d->totmomsep->ref();
283 }
284
285 root->addChild(
m_d->totmomsep);
286
288}
void registerSelectionNode(SoCooperativeSelection *)
void updateSelectionMode()
◆ 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()
Implements IVP1System.
Definition at line 133 of file IVP13DSystemSimple.cxx.
134{
137 }
138 assert(!
m_d->wasrefreshed);
139 assert(!
m_d->wascreated);
141 m_d->wascreated=
true;
142 m_d->wasrefreshed=
false;
143}
void ensureBuildController()
◆ deleteController()
| void IVP1System::deleteController |
( |
| ) |
|
|
privateinherited |
◆ deselectAll()
Reimplemented in VP1PrepRawDataSystem.
Definition at line 331 of file IVP13DSystem.cxx.
332{
335 if (
it->second!=
this)
336 continue;
337 if (
it->first!=exception_sel) {
338 if (
it->first->policy.getValue()!=SoCooperativeSelection::SINGLE) {
340 it->first->deselectAll();
342 } else {
343 if (
it->first->getList()->getLength()==1) {
345 SoPath *
path =
static_cast<SoPath*
>(
it->first->getList()->
get(0));
347 it->first->deselectAll();
349 }
350 }
351 }
352 }
353}
static void start_changeselection(void *userdata, SoSelection *sel)
static void finished_changeselection(void *userdata, SoSelection *sel)
static std::map< SoCooperativeSelection *, IVP13DSystem * > selection2system
static void made_deselection(void *userdata, SoPath *path)
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
path
python interpreter configuration --------------------------------------—
◆ detectorStore()
Definition at line 318 of file IVP1System.cxx.
319{
321}
static StoreGateSvc * detectorStore()
◆ disallowUpdateGUI()
| void IVP1System::disallowUpdateGUI |
( |
| ) |
|
|
privateinherited |
◆ dumpToJSON
| void VP1AODSystem::dumpToJSON |
( |
| ) |
|
|
slot |
Definition at line 726 of file VP1AODSystem.cxx.
727{
728
729
730
731
732
733
734
735 std::ofstream
outfile (
"EventDump.json");
738 outfile<<
"\"event number\":234, \"run number\":234,\n";
739
741
742 for (
auto col :
m_d->common->controller()->collWidget()->visibleStdCollections() ){
743 AODCollHandleBase* ahandle = dynamic_cast<AODCollHandleBase*>(col);
744 if (!ahandle){
745 message(
"WAAAAH! Not an AODCollHandleBase! Should never happen!");
746 continue;
747 }
748
749
750
751
752 if (ahandle->
xAODType()!=lastType) {
753
754
756
758 }
760
761
762
764
765 } else {
766
767
769 }
770
772
773 }
774
776 } else {
777 message(
"WAAAAH! Problem opening EventDump.json for output!");
778 }
779 message(
"Wrote visible objects to \'EventDump.json\'");
780}
xAOD::Type::ObjectType xAODType() const
Dummy implementation does nothing.
virtual void dumpToJSON(std::ofstream &) const
void message(const QString &) const
ObjectType
Type of objects that have a representation in the xAOD EDM.
@ EventInfo
The object is an event information one.
◆ ensureBuildController()
| void IVP13DSystemSimple::ensureBuildController |
( |
| ) |
|
|
inherited |
Definition at line 90 of file IVP13DSystemSimple.cxx.
91{
92 if (
m_d->controllerBuilt)
93 return;
94 m_d->controllerBuilt=
true;
97 }
99 if (controller)
103 }
104}
virtual QWidget * buildController()
void registerController(QWidget *)
static QString str(const QString &s)
◆ erase()
| void IVP13DSystemSimple::erase |
( |
| ) |
|
|
privatevirtualinherited |
Implements IVP1System.
Definition at line 173 of file IVP13DSystemSimple.cxx.
174{
177 }
178 assert(
m_d->wascreated);
179 assert(
m_d->wasrefreshed);
180
181 bool saveE =
m_d->rootE->enableNotify(
false);
182
185 messageVerbose(
"IVP13DSystemSimple::erase() Removing all event objects from scene");
187 }
188 m_d->rootE->removeAllChildren();
189
190 if (saveE) {
191 m_d->rootE->enableNotify(
true);
193 }
194
195 m_d->wasrefreshed=
false;
198 }
199}
virtual void systemerase()
void warnOnDisabledNotifications() const
◆ eventStore()
Definition at line 312 of file IVP1System.cxx.
313{
315}
static StoreGateSvc * eventStore()
◆ getCameraList()
| std::set< SoCamera * > IVP13DSystem::getCameraList |
( |
| ) |
|
|
inherited |
Definition at line 395 of file IVP13DSystem.cxx.
396{
397 std::set<SoCamera*> cameralist =
m_d->staticcameras;
398 std::set<SoQtViewer*>::const_iterator
it,
itE=
m_d->viewers.end();
399 for (it=
m_d->viewers.begin();it!=itE;++it) {
400 SoCamera*cam = (*it)->getCamera();
401 if (cam)
402 cameralist.insert(cam);
403 }
404
405
406 return cameralist;
407}
◆ 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 |
◆ message() [1/3]
| void IVP1System::message |
( |
const QString & | str | ) |
const |
|
inherited |
Definition at line 336 of file IVP1System.cxx.
337{
338 if (receivers(SIGNAL(
sysmessage(QString))) > 0){
340 }
341 else{
343 }
344}
void sysmessage(QString) const
static const char * prefix_msg()
◆ 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.
401{
402 if (addtostart.isEmpty()) {
404 return;
405 }
406 if (addtoend.isEmpty()) {
407 for (const QString& s : l)
409 } else {
410 for (const QString& s : l)
411 message(addtostart+s+addtoend);
412 }
413}
◆ message() [3/3]
| void IVP1System::message |
( |
const QStringList & | l, |
|
|
const QString & | addtoend = "" ) const |
|
inherited |
Definition at line 362 of file IVP1System.cxx.
363{
364 if (addtoend.isEmpty()) {
365 for (const QString& s : l)
367 } else {
368 for (const QString& s : l)
370 }
371}
◆ messageDebug() [1/3]
| void IVP1System::messageDebug |
( |
const QString & | str | ) |
const |
|
inherited |
Definition at line 347 of file IVP1System.cxx.
348{
351}
static const char * prefix_debug()
◆ 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.
417{
418 if (addtostart.isEmpty()) {
420 return;
421 }
422 if (addtoend.isEmpty()) {
423 for (const QString& s : l)
425 } else {
426 for (const QString& s : l)
428 }
429}
void messageDebug(const QString &) const
◆ messageDebug() [3/3]
| void IVP1System::messageDebug |
( |
const QStringList & | l, |
|
|
const QString & | addtoend = "" ) const |
|
inherited |
Definition at line 374 of file IVP1System.cxx.
375{
376 if (addtoend.isEmpty()) {
377 for (const QString& s : l)
379 } else {
380 for (const QString& s : l)
382 }
383}
◆ messageVerbose() [1/3]
| void IVP1System::messageVerbose |
( |
const QString & | str | ) |
const |
|
inherited |
Definition at line 354 of file IVP1System.cxx.
355{
358}
static const char * prefix_verbose()
◆ 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.
433{
435 return;
436 if (addtostart.isEmpty()) {
438 return;
439 }
440 if (addtoend.isEmpty()) {
441 for (const QString& s : l)
443 } else {
444 for (const QString& s : l)
446 }
447}
◆ messageVerbose() [3/3]
| void IVP1System::messageVerbose |
( |
const QStringList & | l, |
|
|
const QString & | addtoend = "" ) const |
|
inherited |
Definition at line 386 of file IVP1System.cxx.
387{
389 return;
390 if (addtoend.isEmpty()) {
391 for (const QString& s : l)
393 } else {
394 for (const QString& s : l)
396 }
397}
◆ name()
| const QString & IVP1System::name |
( |
| ) |
const |
|
inherited |
◆ needErase
| void IVP1System::needErase |
( |
| ) |
|
|
signalinherited |
◆ refresh()
| void IVP13DSystemSimple::refresh |
( |
StoreGateSvc * | storegate | ) |
|
|
privatevirtualinherited |
Implements IVP1System.
Definition at line 146 of file IVP13DSystemSimple.cxx.
147{
148 assert(
m_d->wascreated);
149 assert(!
m_d->wasrefreshed);
150
153 messageVerbose(
"IVP13DSystemSimple first refresh - so calling create methods (i.e. delayed create).");
154 }
157 m_d->root->removeChild(
m_d->rootR);
159 m_d->root->addChild(
m_d->rootR);
160 }
161
162 m_d->root->removeChild(
m_d->rootE);
166 m_d->root->addChild(
m_d->rootE);
167
168 m_d->wasrefreshed=
true;
169
170}
virtual void systemcreate(StoreGateSvc *detstore)
virtual void buildPermanentSceneGraph(StoreGateSvc *detstore, SoSeparator *root)
virtual void buildEventSceneGraph(StoreGateSvc *sg, SoSeparator *root)=0
StoreGateSvc * detectorStore() const
◆ registerCamera()
| void IVP13DSystem::registerCamera |
( |
SoCamera * | camera | ) |
|
|
inherited |
Definition at line 410 of file IVP13DSystem.cxx.
410 {
411 if (!cam)
412 return;
413 m_d->staticcameras.insert(cam);
414 cam->ref();
415}
◆ registerController()
| void IVP1System::registerController |
( |
QWidget * | w | ) |
|
|
protectedinherited |
Definition at line 224 of file IVP1System.cxx.
225{
228 messageVerbose(
"registerController m_d->canregistercontroller = "+QString(
m_d->canregistercontroller?
"true":
"false"));
230 messageVerbose(
"registerController m_d->controller==0 = "+QString(
m_d->controller==0?
"true":
"false"));
231 messageVerbose(
"registerController w!=0 = "+QString(w!=0?
"true":
"false"));
232 }
233 if (!
m_d->canregistercontroller)
234 message(
"ERROR: Please don't register controllers after create().");
236 message(
"ERROR: Please only register controllers in CONSTRUCTED state.");
237 if (!w) {
238 message(
"ERROR: Attempt to register null controller.");
239 return;
240 }
241 if (
m_d->controller) {
242 message(
"ERROR: Attempt to register controller twice.");
243 return;
244 }
247}
◆ registerSelectionNode()
Definition at line 257 of file IVP13DSystem.cxx.
258{
260 message(
"registerSelectionNode Error: NULL selection pointer!");
261 return;
262 }
264 message(
"registerSelectionNode Error: Trying to register selection node more than once!");
265 return;
266 }
267
273
276
278}
static void clickedoutside(void *userdata, SoCooperativeSelection *sel)
static void made_selection(void *userdata, SoPath *path)
const std::string selection
std::string find(const std::string &s)
return a remapped string
◆ registerViewer()
| void IVP13DSystem::registerViewer |
( |
SoQtViewer * | viewer | ) |
|
|
inherited |
Definition at line 418 of file IVP13DSystem.cxx.
419{
420 if (!viewer)
421 return;
422 m_d->viewers.insert(viewer);
423}
◆ restoreFromState()
| void VP1AODSystem::restoreFromState |
( |
QByteArray | ba | ) |
|
|
virtual |
Reimplemented from IVP1System.
Definition at line 355 of file VP1AODSystem.cxx.
356{
358
359 VP1Deserialise
state(ba,
this);
360 if (
state.version()==0) {
361
362 message(
"Warning: State data has obsolete format - ignoring!");
363 return;
364 }
365 if (
state.version()!=1) {
366 message(
"Warning: State data has wrong format - ignoring!");
367 return;
368 }
369
371
373
374 m_d->common->controller()->restoreSettings(
state.restoreByteArray());
375
376 state.restore(
static_cast<VP1CollectionWidget*
>(
m_d->common->controller()->collWidget()));
377
378 state.disableUnrestoredChecks();
379}
virtual void restoreFromState(QByteArray)
◆ saveState()
| QByteArray VP1AODSystem::saveState |
( |
| ) |
|
|
virtual |
Reimplemented from IVP1System.
Definition at line 329 of file VP1AODSystem.cxx.
330{
332
333
335
338
339
342 serialise.save(
m_d->common->controller()->saveSettings());
343
345 serialise.save(
static_cast<VP1CollectionWidget*
>(
m_d->common->controller()->collWidget()));
346
347
348
350
352}
virtual QByteArray saveState()
void serialise(const std::vector< const IRoiDescriptor * > &rois, roiserial_type &s)
serialise an entire vector of IRoiDescriptors
◆ selObjects()
◆ serviceLocator()
| ISvcLocator * IVP1System::serviceLocator |
( |
| ) |
const |
|
inherited |
Definition at line 324 of file IVP1System.cxx.
325{
327}
static ISvcLocator * serviceLocator()
◆ setActiveState()
| void IVP1System::setActiveState |
( |
const ActiveState & | s, |
|
|
const bool & | donttriggererase = true ) |
|
privateinherited |
Definition at line 162 of file IVP1System.cxx.
163{
164
165
166
169 m_d->channel->emitRefreshInfoChanged();
170 return;
171 }
else if (
m_d->activeState==s) {
172 m_d->channel->emitRefreshInfoChanged();
173 return;
174 }
175
176
177 m_d->activeState =
s;
178
180
182 } else {
183
186 }
187 }
188 m_d->channel->emitRefreshInfoChanged();
189}
void inactiveSystemTurnedActive()
◆ setCanRegisterController()
| void IVP1System::setCanRegisterController |
( |
const bool & | c | ) |
|
|
privateinherited |
Definition at line 285 of file IVP1System.cxx.
286{
288 messageVerbose(
"setCanRegisterController called with"+QString(c?
"true":
"false"));
289 }
290 m_d->canregistercontroller=
c;
291}
◆ setChannel()
Definition at line 94 of file IVP1System.cxx.
95{
99 messageVerbose(
"setChannel cw!=0 = "+QString(cw!=0?
"true":
"false"));
100 }
101 assert(!
m_d->channel);
102 assert(cw);
105}
◆ setRefreshing()
| void IVP1System::setRefreshing |
( |
const bool & | b | ) |
|
|
privateinherited |
Definition at line 114 of file IVP1System.cxx.
115{
117 messageVerbose(
"setRefreshing() called with b="+QString(b?
"true":
"false"));
118 }
119 if (b) {
121 } else {
123 }
125}
◆ setState()
| void IVP1System::setState |
( |
const State & | s | ) |
|
|
privateinherited |
Definition at line 141 of file IVP1System.cxx.
142{
143#ifndef NDEBUG
144 assert (
m_d->state != s);
148 }
151 }
154 }
155#endif
158 m_d->channel->emitRefreshInfoChanged();
159}
◆ setUserSelectionNotificationsEnabled()
Definition at line 310 of file IVP13DSystem.cxx.
311{
313 message(
"setUserSelectionNotificationsEnabled Error: NULL selection pointer!");
314 return;
315 }
317 message(
"setUserSelectionNotificationsEnabled Error: Called for selection which was never registered!");
318 return;
319 }
320 if (enabled !=
m_d->selectionsWithDisabledNotifications.contains(
selection))
321 return;
322
323 if (enabled)
324 m_d->selectionsWithDisabledNotifications.remove(
selection);
325 else
327
328}
◆ state()
◆ storeGate()
Definition at line 119 of file IVP1System.h.
StoreGateSvc * eventStore() const
◆ str() [1/30]
◆ str() [2/30]
| QString VP1String::str |
( |
const bool | b | ) |
|
|
inlinestaticinherited |
Definition at line 53 of file VP1String.h.
53{
return b?
"True":
"False"; }
◆ str() [3/30]
| QString VP1String::str |
( |
const char * | c | ) |
|
|
inlinestaticinherited |
◆ str() [4/30]
| QString VP1String::str |
( |
const double & | d | ) |
|
|
inlinestaticinherited |
Definition at line 81 of file VP1String.h.
81{ return QString::number(d); }
◆ str() [5/30]
| QString VP1String::str |
( |
const float & | f | ) |
|
|
inlinestaticinherited |
Definition at line 82 of file VP1String.h.
82{ return QString::number(f); }
◆ str() [6/30]
◆ str() [7/30]
| QString VP1String::str |
( |
const QColor & | c | ) |
|
|
staticinherited |
Definition at line 30 of file VP1String.cxx.
31{
32 return c.isValid() ?
c.name() :
"Invalid";
33}
◆ str() [8/30]
template<class T>
| QString VP1String::str |
( |
const QFlags< T > & | f | ) |
|
|
inlinestaticinherited |
Definition at line 91 of file VP1String.h.
91{ return "0x"+QString::number(f, 16).toUpper().rightJustified(8,'0'); }
◆ str() [9/30]
template<class T>
| QString VP1String::str |
( |
const QList< T > & | t | ) |
|
|
inlinestaticinherited |
Definition at line 102 of file VP1String.h.
102{
return "QList of size"+QString::number(
t.size()); }
◆ str() [10/30]
| QString VP1String::str |
( |
const QString & | s | ) |
|
|
inlinestaticinherited |
◆ str() [11/30]
| QString VP1String::str |
( |
const SbColor & | c | ) |
|
|
staticinherited |
Definition at line 36 of file VP1String.cxx.
37{
39}
static QColor sbcol2qcol(const SbColor &)
◆ 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>
| 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.
49{
50 if (p) {
53
54 return QString (
s.str().c_str());
55 } else {
56 return "NULL";
57 }
58}
◆ str() [22/30]
◆ str() [23/30]
| QString VP1String::str |
( |
int | n | ) |
|
|
inlinestaticinherited |
Definition at line 77 of file VP1String.h.
77{ return QString::number(n); }
◆ str() [24/30]
| QString VP1String::str |
( |
long | n | ) |
|
|
inlinestaticinherited |
Definition at line 75 of file VP1String.h.
75{ return QString::number(n); }
◆ str() [25/30]
| QString VP1String::str |
( |
qlonglong | n | ) |
|
|
inlinestaticinherited |
Definition at line 79 of file VP1String.h.
79{ return QString::number(n); }
◆ str() [26/30]
| QString VP1String::str |
( |
qulonglong | n | ) |
|
|
inlinestaticinherited |
Definition at line 80 of file VP1String.h.
80{ return QString::number(n); }
◆ str() [27/30]
| QString VP1String::str |
( |
short int | n | ) |
|
|
inlinestaticinherited |
Definition at line 73 of file VP1String.h.
73{ return QString::number(n); }
◆ str() [28/30]
| QString VP1String::str |
( |
uint | n | ) |
|
|
inlinestaticinherited |
Definition at line 78 of file VP1String.h.
78{ return QString::number(n); }
◆ str() [29/30]
| QString VP1String::str |
( |
ulong | n | ) |
|
|
inlinestaticinherited |
Definition at line 76 of file VP1String.h.
76{ return QString::number(n); }
◆ str() [30/30]
| QString VP1String::str |
( |
unsigned short int | n | ) |
|
|
inlinestaticinherited |
Definition at line 74 of file VP1String.h.
74{ return QString::number(n); }
◆ sysmessage
| void IVP1System::sysmessage |
( |
QString | | ) |
const |
|
signalinherited |
◆ systemcreate()
Reimplemented from IVP13DSystemSimple.
Definition at line 169 of file VP1AODSystem.cxx.
170{
173
174#ifndef BUILDVP1LIGHT
175
176 QString tooltype("Trk::ExtrapolationEngine");
177 VP1AvailableToolsHelper availTools(this);
178 availTools.addMonitoredType(tooltype);
179 QStringList existingExtrapolators = availTools.availableTools();
180
181 for (const QString& value : existingExtrapolators)
183
184 VP1ToolAccessHelper toolaccess(this);
185 Trk::IExtrapolationEngine * extrapolator = toolaccess.getToolPointer<Trk::IExtrapolationEngine>("Trk::ExtrapolationEngine/AtlasExtrapolation",false,true);
186 m_d->common->setExtrapolator(extrapolator);
187#endif
188
189#ifdef BUILDVP1LIGHT
190
191 emit signalLoadEvent(this);
192#endif
193
194
195}
◆ systemerase()
| void VP1AODSystem::systemerase |
( |
| ) |
|
|
virtual |
Reimplemented from IVP13DSystemSimple.
Definition at line 292 of file VP1AODSystem.cxx.
293{
295
296 m_d->common->controller()->collWidget()->clear();
297 if (
m_d->common->controller()->objBrowser())
m_d->common->controller()->objBrowser()->clear();
298
299
300 if (
m_d->selObjects) {
302 m_d->selObjects->unref();
304 }
305
307 m_d->totmomsep->removeAllChildren();
308
309
310
311
313
314
315
316
317
318
319
320
321
322
323
324
326}
void unregisterSelectionNode(SoCooperativeSelection *)
◆ systemuncreate()
| void VP1AODSystem::systemuncreate |
( |
| ) |
|
|
virtual |
◆ toolSvc()
| IToolSvc * IVP1System::toolSvc |
( |
| ) |
const |
|
inherited |
◆ uncreate()
| void IVP13DSystemSimple::uncreate |
( |
| ) |
|
|
privatevirtualinherited |
Reimplemented from IVP1System.
Definition at line 202 of file IVP13DSystemSimple.cxx.
203{
204
207 }
208
209 assert(
m_d->wascreated);
210 assert(!
m_d->wasrefreshed);
211 m_d->rootE->enableNotify(
false);
212 m_d->rootR->enableNotify(
false);
214 m_d->root->removeAllChildren();
215 m_d->rootE->removeAllChildren();
216 m_d->rootR->removeAllChildren();
217 m_d->wascreated=
false;
218}
virtual void systemuncreate()
◆ unregisterSelectionNode()
Definition at line 281 of file IVP13DSystem.cxx.
282{
284 message(
"unregisterSelectionNode Error: NULL selection pointer!");
285 return;
286 }
288 message(
"registerSelectionNode Error: Trying to unregister unknown selection node!");
289 return;
290 }
291
297
299 if (
m_d->selectionsWithDisabledNotifications.contains(
selection))
300 m_d->selectionsWithDisabledNotifications.remove(
selection);
302
304
305}
◆ updateAssociatedObjects [1/2]
| void VP1AODSystem::updateAssociatedObjects |
( |
const QList< const xAOD::MuonSegment * > & | segments | ) |
|
|
slot |
Definition at line 717 of file VP1AODSystem.cxx.
718{
720 std::cout<<
"Got "<<segments.size() <<
" from " <<
typeid(sender()).
name()<<std::endl;
721
722}
◆ updateAssociatedObjects [2/2]
| void VP1AODSystem::updateAssociatedObjects |
( |
const QList< const xAOD::TrackParticle * > & | trackparticles | ) |
|
|
slot |
Definition at line 677 of file VP1AODSystem.cxx.
678{
680
681 IParticleCollHandle_TrackParticle* newcoll =
new IParticleCollHandle_TrackParticle(
m_d->common,
"TrackParticlesFromMuons",
xAOD::Type::Muon,
false );
682
683 for (auto tp : trackparticles){
684 IParticleHandle_TrackParticle* newhandle = new IParticleHandle_TrackParticle(newcoll, tp);
686 }
687
689
690
691
692
693
694 QList<IParticleCollHandle_TrackParticle*> newcolls;
695 newcolls << newcoll;
696
697
698 m_d->common->controller()->collWidget()->addCollections(newcolls);
699
700 for (IParticleCollHandle_TrackParticle* col : newcolls) {
701 m_d->selObjects->addChild(col->collSwitch());
702 col->setVisible(true);
703 }
705
706}
void addHandle(AODHandleBase *)
virtual void init(VP1MaterialButtonBase *matBut=0)
@ Muon
The object is a muon.
◆ updateGUI()
| void IVP13DSystemSimple::updateGUI |
( |
| ) |
|
|
inlineinherited |
◆ updateSelectionMode
| void VP1AODSystem::updateSelectionMode |
( |
| ) |
|
|
privateslot |
Definition at line 415 of file VP1AODSystem.cxx.
416{
418
419
420
421
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438 m_d->selObjects->policy = SoCooperativeSelection::SINGLE;
439
440
442}
virtual void deselectAll(SoCooperativeSelection *exception_sel=0)
◆ updateShownTotMomentum
| void VP1AODSystem::updateShownTotMomentum |
( |
| ) |
|
|
privateslot |
Definition at line 608 of file VP1AODSystem.cxx.
609{
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649}
◆ userChangedSelection()
| void VP1AODSystem::userChangedSelection |
( |
SoCooperativeSelection * | sel, |
|
|
const QSet< SoNode * > & | , |
|
|
QSet< SoPath * > | ) |
|
virtual |
Reimplemented from IVP13DSystem.
Definition at line 652 of file VP1AODSystem.cxx.
653{
656 return;
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673}
◆ userClickedOnBgd()
| void VP1AODSystem::userClickedOnBgd |
( |
| ) |
|
|
virtual |
◆ userDeselectedSingleNode()
◆ userPickedNode()
| void VP1AODSystem::userPickedNode |
( |
SoNode * | pickedNode, |
|
|
SoPath * | pickedPath ) |
|
virtual |
◆ userSelectedSingleNode()
| void VP1AODSystem::userSelectedSingleNode |
( |
SoCooperativeSelection * | sel, |
|
|
SoNode * | node, |
|
|
SoPath * | pickedPath ) |
|
virtual |
Reimplemented from IVP13DSystem.
Definition at line 457 of file VP1AODSystem.cxx.
458{
460
461 if (
sel!=
m_d->selObjects) {
462 message(
"userSelectedSingleNode - ERROR, sel=!d->selObjects");
463 return;
464 }
465
466 AODHandleBase* handle =
m_d->common->getHandleFromNode(pickedPath);
467 if (!handle) handle =
m_d->common->getHandleFromNode(node);
468 if (!handle) {
469 message(
"ERROR: Unknown handle from path or node.");
470 }
471
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543}
virtual QStringList clicked() const =0
Called when user selects the node (stringlist is displayed in messagebox).
◆ verbose()
| bool IVP1System::verbose |
( |
| ) |
|
|
inlinestaticinherited |
Definition at line 86 of file IVP1System.h.
static const bool s_vp1verbose
◆ visibleObjectsChanged
| void VP1AODSystem::visibleObjectsChanged |
( |
| ) |
|
|
privateslot |
Definition at line 382 of file VP1AODSystem.cxx.
383{
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410 message(
"unexpected signal received in visibleObjectsChanged slot");
411}
◆ warnOnDisabledNotifications()
| void IVP13DSystemSimple::warnOnDisabledNotifications |
( |
| ) |
const |
|
inherited |
Definition at line 221 of file IVP13DSystemSimple.cxx.
222{
223 QList<SoNode*> nodesR;
224 QList<SoNode*> nodesE;
225 m_d->getNodesWithDisabledNotifications(
m_d->rootR, nodesR);
226 m_d->getNodesWithDisabledNotifications(
m_d->rootE, 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()));
231 }
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()));
236 }
237}
◆ m_d
◆ s_vp1verbose
The documentation for this class was generated from the following files: