ATLAS Offline Software
Public Member Functions | List of all members
Trk::Neutral Class Reference

#include <Neutral.h>

Collaboration diagram for Trk::Neutral:

Public Member Functions

 Neutral ()=default
 Default constructor. More...
 
 Neutral (const double &)
 Default constructor with dummy parameter. More...
 
 Neutral (const Neutral &)=default
 Copy constructor. More...
 
 Neutral (Neutral &&)=default
 Move constructor. More...
 
 ~Neutral ()=default
 Default destructor. More...
 
Neutraloperator= (const Neutral &)=default
 Assignment operator. More...
 
Neutraloperator= (Neutral &&)=default
 Move assignment operator. More...
 
double charge () const
 Charge for neutral particles is always 0. More...
 
void setCharge (double)
 Setting the charge for a neutral particle has no effect. More...
 
bool operator== (const Neutral &) const
 Equality operator yields always true. More...
 
bool operator!= (const Neutral &rhs) const
 Inequality operator. More...
 

Detailed Description

Simple helper class for defining track parameters for neutral particles

Author
Christian Gumpert chris.nosp@m.tian.nosp@m..gump.nosp@m.ert@.nosp@m.cern..nosp@m.ch

Definition at line 21 of file Neutral.h.

Constructor & Destructor Documentation

◆ Neutral() [1/4]

Trk::Neutral::Neutral ( )
default

Default constructor.

◆ Neutral() [2/4]

Trk::Neutral::Neutral ( const double &  )
inline

Default constructor with dummy parameter.

Definition at line 28 of file Neutral.h.

28 {}

◆ Neutral() [3/4]

Trk::Neutral::Neutral ( const Neutral )
default

Copy constructor.

◆ Neutral() [4/4]

Trk::Neutral::Neutral ( Neutral &&  )
default

Move constructor.

◆ ~Neutral()

Trk::Neutral::~Neutral ( )
default

Default destructor.

Member Function Documentation

◆ charge()

double Trk::Neutral::charge ( ) const
inline

Charge for neutral particles is always 0.

Definition at line 46 of file Neutral.h.

46 {return 0.;}

◆ operator!=()

bool Trk::Neutral::operator!= ( const Neutral rhs) const
inline

Inequality operator.

Definition at line 58 of file Neutral.h.

59  {
60  return !(*this == rhs);
61  }

◆ operator=() [1/2]

Neutral& Trk::Neutral::operator= ( const Neutral )
default

Assignment operator.

◆ operator=() [2/2]

Neutral& Trk::Neutral::operator= ( Neutral &&  )
default

Move assignment operator.

◆ operator==()

bool Trk::Neutral::operator== ( const Neutral ) const
inline

Equality operator yields always true.

Definition at line 52 of file Neutral.h.

53  {
54  return true;
55  }

◆ setCharge()

void Trk::Neutral::setCharge ( double  )
inline

Setting the charge for a neutral particle has no effect.

Definition at line 49 of file Neutral.h.

49 {}

The documentation for this class was generated from the following file: