ATLAS Offline Software
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 
20 
22 #include <QStringList>
23 #include <QColor>
24 
25 #include "CLHEP/Units/SystemOfUnits.h"
26 
27 //____________________________________________________________________
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;
38  continue;
39  double length = met->et() * (200.0*CLHEP::cm/(100.0*CLHEP::GeV));
41  continue;
42  //------------------------------------------------
43 
45  col->init();
46  l << col;
47  }
48  return l;
49 }
50 
51 //____________________________________________________________________
53 public:
55 };
56 
57 
58 //____________________________________________________________________
61 {
62 }
63 
64 //____________________________________________________________________
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 //____________________________________________________________________
81 {
82  return QColor::fromRgbF(147./255,170./255,30./255);
83 }
84 
85 //____________________________________________________________________
87 {
89  return false;
90 
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