ATLAS Offline Software
IParticleHandle_Jet.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 // //
8 // Header file for class IParticleHandle_TrackParticle //
9 // //
10 // Description: Handles for track particles. //
11 // //
12 // Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
13 // Initial version: May 2008 //
14 // //
16 
17 #ifndef IPARTICLEHANDLE_JET_H
18 #define IPARTICLEHANDLE_JET_H
19 
20 #include "IParticleHandleBase.h"
21 
22 #include "xAODJet/Jet.h"
23 
25 
26 #include <string>
27 
28 // FWD declarations
29 class SoSwitch;
30 
31 
33 public:
34 
36  virtual ~IParticleHandle_Jet();
37 
38  virtual bool has3DObjects();
39  virtual void clear3DObjects();
40  virtual SoNode* nodes();
41 
42  // This fills the Jet specific information, and is needed in addition to the parent method.
43  void fillObjectBrowser( QList<QTreeWidgetItem *>& listOfItems) ;
44 
45  // Setters
46  void setScale( const double& sc, bool useEt);
47  void setMaxR(const double& maxR);
48 
49  void updateHeight();
50 
51  // set/update random material
52  void rerandomiseMaterial();
53 
54 
55  virtual QStringList clicked() const;
56  //virtual Amg::Vector3D momentum() const;
57  const xAOD::IParticle& iParticle() const;
58 
59  virtual double charge() const ;
60  double phi() const;
61  double eta() const;
62  double energy() const;
63  double transverseEnergy() const;
64  double energyForCuts() const;
65 
66  virtual QString type() const { return QString("Jet"); }
67 
69  QString shortInfo() const;
70 
71  void updateMaterial(bool);
72  void updateBTagging(const std::string& bTaggingTagger, const double& bTaggingCut);
73  void updateBTaggingSwitch(SoSwitch *bTaggingSwitch);
74 
75  virtual void dumpToJSON( std::ofstream& ) const ;
76 
77 
78 protected:
79 
80 private:
81 
82  class Imp;
83  Imp * m_d;
85  double getBTaggingWeight(const std::string& tagger);
86 
87 };
88 
89 #endif
AODHandleBase::updateMaterial
void updateMaterial()
Called after some configuration related to material changes.
Definition: AODHandleBase.cxx:208
Jet.h
IParticleHandle_Jet::Imp
Definition: IParticleHandle_Jet.cxx:51
IParticleHandle_Jet::iParticle
const xAOD::IParticle & iParticle() const
Definition: IParticleHandle_Jet.cxx:417
IParticleHandle_Jet::clear3DObjects
virtual void clear3DObjects()
Delete objects.
Definition: IParticleHandle_Jet.cxx:169
IParticleHandle_Jet::transverseEnergy
double transverseEnergy() const
Definition: IParticleHandle_Jet.cxx:588
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:41
IParticleHandle_Jet::clicked
virtual QStringList clicked() const
This gives the complete information about the object, shown in the main Message Box.
Definition: IParticleHandle_Jet.cxx:455
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
IParticleHandle_Jet::~IParticleHandle_Jet
virtual ~IParticleHandle_Jet()
Definition: IParticleHandle_Jet.cxx:138
IParticleHandle_Jet
Definition: IParticleHandle_Jet.h:32
IParticleHandle_Jet::dumpToJSON
virtual void dumpToJSON(std::ofstream &) const
Definition: IParticleHandle_Jet.cxx:769
IParticleHandle_Jet::nodes
virtual SoNode * nodes()
Returns the 3Dobjects.
Definition: IParticleHandle_Jet.cxx:193
GeoPrimitives.h
IParticleHandle_Jet::m_d
Imp * m_d
Definition: IParticleHandle_Jet.h:82
IParticleHandle_Jet::charge
virtual double charge() const
Returns unknown() in case of trouble.
Definition: IParticleHandle_Jet.cxx:424
IParticleHandle_Jet::type
virtual QString type() const
return very short word with type (maybe link with collection type?)
Definition: IParticleHandle_Jet.h:66
IParticleHandleBase
Definition: IParticleHandleBase.h:42
IParticleHandleBase.h
IParticleHandle_Jet::ensureInitSubSysHitInfo
void ensureInitSubSysHitInfo() const
IParticleHandle_Jet::shortInfo
QString shortInfo() const
This returns the information shown about the object in the object browser.
Definition: IParticleHandle_Jet.cxx:501
ftag::defaults::tagger
const std::string tagger
Definition: ToolDefaults.h:11
IParticleHandle_Jet::energyForCuts
double energyForCuts() const
Definition: IParticleHandle_Jet.cxx:584
IParticleHandle_Jet::eta
double eta() const
Definition: IParticleHandle_Jet.cxx:573
IParticleHandle_Jet::energy
double energy() const
Definition: IParticleHandle_Jet.cxx:580
IParticleHandle_Jet::updateBTagging
void updateBTagging(const std::string &bTaggingTagger, const double &bTaggingCut)
Definition: IParticleHandle_Jet.cxx:695
IParticleHandle_Jet::rerandomiseMaterial
void rerandomiseMaterial()
Definition: IParticleHandle_Jet.cxx:158
IParticleHandle_Jet::setScale
void setScale(const double &sc, bool useEt)
Definition: IParticleHandle_Jet.cxx:152
IParticleHandle_Jet::has3DObjects
virtual bool has3DObjects()
Returns true if the 3D objects have been created.
Definition: IParticleHandle_Jet.cxx:161
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
IParticleHandle_Jet::phi
double phi() const
Definition: IParticleHandle_Jet.cxx:566
IParticleHandle_Jet::IParticleHandle_Jet
IParticleHandle_Jet(IParticleCollHandleBase *, const xAOD::Jet *)
Definition: IParticleHandle_Jet.cxx:112
IParticleHandle_Jet::updateBTaggingSwitch
void updateBTaggingSwitch(SoSwitch *bTaggingSwitch)
Definition: IParticleHandle_Jet.cxx:675
IParticleHandle_Jet::setMaxR
void setMaxR(const double &maxR)
Definition: IParticleHandle_Jet.cxx:155
IParticleHandle_Jet::getBTaggingWeight
double getBTaggingWeight(const std::string &tagger)
Definition: IParticleHandle_Jet.cxx:719
IParticleHandle_Jet::updateHeight
void updateHeight()
Definition: IParticleHandle_Jet.cxx:239
IParticleCollHandleBase
Base class for collections holding AOD objects of iParticle type Handles pt etc cuts Local data:
Definition: IParticleCollHandleBase.h:50
IParticleHandle_Jet::fillObjectBrowser
void fillObjectBrowser(QList< QTreeWidgetItem * > &listOfItems)
This gives the list of object's properties, shown in the 'Information' field in the Browser,...
Definition: IParticleHandle_Jet.cxx:522