ATLAS Offline Software
Loading...
Searching...
No Matches
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
25class SoLineSet;
26
28public:
29
32
33 virtual bool has3DObjects();
34 virtual void clear3DObjects();
35 virtual SoNode* nodes();
36 void addParameterShapes();
39 #ifndef BUILDVP1LIGHT
42 #endif // BUILDVP1LIGHT
44 void fillLineFromSplineFit( const std::vector<Amg::Vector3D>& positions,
45 const std::vector<Amg::Vector3D>& momenta);
46 void linear(Amg::Vector3D& output, Amg::Vector3D& a, Amg::Vector3D& b, float t);
47
48 void bezier(Amg::Vector3D& output, Amg::Vector3D& a, Amg::Vector3D& b, Amg::Vector3D& c, Amg::Vector3D& d, float t);
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
78private:
79
80 class Imp;
83
84};
85
86#endif
static Double_t a
Base class for collections holding AOD objects of iParticle type Handles pt etc cuts Local data:
IParticleHandleBase(IParticleCollHandleBase *)
virtual unsigned getNSCTHits() const
virtual double charge() const
Returns unknown() in case of trouble.
virtual unsigned getNMuonPhiHoleLayers() const
virtual QString type() const
return very short word with type (maybe link with collection type?)
virtual unsigned getNPixelHits() const
const QList< std::pair< xAOD::ParameterPosition, Amg::Vector3D > > & parametersAndPositions() const
virtual QStringList clicked() const
Called when user selects the node (stringlist is displayed in messagebox).
void bezier(Amg::Vector3D &output, Amg::Vector3D &a, Amg::Vector3D &b, Amg::Vector3D &c, Amg::Vector3D &d, float t)
void linear(Amg::Vector3D &output, Amg::Vector3D &a, Amg::Vector3D &b, float t)
virtual unsigned getNMuonPrecisionHoleLayers() const
virtual void dumpToJSON(std::ofstream &) const
virtual unsigned summaryValue(xAOD::SummaryType type) const
virtual unsigned getNTRTHits() const
void ensureInitSubSysHitInfo() const
virtual unsigned getNMuonPrecisionLayers() const
void addLine_FromElectron()
Make the line, but only using information on the track (a spline fit will be done from the parameters...
virtual void clear3DObjects()
Delete objects.
virtual unsigned getNMuonPhiLayers() const
IParticleHandle_Electron(IParticleCollHandleBase *, const xAOD::Electron *)
void addLine_Extrapolated()
Extrapolate the initial track parameters to get the line (a spline fit is done between the extrapolat...
virtual Amg::Vector3D momentum() const
void fillObjectBrowser(QList< QTreeWidgetItem * > &listOfItems)
Create and fill the object browser QTreeWidgetItem.
const xAOD::IParticle & iParticle() const
QString shortInfo() const
This returns the information shown about the object in the object browser.
const xAOD::Electron & electron() const
virtual Amg::Vector3D position() const
virtual SoNode * nodes()
Returns the 3Dobjects.
virtual bool has3DObjects()
Returns true if the 3D objects have been created.
Class providing the definition of the 4-vector interface.
Eigen::Matrix< double, 3, 1 > Vector3D
SummaryType
Enumerates the different types of information stored in Summary.
Electron_v1 Electron
Definition of the current "egamma version".