ATLAS Offline Software
TrigT2Jet.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 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 
30  virtual public INavigable4Momentum {
31 
32  public:
34  TrigT2Jet();
36  ~TrigT2Jet();
37 
39  double e() const {return m_e; }
41  double ehad0() const {return m_ehad0; }
43  double eem0() const {return m_eem0; }
45  double eta() const {return m_eta; }
47  double phi() const {return m_phi; }
49  double m() const {return 0.; }
51  //double coneRadius() const {return m_coneRadius; }
53  unsigned int RoIword() const {return m_roiWord;}
54 
57  std::vector<Trig3Momentum>* grid() { return m_grid; }
58  const std::vector<Trig3Momentum>* grid() const { return m_grid; }
59 
60  // Cleaning:
62  int nLeadingCells() const {return m_nLeadingCells;}
64  float hecf() const {return m_hecf;}
66  float jetQuality() const {return m_jetQuality;}
68  float emf() const {return m_emf;}
70  float jetTimeCells() const {return m_jetTimeCells;}
71 
73  void setE(double e) {m_e = e; }
75  void setEhad0(double ehad) {m_ehad0=ehad;}
77  void setEem0(double eem) {m_eem0 = eem;}
79  void setEta(double eta) {m_eta = eta; }
81  void setPhi(double phi) {m_phi = phi; }
83  //void setConeRadius(double R) {m_coneRadius = R; }
84 
86  void setGrid(std::vector<Trig3Momentum>* grid) { m_grid = grid; }
87 
89  void set_RoIword( unsigned int word ) {m_roiWord=word;};
90 
91  // Cleaning:
95  void setHecf(float hecf) { m_hecf = hecf;}
99  void setEmf(float emf) { m_emf = emf;}
102 
103  private:
104 
106  double m_e;
108  double m_ehad0;
110  double m_eem0;
112  double m_eta;
114  double m_phi ;
116  //double m_coneRadius ;
117 
119  std::vector<Trig3Momentum>* m_grid;
120 
122  unsigned int m_roiWord;
123 
124  // Cleaning:
126  int m_nLeadingCells;
128  float m_hecf;
132  float m_emf;
135 
136 };
137 
139 bool operator== ( const TrigT2Jet& a, const TrigT2Jet& b );
140 
142 inline bool operator!= ( const TrigT2Jet& a, const TrigT2Jet& b ) {
143  return !( a == b );
144 }
145 
147 void diff(const TrigT2Jet& a, const TrigT2Jet& b,
148  std::map<std::string, double>& variableChange);
149 
151 std::string str (const TrigT2Jet& a);
152 
154 MsgStream& operator<< (MsgStream& m, const TrigT2Jet& d);
155 
156 CLASS_DEF(TrigT2Jet, 198767871, 1)
157 
158 #include "TrigCaloEvent/TrigT2JetContainer.h"
159 
160 #endif
TrigT2Jet::setJetQuality
void setJetQuality(float jetQuality)
Set fraction of jet energy from bad cells.
Definition: TrigT2Jet.h:105
TrigT2Jet::eem0
double eem0() const
Return the electromagnetic energy of the jet, calculated before the calibration.
Definition: TrigT2Jet.h:51
TrigT2Jet::setEmf
void setEmf(float emf)
Set fraction of energy in EMC.
Definition: TrigT2Jet.h:107
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
TrigT2Jet
LVL2 Trigger Jet Class.
Definition: TrigT2Jet.h:30
TrigT2Jet::setHecf
void setHecf(float hecf)
Set fraction of energy in HEC.
Definition: TrigT2Jet.h:103
operator==
bool operator==(const TrigT2Jet &a, const TrigT2Jet &b)
Operator comparing two objects for equality.
Definition: TrigT2Jet.cxx:16
INavigable4Momentum.h
TrigT2Jet::jetTimeCells
float jetTimeCells() const
Return jet time calculated from cells.
Definition: TrigT2Jet.h:78
hist_file_dump.d
d
Definition: hist_file_dump.py:137
TrigT2Jet::~TrigT2Jet
~TrigT2Jet()
Destructor.
Definition: TrigT2Jet.cxx:12
TrigT2Jet::m_grid
std::vector< Trig3Momentum > * m_grid
Jet coneRadius.
Definition: TrigT2Jet.h:127
NavigableTerminalNode
Dummy type needed fro specialized implementation.
Definition: NavigableTerminalNode.h:19
TrigT2Jet::RoIword
unsigned int RoIword() const
Return the cone Radius.
Definition: TrigT2Jet.h:61
TrigT2Jet::eta
double eta() const
Return jet eta.
Definition: TrigT2Jet.h:53
operator!=
bool operator!=(const TrigT2Jet &a, const TrigT2Jet &b)
Operator comparing two objects for inequality.
Definition: TrigT2Jet.h:142
TrigT2Jet::set_RoIword
void set_RoIword(unsigned int word)
set RoI Word
Definition: TrigT2Jet.h:97
TrigT2Jet::grid
std::vector< Trig3Momentum > * grid()
Trig3Momentum entities making part of Jet are stored in a grid.
Definition: TrigT2Jet.h:65
TrigT2Jet::setE
void setE(double e)
set Jet energy
Definition: TrigT2Jet.h:81
TrigT2Jet::setEem0
void setEem0(double eem)
Set Electromagnetic energy.
Definition: TrigT2Jet.h:85
TrigT2Jet::nLeadingCells
int nLeadingCells() const
Return nLeadingCells (e.g.
Definition: TrigT2Jet.h:70
operator<<
MsgStream & operator<<(MsgStream &m, const TrigT2Jet &d)
formatted output
Definition: TrigT2Jet.cxx:57
TrigT2Jet::m_roiWord
unsigned int m_roiWord
RoI Word.
Definition: TrigT2Jet.h:130
TrigT2Jet::setJetTimeCells
void setJetTimeCells(float jetTimeCells)
Set jet time calculated from cells.
Definition: TrigT2Jet.h:109
TrigT2Jet::m_eta
double m_eta
Jet eta.
Definition: TrigT2Jet.h:120
diff
void diff(const TrigT2Jet &a, const TrigT2Jet &b, std::map< std::string, double > &variableChange)
Comparison with feedback.
Definition: TrigT2Jet.cxx:61
TrigT2Jet::m_jetTimeCells
float m_jetTimeCells
Jet time.
Definition: TrigT2Jet.h:142
TrigT2Jet::m_e
double m_e
Jet energy.
Definition: TrigT2Jet.h:114
Trig3Momentum.h
TrigT2Jet::m
double m() const
Return the jet mass - if we constrain, no need to store.
Definition: TrigT2Jet.h:57
TrigT2Jet::m_jetQuality
float m_jetQuality
fraction of jet energy from bad cells
Definition: TrigT2Jet.h:138
TrigT2Jet::setNLeadingCells
void setNLeadingCells(int nLeadingCells)
Set nLeadingCells (e.g.
Definition: TrigT2Jet.h:101
TrigT2Jet::m_emf
float m_emf
Fraction of energy in EMC.
Definition: TrigT2Jet.h:140
TrigT2Jet::hecf
float hecf() const
Return fraction of energy in HEC.
Definition: TrigT2Jet.h:72
P4EEtaPhiM.h
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
TrigT2Jet::m_nLeadingCells
int m_nLeadingCells
Jet nLeadingCells (e.g.
Definition: TrigT2Jet.h:134
TrigT2Jet::setGrid
void setGrid(std::vector< Trig3Momentum > *grid)
set Jet cone Radius
Definition: TrigT2Jet.h:94
TrigT2Jet::setEta
void setEta(double eta)
set Jet eta
Definition: TrigT2Jet.h:87
TrigT2Jet::e
double e() const
Return jet energy.
Definition: TrigT2Jet.h:47
TrigT2Jet::TrigT2Jet
TrigT2Jet()
Constructor.
Definition: TrigT2Jet.cxx:8
TrigT2Jet::m_hecf
float m_hecf
Fraction of energy in HEC.
Definition: TrigT2Jet.h:136
TrigT2Jet::setEhad0
void setEhad0(double ehad)
Set Hadronic energy.
Definition: TrigT2Jet.h:83
TrigT2Jet::m_ehad0
double m_ehad0
Hadronic Jet Energy before calibration.
Definition: TrigT2Jet.h:116
TrigT2Jet::setPhi
void setPhi(double phi)
set Jet phi
Definition: TrigT2Jet.h:89
TrigT2Jet::jetQuality
float jetQuality() const
Return fraction of jet energy from bad cells.
Definition: TrigT2Jet.h:74
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:49
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::m_eem0
double m_eem0
Electromagnetic Jet Energy before calibration.
Definition: TrigT2Jet.h:118
TrigT2Jet::emf
float emf() const
Return fraction of energy in EMC.
Definition: TrigT2Jet.h:76
str
std::string str(const TrigT2Jet &a)
conversion to formatted string: multi-line!
Definition: TrigT2Jet.cxx:37
CLASS_DEF.h
macros to associate a CLID to a type
TrigT2Jet::m_phi
double m_phi
Jet phi.
Definition: TrigT2Jet.h:122
TrigT2Jet::phi
double phi() const
Return jet phi.
Definition: TrigT2Jet.h:55