ATLAS Offline Software
Loading...
Searching...
No Matches
TrigT2Jet.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5/********************************************************************
6
7 NAME: TrigT2Jet.h
8 PACKAGE: Trigger/TrigEvent/TrigCaloEvent
9
10 AUTHOR: Kyle Cranmer
11 MODIFIED: Tobias Kruker (added cleaning variables)
12
13 *******************************************************************/
14
15#ifndef TRIGCALOEVENT_TRIGT2JET_H
16#define TRIGCALOEVENT_TRIGT2JET_H
17
18
20
22#include "FourMom/P4EEtaPhiM.h"
25
26#include <vector>
27
28class MsgStream;
29
32 virtual public INavigable4Momentum {
33
34 public:
36 TrigT2Jet();
38 ~TrigT2Jet();
39
41 double e() const {return m_e; }
43 double ehad0() const {return m_ehad0; }
45 double eem0() const {return m_eem0; }
47 double eta() const {return m_eta; }
49 double phi() const {return m_phi; }
51 double m() const {return 0.; }
53 //double coneRadius() const {return m_coneRadius; }
55 unsigned int RoIword() const {return m_roiWord;}
56
59 std::vector<Trig3Momentum>* grid() { return m_grid; }
60 const std::vector<Trig3Momentum>* grid() const { return m_grid; }
61
62 // Cleaning:
64 int nLeadingCells() const {return m_nLeadingCells;}
66 float hecf() const {return m_hecf;}
68 float jetQuality() const {return m_jetQuality;}
70 float emf() const {return m_emf;}
72 float jetTimeCells() const {return m_jetTimeCells;}
73
75 void setE(double e) {m_e = e; }
77 void setEhad0(double ehad) {m_ehad0=ehad;}
79 void setEem0(double eem) {m_eem0 = eem;}
81 void setEta(double eta) {m_eta = eta; }
83 void setPhi(double phi) {m_phi = phi; }
85 //void setConeRadius(double R) {m_coneRadius = R; }
86
88 void setGrid(std::vector<Trig3Momentum>* grid) { m_grid = grid; }
89
91 void set_RoIword( unsigned int word ) {m_roiWord=word;};
92
93 // Cleaning:
97 void setHecf(float hecf) { m_hecf = hecf;}
101 void setEmf(float emf) { m_emf = emf;}
104
105 private:
106
108 double m_e;
110 double m_ehad0;
112 double m_eem0;
114 double m_eta;
116 double m_phi ;
118 //double m_coneRadius ;
119
121 std::vector<Trig3Momentum>* m_grid;
122
124 unsigned int m_roiWord;
125
126 // Cleaning:
130 float m_hecf;
134 float m_emf;
137
138};
139
141bool operator== ( const TrigT2Jet& a, const TrigT2Jet& b );
142
144inline bool operator!= ( const TrigT2Jet& a, const TrigT2Jet& b ) {
145 return !( a == b );
146}
147
149void diff(const TrigT2Jet& a, const TrigT2Jet& b,
150 std::map<std::string, double>& variableChange);
151
153std::string str (const TrigT2Jet& a);
154
156MsgStream& operator<< (MsgStream& m, const TrigT2Jet& d);
157
158CLASS_DEF(TrigT2Jet, 198767871, 1)
159
160
161
162#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
static Double_t a
void diff(const TrigT2Jet &a, const TrigT2Jet &b, std::map< std::string, double > &variableChange)
Comparison with feedback.
Definition TrigT2Jet.cxx:62
MsgStream & operator<<(MsgStream &m, const TrigT2Jet &d)
formatted output
Definition TrigT2Jet.cxx:58
bool operator==(const TrigT2Jet &a, const TrigT2Jet &b)
Operator comparing two objects for equality.
Definition TrigT2Jet.cxx:17
bool operator!=(const TrigT2Jet &a, const TrigT2Jet &b)
Operator comparing two objects for inequality.
Definition TrigT2Jet.h:144
P4EEtaPhiMBase is a base class for classes with 4-momentum behavior, for which E, eta,...
LVL2 Trigger Jet Class.
Definition TrigT2Jet.h:32
double e() const
Return jet energy.
Definition TrigT2Jet.h:41
float emf() const
Return fraction of energy in EMC.
Definition TrigT2Jet.h:70
void setJetQuality(float jetQuality)
Set fraction of jet energy from bad cells.
Definition TrigT2Jet.h:99
float jetQuality() const
Return fraction of jet energy from bad cells.
Definition TrigT2Jet.h:68
double m_eem0
Electromagnetic Jet Energy before calibration.
Definition TrigT2Jet.h:112
void setPhi(double phi)
set Jet phi
Definition TrigT2Jet.h:83
std::vector< Trig3Momentum > * grid()
Trig3Momentum entities making part of Jet are stored in a grid.
Definition TrigT2Jet.h:59
double m_eta
Jet eta.
Definition TrigT2Jet.h:114
void setE(double e)
set Jet energy
Definition TrigT2Jet.h:75
void set_RoIword(unsigned int word)
set RoI Word
Definition TrigT2Jet.h:91
void setEem0(double eem)
Set Electromagnetic energy.
Definition TrigT2Jet.h:79
double m() const
Return the jet mass - if we constrain, no need to store.
Definition TrigT2Jet.h:51
float hecf() const
Return fraction of energy in HEC.
Definition TrigT2Jet.h:66
int m_nLeadingCells
Jet nLeadingCells (e.g.
Definition TrigT2Jet.h:128
TrigT2Jet()
Constructor.
Definition TrigT2Jet.cxx:9
void setEhad0(double ehad)
Set Hadronic energy.
Definition TrigT2Jet.h:77
unsigned int RoIword() const
Return the cone Radius.
Definition TrigT2Jet.h:55
void setNLeadingCells(int nLeadingCells)
Set nLeadingCells (e.g.
Definition TrigT2Jet.h:95
double ehad0() const
Return the hadronic energy of the jet, calculated before calibration.
Definition TrigT2Jet.h:43
float m_jetTimeCells
Jet time.
Definition TrigT2Jet.h:136
double phi() const
Return jet phi.
Definition TrigT2Jet.h:49
double m_e
Jet energy.
Definition TrigT2Jet.h:108
void setHecf(float hecf)
Set fraction of energy in HEC.
Definition TrigT2Jet.h:97
int nLeadingCells() const
Return nLeadingCells (e.g.
Definition TrigT2Jet.h:64
double m_ehad0
Hadronic Jet Energy before calibration.
Definition TrigT2Jet.h:110
double eem0() const
Return the electromagnetic energy of the jet, calculated before the calibration.
Definition TrigT2Jet.h:45
std::vector< Trig3Momentum > * m_grid
Jet coneRadius.
Definition TrigT2Jet.h:121
unsigned int m_roiWord
RoI Word.
Definition TrigT2Jet.h:124
float m_emf
Fraction of energy in EMC.
Definition TrigT2Jet.h:134
const std::vector< Trig3Momentum > * grid() const
Definition TrigT2Jet.h:60
void setEmf(float emf)
Set fraction of energy in EMC.
Definition TrigT2Jet.h:101
~TrigT2Jet()
Destructor.
Definition TrigT2Jet.cxx:13
double eta() const
Return jet eta.
Definition TrigT2Jet.h:47
double m_phi
Jet phi.
Definition TrigT2Jet.h:116
float m_hecf
Fraction of energy in HEC.
Definition TrigT2Jet.h:130
float m_jetQuality
fraction of jet energy from bad cells
Definition TrigT2Jet.h:132
void setEta(double eta)
set Jet eta
Definition TrigT2Jet.h:81
void setJetTimeCells(float jetTimeCells)
Set jet time calculated from cells.
Definition TrigT2Jet.h:103
void setGrid(std::vector< Trig3Momentum > *grid)
set Jet cone Radius
Definition TrigT2Jet.h:88
float jetTimeCells() const
Return jet time calculated from cells.
Definition TrigT2Jet.h:72