ATLAS Offline Software
VP1VertexCollection.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 // //
8 // Header file for class VP1VertexCollection //
9 // //
10 // Description: Collections of reconstructed vertices //
11 // //
12 // Author: Andreas.Wildauer@cern.ch //
13 // Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
14 // Ben Zastovnik //
15 // Initial version: July 2008 //
16 // //
18 
19 #ifndef VP1VERTEXCOLLECTION_H
20 #define VP1VERTEXCOLLECTION_H
21 
23 
24 
26 class SoPath;
27 
28 namespace Trk{
29  class Track;
30 }
31 
33 
34  Q_OBJECT
35 
36 public:
37 
38  static QList<VP1StdCollection*> createCollections(VertexSysController*controller);
39 
40  VP1VertexCollection(VertexSysController*controller,const QString& key);
41  virtual ~VP1VertexCollection();
42 
44  QList<QWidget*> provideExtraWidgetsForGuiRow() const;
45 
46  QStringList infoOnClicked(SoPath* pickedPath);//Provides info + pops path appropriately.
47 
48  enum COLOURBY { COLOUR_PERCOLLECTION, COLOUR_RANDOM};// FIXME - to StdCollection
49  COLOURBY colourBy() const { return m_colourby; }
50  virtual COLOURBY defaultColourBy () const { return COLOUR_PERCOLLECTION; }
51  void setColourBy(COLOURBY);
52 protected:
53  qint32 provideCollTypeID() const { return 0; }//Vertex col. type: 0 for reconstructed vertices, 1 for truth vertices.
54  QString provideSection() const { return "Reconstructed Vertices"; };
55  QString provideSectionToolTip() const { return "Collections of reconstructed vertices"; }
56  QString provideText() const;
57  void assignDefaultMaterial(SoMaterial*) const;
58  bool load();
59 
60  //FIXME: We need something like this for the trackparticles too:
61 signals:
62  void tracksFromVertexChanged(QList< std::pair<const SoMaterial*, QList< const Trk::Track*> > >&);
63 private Q_SLOTS:
65  void collVisibilityChanged(bool vis);
67 public Q_SLOTS:
68 
69  void recheckAllCuts();
70  void updateAllShapes();
71 private:
72 
73  class Imp;
74  Imp * m_d;
76 };
77 
78 #endif
VP1VertexCollection::m_d
Imp * m_d
Definition: VP1VertexCollection.h:73
VP1VertexCollection::provideSectionToolTip
QString provideSectionToolTip() const
Definition: VP1VertexCollection.h:55
VP1VertexCollection::provideSection
QString provideSection() const
Definition: VP1VertexCollection.h:54
mat
GeoMaterial * mat
Definition: LArDetectorConstructionTBEC.cxx:55
VP1VertexCollection::collVisibilityChanged
void collVisibilityChanged(bool vis)
Definition: VP1VertexCollection.cxx:547
VP1VertexCollection::recheckAllCuts
void recheckAllCuts()
Definition: VP1VertexCollection.cxx:436
VP1VertexCollection::Imp
Definition: VP1VertexCollection.cxx:64
VP1VertexCollection
Definition: VP1VertexCollection.h:32
VP1VertexCollection::provideCollTypeID
qint32 provideCollTypeID() const
Definition: VP1VertexCollection.h:53
VP1VertexCollection::~VP1VertexCollection
virtual ~VP1VertexCollection()
Definition: VP1VertexCollection.cxx:289
VP1VertexCollection::infoOnClicked
QStringList infoOnClicked(SoPath *pickedPath)
Definition: VP1VertexCollection.cxx:489
VP1VertexCollection::COLOURBY
COLOURBY
Definition: VP1VertexCollection.h:48
VP1VertexCollection::tracksFromVertexChanged
void tracksFromVertexChanged(QList< std::pair< const SoMaterial *, QList< const Trk::Track * > > > &)
VP1VertexCollection::assignDefaultMaterial
void assignDefaultMaterial(SoMaterial *) const
Definition: VP1VertexCollection.cxx:430
VP1VertexCollection::setColourBy
void setColourBy(COLOURBY)
Definition: VP1VertexCollection.cxx:321
VP1VertexCollection::updateAllShapes
void updateAllShapes()
Definition: VP1VertexCollection.cxx:453
python.L1.Config.LegacyTopoMergerMap.signals
signals
Definition: LegacyTopoMergerMap.py:13
VP1VertexCollection::rerandomiseRandomVertexColours
void rerandomiseRandomVertexColours()
Definition: VP1VertexCollection.cxx:560
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
VP1VertexCollection::COLOUR_PERCOLLECTION
@ COLOUR_PERCOLLECTION
Definition: VP1VertexCollection.h:48
VP1VertexCollection::load
bool load()
Definition: VP1VertexCollection.cxx:464
VP1VertexCollection::init
void init(VP1MaterialButtonBase *mat=0)
Definition: VP1VertexCollection.cxx:298
VP1VertexCollection::m_colourby
COLOURBY m_colourby
Definition: VP1VertexCollection.h:75
VP1MaterialButtonBase
Definition: VP1MaterialButton.h:25
VP1VertexCollection::colourBy
COLOURBY colourBy() const
Definition: VP1VertexCollection.h:49
VP1VertexCollection::VP1VertexCollection
VP1VertexCollection(VertexSysController *controller, const QString &key)
Definition: VP1VertexCollection.cxx:273
VP1VertexCollection::provideText
QString provideText() const
Definition: VP1VertexCollection.cxx:385
VP1VertexCollection::COLOUR_RANDOM
@ COLOUR_RANDOM
Definition: VP1VertexCollection.h:48
Track
Definition: TriggerChamberClusterOnTrackCreator.h:21
VP1StdCollection
Definition: VP1StdCollection.h:31
VP1VertexCollection::colourByComboBoxItemChanged
void colourByComboBoxItemChanged()
Definition: VP1VertexCollection.cxx:375
VP1VertexCollection::createCollections
static QList< VP1StdCollection * > createCollections(VertexSysController *controller)
Definition: VP1VertexCollection.cxx:52
VP1VertexCollection::defaultColourBy
virtual COLOURBY defaultColourBy() const
Definition: VP1VertexCollection.h:50
VP1StdCollection.h
VertexSysController
Definition: VertexSysController.h:24
VP1VertexCollection::provideExtraWidgetsForGuiRow
QList< QWidget * > provideExtraWidgetsForGuiRow() const
Definition: VP1VertexCollection.cxx:368
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37