ATLAS Offline Software
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 
30 public:
31 
32  static QStringList availableCollections(IVP1System*);//For the collection widget.
33 
35  const QString& name, xAOD::Type::ObjectType type );
36 
37  virtual ~IParticleCollHandle_Jet();
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 
57 protected:
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 
63 private 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);
78  void resetCachedValuesCuts();
79 
80 private:
81 
82  class Imp;
83  Imp * m_d;
84 
85  void updateBTaggingAllJets();
87 
88 };
89 
90 #endif
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
IParticleCollHandle_Jet::IParticleCollHandle_Jet
IParticleCollHandle_Jet(AODSysCommonData *, const QString &name, xAOD::Type::ObjectType type)
Definition: IParticleCollHandle_Jet.cxx:124
AODHandleBase
Definition: AODHandleBase.h:43
ObjectType
ObjectType
Definition: BaseObject.h:11
AODSysCommonData
Definition: AODSysCommonData.h:42
IParticleCollHandle_Jet::setBTaggingTagger
void setBTaggingTagger(const QString &)
Definition: IParticleCollHandle_Jet.cxx:679
IParticleCollHandle_Jet::maxR
double maxR() const
Definition: IParticleCollHandle_Jet.cxx:339
max
constexpr double max()
Definition: ap_fixedTest.cxx:33
mat
GeoMaterial * mat
Definition: LArDetectorConstructionTBEC.cxx:55
IParticleCollHandle_Jet::load
virtual bool load()
Definition: IParticleCollHandle_Jet.cxx:461
JetCollectionSettingsButton
Definition: JetCollectionSettingsButton.h:14
IParticleCollHandle_Jet::setState
void setState(const QByteArray &)
Provide specific implementation.
Definition: IParticleCollHandle_Jet.cxx:803
IParticleCollHandle_Jet::rerandomise
void rerandomise()
Definition: IParticleCollHandle_Jet.cxx:432
IParticleCollHandle_Jet::setMaxR
void setMaxR(const double &max)
Definition: IParticleCollHandle_Jet.cxx:346
IParticleCollHandle_Jet::defaultColor
virtual QColor defaultColor() const
Definition: IParticleCollHandle_Jet.h:60
IParticleCollHandle_Jet::setupSettingsFromControllerSpecific
virtual void setupSettingsFromControllerSpecific(const AODSystemController *)
For extensions specific to this collection.
Definition: IParticleCollHandle_Jet.cxx:229
IParticleCollHandle_Jet::resetCachedValuesCuts
void resetCachedValuesCuts()
Definition: IParticleCollHandle_Jet.cxx:839
IParticleCollHandle_Jet::cut
virtual bool cut(AODHandleBase *)
Definition: IParticleCollHandle_Jet.cxx:533
IVP1System
Definition: IVP1System.h:36
ObjectType.h
IParticleCollHandle_Jet
Definition: IParticleCollHandle_Jet.h:26
IParticleCollHandle_Jet::showParametersChanged
void showParametersChanged(bool)
Definition: IParticleCollHandle_Jet.cxx:593
IParticleCollHandle_Jet::setRandomJetColours
void setRandomJetColours(const bool &)
Definition: IParticleCollHandle_Jet.cxx:397
AODSystemController
Definition: AODSystemController.h:43
IParticleCollHandle_Jet::init
virtual void init(VP1MaterialButtonBase *matBut=0)
Definition: IParticleCollHandle_Jet.cxx:172
IParticleCollHandle_Jet::setBTaggingEnabled
void setBTaggingEnabled(const bool &)
Definition: IParticleCollHandle_Jet.cxx:600
AODCollHandleBase::name
const QString & name() const
Definition: AODCollHandleBase.cxx:130
hist_file_dump.f
f
Definition: hist_file_dump.py:135
IParticleCollHandle_Jet::dumpToJSON
virtual void dumpToJSON(std::ofstream &) const
Definition: IParticleCollHandle_Jet.cxx:856
IParticleCollHandle_Jet::setBTaggingMaterialChanged
void setBTaggingMaterialChanged(const bool &)
Definition: IParticleCollHandle_Jet.cxx:754
IParticleCollHandle_Jet::setBTaggingMaterial
void setBTaggingMaterial(SoMaterial *mat=NULL)
Definition: IParticleCollHandle_Jet.cxx:640
IParticleCollHandle_Jet::updateBTaggingSwitchAllJets
void updateBTaggingSwitchAllJets()
Definition: IParticleCollHandle_Jet.cxx:734
IParticleCollHandle_Jet::setScale
void setScale(const double &s)
Definition: IParticleCollHandle_Jet.cxx:290
IParticleCollHandle_Jet::persistifiableState
QByteArray persistifiableState() const
Provide specific implementation.
Definition: IParticleCollHandle_Jet.cxx:770
IParticleCollHandle_Jet::scale
double scale() const
Definition: IParticleCollHandle_Jet.cxx:333
IParticleCollHandle_Jet::setBTaggingSkin
void setBTaggingSkin(const QString &filename)
Definition: IParticleCollHandle_Jet.cxx:610
VP1MaterialButtonBase
Definition: VP1MaterialButton.h:25
IParticleCollHandle_Jet::isRandomColors
bool isRandomColors() const
Definition: IParticleCollHandle_Jet.cxx:382
IParticleCollHandle_Jet::collSettingsButton
const JetCollectionSettingsButton & collSettingsButton() const
Definition: IParticleCollHandle_Jet.cxx:279
IParticleCollHandle_Jet::availableCollections
static QStringList availableCollections(IVP1System *)
Definition: IParticleCollHandle_Jet.cxx:71
IParticleCollHandle_Jet::setBTaggingCut
void setBTaggingCut(const double &)
Definition: IParticleCollHandle_Jet.cxx:698
IParticleCollHandle_Jet::setBTaggingSkinChanged
void setBTaggingSkinChanged(const bool &ok)
Definition: IParticleCollHandle_Jet.cxx:763
IParticleCollHandle_Jet::Imp
Definition: IParticleCollHandle_Jet.cxx:78
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
CaloCellTimeCorrFiller.filename
filename
Definition: CaloCellTimeCorrFiller.py:24
IParticleCollHandle_Jet::~IParticleCollHandle_Jet
virtual ~IParticleCollHandle_Jet()
Definition: IParticleCollHandle_Jet.cxx:162
IParticleCollHandle_Jet::updateBTaggingAllJets
void updateBTaggingAllJets()
Definition: IParticleCollHandle_Jet.cxx:715
IParticleCollHandleBase.h
IParticleCollHandleBase
Base class for collections holding AOD objects of iParticle type Handles pt etc cuts Local data:
Definition: IParticleCollHandleBase.h:50
IParticleCollHandle_Jet::m_d
Imp * m_d
Definition: IParticleCollHandle_Jet.h:82