ATLAS Offline Software
Loading...
Searching...
No Matches
IParticleCollHandle_Jet.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 IParticleCollHandle_Jet //
9// //
10// Description: Collection handle for Jets //
11// //
12// June 2014 - Riccardo.Maria.Bianchi@cern.ch //
13// //
15
16#ifndef IPARTICLECOLLHANDLE_JET_H
17#define IPARTICLECOLLHANDLE_JET_H
18
20#include "xAODBase/ObjectType.h"
21
22//class SoMaterial;
24
25
27
28 Q_OBJECT
29
30public:
31
32 static QStringList availableCollections(IVP1System*);//For the collection widget.
33
35 const QString& name, xAOD::Type::ObjectType type );
36
38
39 virtual void init(VP1MaterialButtonBase* matBut=0);//reimplementations must start with a call to this.
41 virtual void dumpToJSON( std::ofstream& ) const ;
42
44 bool isRandomColors() const;
45 // bool isMaxR() const;
46
47 // This is created in this class, but passed to the JetCollectionButton for control etc. It is used in the Handle.
48 // SoMaterial* defaultParameterMaterial() const;
49
50 /*
51 * Save and restore settings
52 * (implementation of the virtual functions in the base class)
53 */
54 QByteArray persistifiableState() const; // save state
55 void setState(const QByteArray&); // restore state
56
57protected:
58 virtual bool load();
59 virtual bool cut(AODHandleBase*);
60 virtual QColor defaultColor() const { return QColor::fromRgbF(1.0f, 1.0f, 0.5f); } // light yellow
61 //virtual QString matButtonToolTip() const { return "Edit the material, properties and cuts of "+text(); }
62
63private Q_SLOTS:
64 void showParametersChanged(bool);
65 void setScale(const double& s);
66 double scale() const;
67 void setRandomJetColours(const bool&);
68 void rerandomise();
69 void setMaxR(const double& max);
70 double maxR() const;
71 void setBTaggingEnabled(const bool&);
72 void setBTaggingSkin(const QString &filename);
73 void setBTaggingMaterial(SoMaterial* mat = NULL);
74 void setBTaggingTagger(const QString & );
75 void setBTaggingCut(const double &);
76 void setBTaggingMaterialChanged(const bool&);
77 void setBTaggingSkinChanged(const bool& ok);
79
80private:
81
82 class Imp;
84
87
88};
89
90#endif
#define max(a, b)
Definition cfImp.cxx:41
const QString & name() const
IParticleCollHandleBase(AODSysCommonData *, const QString &name, xAOD::Type::ObjectType)
virtual void setupSettingsFromControllerSpecific(const AODSystemController *)
For extensions specific to this collection.
void setBTaggingMaterialChanged(const bool &)
void setBTaggingSkinChanged(const bool &ok)
void setMaxR(const double &max)
void setState(const QByteArray &)
Provide specific implementation.
QByteArray persistifiableState() const
Provide specific implementation.
virtual void init(VP1MaterialButtonBase *matBut=0)
void setBTaggingMaterial(SoMaterial *mat=NULL)
virtual void dumpToJSON(std::ofstream &) const
void setBTaggingTagger(const QString &)
const JetCollectionSettingsButton & collSettingsButton() const
virtual bool cut(AODHandleBase *)
IParticleCollHandle_Jet(AODSysCommonData *, const QString &name, xAOD::Type::ObjectType type)
static QStringList availableCollections(IVP1System *)
void setBTaggingSkin(const QString &filename)
virtual QColor defaultColor() const
ObjectType
Type of objects that have a representation in the xAOD EDM.
Definition ObjectType.h:32