ATLAS Offline Software
Loading...
Searching...
No Matches
GBlock_v1.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef XAODTRIGL1CALO_VERSIONS_GBLOCK_V1_H
6#define XAODTRIGL1CALO_VERSIONS_GBLOCK_V1_H
7
9#include "AthLinks/ElementLink.h"
13
14namespace xAOD
15{
16 class GBlock_v1 : public IParticle
17 {
18 public:
20 GBlock_v1() = default;
26 virtual ~GBlock_v1() override;
27
29 virtual double pt() const final;
30
32 virtual double eta() const final;
33 void setEta(double);
34
36 virtual double phi() const final;
37 void setPhi(double);
38
40 float deta() const;
41 void setdEta(float);
42
44 float dphi() const;
45 void setdPhi(float);
46
47 float et() const;
48 void setEt(float);
49
51 virtual double m() const final;
52
54 virtual double e() const final;
55
57 virtual double rapidity() const final;
58
61
63 virtual FourMom_t p4() const final;
64
66 virtual Type::ObjectType type() const final;
67
72
74 std::size_t nTowers() const;
75
78
80 const JGTower *getTower(std::size_t idx) const;
81
83 float area() const;
84
86 void setArea(float);
87
90
93 }; //> end class GBlock_v1
94} // namespace xAOD
95
96// Declare IParticle as a base class of GBlock_v1
97#include "AthContainers/DataVector.h"
99
100#endif //> !XAODTRIGL1CALO_VERSIONS_GBLOCK_V1_H
Base class for elements of a container that can have aux data.
ObjectType
Definition BaseObject.h:11
#define DATAVECTOR_BASE(T, BASE)
Declare base class info to DataVector.
Definition DataVector.h:649
void setEta(double)
float deta() const
The pseudorapidity ( ) of the particle.
const JGTower * getTower(std::size_t idx) const
Get a link by number.
Definition GBlock_v1.cxx:89
const std::vector< ElementLink< JGTowerContainer > > & towerLinks() const
Element links to the towers making up this gBlock (including the seed)
Definition GBlock_v1.cxx:84
const ElementLink< JGTowerContainer > & seedTowerLink() const
The element link to the seed tower of this gBlock.
Definition GBlock_v1.cxx:73
virtual Type::ObjectType type() const final
The type of the object as a simple enumeration, remains pure virtual in e/gamma.
Definition GBlock_v1.cxx:68
void setArea(float)
Set the area.
virtual double m() const final
The invariant mass of the particle.
Definition GBlock_v1.cxx:54
virtual double e() const final
The total energy of the particle.
Definition GBlock_v1.cxx:56
std::size_t nTowers() const
The number of towers that make up this gBlock (including the seed)
void setTowerLinks(const std::vector< ElementLink< JGTowerContainer > > &links)
set the tower links
virtual ~GBlock_v1() override
Default destructor.
Definition GBlock_v1.cxx:36
virtual FourMom_t p4() const final
The full 4-momentum of the particle as a TLoretzVector.
Definition GBlock_v1.cxx:60
float et() const
virtual double rapidity() const final
The true rapidity (y) of the particle.
Definition GBlock_v1.cxx:58
virtual double eta() const final
The pseudorapidity ( ) of the particle.
float dphi() const
The azimuthal angle ( ) of the particle.
virtual double pt() const final
The transverse momentum of the particle.
Definition GBlock_v1.cxx:38
void setPhi(double)
float area() const
The area of the gBlock.
void setSeedTowerLink(const ElementLink< JGTowerContainer > &link)
Set the seed link.
Definition GBlock_v1.cxx:95
virtual double phi() const final
The azimuthal angle ( ) of the particle.
GBlock_v1 & operator=(const GBlock_v1 &other)
Assignment operator.
Definition GBlock_v1.cxx:23
void setdPhi(float)
const JGTower * seedTower() const
The seed tower for this gBlock.
Definition GBlock_v1.cxx:78
IParticle::FourMom_t FourMom_t
Definition of the 4-momentum type.
Definition GBlock_v1.h:60
void setEt(float)
GBlock_v1()=default
Default constructor.
void setdEta(float)
Class providing the definition of the 4-vector interface.
IParticle()=default
STL namespace.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
JGTower_v1 JGTower
Define the latest version of the JGTower class.
Definition JGTower.h:15
JGTowerContainer_v1 JGTowerContainer
Define the latest version of the JGTower container.