ATLAS Offline Software
Reconstruction/MissingETEvent/src/MissingETComposition.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
8 
10 
11 namespace MissingETHandlers {
12 
13 
14 Weight operator*(const Weight& w1, const Weight& w2)
15 {
16  return Weight(w1.wpx()*w2.wpx(),w1.wpy()*w2.wpy(),w1.wet()*w2.wet());
17 }
18 
19 Weight operator*(const Weight& w, double scale)
20 {
21  return Weight(scale*w.wpx(),scale*w.wpy(),scale*w.wet());
22 }
23 
24 Weight operator*(double scale, const Weight& w)
25 {
26  return Weight(scale*w.wpx(),scale*w.wpy(),scale*w.wet());
27 }
28 
29 Weight operator/(const Weight& w1, const Weight& w2)
30 {
31  return Weight(w1.wpx()/w2.wpx(),w1.wpy()/w2.wpy(),w1.wet()/w2.wet());
32 }
33 
34 Weight operator+(const Weight& w1, const Weight& w2)
35 {
36  return Weight(w1.wpx()+w2.wpx(),w1.wpy()+w2.wpy(),w1.wet()+w2.wet());
37 }
38 
39 Weight operator-(const Weight& w1, const Weight& w2)
40 {
41  return Weight(w1.wpx()-w2.wpx(),w1.wpy()-w2.wpy(),w1.wet()-w2.wet());
42 }
43 
44 
45 } // namespace MissingETHandlers
MissingETHandlers::Weight::wpy
float wpy() const
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h:209
MissingETComposition::MissingETComposition
MissingETComposition()
Definition: Reconstruction/MissingETEvent/src/MissingETComposition.cxx:7
MissingETComposition.h
MissingETHandlers::operator-
Weight operator-(const Weight &w1, const Weight &w2)
Definition: Reconstruction/MissingETEvent/src/MissingETComposition.cxx:39
yodamerge_tmp.scale
scale
Definition: yodamerge_tmp.py:138
MissingETHandlers
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h:179
MissingETHandlers::Weight
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h:186
MissingETHandlers::Weight::wet
float wet() const
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h:210
MissingETHandlers::operator*
Weight operator*(const Weight &w1, const Weight &w2)
Definition: Reconstruction/MissingETEvent/src/MissingETComposition.cxx:14
MissingETHandlers::Weight::wpx
float wpx() const
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h:208
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
Navigable
Navigable template generalization to handle navigation.
Definition: Navigable.h:93
MissingETHandlers::operator+
Weight operator+(const Weight &w1, const Weight &w2)
Definition: Reconstruction/MissingETEvent/src/MissingETComposition.cxx:34
MissingETComposition::~MissingETComposition
virtual ~MissingETComposition()
Definition: Reconstruction/MissingETEvent/src/MissingETComposition.cxx:9
MissingETHandlers::operator/
Weight operator/(const Weight &w1, const Weight &w2)
Definition: Reconstruction/MissingETEvent/src/MissingETComposition.cxx:29
python.IoTestsLib.w
def w
Definition: IoTestsLib.py:200