ATLAS Offline Software
graphics
VP1
VP1Systems
VP1MissingEtSystems
src
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
15
#include "
VP1MissingEtSystems/VP1MissingEtTruthHandle.h
"
16
#include "
VP1Utils/VP1SGContentsHelper.h
"
17
#include "
VP1Utils/VP1SGAccessHelper.h
"
18
#include "
VP1Base/VP1MaterialButton.h
"
19
20
#include "
MissingETEvent/MissingEtTruth.h
"
21
#include <QStringList>
22
#include <QColor>
23
24
//____________________________________________________________________
25
QList<VP1StdCollection*>
VP1MissingEtTruthHandle::createCollections
(
IVP1System
*
sys
)
26
{
27
QList<VP1StdCollection*>
l
;
28
for
(QString
key
:
VP1SGContentsHelper
(
sys
).getKeys<MissingEtTruth>()) {
29
VP1MissingEtTruthHandle
*
col
=
new
VP1MissingEtTruthHandle
(
sys
,
key
);
30
col
->init();
31
l
<<
col
;
32
}
33
return
l
;
34
}
35
36
//____________________________________________________________________
37
class
VP1MissingEtTruthHandle::Imp
{
38
public
:
39
const
MissingET
*
metTruth
;
40
};
41
42
43
//____________________________________________________________________
44
VP1MissingEtTruthHandle::VP1MissingEtTruthHandle
(
IVP1System
*
sys
,
const
QString&
key
)
45
:
VP1MissingEtHandle
(
sys
,
key
), m_d(
new
Imp
)
46
{
47
}
48
49
//____________________________________________________________________
50
VP1MissingEtTruthHandle::~VP1MissingEtTruthHandle
()
51
{
52
delete
m_d
;
53
}
54
55
//____________________________________________________________________
56
QStringList
VP1MissingEtTruthHandle::clicked
(SoPath*pickedPath)
const
57
{
58
//Fixme: add MissingEtTruth specific info.
59
truncateToCollSep
(pickedPath);
60
return
baseInfo
(
m_d
->
metTruth
);
61
}
62
63
//____________________________________________________________________
64
QColor
VP1MissingEtTruthHandle::baseCol
()
const
65
{
66
return
QColor::fromRgbF(38./255,49./255,1.0);
67
}
68
69
//____________________________________________________________________
70
bool
VP1MissingEtTruthHandle::load
()
71
{
72
if
(!
VP1SGAccessHelper
(
systemBase
()).
retrieve
(
m_d
->
metTruth
,
key
()))
73
return
false
;
74
75
addArrowToCollSep
(
m_d
->
metTruth
);
76
return
true
;
77
}
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition:
PyKernel.py:110
VP1MissingEtTruthHandle.h
VP1MissingEtTruthHandle::VP1MissingEtTruthHandle
VP1MissingEtTruthHandle(IVP1System *sys, const QString &key)
Definition:
VP1MissingEtTruthHandle.cxx:44
VP1MissingEtTruthHandle::Imp
Definition:
VP1MissingEtTruthHandle.cxx:37
VP1MissingEtTruthHandle::m_d
Imp * m_d
Definition:
VP1MissingEtTruthHandle.h:41
VP1MaterialButton.h
VP1MissingEtTruthHandle::load
virtual bool load()
Definition:
VP1MissingEtTruthHandle.cxx:70
VP1MissingEtHandle::key
QString key() const
Definition:
VP1MissingEtHandle.cxx:127
CSV_InDetExporter.new
new
Definition:
CSV_InDetExporter.py:145
VP1MissingEtHandle
Definition:
VP1MissingEtHandle.h:36
UploadAMITag.l
list l
Definition:
UploadAMITag.larcaf.py:158
VP1MissingEtTruthHandle::clicked
virtual QStringList clicked(SoPath *) const
Definition:
VP1MissingEtTruthHandle.cxx:56
mapkey::sys
@ sys
Definition:
TElectronEfficiencyCorrectionTool.cxx:42
VP1MissingEtHandle::baseInfo
QStringList baseInfo(const MissingET *) const
Definition:
VP1MissingEtHandle.cxx:205
VP1MissingEtTruthHandle::Imp::metTruth
const MissingET * metTruth
Definition:
VP1MissingEtTruthHandle.cxx:39
VP1MissingEtTruthHandle
Definition:
VP1MissingEtTruthHandle.h:22
VP1MissingEtTruthHandle::baseCol
virtual QColor baseCol() const
Definition:
VP1MissingEtTruthHandle.cxx:64
IVP1System
Definition:
IVP1System.h:36
VP1MissingEtTruthHandle::~VP1MissingEtTruthHandle
virtual ~VP1MissingEtTruthHandle()
Definition:
VP1MissingEtTruthHandle.cxx:50
VP1HelperClassBase::systemBase
IVP1System * systemBase() const
Definition:
VP1HelperClassBase.h:50
VP1MissingEtHandle::truncateToCollSep
void truncateToCollSep(SoPath *) const
Definition:
VP1MissingEtHandle.cxx:194
VP1MissingEtHandle::addArrowToCollSep
void addArrowToCollSep(const MissingET *)
Definition:
VP1MissingEtHandle.cxx:228
MissingEtTruth.h
VP1SGContentsHelper
Definition:
VP1SGContentsHelper.h:26
query_example.col
col
Definition:
query_example.py:7
MissingET
Definition:
Reconstruction/MissingETEvent/MissingETEvent/MissingET.h:23
VP1SGAccessHelper
Definition:
VP1SGAccessHelper.h:25
VP1MissingEtTruthHandle::createCollections
static QList< VP1StdCollection * > createCollections(IVP1System *sys)
Definition:
VP1MissingEtTruthHandle.cxx:25
VP1SGAccessHelper.h
VP1SGContentsHelper.h
mapkey::key
key
Definition:
TElectronEfficiencyCorrectionTool.cxx:37
Generated on Thu Nov 7 2024 21:31:42 for ATLAS Offline Software by
1.8.18