aggregate.cc
Go to the documentation of this file.
2 
3 #include "CLHEP/Matrix/Matrix.h"
4 #include "CLHEP/Matrix/SymMatrix.h"
5 #include "CLHEP/Matrix/Vector.h"
6 #include "CLHEP/Vector/LorentzVector.h"
7 #include "CLHEP/Vector/ThreeVector.h"
8 #include "CLHEP/Vector/TwoVector.h"
9 
10 using namespace CLHEP;
11 
12 namespace art::detail {
13  void
14  CanBeAggregated<HepVector>::aggregate(HepVector& p, HepVector const& other)
15  {
16  p += other;
17  }
18 
19  void
20  CanBeAggregated<Hep2Vector>::aggregate(Hep2Vector& p, Hep2Vector const& other)
21  {
22  p += other;
23  }
24 
25  void
26  CanBeAggregated<Hep3Vector>::aggregate(Hep3Vector& p, Hep3Vector const& other)
27  {
28  p += other;
29  }
30 
31  void
32  CanBeAggregated<HepLorentzVector>::aggregate(HepLorentzVector& p,
33  HepLorentzVector const& other)
34  {
35  p += other;
36  }
37 
38  void
39  CanBeAggregated<HepMatrix>::aggregate(HepMatrix& p, HepMatrix const& other)
40  {
41  p += other;
42  }
43 
44  void
45  CanBeAggregated<HepSymMatrix>::aggregate(HepSymMatrix& p,
46  HepSymMatrix const& other)
47  {
48  p += other;
49  }
50 }
p
Definition: test.py:223