ATLAS Offline Software
Loading...
Searching...
No Matches
MissingEtCollHandle.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
6// //
7// //
8// Header file for class MissingEtCollHandle //
9// //
10// Description: Collection handle for MissingEt //
11// //
12// June 2014 - Riccardo.Maria.Bianchi@cern.ch //
13// //
15
16#ifndef MissingEtCollHandle_H
17#define MissingEtCollHandle_H
18
19#include "AODCollHandleBase.h"
20
21#include "xAODBase/ObjectType.h"
22
23//class SoMaterial;
25
26
28
29 Q_OBJECT
30
31public:
32
33 // Loops
34 // Must be called from derived classes when filling in new object handles.
35 virtual void hintNumberOfHandlesInEvent(unsigned);
37
38 //For iterating over object handles:
39 virtual void handleIterationBegin();
40 virtual AODHandleBase* getNextHandle(); //Returns 0 when done.
41 QList<AODHandleBase*> getHandlesList() const;
42
43 static QStringList availableCollections(IVP1System*);//For the collection widget.
44
46 virtual ~MissingEtCollHandle();
47
48 virtual void init(VP1MaterialButtonBase* matBut=0);//reimplementations must start with a call to this.
50
52 // bool isRandomColors() const;
53
54 // This is created in this class, but passed to the JetCollectionButton for control etc. It is used in the Handle.
55 // SoMaterial* defaultParameterMaterial() const;
56
57 /*
58 * Save and restore settings
59 * (implementation of the virtual functions in the base class)
60 */
61 QByteArray persistifiableState() const; // save state
62 void setState(const QByteArray&); // restore state
63
64
65public Q_SLOTS:
66 void setCutAllowedPhi(const QList<VP1Interval>&);
67
68protected:
69 virtual bool load();
70 virtual bool cut(AODHandleBase*);
71 virtual QColor defaultColor() const { return QColor::fromRgbF(1.f, 1.f, 1.f); } // default color: White
72
73
74 // getters
75 const QList<VP1Interval>& getCutAllowedPhi() {return m_cut_allowedPhi; };
77
78
79private Q_SLOTS:
80
82// void showParametersChanged(bool);
83// void setScale(const double& s);
84
85 // setters
86 void setMetSize(int size);
87
88// double scale() const;
89 // void setRandomJetColours(const bool&);
90 // void rerandomise();
91
92private:
93
94 class Imp;
96
97 QList<VP1Interval> m_cut_allowedPhi;
100};
101
102#endif
AODCollHandleBase(AODSysCommonData *, const QString &name, xAOD::Type::ObjectType)
const QString & name() const
const QList< VP1Interval > & getCutAllowedPhi()
MissingEtCollHandle(AODSysCommonData *, const QString &name, xAOD::Type::ObjectType type)
virtual QColor defaultColor() const
void addHandle(AODHandleBase *)
virtual void init(VP1MaterialButtonBase *matBut=0)
const MissingEtCollectionSettingsButton & collSettingsButton() const
virtual bool cut(AODHandleBase *)
void setState(const QByteArray &)
Provide specific implementation.
QByteArray persistifiableState() const
Provide specific implementation.
static QStringList availableCollections(IVP1System *)
virtual AODHandleBase * getNextHandle()
void setCutAllowedPhi(const QList< VP1Interval > &)
virtual void handleIterationBegin()
QList< VP1Interval > m_cut_allowedPhi
QList< AODHandleBase * > getHandlesList() const
virtual void hintNumberOfHandlesInEvent(unsigned)
virtual void setupSettingsFromControllerSpecific(const AODSystemController *)
For extensions specific to this collection.
ObjectType
Type of objects that have a representation in the xAOD EDM.
Definition ObjectType.h:32