ATLAS Offline Software
Loading...
Searching...
No Matches
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
12namespace 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
bool operator==(const Neutral &) const
Equality operator yields always true.
Definition Neutral.h:52
Neutral(const double &)
Default constructor with dummy parameter.
Definition Neutral.h:28
Neutral(Neutral &&)=default
Move constructor.
double charge() const
Charge for neutral particles is always 0.
Definition Neutral.h:46
Neutral()=default
Default constructor.
Neutral(const Neutral &)=default
Copy constructor.
~Neutral()=default
Default destructor.
Neutral & operator=(const Neutral &)=default
Assignment operator.
Neutral & operator=(Neutral &&)=default
Move assignment operator.
void setCharge(double)
Setting the charge for a neutral particle has no effect.
Definition Neutral.h:49
bool operator!=(const Neutral &rhs) const
Inequality operator.
Definition Neutral.h:58
Ensure that the ATLAS eigen extensions are properly loaded.