ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigCaloEvent
TrigCaloEvent
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
24
class
Trig3Momentum
{
25
26
public
:
28
Trig3Momentum
() =
default
;
30
Trig3Momentum
(
double
Energy
,
double
Eta,
double
Phi)
31
:
m_e
(
Energy
),
m_eta
(Eta),
m_phi
(Phi) {};
32
33
Trig3Momentum
(
double
Energy
,
double
Eta,
double
Phi
34
,
CaloSampling::CaloSample
s)
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
; }
47
CaloSampling::CaloSample
caloSample
()
const
{
return
m_caloSample
; }
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
; }
67
void
setCaloSample
(
CaloSampling::CaloSample
s) {
m_caloSample
= s; }
68
70
void
set_RoIword
(
long
/*word*/
) {};
71
72
// Cleaning +++++++++++++++++++++:
74
void
setQuality
(uint16_t
quality
) {
m_cellDetails
[0] =
quality
;}
76
void
setProvenance
(uint16_t
provenance
) {
m_cellDetails
[1] =
provenance
;}
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
};
92
CaloSampling::CaloSample
m_caloSample
{CaloSampling::Unknown};
93
// Cleaning +++++++++++++++++++++:
95
uint16_t
m_cellDetails
[2]{};
97
float
m_time
{};
98
99
};
100
101
CLASS_DEF
(
Trig3Momentum
, 87084890 , 1 )
102
#endif
CLASS_DEF.h
macros to associate a CLID to a type
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:67
MonDataType::Energy
@ Energy
Definition
LArLATOMEDecoder.h:51
CaloSampling::CaloSample
CaloSample
Definition
Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
Trig3Momentum
3 Momentum Class for Jet/MET Calculations
Definition
Trig3Momentum.h:24
Trig3Momentum::m_inCone
bool m_inCone
Set in cone flag.
Definition
Trig3Momentum.h:90
Trig3Momentum::m_cellDetails
uint16_t m_cellDetails[2]
Cell details (to contain [0] = quality and [1] = provenance).
Definition
Trig3Momentum.h:95
Trig3Momentum::setE
void setE(double e)
Set energy.
Definition
Trig3Momentum.h:59
Trig3Momentum::setPhi
void setPhi(double phi)
Set phi.
Definition
Trig3Momentum.h:63
Trig3Momentum::caloSample
CaloSampling::CaloSample caloSample() const
Calorimeter Sample.
Definition
Trig3Momentum.h:47
Trig3Momentum::Trig3Momentum
Trig3Momentum(double Energy, double Eta, double Phi)
Constructor with input parameters.
Definition
Trig3Momentum.h:30
Trig3Momentum::set_RoIword
void set_RoIword(long)
Set RoI Word.
Definition
Trig3Momentum.h:70
Trig3Momentum::phi
double phi() const
Get the phi position.
Definition
Trig3Momentum.h:43
Trig3Momentum::setEta
void setEta(double eta)
Set eta.
Definition
Trig3Momentum.h:61
Trig3Momentum::setInCone
void setInCone(bool inCone)
Flag element inside or outside of jet cone.
Definition
Trig3Momentum.h:65
Trig3Momentum::Trig3Momentum
Trig3Momentum(double Energy, double Eta, double Phi, CaloSampling::CaloSample s)
Constructor with input parameters.
Definition
Trig3Momentum.h:33
Trig3Momentum::inCone
bool inCone() const
Return if element is inside or outside of jet cone.
Definition
Trig3Momentum.h:45
Trig3Momentum::eta
double eta() const
Get the eta position.
Definition
Trig3Momentum.h:41
Trig3Momentum::setTime
void setTime(float time)
Set time.
Definition
Trig3Momentum.h:78
Trig3Momentum::setQuality
void setQuality(uint16_t quality)
Set quality in cell details.
Definition
Trig3Momentum.h:74
Trig3Momentum::m_caloSample
CaloSampling::CaloSample m_caloSample
Calorimeter Sample.
Definition
Trig3Momentum.h:92
Trig3Momentum::Trig3Momentum
Trig3Momentum()=default
Default Constructor.
Trig3Momentum::setProvenance
void setProvenance(uint16_t provenance)
Set provenance in cell details.
Definition
Trig3Momentum.h:76
Trig3Momentum::setCaloSample
void setCaloSample(CaloSampling::CaloSample s)
Set Calorimeter Sample.
Definition
Trig3Momentum.h:67
Trig3Momentum::quality
uint16_t quality() const
Get the quality from cell details.
Definition
Trig3Momentum.h:50
Trig3Momentum::m_phi
double m_phi
Phi.
Definition
Trig3Momentum.h:88
Trig3Momentum::m_eta
double m_eta
Eta.
Definition
Trig3Momentum.h:86
Trig3Momentum::m_e
double m_e
Energy.
Definition
Trig3Momentum.h:84
Trig3Momentum::e
double e() const
Get the energy.
Definition
Trig3Momentum.h:39
Trig3Momentum::provenance
uint16_t provenance() const
Get the provenance from cell details.
Definition
Trig3Momentum.h:52
Trig3Momentum::m_time
float m_time
Cell time.
Definition
Trig3Momentum.h:97
Trig3Momentum::time
float time() const
Get the time.
Definition
Trig3Momentum.h:54
Generated on
for ATLAS Offline Software by
1.17.0