ATLAS Offline Software
TrigT2Jet.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: 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 
19 #include "AthenaKernel/CLASS_DEF.h"
20 
22 #include "FourMom/P4EEtaPhiM.h"
23 #include "Navigation/Navigable.h"
25 
26 #include <vector>
27 
28 class 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 
141 bool operator== ( const TrigT2Jet& a, const TrigT2Jet& b );
142 
144 inline bool operator!= ( const TrigT2Jet& a, const TrigT2Jet& b ) {
145  return !( a == b );
146 }
147 
149 void diff(const TrigT2Jet& a, const TrigT2Jet& b,
150  std::map<std::string, double>& variableChange);
151 
153 std::string str (const TrigT2Jet& a);
154 
156 MsgStream& operator<< (MsgStream& m, const TrigT2Jet& d);
157 
158 CLASS_DEF(TrigT2Jet, 198767871, 1)
159 
160 #include "TrigCaloEvent/TrigT2JetContainer.h"
161 
162 #endif
TrigT2Jet::setJetQuality
void setJetQuality(float jetQuality)
Set fraction of jet energy from bad cells.
Definition: TrigT2Jet.h:99
TrigT2Jet::eem0
double eem0() const
Return the electromagnetic energy of the jet, calculated before the calibration.
Definition: TrigT2Jet.h:45
TrigT2Jet::setEmf
void setEmf(float emf)
Set fraction of energy in EMC.
Definition: TrigT2Jet.h:101
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
TrigT2Jet
LVL2 Trigger Jet Class.
Definition: TrigT2Jet.h:32
TrigT2Jet::setHecf
void setHecf(float hecf)
Set fraction of energy in HEC.
Definition: TrigT2Jet.h:97
operator==
bool operator==(const TrigT2Jet &a, const TrigT2Jet &b)
Operator comparing two objects for equality.
Definition: TrigT2Jet.cxx:17
INavigable4Momentum.h
TrigT2Jet::jetTimeCells
float jetTimeCells() const
Return jet time calculated from cells.
Definition: TrigT2Jet.h:72
hist_file_dump.d
d
Definition: hist_file_dump.py:137
TrigT2Jet::~TrigT2Jet
~TrigT2Jet()
Destructor.
Definition: TrigT2Jet.cxx:13
TrigT2Jet::m_grid
std::vector< Trig3Momentum > * m_grid
Jet coneRadius.
Definition: TrigT2Jet.h:121
NavigableTerminalNode
Dummy type needed fro specialized implementation.
Definition: NavigableTerminalNode.h:19
TrigT2Jet::RoIword
unsigned int RoIword() const
Return the cone Radius.
Definition: TrigT2Jet.h:55
TrigT2Jet::eta
double eta() const
Return jet eta.
Definition: TrigT2Jet.h:47
operator!=
bool operator!=(const TrigT2Jet &a, const TrigT2Jet &b)
Operator comparing two objects for inequality.
Definition: TrigT2Jet.h:144
TrigT2Jet::set_RoIword
void set_RoIword(unsigned int word)
set RoI Word
Definition: TrigT2Jet.h:91
TrigT2Jet::grid
std::vector< Trig3Momentum > * grid()
Trig3Momentum entities making part of Jet are stored in a grid.
Definition: TrigT2Jet.h:59
TrigT2Jet::setE
void setE(double e)
set Jet energy
Definition: TrigT2Jet.h:75
TrigT2Jet::setEem0
void setEem0(double eem)
Set Electromagnetic energy.
Definition: TrigT2Jet.h:79
TrigT2Jet::nLeadingCells
int nLeadingCells() const
Return nLeadingCells (e.g.
Definition: TrigT2Jet.h:64
operator<<
MsgStream & operator<<(MsgStream &m, const TrigT2Jet &d)
formatted output
Definition: TrigT2Jet.cxx:58
TrigT2Jet::m_roiWord
unsigned int m_roiWord
RoI Word.
Definition: TrigT2Jet.h:124
TrigT2Jet::setJetTimeCells
void setJetTimeCells(float jetTimeCells)
Set jet time calculated from cells.
Definition: TrigT2Jet.h:103
TrigT2Jet::m_eta
double m_eta
Jet eta.
Definition: TrigT2Jet.h:114
diff
void diff(const TrigT2Jet &a, const TrigT2Jet &b, std::map< std::string, double > &variableChange)
Comparison with feedback.
Definition: TrigT2Jet.cxx:62
TrigT2Jet::m_jetTimeCells
float m_jetTimeCells
Jet time.
Definition: TrigT2Jet.h:136
TrigT2Jet::m_e
double m_e
Jet energy.
Definition: TrigT2Jet.h:108
Trig3Momentum.h
TrigT2Jet::m
double m() const
Return the jet mass - if we constrain, no need to store.
Definition: TrigT2Jet.h:51
TrigT2Jet::m_jetQuality
float m_jetQuality
fraction of jet energy from bad cells
Definition: TrigT2Jet.h:132
TrigT2Jet::setNLeadingCells
void setNLeadingCells(int nLeadingCells)
Set nLeadingCells (e.g.
Definition: TrigT2Jet.h:95
TrigT2Jet::m_emf
float m_emf
Fraction of energy in EMC.
Definition: TrigT2Jet.h:134
TrigT2Jet::hecf
float hecf() const
Return fraction of energy in HEC.
Definition: TrigT2Jet.h:66
P4EEtaPhiM.h
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
TrigT2Jet::m_nLeadingCells
int m_nLeadingCells
Jet nLeadingCells (e.g.
Definition: TrigT2Jet.h:128
TrigT2Jet::setGrid
void setGrid(std::vector< Trig3Momentum > *grid)
set Jet cone Radius
Definition: TrigT2Jet.h:88
TrigT2Jet::setEta
void setEta(double eta)
set Jet eta
Definition: TrigT2Jet.h:81
TrigT2Jet::e
double e() const
Return jet energy.
Definition: TrigT2Jet.h:41
TrigT2Jet::TrigT2Jet
TrigT2Jet()
Constructor.
Definition: TrigT2Jet.cxx:9
TrigT2Jet::m_hecf
float m_hecf
Fraction of energy in HEC.
Definition: TrigT2Jet.h:130
TrigT2Jet::setEhad0
void setEhad0(double ehad)
Set Hadronic energy.
Definition: TrigT2Jet.h:77
TrigT2Jet::m_ehad0
double m_ehad0
Hadronic Jet Energy before calibration.
Definition: TrigT2Jet.h:110
TrigT2Jet::setPhi
void setPhi(double phi)
set Jet phi
Definition: TrigT2Jet.h:83
TrigT2Jet::jetQuality
float jetQuality() const
Return fraction of jet energy from bad cells.
Definition: TrigT2Jet.h:68
Navigable.h
a
TList * a
Definition: liststreamerinfos.cxx:10
P4EEtaPhiMBase
Definition: P4EEtaPhiMBase.h:26
INavigable4Momentum
Definition: INavigable4Momentum.h:21
TrigT2Jet::ehad0
double ehad0() const
Return the hadronic energy of the jet, calculated before calibration.
Definition: TrigT2Jet.h:43
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
TrigT2Jet::grid
const std::vector< Trig3Momentum > * grid() const
Definition: TrigT2Jet.h:60
TrigT2Jet::m_eem0
double m_eem0
Electromagnetic Jet Energy before calibration.
Definition: TrigT2Jet.h:112
TrigT2Jet::emf
float emf() const
Return fraction of energy in EMC.
Definition: TrigT2Jet.h:70
str
std::string str(const TrigT2Jet &a)
conversion to formatted string: multi-line!
Definition: TrigT2Jet.cxx:38
CLASS_DEF.h
macros to associate a CLID to a type
TrigT2Jet::m_phi
double m_phi
Jet phi.
Definition: TrigT2Jet.h:116
TrigT2Jet::phi
double phi() const
Return jet phi.
Definition: TrigT2Jet.h:49