ATLAS Offline Software
MissingET_v1.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef XAODMISSINGET_VERSIONS_MISSINGET_V1_H
8 #define XAODMISSINGET_VERSIONS_MISSINGET_V1_H
9 
11 
12 #include "CxxUtils/CachedValue.h"
13 
14 #include "xAODBase/IParticle.h"
16 
17 #include <string>
18 #include <functional>
19 #include <utility>
20 
21 namespace xAOD
22 {
25  {
26  public:
27 
30  explicit MissingET_v1(bool createStore=false);
31  MissingET_v1(const std::string& name,
33  MissingET_v1(const IParticle* particle, const std::string& name="MissingET",
35  MissingET_v1(float mpx,float mpy,float sumet,const std::string& name="MissingET",
37  MissingET_v1(const MissingET_v1& met);
38  ~MissingET_v1();
43  float mpx() const;
44  float mpy() const;
45  float met() const;
46  float phi() const;
47  float sumet() const;
52  void setMpx(float value);
53  void setMpy(float value);
54  void setSumet(float value);
56 
59  const std::string& name() const;
61  std::size_t nameHash() const;
66  void setName(const std::string& name);
68  void updateHash();
73  void add(const IParticle* particle);
74  void add(const IParticle* particle,float scale);
75  void add(float px,float py,float pt);
91  void clear();
96  bool operator==(const MissingET_v1& met) const;
97  bool operator!=(const MissingET_v1& met) const;
102  protected:
104  void createPrivateStore();
105 
108  float& f_mpx();
109  float& f_mpy();
110  float& f_sumet();
111  std::string& f_name();
112  const std::string& f_nameConst() const;
116  private:
122  };
123 }
124 
137 
138 #endif
LArG4FSStartPointFilter.part
part
Definition: LArG4FSStartPointFilter.py:21
MissingET_v1.icc
xAOD::MissingET_v1::operator+=
MissingET_v1 & operator+=(const IParticle *particle)
Add particle kinematics to MET.
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition: ParticleHypothesis.h:76
test_pyathena.px
px
Definition: test_pyathena.py:18
xAOD::MissingET_v1::setSumet
void setSumet(float value)
Set .
IParticle.h
xAOD::MissingET_v1::f_sumet
float & f_sumet()
Returns reference to store.
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:68
xAOD::MissingET_v1::operator!=
bool operator!=(const MissingET_v1 &met) const
Inequality test.
xAOD::MissingET_v1::m_nameHash
CxxUtils::CachedValue< std::size_t > m_nameHash
Stores the hash for the current f_name string.
Definition: MissingET_v1.h:117
WriteCellNoiseToCool.src
src
Definition: WriteCellNoiseToCool.py:513
xAOD::MissingET_v1::sumet
float sumet() const
Returns.
xAOD::MissingET_v1::f_nameConst
const std::string & f_nameConst() const
Returns const reference to the MET object name store.
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:472
xAOD::MissingET_v1::setMpy
void setMpy(float value)
Set the component.
xAOD::MissingET_v1::phi
float phi() const
Returns .
xAOD::MissingET_v1::~MissingET_v1
~MissingET_v1()
Implementation class destructor.
Definition: MissingET_v1.cxx:70
athena.value
value
Definition: athena.py:124
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::pt
setRcore setEtHad setFside pt
Definition: TrigPhoton_v1.cxx:106
MissingETBase::Types::bitmask_t
uint64_t bitmask_t
Type for status word bit mask.
Definition: MissingETBase.h:39
xAOD::MissingET_v1::m_acc_mpy
static const SG::AuxElement::Accessor< float > m_acc_mpy
Definition: MissingET_v1.h:120
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:41
yodamerge_tmp.scale
scale
Definition: yodamerge_tmp.py:138
xAOD::MissingET_v1::setSource
void setSource(MissingETBase::Types::bitmask_t src)
Set the source of the MET object.
xAOD::py
py
Definition: CompositeParticle_v1.cxx:160
xAOD::MissingET_v1::MissingET_v1
MissingET_v1(bool createStore=false)
Default constructor.
Definition: MissingET_v1.cxx:20
xAOD::MissingET_v1::setName
void setName(const std::string &name)
Set the name of the MET object.
xAOD::MissingET_v1::operator==
bool operator==(const MissingET_v1 &met) const
Equality test.
met
Definition: IMETSignificance.h:24
xAOD::MissingET_v1::operator+=
MissingET_v1 & operator+=(const MissingET_v1 &met)
Add another MET object.
xAOD::MissingET_v1::createPrivateStore
void createPrivateStore()
Function initialising the object to work in standalone mode.
Definition: MissingET_v1.cxx:121
xAOD::MissingET_v1::updateHash
void updateHash()
Update the hash to match the current name.
MissingETBase::Source::unknown
static Types::bitmask_t unknown()
Definition: MissingETBase.h:412
xAOD::MissingET_v1::operator-=
MissingET_v1 & operator-=(const MissingET_v1 &met)
Subtract another MET object.
CxxUtils::CachedValue< std::size_t >
xAOD::MissingET_v1
Principal data object for Missing ET.
Definition: MissingET_v1.h:25
xAOD::MissingET_v1::mpx
float mpx() const
Returns .
xAOD::MissingET_v1::m_acc_sumet
static const SG::AuxElement::Accessor< float > m_acc_sumet
Definition: MissingET_v1.h:121
xAOD::MissingET_v1::f_name
std::string & f_name()
Returns reference to MET object name store.
xAOD::MissingET_v1::nameHash
std::size_t nameHash() const
Return hash associated to the MET object name.
operator-
xAOD::MissingET_v1 operator-(const xAOD::MissingET_v1 &met0, const xAOD::MissingET_v1 &met1)
Create new MET object from difference between two MissingET_v1 objects.
xAOD::MissingET_v1::name
const std::string & name() const
Identifier getters.
xAOD::MissingET_v1::setMpx
void setMpx(float value)
Set the component.
MissingETBase.h
xAOD::MissingET_v1::add
void add(const IParticle *particle)
Add particle kinematics to MET.
Definition: MissingET_v1.cxx:77
xAOD::MissingET_v1::operator-=
MissingET_v1 & operator-=(const IParticle *part)
Remove particle kinematics to MET.
Definition: MissingET_v1.cxx:109
operator/
xAOD::MissingET_v1 operator/(const xAOD::MissingET_v1 &met, float scale)
Create new MET object from source with scaled kinematics.
CachedValue.h
Cached value with atomic update.
operator+
xAOD::MissingET_v1 operator+(const xAOD::MissingET_v1 &met0, const xAOD::MissingET_v1 &met1)
Create new MET object from sum of two MissingET_v1 objects.
xAOD::MissingET_v1::m_acc_mpx
static const SG::AuxElement::Accessor< float > m_acc_mpx
Definition: MissingET_v1.h:119
xAOD::MissingET_v1::source
MissingETBase::Types::bitmask_t source() const
MET object source tag.
xAOD::MissingET_v1::operator/=
MissingET_v1 & operator/=(float scale)
Dividing by a scale factor.
xAOD::MissingET_v1::operator=
MissingET_v1 & operator=(const MissingET_v1 &met)
Add particle kinematics to MET.
Definition: MissingET_v1.cxx:99
xAOD::MissingET_v1::operator*=
MissingET_v1 & operator*=(float scale)
Applying a scale factor.
operator*
xAOD::MissingET_v1 operator*(const xAOD::MissingET_v1 &met, float scale)
Create new MET object from source with scaled (weighted) kinematics.
xAOD::MissingET_v1::f_source
MissingETBase::Types::bitmask_t & f_source()
Returns reference to MET object source store.
xAOD::MissingET_v1::mpy
float mpy() const
Returns .
xAOD::MissingET_v1::clear
void clear()
Clear/reset the data store.
xAOD::MissingET_v1::f_mpy
float & f_mpy()
Returns reference to store.
xAOD::MissingET_v1::f_mpx
float & f_mpx()
Returns reference to store.
xAOD::MissingET_v1::met
float met() const
Returns .
AuxElement.h
Base class for elements of a container that can have aux data.