ATLAS Offline Software
AFPProton_v1.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 /*
3  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
4 */
5 
15 #ifndef XAODFORWARD_VERSIONS_AFPPROTON_V1_H
16 #define XAODFORWARD_VERSIONS_AFPPROTON_V1_H
17 
18 // EDM include(s):
19 #include "AthLinks/ElementLink.h"
20 
21 // IParticle include:
22 #include "xAODBase/IParticle.h"
23 
24 // Local includes(s):
25 #include "xAODForward/AFPTrack.h"
27 
28 namespace xAOD {
29 
36  class AFPProton_v1 : public IParticle {
37 
38  public:
40  AFPProton_v1();
41 
44 
47 
49  virtual double pt() const;
51  virtual double eta() const;
53  virtual double phi() const;
55  virtual double m() const;
57  virtual double e() const;
59  virtual double rapidity() const;
60 
63 
65  virtual FourMom_t p4() const;
66 
68  virtual Type::ObjectType type() const;
69 
71 
74 
76  float px() const;
78  float py() const;
80  float pz() const;
81 
83  void setPxPyPzE( float px, float py, float pz, float e );
85  void setPx( float px );
87  void setPy( float py );
89  void setPz( float pz );
91  void setE( float e );
92 
94 
96  float chi2() const;
98  void setChi2( float chi2 );
99 
101  int side() const;
103  void setSide( int side );
104 
106  int methodID() const;
108  void setMethodID( int methodID );
109 
112 
114  const std::vector< AFPTrackLink_t >& afpTrackLinks() const;
116  void setAFPTrackLinks( const std::vector< AFPTrackLink_t >& newTracksVector );
118  void addAFPTrackLink( const AFPTrackLink_t& newTrack );
119 
121  size_t nTracks() const;
123  const AFPTrack* track( size_t index ) const;
124 
126 
127  }; // class AFPProton_v1
128 
129 } // namespace xAOD
130 
131 // Declare the inheritance of the type to StoreGate and DataVector:
132 #include "xAODCore/BaseInfo.h"
136 
137 #endif // XAODFORWARD_VERSIONS_AFPPROTON_V1_H
AFPTrackContainer.h
xAOD::AFPTrack_v2
Class representing a track reconstructed in AFP.
Definition: AFPTrack_v2.h:37
IParticle.h
index
Definition: index.py:1
xAOD::AFPProton_v1::setAFPTrackLinks
void setAFPTrackLinks(const std::vector< AFPTrackLink_t > &newTracksVector)
Set vector of links to tracks used for proton reconstruction.
xAOD::AFPProton_v1::setChi2
void setChi2(float chi2)
Set the value of function.
BaseInfo.h
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::AFPProton_v1::AFPTrackLink_t
ElementLink< AFPTrackContainer > AFPTrackLink_t
Type of the track links.
Definition: AFPProton_v1.h:43
xAOD::AFPProton_v1::m
virtual double m() const
The invariant mass of the particle.
Definition: AFPProton_v1.cxx:39
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:41
xAOD::AFPProton_v1::track
const AFPTrack * track(size_t index) const
Get one of the tracks that was used to reconstruct the proton.
Definition: AFPProton_v1.cxx:136
xAOD::AFPProton_v1::rapidity
virtual double rapidity() const
The true rapidity (y) of the particle.
Definition: AFPProton_v1.cxx:46
xAOD::IParticle::FourMom_t
TLorentzVector FourMom_t
Definition of the 4-momentum type.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:69
xAOD::AFPProton_v1::e
virtual double e() const
The total energy of the particle.
xAOD::AFPProton_v1::setSide
void setSide(int side)
Set the ATLAS side on which the proton was measured.
xAOD::AFPProton_v1::p4
virtual FourMom_t p4() const
The full 4-momentum of the particle.
Definition: AFPProton_v1.cxx:51
xAOD::AFPProton_v1::setPx
void setPx(float px)
Set the x-component of the momentum.
Definition: AFPProton_v1.cxx:78
xAOD::AFPProton_v1::py
float py() const
Get the y-component of the momentum.
xAOD::AFPProton_v1::methodID
int methodID() const
Get the ID of method used to reconstruct the proton.
SG_BASE
SG_BASE(xAOD::AFPProton_v1, xAOD::IParticle)
xAOD::AFPProton_v1::setPxPyPzE
void setPxPyPzE(float px, float py, float pz, float e)
Set the 4-momentum.
Definition: AFPProton_v1.cxx:68
xAOD::AFPProton_v1::addAFPTrackLink
void addAFPTrackLink(const AFPTrackLink_t &newTrack)
Add a link to a tracks used to reconstruct the proton.
Definition: AFPProton_v1.cxx:120
xAOD::AFPProton_v1::afpTrackLinks
const std::vector< AFPTrackLink_t > & afpTrackLinks() const
Get vector of links to tracks that were used to reconstruct the proton.
xAOD::AFPProton_v1::pt
virtual double pt() const
The transverse momentum ( ) of the particle.
Definition: AFPProton_v1.cxx:24
xAOD::AFPProton_v1::setPy
void setPy(float py)
Set the y-component of the momentum.
Definition: AFPProton_v1.cxx:85
xAOD::AFPProton_v1::setPz
void setPz(float pz)
Set the z-component of the momentum.
Definition: AFPProton_v1.cxx:92
AFPTrack.h
xAOD::AFPProton_v1::eta
virtual double eta() const
The pseudorapidity ( ) of the particle.
Definition: AFPProton_v1.cxx:29
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
xAOD::AFPProton_v1::side
int side() const
Get the ATLAS side on which the proton was measured.
xAOD::AFPProton_v1::FourMom_t
IParticle::FourMom_t FourMom_t
Definition of the 4-momentum type.
Definition: AFPProton_v1.h:62
xAOD::AFPProton_v1::AFPProton_v1
AFPProton_v1()
Default constructor.
Definition: AFPProton_v1.cxx:22
DATAVECTOR_BASE
DATAVECTOR_BASE(xAOD::AFPProton_v1, xAOD::IParticle)
xAOD::AFPProton_v1
Class representing a proton reconstructed in AFP.
Definition: AFPProton_v1.h:36
xAOD::AFPProton_v1::chi2
float chi2() const
Get the value of function.
xAOD::AFPProton_v1::nTracks
size_t nTracks() const
Get the number of tracks that were used to reconstruct the proton.
Definition: AFPProton_v1.cxx:126
xAODType::ObjectType
ObjectType
Type of objects that have a representation in the xAOD EDM.
Definition: ObjectType.h:32
xAOD::AFPProton_v1::px
float px() const
Get the x-component of the momentum.
xAOD::AFPProton_v1::phi
virtual double phi() const
The azimuthal angle ( ) of the particle (has range to .)
Definition: AFPProton_v1.cxx:34
xAOD::AFPProton_v1::type
virtual Type::ObjectType type() const
The type of the object as a simple enumeration.
Definition: AFPProton_v1.cxx:59
xAOD::AFPProton_v1::setMethodID
void setMethodID(int methodID)
Set the ID of method used to reconstruct the proton.
xAOD::AFPProton_v1::setE
void setE(float e)
Set the energy.
Definition: AFPProton_v1.cxx:99
xAOD::AFPProton_v1::pz
float pz() const
Get the z-component of the momentum.