ATLAS Offline Software
Trig3Momentum.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /********************************************************************
6 
7  NAME: Trig3Momentum.h
8  PACKAGE: Trigger/TrigEvent/TrigCaloEvent
9 
10  AUTHOR: Kyle Cranmer
11  PURPOSE:
12  MODIFIED: Tobias Kruker - Added cell quality variables for jet cleaning
13 
14  *******************************************************************/
15 
16 #ifndef TRIGCALOEVENT_TRIG3MOMENTUM_H
17 #define TRIGCALOEVENT_TRIG3MOMENTUM_H
18 
19 #include "AthenaKernel/CLASS_DEF.h"
20 #include "CaloGeoHelpers/CaloSampling.h"
21 #include <stdint.h>
22 
25 
26  public:
28  Trig3Momentum() = default;
30  Trig3Momentum( double Energy, double Eta, double Phi)
31  : m_e(Energy), m_eta(Eta), m_phi(Phi) {};
33  Trig3Momentum( double Energy, double Eta, double Phi
35  : m_e(Energy), m_eta(Eta), m_phi(Phi), m_caloSample(s) {};
36 
37  // Get methods
39  double e() const {return m_e; }
41  double eta() const {return m_eta; }
43  double phi() const {return m_phi; }
45  bool inCone() const {return m_inCone; }
48  // Cleaning +++++++++++++++++++++:
50  uint16_t quality() const {return m_cellDetails[0]; }
52  uint16_t provenance() const {return m_cellDetails[1]; }
54  float time() const {return m_time; }
55 
56 
57  // Set methods
59  void setE(double e) {m_e = e; }
61  void setEta(double eta) {m_eta = eta; }
63  void setPhi(double phi) {m_phi = phi; }
65  void setInCone(bool inCone) {m_inCone = inCone; }
68 
70  void set_RoIword( long /*word*/ ) {};
71 
72  // Cleaning +++++++++++++++++++++:
78  void setTime(float time) {m_time = time;}
79 
80 
81 
82  private:
84  double m_e{};
86  double m_eta{};
88  double m_phi{};
90  bool m_inCone{false};
93  // Cleaning +++++++++++++++++++++:
97  float m_time{};
98 
99 };
100 
101 CLASS_DEF( Trig3Momentum , 87084890 , 1 )
102 #endif
Trig3Momentum::setQuality
void setQuality(uint16_t quality)
Set quality in cell details.
Definition: Trig3Momentum.h:83
GetLCDefs::Unknown
@ Unknown
Definition: GetLCDefs.h:21
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
Trig3Momentum::setCaloSample
void setCaloSample(CaloSampling::CaloSample s)
Set Calorimeter Sample.
Definition: Trig3Momentum.h:76
Energy
std::vector< double > Energy
Definition: CalibHitToCaloCell.h:23
Trig3Momentum::m_caloSample
CaloSampling::CaloSample m_caloSample
Calorimeter Sample.
Definition: Trig3Momentum.h:101
Trig3Momentum
3 Momentum Class for Jet/MET Calculations
Definition: Trig3Momentum.h:24
Phi
@ Phi
Definition: RPCdef.h:8
Trig3Momentum::m_inCone
bool m_inCone
Set in cone flag.
Definition: Trig3Momentum.h:99
Trig3Momentum::m_e
double m_e
Energy.
Definition: Trig3Momentum.h:93
Trig3Momentum::phi
double phi() const
Get the phi position.
Definition: Trig3Momentum.h:52
Trig3Momentum::m_phi
double m_phi
Phi.
Definition: Trig3Momentum.h:97
Trig3Momentum::setTime
void setTime(float time)
Set time.
Definition: Trig3Momentum.h:87
Trig3Momentum::setE
void setE(double e)
Set energy.
Definition: Trig3Momentum.h:68
Trig3Momentum::inCone
bool inCone() const
Return if element is inside or outside of jet cone.
Definition: Trig3Momentum.h:54
Trig3Momentum::m_cellDetails
uint16_t m_cellDetails[2]
Cell details (to contain [0] = quality and [1] = provenance)
Definition: Trig3Momentum.h:104
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
Trig3Momentum::eta
double eta() const
Get the eta position.
Definition: Trig3Momentum.h:50
Trig3Momentum::setPhi
void setPhi(double phi)
Set phi.
Definition: Trig3Momentum.h:72
Trig3Momentum::caloSample
CaloSampling::CaloSample caloSample() const
Calorimeter Sample.
Definition: Trig3Momentum.h:56
Trig3Momentum::setInCone
void setInCone(bool inCone)
Flag element inside or outside of jet cone.
Definition: Trig3Momentum.h:74
Trig3Momentum::m_eta
double m_eta
Eta.
Definition: Trig3Momentum.h:95
Trig3Momentum::quality
uint16_t quality() const
Get the quality from cell details.
Definition: Trig3Momentum.h:59
Trig3Momentum::provenance
uint16_t provenance() const
Get the provenance from cell details.
Definition: Trig3Momentum.h:61
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
Trig3Momentum::m_time
float m_time
Cell time.
Definition: Trig3Momentum.h:106
Trig3Momentum::time
float time() const
Get the time.
Definition: Trig3Momentum.h:63
Trig3Momentum::setEta
void setEta(double eta)
Set eta.
Definition: Trig3Momentum.h:70
Trig3Momentum::setProvenance
void setProvenance(uint16_t provenance)
Set provenance in cell details.
Definition: Trig3Momentum.h:85
Trig3Momentum::set_RoIword
void set_RoIword(long)
Set RoI Word.
Definition: Trig3Momentum.h:79
Trig3Momentum::e
double e() const
Get the energy.
Definition: Trig3Momentum.h:48
Trig3Momentum::Trig3Momentum
Trig3Momentum()=default
Default Constructor.
CLASS_DEF.h
macros to associate a CLID to a type
Eta
@ Eta
Definition: RPCdef.h:8