ATLAS Offline Software
Loading...
Searching...
No Matches
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
11namespace MissingETHandlers {
12
13
14Weight 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
19Weight operator*(const Weight& w, double scale)
20{
21 return Weight(scale*w.wpx(),scale*w.wpy(),scale*w.wet());
22}
23
24Weight operator*(double scale, const Weight& w)
25{
26 return Weight(scale*w.wpx(),scale*w.wpy(),scale*w.wet());
27}
28
29Weight 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
34Weight 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
39Weight 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
DataVector< INavigable4Momentum > INavigable4MomentumCollection
Weight operator+(const Weight &w1, const Weight &w2)
Weight operator/(const Weight &w1, const Weight &w2)
Weight operator-(const Weight &w1, const Weight &w2)
Weight operator*(const Weight &w1, const Weight &w2)