|
ATLAS Offline Software
|
Go to the documentation of this file.
34 #include <Inventor/nodes/SoSeparator.h>
35 #include <Inventor/nodes/SoMaterial.h>
36 #include <Inventor/nodes/SoSwitch.h>
37 #include "Inventor/nodes/SoDrawStyle.h"
38 #include "Inventor/nodes/SoLightModel.h"
46 #include <QTreeWidgetItem>
47 #include <qdatetime.h>
58 std::vector<IParticleHandleBase*>
handles;
79 m_cut_pt_allowall(false),
80 m_cut_eta_allowall(false),
81 m_cut_phi_allowall(false),
82 m_cut_etaptphi_allwillfail(true)
115 message(
"ERROR - wrong handle type passed to IParticleCollHandleBase::addHandle!");
153 message(
"ERROR! IParticleCollHandleBase::cut() - passed in a handle of the wrong type! ");
179 if (
mom.mag2()!=0.0) {
209 messageVerbose(
"IParticleCollHandleBase::cut() - mom.mag2() == 0.0!!!");
213 messageVerbose(
"IParticleCollHandleBase::cut() - Returning true!");
230 double signMin = allowedpt.
lower()<0.0 ? -1.0 : 1.0;
231 double signMax = allowedpt.
upper()<0.0 ? -1.0 : 1.0;
232 double minptsq = allowedpt.
lower() == -std::numeric_limits<double>::infinity() ? -std::numeric_limits<double>::infinity() : signMin*(allowedpt.
lower()*allowedpt.
lower());
233 double maxptsq = allowedpt.
upper() == std::numeric_limits<double>::infinity() ? std::numeric_limits<double>::infinity() : signMax*(allowedpt.
upper()*allowedpt.
upper());
286 messageVerbose(
"IParticleCollHandleBase::setCutAllowedPhi() - signal received in setCutAllowedPhi.");
313 des.disableUnrestoredChecks();
314 if (
des.version()!=0&&
des.version()!=1) {
315 messageDebug(
"Warning: Ignoring state with wrong version");
318 bool vis =
des.restoreBool();
320 QByteArray matState =
des.restoreByteArray();
322 QByteArray extraWidgetState =
des.version()>=1 ?
des.restoreByteArray() : QByteArray();
325 if (extraWidgetState!=QByteArray())
332 messageDebug(
"IParticleCollHandleBase::persistifiableState() - start...");
351 messageDebug(
"IParticleCollHandleBase::persistifiableState() - end.");
JetConstituentVector::iterator iterator
void setExtraWidgetsState(const QByteArray &)
Scalar phi() const
phi method
Base class for all AOD object collections This class primarily handles setting up the interface,...
void serialise(const std::vector< const IRoiDescriptor * > &rois, roiserial_type &s)
serialise an entire vector of IRoiDescriptors
void messageVerbose(const QString &) const
IParticleCollHandleBase(AODSysCommonData *, const QString &name, xAOD::Type::ObjectType)
QList< AODHandleBase * > handlesList
std::vector< IParticleHandleBase * >::iterator itHandles
void messageDebug(const QString &) const
bool excludeInterval() const
void setCutAllowedPt(const VP1Interval &)
void setCutAllowedPhi(const QList< VP1Interval > &)
static double phiFromXY(const double &x, const double &y)
virtual QByteArray persistifiableState() const
Provide specific implementation.
QList< AODHandleBase * > getHandlesList() const
virtual Amg::Vector3D momentum() const
bool m_cut_etaptphi_allwillfail
IParticleCollHandleBase * theclass
void recheckCutStatusOfAllNotVisibleHandles()
QByteArray extraWidgetsState() const
void recheckCutStatusOfAllHandles()
virtual bool cut(AODHandleBase *)
void setCutAllowedEta(const VP1Interval &)
bool contains(const double &x) const
std::vector< IParticleHandleBase * >::iterator itHandlesEnd
Eigen::Matrix< double, 3, 1 > Vector3D
bool noUpperBound() const
virtual void handleIterationBegin()
std::vector< IParticleHandleBase * > handles
virtual void hintNumberOfHandlesInEvent(unsigned)
virtual AODHandleBase * getNextHandle()
virtual ~IParticleCollHandleBase()
void addHandle(AODHandleBase *)
VP1Interval m_cut_allowedPtSq
void message(const QString &) const
Base class for collections holding AOD objects of iParticle type Handles pt etc cuts Local data:
void recheckCutStatusOfAllVisibleHandles()
QList< VP1Interval > m_cut_allowedPhi
bool noLowerBound() const
virtual void setState(const QByteArray &)
Provide specific implementation.
VP1Interval m_cut_allowedEta