ATLAS Offline Software
Neutral.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // Neutral.h, (c) ATLAS Detector software
8 
9 #ifndef TRKPARAMETERSBASE_NEUTRAL_H
10 #define TRKPARAMETERSBASE_NEUTRAL_H 1
11 
12 namespace Trk
13 {
21  class Neutral
22  {
23  public:
25  Neutral() = default;
26 
28  Neutral(const double&){}
29 
31  Neutral(const Neutral&) = default;
32 
34  Neutral(Neutral&&) = default;
35 
37  ~Neutral() = default;
38 
40  Neutral& operator=(const Neutral&) = default;
41 
43  Neutral& operator=(Neutral&&) = default;
44 
46  double charge() const {return 0.;}
47 
49  void setCharge(double) {}
50 
52  bool operator==(const Neutral&) const
53  {
54  return true;
55  }
56 
58  bool operator!=(const Neutral& rhs) const
59  {
60  return !(*this == rhs);
61  }
62  };
63 } //end of namespace Trk
64 #endif
Trk::Neutral::~Neutral
~Neutral()=default
Default destructor.
Trk::Neutral::operator==
bool operator==(const Neutral &) const
Equality operator yields always true.
Definition: Neutral.h:52
Trk::Neutral::operator!=
bool operator!=(const Neutral &rhs) const
Inequality operator.
Definition: Neutral.h:58
Trk::Neutral::charge
double charge() const
Charge for neutral particles is always 0.
Definition: Neutral.h:46
Trk::Neutral::Neutral
Neutral()=default
Default constructor.
Trk::Neutral::setCharge
void setCharge(double)
Setting the charge for a neutral particle has no effect.
Definition: Neutral.h:49
Trk::Neutral::operator=
Neutral & operator=(Neutral &&)=default
Move assignment operator.
Trk::Neutral::Neutral
Neutral(Neutral &&)=default
Move constructor.
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::Neutral
Definition: Neutral.h:22
Trk::Neutral::operator=
Neutral & operator=(const Neutral &)=default
Assignment operator.
Trk::Neutral::Neutral
Neutral(const Neutral &)=default
Copy constructor.
Trk::Neutral::Neutral
Neutral(const double &)
Default constructor with dummy parameter.
Definition: Neutral.h:28