Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
THaParticleInfo.cxx
Go to the documentation of this file.
1//*-- Author : Ole Hansen 18 April 2001
2
4//
5// THaParticleInfo
6//
7// Properties of a particle
8//
10
11#include "THaParticleInfo.h"
12#include <iostream>
13
14using namespace std;
15
16//_____________________________________________________________________________
17THaParticleInfo::THaParticleInfo() : fMass(0), fCharge(0)
18{
19 // Default constructor
20}
21
22//_____________________________________________________________________________
24{
25 // Assignment operator
26
27 if( this != &rhs ) {
29 fMass = rhs.fMass;
30 fCharge = rhs.fCharge;
31 }
32 return *this;
33}
34
35//_____________________________________________________________________________
37{
38 // Print particle info
39
40 TNamed::Print( opt );
41 cout << "Mass: " << fMass << endl;
42 cout << "Charge: " << fCharge << endl;
43}
44
45
46//_____________________________________________________________________________
47
const char Option_t
THaParticleInfo & operator=(const THaParticleInfo &rhs)
virtual void Print(Option_t *opt="") const
void Print(Option_t *option="") const override
TNamed & operator=(const TNamed &rhs)
STL namespace.
ClassImp(TPyArg)