ATLAS Offline Software
IParticleHandle_Electron.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 // //
8 // Header file for class IParticleHandle_Electron //
9 // //
10 // Description: Handles for track particles. //
11 // //
12 // //
14 
15 #ifndef IPARTICLEHANDLE_ELECTRON_H
16 #define IPARTICLEHANDLE_ELECTRON_H
17 
18 #include "IParticleHandleBase.h"
19 
20 #include "xAODEgamma/Electron.h"
23 #include <QList>
24 
25 class SoLineSet;
26 
28 public:
29 
31  virtual ~IParticleHandle_Electron();
32 
33  virtual bool has3DObjects();
34  virtual void clear3DObjects();
35  virtual SoNode* nodes();
36  void addParameterShapes();
38  void addLine_FromElectron();
39  #ifndef BUILDVP1LIGHT
40  void addLine_Extrapolated();
42  #endif // BUILDVP1LIGHT
43  void fillLineFromSplineFit( const std::vector<Amg::Vector3D>& positions,
45  const std::vector<Amg::Vector3D>& momenta);
47 
49 
50  virtual QStringList clicked() const;
51  virtual Amg::Vector3D momentum() const;
52  virtual Amg::Vector3D position() const;
53  const xAOD::IParticle& iParticle() const;
54  virtual double charge() const ;
55 
56  const xAOD::Electron& electron() const;
57  virtual unsigned summaryValue(xAOD::SummaryType type) const;
58  virtual unsigned getNPixelHits() const;
59  virtual unsigned getNSCTHits() const;
60  virtual unsigned getNTRTHits() const;
61  virtual unsigned getNMuonPrecisionLayers() const;
62  virtual unsigned getNMuonPrecisionHoleLayers() const;
63  virtual unsigned getNMuonPhiLayers() const;
64  virtual unsigned getNMuonPhiHoleLayers() const;
65 
66  virtual QString type() const { return QString("Electron"); }
67 
69  QString shortInfo() const;
70 
71  void fillObjectBrowser( QList<QTreeWidgetItem *>& listOfItems) ;
72 
73  // Some specific stuff used by base collection to draw tracks
74  const QList<std::pair<xAOD::ParameterPosition, Amg::Vector3D> >& parametersAndPositions() const;
75 
76  virtual void dumpToJSON( std::ofstream& ) const ;
77 
78 private:
79 
80  class Imp;
81  Imp *m_d;
83 
84 };
85 
86 #endif
IParticleHandle_Electron::getNSCTHits
virtual unsigned getNSCTHits() const
Definition: IParticleHandle_Electron.cxx:476
IParticleHandle_Electron::has3DObjects
virtual bool has3DObjects()
Returns true if the 3D objects have been created.
Definition: IParticleHandle_Electron.cxx:79
IParticleHandle_Electron::electron
const xAOD::Electron & electron() const
Definition: IParticleHandle_Electron.cxx:75
IParticleHandle_Electron::clicked
virtual QStringList clicked() const
Called when user selects the node (stringlist is displayed in messagebox).
Definition: IParticleHandle_Electron.cxx:371
hist_file_dump.d
d
Definition: hist_file_dump.py:137
IParticleHandle_Electron::m_d
Imp * m_d
Definition: IParticleHandle_Electron.h:80
IParticleHandle_Electron::parametersAndPositions
const QList< std::pair< xAOD::ParameterPosition, Amg::Vector3D > > & parametersAndPositions() const
Definition: IParticleHandle_Electron.cxx:571
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
IParticleHandle_Electron::dumpToJSON
virtual void dumpToJSON(std::ofstream &) const
Definition: IParticleHandle_Electron.cxx:597
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:41
IParticleHandle_Electron::getNPixelHits
virtual unsigned getNPixelHits() const
Definition: IParticleHandle_Electron.cxx:470
IParticleHandle_Electron::momentum
virtual Amg::Vector3D momentum() const
Definition: IParticleHandle_Electron.cxx:411
IParticleHandle_Electron::nodes
virtual SoNode * nodes()
Returns the 3Dobjects.
Definition: IParticleHandle_Electron.cxx:99
GeoPrimitives.h
IParticleHandle_Electron::getNMuonPhiHoleLayers
virtual unsigned getNMuonPhiHoleLayers() const
Definition: IParticleHandle_Electron.cxx:501
xAOD::SummaryType
SummaryType
Enumerates the different types of information stored in Summary.
Definition: TrackingPrimitives.h:228
IParticleHandle_Electron::fillObjectBrowser
void fillObjectBrowser(QList< QTreeWidgetItem * > &listOfItems)
Create and fill the object browser QTreeWidgetItem.
Definition: IParticleHandle_Electron.cxx:514
IParticleHandle_Electron::addLine_Extrapolated
void addLine_Extrapolated()
Extrapolate the initial track parameters to get the line (a spline fit is done between the extrapolat...
Definition: IParticleHandle_Electron.cxx:299
IParticleHandle_Electron::shortInfo
QString shortInfo() const
This returns the information shown about the object in the object browser.
Definition: IParticleHandle_Electron.cxx:506
IParticleHandleBase
Definition: IParticleHandleBase.h:42
IParticleHandleBase.h
IParticleHandle_Electron::~IParticleHandle_Electron
virtual ~IParticleHandle_Electron()
Definition: IParticleHandle_Electron.cxx:68
IParticleHandle_Electron::addParameterShapes
void addParameterShapes()
Definition: IParticleHandle_Electron.cxx:128
IParticleHandle_Electron::iParticle
const xAOD::IParticle & iParticle() const
Definition: IParticleHandle_Electron.cxx:446
IParticleHandle_Electron::fillLineFromSplineFit
void fillLineFromSplineFit(const std::vector< Amg::Vector3D > &positions, const std::vector< Amg::Vector3D > &momenta)
Fill d->line with a SoLineSet made from a spline fit between the information in positions and momenta...
Definition: IParticleHandle_Electron.cxx:235
IParticleHandle_Electron::type
virtual QString type() const
return very short word with type (maybe link with collection type?)
Definition: IParticleHandle_Electron.h:66
merge.output
output
Definition: merge.py:17
IParticleHandle_Electron::getNMuonPrecisionLayers
virtual unsigned getNMuonPrecisionLayers() const
Definition: IParticleHandle_Electron.cxx:486
IParticleHandle_Electron::IParticleHandle_Electron
IParticleHandle_Electron(IParticleCollHandleBase *, const xAOD::Electron *)
Definition: IParticleHandle_Electron.cxx:57
IParticleHandle_Electron::getNMuonPhiLayers
virtual unsigned getNMuonPhiLayers() const
Definition: IParticleHandle_Electron.cxx:496
IParticleHandle_Electron::linear
void linear(Amg::Vector3D &output, Amg::Vector3D &a, Amg::Vector3D &b, float t)
Definition: IParticleHandle_Electron.cxx:217
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
IParticleHandle_Electron::charge
virtual double charge() const
Returns unknown() in case of trouble.
Definition: IParticleHandle_Electron.cxx:452
xAOD::Electron_v1
Definition: Electron_v1.h:34
IParticleHandle_Electron::position
virtual Amg::Vector3D position() const
Definition: IParticleHandle_Electron.cxx:436
IParticleHandle_Electron::getNTRTHits
virtual unsigned getNTRTHits() const
Definition: IParticleHandle_Electron.cxx:481
a
TList * a
Definition: liststreamerinfos.cxx:10
IParticleHandle_Electron::ensureInitSubSysHitInfo
void ensureInitSubSysHitInfo() const
IParticleHandle_Electron::Imp
Definition: IParticleHandle_Electron.cxx:43
IParticleHandle_Electron::clear3DObjects
virtual void clear3DObjects()
Delete objects.
Definition: IParticleHandle_Electron.cxx:82
IParticleHandle_Electron::addLine_FromElectron
void addLine_FromElectron()
Make the line, but only using information on the track (a spline fit will be done from the parameters...
Definition: IParticleHandle_Electron.cxx:173
Electron.h
IParticleHandle_Electron::getNMuonPrecisionHoleLayers
virtual unsigned getNMuonPrecisionHoleLayers() const
Definition: IParticleHandle_Electron.cxx:491
IParticleHandle_Electron::summaryValue
virtual unsigned summaryValue(xAOD::SummaryType type) const
Definition: IParticleHandle_Electron.cxx:458
IParticleCollHandleBase
Base class for collections holding AOD objects of iParticle type Handles pt etc cuts Local data:
Definition: IParticleCollHandleBase.h:50
python.compressB64.c
def c
Definition: compressB64.py:93
TrackingPrimitives.h
IParticleHandle_Electron::bezier
void bezier(Amg::Vector3D &output, Amg::Vector3D &a, Amg::Vector3D &b, Amg::Vector3D &c, Amg::Vector3D &d, float t)
Definition: IParticleHandle_Electron.cxx:224
IParticleHandle_Electron
Definition: IParticleHandle_Electron.h:27