ATLAS Offline Software
MissingEtCollHandle.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 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 
31 public:
32 
33  // Loops
34  // Must be called from derived classes when filling in new object handles.
35  virtual void hintNumberOfHandlesInEvent(unsigned);
36  void addHandle(AODHandleBase*);
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 
65 public Q_SLOTS:
66  void setCutAllowedPhi(const QList<VP1Interval>&);
67 
68 protected:
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  QList<VP1Interval> getCutAllowedPhi() {return m_cut_allowedPhi; };
77 
78 
79 private Q_SLOTS:
80 
81  void resetCachedValuesCuts();
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 
92 private:
93 
94  class Imp;
95  Imp * m_d;
96 
97  QList<VP1Interval> m_cut_allowedPhi;
100 };
101 
102 #endif
MissingEtCollHandle::resetCachedValuesCuts
void resetCachedValuesCuts()
Definition: MissingEtCollHandle.cxx:246
python.CaloRecoConfig.f
f
Definition: CaloRecoConfig.py:127
MissingEtCollHandle::~MissingEtCollHandle
virtual ~MissingEtCollHandle()
Definition: MissingEtCollHandle.cxx:129
MissingEtCollHandle::getPhiAllowall
bool getPhiAllowall()
Definition: MissingEtCollHandle.h:76
AODHandleBase
Definition: AODHandleBase.h:43
AODCollHandleBase
Base class for all AOD object collections This class primarily handles setting up the interface,...
Definition: AODCollHandleBase.h:57
MissingEtCollHandle::getHandlesList
QList< AODHandleBase * > getHandlesList() const
Definition: MissingEtCollHandle.cxx:202
ObjectType
ObjectType
Definition: BaseObject.h:11
AODSysCommonData
Definition: AODSysCommonData.h:42
MissingEtCollHandle::setupSettingsFromControllerSpecific
virtual void setupSettingsFromControllerSpecific(const AODSystemController *)
For extensions specific to this collection.
Definition: MissingEtCollHandle.cxx:210
MissingEtCollHandle::m_cut_allowedPhi
QList< VP1Interval > m_cut_allowedPhi
Definition: MissingEtCollHandle.h:97
MissingEtCollHandle::m_d
Imp * m_d
Definition: MissingEtCollHandle.h:94
MissingEtCollHandle::m_cut_phi_allowall
bool m_cut_phi_allowall
Definition: MissingEtCollHandle.h:98
MissingEtCollHandle::setMetSize
void setMetSize(int size)
Definition: MissingEtCollHandle.cxx:308
MissingEtCollHandle::load
virtual bool load()
Definition: MissingEtCollHandle.cxx:393
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
MissingEtCollHandle::m_cut_phi_allwillfail
bool m_cut_phi_allwillfail
Definition: MissingEtCollHandle.h:99
MissingEtCollHandle::defaultColor
virtual QColor defaultColor() const
Definition: MissingEtCollHandle.h:71
IVP1System
Definition: IVP1System.h:36
MissingEtCollHandle::hintNumberOfHandlesInEvent
virtual void hintNumberOfHandlesInEvent(unsigned)
Definition: MissingEtCollHandle.cxx:169
ObjectType.h
AODSystemController
Definition: AODSystemController.h:43
MissingEtCollHandle::setState
void setState(const QByteArray &)
Provide specific implementation.
Definition: MissingEtCollHandle.cxx:584
MissingEtCollHandle::setCutAllowedPhi
void setCutAllowedPhi(const QList< VP1Interval > &)
Definition: MissingEtCollHandle.cxx:513
MissingEtCollHandle::getCutAllowedPhi
QList< VP1Interval > getCutAllowedPhi()
Definition: MissingEtCollHandle.h:75
MissingEtCollHandle::cut
virtual bool cut(AODHandleBase *)
Definition: MissingEtCollHandle.cxx:452
MissingEtCollHandle::getNextHandle
virtual AODHandleBase * getNextHandle()
Definition: MissingEtCollHandle.cxx:194
MissingEtCollHandle::Imp
Definition: MissingEtCollHandle.cxx:73
VP1MaterialButtonBase
Definition: VP1MaterialButton.h:25
MissingEtCollHandle::availableCollections
static QStringList availableCollections(IVP1System *)
Definition: MissingEtCollHandle.cxx:66
AODCollHandleBase.h
MissingEtCollHandle::handleIterationBegin
virtual void handleIterationBegin()
Definition: MissingEtCollHandle.cxx:187
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
MissingEtCollHandle::collSettingsButton
const MissingEtCollectionSettingsButton & collSettingsButton() const
Definition: MissingEtCollHandle.cxx:262
MissingEtCollHandle::MissingEtCollHandle
MissingEtCollHandle(AODSysCommonData *, const QString &name, xAOD::Type::ObjectType type)
Definition: MissingEtCollHandle.cxx:102
MissingEtCollHandle::init
virtual void init(VP1MaterialButtonBase *matBut=0)
Definition: MissingEtCollHandle.cxx:145
MissingEtCollHandle::persistifiableState
QByteArray persistifiableState() const
Provide specific implementation.
Definition: MissingEtCollHandle.cxx:551
MissingEtCollHandle::addHandle
void addHandle(AODHandleBase *)
Definition: MissingEtCollHandle.cxx:175
AODCollHandleBase::name
QString name() const
Definition: AODCollHandleBase.cxx:130
MissingEtCollectionSettingsButton
Definition: MissingEtCollectionSettingsButton.h:17
MissingEtCollHandle
Definition: MissingEtCollHandle.h:27