ATLAS Offline Software
Loading...
Searching...
No Matches
VP1MissingEtTruthHandle.cxx
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// Implementation of class VP1MissingEtTruthHandle //
9// //
10// Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
11// Initial version: July 2008 //
12// //
14
19
21#include <QStringList>
22#include <QColor>
23
24//____________________________________________________________________
26{
27 QList<VP1StdCollection*> l;
28 for (const QString& key : VP1SGContentsHelper(sys).getKeys<MissingEtTruth>()) {
30 col->init();
31 l << col;
32 }
33 return l;
34}
35
36//____________________________________________________________________
38public:
40};
41
42
43//____________________________________________________________________
48
49//____________________________________________________________________
54
55//____________________________________________________________________
56QStringList VP1MissingEtTruthHandle::clicked(SoPath*pickedPath) const
57{
58 //Fixme: add MissingEtTruth specific info.
59 truncateToCollSep(pickedPath);
60 return baseInfo(m_d->metTruth);
61}
62
63//____________________________________________________________________
65{
66 return QColor::fromRgbF(38./255,49./255,1.0);
67}
68
69//____________________________________________________________________
71{
72 if (!VP1SGAccessHelper(systemBase()).retrieve(m_d->metTruth,key()))
73 return false;
74
75 addArrowToCollSep(m_d->metTruth);
76 return true;
77}
IVP1System * systemBase() const
const QString & key() const
QStringList baseInfo(const MissingET *) const
VP1MissingEtHandle(IVP1System *sys, const QString &key)
void truncateToCollSep(SoPath *) const
void addArrowToCollSep(const MissingET *)
VP1MissingEtTruthHandle(IVP1System *sys, const QString &key)
virtual QStringList clicked(SoPath *) const
static QList< VP1StdCollection * > createCollections(IVP1System *sys)
virtual void init(VP1MaterialButtonBase *button=0)