ATLAS Offline Software
Loading...
Searching...
No Matches
Photon_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_PHOTON_V1_H
8#define XAODEGAMMA_VERSIONS_PHOTON_V1_H
9
10// Core include(s):
11#include "AthLinks/ElementLink.h"
12
13// xAOD include(s):
14#include "xAODTracking/Vertex.h"
17
18// Local include(s):
21
22//Already include the DataVector specialization for this type
24
25
26namespace xAOD {
27
37 class Photon_v1 :public xAOD::Egamma_v1 {
38
39 public:
42
44 Photon_v1();
45
48 Photon_v1(const Photon_v1& ph);
49
51
54
56 Photon_v1& operator=(const Photon_v1& el );
57
59
62
64 virtual Type::ObjectType type() const override final; //Always a Photon .
65
67
71
73 virtual double m() const override final;
74
76 virtual double e() const override final;
77
79 virtual double rapidity() const override final;
80
82
85
87 const xAOD::Vertex* vertex( size_t index = 0 ) const;
88
91 const ElementLink< VertexContainer >& vertexLink( size_t index = 0 ) const;
92
94 typedef std::vector< ElementLink< VertexContainer > > VxELVec_t;
95
97 const VxELVec_t& vertexLinks() const;
100 void setVertexLinks( const VxELVec_t& links );
101
104 size_t nVertices() const;
105
107
110
114 bool vertexCaloMatchValue( float& value, const EgammaParameters::VertexCaloMatchType information ) const;
115
119
121 bool setVertexCaloMatchValue( const float value, const EgammaParameters::VertexCaloMatchType information );
122
127
129 float conversionRadius() const {
131 }
132
133
135
136
137 }; // Photon Class
138
139}// xAOD namespace
140
141//Finish declaration of Egamma as base class of Photon_v1
143#endif // XAODEGAMMA_VERSIONS_PHOTON_V1_H
#define DATAVECTOR_BASE_FIN(T, B)
Used to finish up a forward declaration.
Definition DataVector.h:774
virtual Type::ObjectType type() const override final
The type of the object as a simple enumeration.
Definition Photon_v1.cxx:37
const ElementLink< VertexContainer > & vertexLink(size_t index=0) const
ElementLink to the xAOD::vertex/es that match the electron candidate.
Definition Photon_v1.cxx:74
bool setVertexCaloMatchValue(const float value, const EgammaParameters::VertexCaloMatchType information)
Set method for CaloMatch values.
std::vector< ElementLink< VertexContainer > > VxELVec_t
Helper type definition.
Definition Photon_v1.h:94
xAOD::EgammaParameters::ConversionType conversionType() const
return the photon conversion type (see EgammaEnums)
Definition Photon_v1.h:124
Photon_v1 & operator=(const Photon_v1 &el)
Assignment Operator. Ends up using the assignment of AuxElement for the store.
Definition Photon_v1.cxx:28
const VxELVec_t & vertexLinks() const
Get all vertex links.
virtual double e() const override final
The total energy of the particle.
Definition Photon_v1.cxx:46
virtual double m() const override final
The invariant mass of the particle.
Definition Photon_v1.cxx:42
bool vertexCaloMatchValue(float &value, const EgammaParameters::VertexCaloMatchType information) const
Accessor to vertex to Calo Match Values If 'information' is stored in this xAOD::Egamma and is of the...
void setVertexLinks(const VxELVec_t &links)
set Pointer to the xAOD::vertex/vertices that match the photon candidate
size_t nVertices() const
Return the number xAOD::Vertex/vertices that match the photon candidate.
float conversionRadius() const
return the photon conversion radius
Definition Photon_v1.h:129
virtual double rapidity() const override final
The true rapidity (y) of the particle.
Definition Photon_v1.cxx:51
float vertexCaloMatchValue(const EgammaParameters::VertexCaloMatchType information) const
Accessor to vertex to Calo Match Values , this just returns the value without internaly checking if i...
Photon_v1()
Default constructor.
Definition Photon_v1.cxx:19
const xAOD::Vertex * vertex(size_t index=0) const
Pointer to the xAOD::Vertex/es that match the photon candidate.
Definition Photon_v1.cxx:61
Definition index.py:1
xAOD::EgammaParameters::ConversionType conversionType(const xAOD::Photon *ph)
return the photon conversion type (see EgammaEnums)
float conversionRadius(const xAOD::Vertex *vx)
return the conversion radius or 9999.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Vertex_v1 Vertex
Define the latest version of the vertex class.
Egamma_v1 Egamma
Definition of the current "egamma version".
Definition Egamma.h:17