ATLAS Offline Software
graphics
VP1
VP1Systems
VP1MissingEtSystems
src
VP1MissingEtCaloHandle.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 VP1MissingEtCaloHandle //
9
// //
10
// Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
11
// Updated: Giorgi Gvaberidze (ggvaberi@cern.ch), //
12
// Updated: July 2010 //
13
// Initial version: July 2008 //
14
// //
16
17
#include "
VP1MissingEtSystems/VP1MissingEtCaloHandle.h
"
18
#include "
VP1Utils/VP1SGContentsHelper.h
"
19
#include "
VP1Utils/VP1SGAccessHelper.h
"
20
21
#include "
MissingETEvent/MissingEtCalo.h
"
22
#include <QStringList>
23
#include <QColor>
24
25
#include "CLHEP/Units/SystemOfUnits.h"
26
27
//____________________________________________________________________
28
QList<VP1StdCollection*>
VP1MissingEtCaloHandle::createCollections
(
IVP1System
*
sys
)
29
{
30
//updated: for prevent loading zero length system
31
static
const
MissingET
*
met
= 0;
32
33
QList<VP1StdCollection*>
l
;
34
for
(QString
key
:
VP1SGContentsHelper
(
sys
).getKeys<MissingEtCalo>()) {
35
//updated: for prevent loading zero length system
36
met
= 0;
37
if
(!
VP1SGAccessHelper
(
sys
).
retrieve
(
met
,
key
))
38
continue
;
39
double
length
=
met
->et() * (200.0*
CLHEP::cm
/(100.0*
CLHEP::GeV
));
40
if
(
MISSINGET_ZEROLENGTH
(
length
))
41
continue
;
42
//------------------------------------------------
43
44
VP1MissingEtCaloHandle
*
col
=
new
VP1MissingEtCaloHandle
(
sys
,
key
);
45
col
->init();
46
l
<<
col
;
47
}
48
return
l
;
49
}
50
51
//____________________________________________________________________
52
class
VP1MissingEtCaloHandle::Imp
{
53
public
:
54
const
MissingET
*
metCalo
;
55
};
56
57
58
//____________________________________________________________________
59
VP1MissingEtCaloHandle::VP1MissingEtCaloHandle
(
IVP1System
*
sys
,
const
QString&
key
)
60
:
VP1MissingEtHandle
(
sys
,
key
), m_d(
new
Imp
)
61
{
62
}
63
64
//____________________________________________________________________
65
VP1MissingEtCaloHandle::~VP1MissingEtCaloHandle
()
66
{
67
delete
m_d
;
68
}
69
70
//____________________________________________________________________
71
QStringList
VP1MissingEtCaloHandle::clicked
(SoPath*pickedPath)
const
72
{
73
//Fixme: add MissingEtCalo specific info.
74
truncateToCollSep
(pickedPath);
75
return
baseInfo
(
m_d
->
metCalo
);
76
}
77
78
79
//____________________________________________________________________
80
QColor
VP1MissingEtCaloHandle::baseCol
()
const
81
{
82
return
QColor::fromRgbF(147./255,170./255,30./255);
83
}
84
85
//____________________________________________________________________
86
bool
VP1MissingEtCaloHandle::load
()
87
{
88
if
(!
VP1SGAccessHelper
(
systemBase
()).
retrieve
(
m_d
->
metCalo
,
key
()))
89
return
false
;
90
91
addArrowToCollSep
(
m_d
->
metCalo
);
92
return
true
;
93
}
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition:
PyKernel.py:110
GeV
#define GeV
Definition:
PhysicsAnalysis/TauID/TauAnalysisTools/Root/HelperFunctions.cxx:17
VP1MissingEtCaloHandle::Imp::metCalo
const MissingET * metCalo
Definition:
VP1MissingEtCaloHandle.cxx:54
VP1MissingEtCaloHandle::baseCol
virtual QColor baseCol() const
Definition:
VP1MissingEtCaloHandle.cxx:80
VP1MissingEtHandle::key
QString key() const
Definition:
VP1MissingEtHandle.cxx:127
VP1MissingEtCaloHandle::createCollections
static QList< VP1StdCollection * > createCollections(IVP1System *sys)
Definition:
VP1MissingEtCaloHandle.cxx:28
CSV_InDetExporter.new
new
Definition:
CSV_InDetExporter.py:145
VP1MissingEtHandle
Definition:
VP1MissingEtHandle.h:36
UploadAMITag.l
list l
Definition:
UploadAMITag.larcaf.py:158
mapkey::sys
@ sys
Definition:
TElectronEfficiencyCorrectionTool.cxx:42
VP1MissingEtCaloHandle
Definition:
VP1MissingEtCaloHandle.h:22
VP1MissingEtHandle::baseInfo
QStringList baseInfo(const MissingET *) const
Definition:
VP1MissingEtHandle.cxx:205
cm
const double cm
Definition:
Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/tools/FCAL_ChannelMap.cxx:25
VP1MissingEtCaloHandle::Imp
Definition:
VP1MissingEtCaloHandle.cxx:52
IVP1System
Definition:
IVP1System.h:36
met
Definition:
IMETSignificance.h:24
MissingEtCalo.h
VP1MissingEtCaloHandle::clicked
virtual QStringList clicked(SoPath *) const
Definition:
VP1MissingEtCaloHandle.cxx:71
VP1MissingEtCaloHandle::~VP1MissingEtCaloHandle
virtual ~VP1MissingEtCaloHandle()
Definition:
VP1MissingEtCaloHandle.cxx:65
VP1MissingEtCaloHandle::VP1MissingEtCaloHandle
VP1MissingEtCaloHandle(IVP1System *sys, const QString &key)
Definition:
VP1MissingEtCaloHandle.cxx:59
VP1MissingEtCaloHandle::load
virtual bool load()
Definition:
VP1MissingEtCaloHandle.cxx:86
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
VP1SGContentsHelper
Definition:
VP1SGContentsHelper.h:26
query_example.col
col
Definition:
query_example.py:7
MISSINGET_ZEROLENGTH
#define MISSINGET_ZEROLENGTH(x)
Definition:
VP1MissingEtHandle.h:34
MissingET
Definition:
Reconstruction/MissingETEvent/MissingETEvent/MissingET.h:23
VP1SGAccessHelper
Definition:
VP1SGAccessHelper.h:25
VP1MissingEtCaloHandle::m_d
Imp * m_d
Definition:
VP1MissingEtCaloHandle.h:41
VP1SGAccessHelper.h
length
double length(const pvec &v)
Definition:
FPGATrackSimLLPDoubletHoughTransformTool.cxx:26
VP1MissingEtCaloHandle.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