ATLAS Offline Software
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 
8 #include "xAODBase/IParticle.h"
9 #include "AthLinks/ElementLink.h"
11 #include "xAODTrigL1Calo/JGTower.h"
13 
14 namespace xAOD
15 {
16  class GBlock_v1 : public IParticle
17  {
18  public:
20  GBlock_v1() = default;
22  GBlock_v1(const GBlock_v1 &other);
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
xAOD::JGTower_v1
Description of JGTower_v1.
Definition: JGTower_v1.h:46
xAOD::GBlock_v1::towerLinks
const std::vector< ElementLink< JGTowerContainer > > & towerLinks() const
Element links to the towers making up this gBlock (including the seed)
Definition: GBlock_v1.cxx:84
xAOD::GBlock_v1::type
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
et
Extra patterns decribing particle interation process.
xAOD::GBlock_v1::e
virtual double e() const final
The total energy of the particle.
Definition: GBlock_v1.cxx:56
IParticle.h
DATAVECTOR_BASE
DATAVECTOR_BASE(xAOD::GBlock_v1, xAOD::IParticle)
ObjectType
ObjectType
Definition: BaseObject.h:11
xAOD::GBlock_v1::setArea
void setArea(float)
Set the area.
xAOD::GBlock_v1
Definition: GBlock_v1.h:17
xAOD::GBlock_v1::phi
virtual double phi() const final
The azimuthal angle ( ) of the particle.
xAOD::GBlock_v1::dphi
float dphi() const
The azimuthal angle ( ) of the particle.
xAOD::other
@ other
Definition: TrackingPrimitives.h:509
xAOD::GBlock_v1::setdPhi
void setdPhi(float)
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::GBlock_v1::setSeedTowerLink
void setSeedTowerLink(const ElementLink< JGTowerContainer > &link)
Set the seed link.
Definition: GBlock_v1.cxx:95
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
xAOD::GBlock_v1::setEt
void setEt(float)
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:41
xAOD::GBlock_v1::m
virtual double m() const final
The invariant mass of the particle.
Definition: GBlock_v1.cxx:54
xAOD::GBlock_v1::p4
virtual FourMom_t p4() const final
The full 4-momentum of the particle as a TLoretzVector.
Definition: GBlock_v1.cxx:60
xAOD::GBlock_v1::eta
virtual double eta() const final
The pseudorapidity ( ) of the particle.
JGTower.h
xAOD::IParticle::FourMom_t
TLorentzVector FourMom_t
Definition of the 4-momentum type.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:69
xAOD::GBlock_v1::seedTowerLink
const ElementLink< JGTowerContainer > & seedTowerLink() const
The element link to the seed tower of this gBlock.
Definition: GBlock_v1.cxx:73
xAOD::GBlock_v1::~GBlock_v1
virtual ~GBlock_v1() override
Default destructor.
Definition: GBlock_v1.cxx:36
vector
Definition: MultiHisto.h:13
DMTest::links
links
Definition: CLinks_v1.cxx:22
xAOD::GBlock_v1::setdEta
void setdEta(float)
xAOD::GBlock_v1::setTowerLinks
void setTowerLinks(const std::vector< ElementLink< JGTowerContainer >> &links)
set the tower links
Definition: GBlock_v1.cxx:101
xAODType
Definition: ObjectType.h:13
xAOD::GBlock_v1::deta
float deta() const
The pseudorapidity ( ) of the particle.
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
xAOD::GBlock_v1::pt
virtual double pt() const final
The transverse momentum of the particle.
Definition: GBlock_v1.cxx:38
xAOD::GBlock_v1::nTowers
std::size_t nTowers() const
The number of towers that make up this gBlock (including the seed)
xAOD::GBlock_v1::area
float area() const
The area of the gBlock.
xAOD::GBlock_v1::operator=
GBlock_v1 & operator=(const GBlock_v1 &other)
Assignment operator.
Definition: GBlock_v1.cxx:23
xAOD::GBlock_v1::setPhi
void setPhi(double)
xAOD::GBlock_v1::getTower
const JGTower * getTower(std::size_t idx) const
Get a link by number.
Definition: GBlock_v1.cxx:89
xAOD::GBlock_v1::seedTower
const JGTower * seedTower() const
The seed tower for this gBlock.
Definition: GBlock_v1.cxx:78
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
xAOD::GBlock_v1::rapidity
virtual double rapidity() const final
The true rapidity (y) of the particle.
Definition: GBlock_v1.cxx:58
JGTowerContainer.h
xAOD::GBlock_v1::GBlock_v1
GBlock_v1()=default
Default constructor.
xAOD::GBlock_v1::setEta
void setEta(double)
AuxElement.h
Base class for elements of a container that can have aux data.