ATLAS Offline Software
Electron_v1.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef XAODEGAMMA_VERSIONS_ELECTRON_V1_H
8 #define XAODEGAMMA_VERSIONS_ELECTRON_V1_H
9 
10 // Core include(s):
11 #include "AthLinks/ElementLink.h"
12 // xAOD include(s):
14 //Egamma includes
15 #include "xAODEgamma/EgammaEnums.h"
16 //Tracking includes
18 //TrackParticle Includes
21 
22 //Already include the DataVector specialization for this type
24 
25 namespace xAOD {
26 
35 
36  public:
39 
41  Electron_v1();
42 
44  Electron_v1(const Electron_v1& el);
45 
46 
48 
51 
54 
56 
59 
61  float charge() const;
62 
64  void setCharge(float charge);
65 
67 
70 
72  virtual Type::ObjectType type() const override final; //Always an Electron.
73 
75 
78 
81  size_t nTrackParticles() const;
82 
86 
90  trackParticleLink( size_t index = 0 ) const;
91 
94 
100 
102 
105 
107  bool trackCaloMatchValue( float& value, const EgammaParameters::TrackCaloMatchType information ) const;
108 
111  float trackCaloMatchValue( const EgammaParameters::TrackCaloMatchType information ) const;
112 
113 
115  bool setTrackCaloMatchValue( const float value, const EgammaParameters::TrackCaloMatchType information );
116 
119  const std::array<double, 4> &deltaEta,
120  const std::array<double, 4> &deltaPhi,
121  const std::array<double, 4> &deltaPhiRescaled,
122  const double deltaPhiLast
123  );
124 
128  bool trackParticleSummaryValue( uint8_t& value, const SummaryType information, int index = 0) const;
129  bool trackParticleSummaryValue( float& value, const SummaryType information, int index = 0) const;
130 
134  float trackParticleSummaryFloatValue( const SummaryType information, int index = 0) const;
135 
137 
138 
139  }; // Electron Class
140 
141 }// xAOD namespace
142 //Finish declaration of Egamma as a base class of Electron
144 
145 #endif // XAODEGAMMA_VERSIONS_ELECTRON_V1_H
146 
egammaParameters::deltaPhiRescaled
@ deltaPhiRescaled
difference between the cluster phi (sampling 2) and the phi of the track extrapolated from the perige...
Definition: egammaParamDefs.h:595
xAOD::Electron_v1::charge
float charge() const
Obtain the charge of the object.
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
xAOD::Electron_v1::type
virtual Type::ObjectType type() const override final
The type of the object as a simple enumeration.
Definition: Electron_v1.cxx:35
index
Definition: index.py:1
Egamma
Definition: ClusMomentumPlots.cxx:11
xAOD::deltaPhi
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap setEtaBin setIsTgcFailure setDeltaPt deltaPhi
Definition: L2StandAloneMuon_v1.cxx:160
xAOD::Electron_v1::Electron_v1
Electron_v1()
Default constructor. No store is attached.
Definition: Electron_v1.cxx:17
xAOD::Electron_v1::trackParticleSummaryFloatValue
float trackParticleSummaryFloatValue(const SummaryType information, int index=0) const
Definition: Electron_v1.cxx:166
athena.value
value
Definition: athena.py:124
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::Electron_v1::trackParticle
const xAOD::TrackParticle * trackParticle(size_t index=0) const
Pointer to the xAOD::TrackParticle/s that match the electron candidate.
Definition: Electron_v1.cxx:55
xAOD::Egamma_v1
Definition: Egamma_v1.h:56
xAOD::Electron_v1::setTrackParticleLinks
void setTrackParticleLinks(const TPELVec_t &links)
Set the ElementLinks to the xAOD::TrackParticle/s that match the electron candidate.
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
xAOD::Electron_v1::TPELVec_t
std::vector< ElementLink< TrackParticleContainer > > TPELVec_t
Helper type definition.
Definition: Electron_v1.h:93
xAOD::Electron_v1::trackCaloMatchValue
bool trackCaloMatchValue(float &value, const EgammaParameters::TrackCaloMatchType information) const
Accessor for Track to Calo Match Values.
xAOD::Electron_v1::nTrackParticles
size_t nTrackParticles() const
Return the number xAOD::TrackParticles that match the electron candidate.
Definition: Electron_v1.cxx:44
xAOD::Electron_v1::trackParticleLink
const ElementLink< TrackParticleContainer > & trackParticleLink(size_t index=0) const
ElementLink to the xAOD::TrackParticle/s that match the electron candidate.
Definition: Electron_v1.cxx:68
xAOD::Electron_v1::setCharge
void setCharge(float charge)
set the charge of the object
xAOD::SummaryType
SummaryType
Enumerates the different types of information stored in Summary.
Definition: TrackingPrimitives.h:228
xAOD::EgammaParameters::TrackCaloMatchType
TrackCaloMatchType
Definition: EgammaEnums.h:173
P4Helpers::deltaEta
double deltaEta(const I4Momentum &p1, const I4Momentum &p2)
Computes efficiently .
Definition: P4Helpers.h:66
vector
Definition: MultiHisto.h:13
DMTest::links
links
Definition: CLinks_v1.cxx:22
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
xAOD::Electron_v1::operator=
Electron_v1 & operator=(const Electron_v1 &el)
Assignment Operator. Ends up using the assignment of AuxElement for the store.
Definition: Electron_v1.cxx:24
lumiFormat.array
array
Definition: lumiFormat.py:91
egammaParameters::deltaPhiLast
@ deltaPhiLast
deltaPhi from the las point
Definition: egammaParamDefs.h:724
Egamma_v1.h
xAOD::Electron_v1::trackParticleSummaryIntValue
uint8_t trackParticleSummaryIntValue(const SummaryType information, int index=0) const
Accessor to the matching track(s) int information (index = 0 is the best match) Will lead to an excep...
Definition: Electron_v1.cxx:154
xAOD::Electron_v1
Definition: Electron_v1.h:34
TrackParticle.h
EgammaEnums.h
ElectronContainerFwd.h
DATAVECTOR_BASE_FIN
DATAVECTOR_BASE_FIN(xAOD::Electron_v1, xAOD::Egamma)
xAOD::Electron_v1::trackParticleSummaryValue
bool trackParticleSummaryValue(uint8_t &value, const SummaryType information, int index=0) const
Accessor to the matching track(s) float information (index = 0 is the best match) If 'information' is...
Definition: Electron_v1.cxx:140
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
xAOD::Electron_v1::setTrackCaloMatchValues
bool setTrackCaloMatchValues(const std::array< double, 4 > &deltaEta, const std::array< double, 4 > &deltaPhi, const std::array< double, 4 > &deltaPhiRescaled, const double deltaPhiLast)
Convinience wrapper for setTrackCaloMatchValue.
Definition: Electron_v1.cxx:116
xAODType::ObjectType
ObjectType
Type of objects that have a representation in the xAOD EDM.
Definition: ObjectType.h:32
xAOD::Electron_v1::trackParticleLinks
const TPELVec_t & trackParticleLinks() const
Get all the track particles.
TrackingPrimitives.h
TrackParticleContainer.h
xAOD::Electron_v1::setTrackCaloMatchValue
bool setTrackCaloMatchValue(const float value, const EgammaParameters::TrackCaloMatchType information)
Set method for Track to Calo Match values.