ATLAS Offline Software
Loading...
Searching...
No Matches
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
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) {};
32
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; }
68
70 void set_RoIword( long /*word*/ ) {};
71
72 // Cleaning +++++++++++++++++++++:
74 void setQuality(uint16_t quality) {m_cellDetails[0] = quality;}
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
101CLASS_DEF( Trig3Momentum , 87084890 , 1 )
102#endif
std::vector< double > Energy
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
3 Momentum Class for Jet/MET Calculations
bool m_inCone
Set in cone flag.
uint16_t m_cellDetails[2]
Cell details (to contain [0] = quality and [1] = provenance)
void setE(double e)
Set energy.
void setPhi(double phi)
Set phi.
CaloSampling::CaloSample caloSample() const
Calorimeter Sample.
Trig3Momentum(double Energy, double Eta, double Phi)
Constructor with input parameters.
void set_RoIword(long)
Set RoI Word.
double phi() const
Get the phi position.
void setEta(double eta)
Set eta.
void setInCone(bool inCone)
Flag element inside or outside of jet cone.
Trig3Momentum(double Energy, double Eta, double Phi, CaloSampling::CaloSample s)
Constructor with input parameters.
bool inCone() const
Return if element is inside or outside of jet cone.
double eta() const
Get the eta position.
void setTime(float time)
Set time.
void setQuality(uint16_t quality)
Set quality in cell details.
CaloSampling::CaloSample m_caloSample
Calorimeter Sample.
Trig3Momentum()=default
Default Constructor.
void setProvenance(uint16_t provenance)
Set provenance in cell details.
void setCaloSample(CaloSampling::CaloSample s)
Set Calorimeter Sample.
uint16_t quality() const
Get the quality from cell details.
double m_phi
Phi.
double m_eta
Eta.
double m_e
Energy.
double e() const
Get the energy.
uint16_t provenance() const
Get the provenance from cell details.
float m_time
Cell time.
float time() const
Get the time.