ATLAS Offline Software
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 
26 namespace 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 .
66 
69 
71  const xAOD::Vertex* vertex( size_t index = 0 ) const;
72 
75  const ElementLink< VertexContainer >& vertexLink( size_t index = 0 ) const;
76 
78  typedef std::vector< ElementLink< VertexContainer > > VxELVec_t;
79 
81  const VxELVec_t& vertexLinks() const;
84  void setVertexLinks( const VxELVec_t& links );
85 
88  size_t nVertices() const;
89 
91 
94 
98  bool vertexCaloMatchValue( float& value, const EgammaParameters::VertexCaloMatchType information ) const;
99 
103 
106 
110  }
111 
113  float conversionRadius() const {
115  }
116 
117 
119 
120 
121  }; // Photon Class
122 
123 }// xAOD namespace
124 
125 //Finish declaration of Egamma as base class of Photon_v1
127 #endif // XAODEGAMMA_VERSIONS_PHOTON_V1_H
xAOD::Photon_v1::type
virtual Type::ObjectType type() const override final
The type of the object as a simple enumeration.
Definition: Photon_v1.cxx:36
xAOD::Photon_v1::nVertices
size_t nVertices() const
Return the number xAOD::Vertex/vertices that match the photon candidate.
index
Definition: index.py:1
xAOD::Photon_v1::setVertexLinks
void setVertexLinks(const VxELVec_t &links)
set Pointer to the xAOD::vertex/vertices that match the photon candidate
xAOD::Photon_v1::setVertexCaloMatchValue
bool setVertexCaloMatchValue(const float value, const EgammaParameters::VertexCaloMatchType information)
Set method for CaloMatch values.
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::Egamma_v1
Definition: Egamma_v1.h:56
xAOD::EgammaParameters::ConversionType
ConversionType
Definition: EgammaEnums.h:268
xAOD::Photon_v1::vertexLink
const ElementLink< VertexContainer > & vertexLink(size_t index=0) const
ElementLink to the xAOD::vertex/es that match the electron candidate.
Definition: Photon_v1.cxx:59
xAOD::Photon_v1::vertexLinks
const VxELVec_t & vertexLinks() const
Get all vertex links.
DMTest::links
links
Definition: CLinks_v1.cxx:22
xAOD::Photon_v1::VxELVec_t
std::vector< ElementLink< VertexContainer > > VxELVec_t
Helper type definition.
Definition: Photon_v1.h:78
xAOD::Photon_v1::Photon_v1
Photon_v1()
Default constructor.
Definition: Photon_v1.cxx:18
PhotonxAODHelpers.h
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
xAOD::EgammaParameters::VertexCaloMatchType
VertexCaloMatchType
Definition: EgammaEnums.h:239
Vertex.h
PhotonContainerFwd.h
xAOD::Photon_v1::vertexCaloMatchValue
float vertexCaloMatchValue(const EgammaParameters::VertexCaloMatchType information) const
Accessor to vertex to Calo Match Values , this just returns the value without internaly checking if i...
DATAVECTOR_BASE_FIN
DATAVECTOR_BASE_FIN(xAOD::Photon_v1, xAOD::Egamma)
xAOD::EgammaHelpers::conversionRadius
float conversionRadius(const xAOD::Vertex *vx)
return the conversion radius or 9999.
Definition: PhotonxAODHelpers.cxx:76
xAOD::Photon_v1::conversionRadius
float conversionRadius() const
return the photon conversion radius
Definition: Photon_v1.h:113
Egamma_v1.h
VertexContainer.h
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
xAOD::Photon_v1
Definition: Photon_v1.h:37
xAOD::Photon_v1::conversionType
xAOD::EgammaParameters::ConversionType conversionType() const
return the photon conversion type (see EgammaEnums)
Definition: Photon_v1.h:108
xAOD::EgammaHelpers::conversionType
xAOD::EgammaParameters::ConversionType conversionType(const xAOD::Photon *ph)
return the photon conversion type (see EgammaEnums)
Definition: PhotonxAODHelpers.cxx:26
xAOD::Photon_v1::operator=
Photon_v1 & operator=(const Photon_v1 &el)
Assignment Operator. Ends up using the assignment of AuxElement for the store.
Definition: Photon_v1.cxx:27
xAOD::Photon_v1::vertexCaloMatchValue
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...
xAODType::ObjectType
ObjectType
Type of objects that have a representation in the xAOD EDM.
Definition: ObjectType.h:32
xAOD::Photon_v1::vertex
const xAOD::Vertex * vertex(size_t index=0) const
Pointer to the xAOD::Vertex/es that match the photon candidate.
Definition: Photon_v1.cxx:46
TrackParticleContainer.h