ATLAS Offline Software
IParticleHandle_TrackParticle.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_TrackParticle //
9 // //
10 // Description: Handles for track particles. //
11 // //
12 // //
14 
15 #ifndef IPARTICLEHANDLE_TRACKPARTICLE_H
16 #define IPARTICLEHANDLE_TRACKPARTICLE_H
17 
18 #include "IParticleHandleBase.h"
19 
23 #include <QList>
24 
25 class SoLineSet;
26 
28 public:
29 
32 
33  virtual bool has3DObjects();
34  virtual void clear3DObjects();
35  virtual SoNode* nodes();
36  void addParameterShapes();
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  virtual unsigned summaryValue(xAOD::SummaryType type) const;
57  virtual unsigned getNPixelHits() const;
58  virtual unsigned getNSCTHits() const;
59  virtual unsigned getNTRTHits() const;
60  virtual unsigned getNMuonPrecisionLayers() const;
61  virtual unsigned getNMuonPrecisionHoleLayers() const;
62  virtual unsigned getNMuonPhiLayers() const;
63  virtual unsigned getNMuonPhiHoleLayers() const;
64 
65  virtual QString type() const { return QString("TrackParticle"); }
66 
68  QString shortInfo() const;
69 
70  void fillObjectBrowser( QList<QTreeWidgetItem *>& listOfItems) ;
71 
72  // Some specific stuff used by base collection to draw tracks
73  const QList<std::pair<xAOD::ParameterPosition, Amg::Vector3D> >& parametersAndPositions() const;
74 
75  virtual void dumpToJSON( std::ofstream& ) const ;
76 
77 private:
78 
79  class Imp;
80  Imp * m_d;
82 
83 };
84 
85 #endif
IParticleHandle_TrackParticle::getNMuonPrecisionHoleLayers
virtual unsigned getNMuonPrecisionHoleLayers() const
Definition: IParticleHandle_TrackParticle.cxx:487
IParticleHandle_TrackParticle::dumpToJSON
virtual void dumpToJSON(std::ofstream &) const
Definition: IParticleHandle_TrackParticle.cxx:597
IParticleHandle_TrackParticle::position
virtual Amg::Vector3D position() const
Definition: IParticleHandle_TrackParticle.cxx:433
IParticleHandle_TrackParticle::charge
virtual double charge() const
Returns unknown() in case of trouble.
Definition: IParticleHandle_TrackParticle.cxx:448
IParticleHandle_TrackParticle::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_TrackParticle.cxx:231
IParticleHandle_TrackParticle::momentum
virtual Amg::Vector3D momentum() const
Definition: IParticleHandle_TrackParticle.cxx:407
IParticleHandle_TrackParticle::getNSCTHits
virtual unsigned getNSCTHits() const
Definition: IParticleHandle_TrackParticle.cxx:472
hist_file_dump.d
d
Definition: hist_file_dump.py:137
IParticleHandle_TrackParticle::~IParticleHandle_TrackParticle
virtual ~IParticleHandle_TrackParticle()
Definition: IParticleHandle_TrackParticle.cxx:73
IParticleHandle_TrackParticle::iParticle
const xAOD::IParticle & iParticle() const
Definition: IParticleHandle_TrackParticle.cxx:442
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:41
IParticleHandle_TrackParticle::bezier
void bezier(Amg::Vector3D &output, Amg::Vector3D &a, Amg::Vector3D &b, Amg::Vector3D &c, Amg::Vector3D &d, float t)
Definition: IParticleHandle_TrackParticle.cxx:220
IParticleHandle_TrackParticle::addLine_FromTrackParticle
void addLine_FromTrackParticle()
Make the line, but only using information on the track (a spline fit will be done from the parameters...
Definition: IParticleHandle_TrackParticle.cxx:173
GeoPrimitives.h
IParticleHandle_TrackParticle::fillObjectBrowser
void fillObjectBrowser(QList< QTreeWidgetItem * > &listOfItems)
Create and fill the object browser QTreeWidgetItem.
Definition: IParticleHandle_TrackParticle.cxx:514
xAOD::SummaryType
SummaryType
Enumerates the different types of information stored in Summary.
Definition: TrackingPrimitives.h:228
IParticleHandle_TrackParticle::IParticleHandle_TrackParticle
IParticleHandle_TrackParticle(IParticleCollHandleBase *, const xAOD::TrackParticle *)
Definition: IParticleHandle_TrackParticle.cxx:62
IParticleHandleBase
Definition: IParticleHandleBase.h:42
IParticleHandle_TrackParticle::parametersAndPositions
const QList< std::pair< xAOD::ParameterPosition, Amg::Vector3D > > & parametersAndPositions() const
Definition: IParticleHandle_TrackParticle.cxx:571
IParticleHandle_TrackParticle::Imp
Definition: IParticleHandle_TrackParticle.cxx:48
IParticleHandleBase.h
IParticleHandle_TrackParticle::ensureInitSubSysHitInfo
void ensureInitSubSysHitInfo() const
IParticleHandle_TrackParticle::linear
void linear(Amg::Vector3D &output, Amg::Vector3D &a, Amg::Vector3D &b, float t)
Definition: IParticleHandle_TrackParticle.cxx:213
IParticleHandle_TrackParticle::has3DObjects
virtual bool has3DObjects()
Returns true if the 3D objects have been created.
Definition: IParticleHandle_TrackParticle.cxx:80
IParticleHandle_TrackParticle::getNPixelHits
virtual unsigned getNPixelHits() const
Definition: IParticleHandle_TrackParticle.cxx:466
IParticleHandle_TrackParticle::clicked
virtual QStringList clicked() const
Called when user selects the node (stringlist is displayed in messagebox).
Definition: IParticleHandle_TrackParticle.cxx:367
IParticleHandle_TrackParticle::shortInfo
QString shortInfo() const
This returns the information shown about the object in the object browser.
Definition: IParticleHandle_TrackParticle.cxx:502
IParticleHandle_TrackParticle::getNMuonPrecisionLayers
virtual unsigned getNMuonPrecisionLayers() const
Definition: IParticleHandle_TrackParticle.cxx:482
merge.output
output
Definition: merge.py:17
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
IParticleHandle_TrackParticle::getNMuonPhiHoleLayers
virtual unsigned getNMuonPhiHoleLayers() const
Definition: IParticleHandle_TrackParticle.cxx:497
IParticleHandle_TrackParticle
Definition: IParticleHandle_TrackParticle.h:27
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
IParticleHandle_TrackParticle::getNMuonPhiLayers
virtual unsigned getNMuonPhiLayers() const
Definition: IParticleHandle_TrackParticle.cxx:492
IParticleHandle_TrackParticle::getNTRTHits
virtual unsigned getNTRTHits() const
Definition: IParticleHandle_TrackParticle.cxx:477
IParticleHandle_TrackParticle::addLine_Extrapolated
void addLine_Extrapolated()
Extrapolate the initial track parameters to get the line (a spline fit is done between the extrapolat...
Definition: IParticleHandle_TrackParticle.cxx:295
TrackParticle.h
a
TList * a
Definition: liststreamerinfos.cxx:10
IParticleHandle_TrackParticle::addParameterShapes
void addParameterShapes()
Definition: IParticleHandle_TrackParticle.cxx:128
IParticleHandle_TrackParticle::m_d
Imp * m_d
Definition: IParticleHandle_TrackParticle.h:79
IParticleHandle_TrackParticle::summaryValue
virtual unsigned summaryValue(xAOD::SummaryType type) const
Definition: IParticleHandle_TrackParticle.cxx:454
IParticleHandle_TrackParticle::clear3DObjects
virtual void clear3DObjects()
Delete objects.
Definition: IParticleHandle_TrackParticle.cxx:83
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
IParticleHandle_TrackParticle::nodes
virtual SoNode * nodes()
Returns the 3Dobjects.
Definition: IParticleHandle_TrackParticle.cxx:100
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_TrackParticle::type
virtual QString type() const
return very short word with type (maybe link with collection type?)
Definition: IParticleHandle_TrackParticle.h:65