StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Nucleon.h
1 
2 #ifndef __Nucleon_h__
3 #define __Nucleon_h__
4 
5 #include "TVector3.h"
6 
7 //____________________________________________________________________________________________________
8 // Class Nucleon: Nucleon class
9 class Nucleon {
10  public:
16  Nucleon() ;
17  virtual ~Nucleon();
18 
19  void Reset() ;
20  void Set(const Double_t r, const Double_t theta, const Double_t phi,
21  const Double_t impactParameter, const Double_t Theta, const Double_t Phi,
22  const Bool_t isThetaFirst = kTRUE) ;
23 
24  Double_t GetX() const ;
25  Double_t GetY() const ;
26  Double_t GetZ() const ;
27  Double_t GetXYZ(const Char_t* name="X") const ;
28  Double_t GetPhi() const ;
29  Double_t GetR() const ;
30 
31  UInt_t GetNpart() const ;
32  UInt_t GetNcoll() const ;
33  Double_t GetMultiplicity() const ;
34  Double_t GetWeight(const UInt_t weightId=0) const ;
35 
36  void IncrementNpart() ;
37  void IncrementNcoll() ;
38  void SetMultiplicity(const Double_t val) ;
39 
40  const TVector3& GetVector() const ;
41 
42  private:
43  TVector3 mPosition ;
44  UInt_t mNpart ;
45  UInt_t mNcoll ;
46  Double_t mMultiplicity ;
47 
48  ClassDef(Nucleon, 1)
49 };
50 
51 inline void Nucleon::IncrementNpart() { mNpart++ ; }
52 inline void Nucleon::IncrementNcoll() { mNcoll++ ; }
53 inline UInt_t Nucleon::GetNpart() const { return mNpart ; }
54 inline UInt_t Nucleon::GetNcoll() const { return mNcoll ; }
55 inline Double_t Nucleon::GetMultiplicity() const { return mMultiplicity ; }
56 inline void Nucleon::SetMultiplicity(const Double_t val) { mMultiplicity = val ; }
57 
58 #endif
59 
Double_t GetR() const
Get azimuthal angle of nucleon.
Definition: Nucleon.cxx:83
void IncrementNcoll()
Increment Npart(x,y)
Definition: Nucleon.h:52
Double_t GetY() const
Get x position.
Definition: Nucleon.cxx:65
void SetMultiplicity(const Double_t val)
Increment Ncoll(x,y)
Definition: Nucleon.h:56
void Set(const Double_t r, const Double_t theta, const Double_t phi, const Double_t impactParameter, const Double_t Theta, const Double_t Phi, const Bool_t isThetaFirst=kTRUE)
Reset all data members.
Definition: Nucleon.cxx:30
void Reset()
Default destructor.
Definition: Nucleon.cxx:21
UInt_t GetNpart() const
Get radius.
Definition: Nucleon.h:53
Double_t GetMultiplicity() const
Get Ncoll(x,y)
Definition: Nucleon.h:55
Double_t GetZ() const
Get y position.
Definition: Nucleon.cxx:71
Double_t GetPhi() const
Get x/y/z or their product (see source)
Definition: Nucleon.cxx:77
Double_t GetXYZ(const Char_t *name="X") const
Get z position.
Definition: Nucleon.cxx:89
UInt_t GetNcoll() const
Get Npart(x,y)
Definition: Nucleon.h:54
Double_t GetWeight(const UInt_t weightId=0) const
Get Multiplicity(x,y)
Definition: Nucleon.cxx:123
Nucleon()
Definition: Nucleon.cxx:9
const TVector3 & GetVector() const
Set multiplicity.
Definition: Nucleon.cxx:117
Definition: Nucleon.h:9
void IncrementNpart()
Get weight factor to calculate average quantities.
Definition: Nucleon.h:51