ATLAS Offline Software
Loading...
Searching...
No Matches
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
16//Tracking includes
18//TrackParticle Includes
21
22//Already include the DataVector specialization for this type
24
25namespace xAOD {
26
35
36 public:
39
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
79
81 virtual double m() const override final;
82
84
87
90 size_t nTrackParticles() const;
91
95
99 trackParticleLink( size_t index = 0 ) const;
100
103
109
111
114
116 bool trackCaloMatchValue( float& value, const EgammaParameters::TrackCaloMatchType information ) const;
117
120 float trackCaloMatchValue( const EgammaParameters::TrackCaloMatchType information ) const;
121
122
124 bool setTrackCaloMatchValue( const float value, const EgammaParameters::TrackCaloMatchType information );
125
128 const std::array<double, 4> &deltaEta,
129 const std::array<double, 4> &deltaPhi,
130 const std::array<double, 4> &deltaPhiRescaled,
131 const double deltaPhiLast
132 );
133
137 bool trackParticleSummaryValue( uint8_t& value, const SummaryType information, int index = 0) const;
138 bool trackParticleSummaryValue( float& value, const SummaryType information, int index = 0) const;
139
143 float trackParticleSummaryFloatValue( const SummaryType information, int index = 0) const;
144
146
147
148 }; // Electron Class
149
150}// xAOD namespace
151//Finish declaration of Egamma as a base class of Electron
153
154#endif // XAODEGAMMA_VERSIONS_ELECTRON_V1_H
155
#define DATAVECTOR_BASE_FIN(T, B)
Used to finish up a forward declaration.
Definition DataVector.h:774
bool trackCaloMatchValue(float &value, const EgammaParameters::TrackCaloMatchType information) const
Accessor for Track to Calo Match Values.
void setCharge(float charge)
set the charge of the object
std::vector< ElementLink< TrackParticleContainer > > TPELVec_t
Helper type definition.
float charge() const
Obtain the charge of the object.
float trackParticleSummaryFloatValue(const SummaryType information, int index=0) const
Electron_v1 & operator=(const Electron_v1 &el)
Assignment Operator. Ends up using the assignment of AuxElement for the store.
const xAOD::TrackParticle * trackParticle(size_t index=0) const
Pointer to the xAOD::TrackParticle/s that match the electron candidate.
virtual Type::ObjectType type() const override final
The type of the object as a simple enumeration.
const TPELVec_t & trackParticleLinks() const
Get all the track particles.
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...
void setTrackParticleLinks(const TPELVec_t &links)
Set the ElementLinks to the xAOD::TrackParticle/s that match the electron candidate.
size_t nTrackParticles() const
Return the number xAOD::TrackParticles that match the electron candidate.
bool setTrackCaloMatchValue(const float value, const EgammaParameters::TrackCaloMatchType information)
Set method for Track to Calo Match values.
const ElementLink< TrackParticleContainer > & trackParticleLink(size_t index=0) const
ElementLink to the xAOD::TrackParticle/s that match the electron candidate.
Electron_v1()
Default constructor. No store is attached.
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...
virtual double m() const override final
The invariant mass of the particle.
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 index.py:1
STL namespace.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap setEtaBin setIsTgcFailure setDeltaPt deltaPhi
TrackParticle_v1 TrackParticle
Reference the current persistent version:
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".
SummaryType
Enumerates the different types of information stored in Summary.