ATLAS Offline Software
Loading...
Searching...
No Matches
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 (const 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));
41 continue;
42 //------------------------------------------------
43
45 col->init();
46 l << col;
47 }
48 return l;
49}
50
51//____________________________________________________________________
53public:
55};
56
57
58//____________________________________________________________________
63
64//____________________________________________________________________
69
70//____________________________________________________________________
71QStringList 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{
88 if (!VP1SGAccessHelper(systemBase()).retrieve(m_d->metCalo,key()))
89 return false;
90
91 addArrowToCollSep(m_d->metCalo);
92 return true;
93}
double length(const pvec &v)
#define MISSINGET_ZEROLENGTH(x)
IVP1System * systemBase() const
static QList< VP1StdCollection * > createCollections(IVP1System *sys)
virtual QColor baseCol() const
virtual QStringList clicked(SoPath *) const
VP1MissingEtCaloHandle(IVP1System *sys, const QString &key)
const QString & key() const
QStringList baseInfo(const MissingET *) const
VP1MissingEtHandle(IVP1System *sys, const QString &key)
void truncateToCollSep(SoPath *) const
void addArrowToCollSep(const MissingET *)
virtual void init(VP1MaterialButtonBase *button=0)