SND@LHC Software
Loading...
Searching...
No Matches
ShipParticle Class Reference

#include <ShipParticle.h>

Inheritance diagram for ShipParticle:
Collaboration diagram for ShipParticle:

Public Member Functions

 ShipParticle ()
 
 ShipParticle (Int_t pdg, Int_t status, Int_t mother1, Int_t mother2, Int_t daughter1, Int_t daughter2, Double_t px, Double_t py, Double_t pz, Double_t etot, Double_t vx, Double_t vy, Double_t vz, Double_t time)
 
 ShipParticle (Int_t pdg, Int_t status, Int_t mother1, Int_t mother2, Int_t daughter1, Int_t daughter2, const TLorentzVector &p, const TLorentzVector &v)
 
virtual ~ShipParticle ()
 
void Print (Int_t iTrack=0) const
 
void GetMomentum (TLorentzVector &momentum)
 
Double_t GetMass ()
 
void GetVertex (TVector3 &vertex)
 
TMatrixDSym * GetCovP ()
 
TMatrixDSym * GetCovV ()
 
void SetCovP (Double_t *x)
 
void SetCovV (Double_t *x)
 
Double_t GetDoca () const
 
void SetDoca (Double_t x)
 

Private Member Functions

 ClassDef (ShipParticle, 2)
 

Private Attributes

TMatrixDSym fCovP
 
TMatrixDSym fCovV
 
Double_t doca
 

Detailed Description

Definition at line 26 of file ShipParticle.h.

Constructor & Destructor Documentation

◆ ShipParticle() [1/3]

ShipParticle::ShipParticle ( )

Default constructor

Definition at line 13 of file ShipParticle.cxx.

14 : TParticle()
15{
16}

◆ ShipParticle() [2/3]

ShipParticle::ShipParticle ( Int_t  pdg,
Int_t  status,
Int_t  mother1,
Int_t  mother2,
Int_t  daughter1,
Int_t  daughter2,
Double_t  px,
Double_t  py,
Double_t  pz,
Double_t  etot,
Double_t  vx,
Double_t  vy,
Double_t  vz,
Double_t  time 
)

Definition at line 18 of file ShipParticle.cxx.

22 :TParticle(pdg, status,mother1,mother2,daughter1,daughter2,
23 px, py, pz, etot, vx, vy, vz, time),
24 fCovP(TMatrixDSym(4)),
25 fCovV(TMatrixDSym(3))
26 {
27 doca = 0.;
28 }
Double_t doca
TMatrixDSym fCovP
TMatrixDSym fCovV

◆ ShipParticle() [3/3]

ShipParticle::ShipParticle ( Int_t  pdg,
Int_t  status,
Int_t  mother1,
Int_t  mother2,
Int_t  daughter1,
Int_t  daughter2,
const TLorentzVector &  p,
const TLorentzVector &  v 
)

Definition at line 30 of file ShipParticle.cxx.

34 :TParticle(pdg, status,mother1,mother2,daughter1,daughter2,p,v),
35 fCovP(TMatrixDSym(4)),
36 fCovV(TMatrixDSym(3))
37 {
38 doca = 0.;
39 }

◆ ~ShipParticle()

ShipParticle::~ShipParticle ( )
virtual

Destructor

Definition at line 42 of file ShipParticle.cxx.

42 {
43 }

Member Function Documentation

◆ ClassDef()

ShipParticle::ClassDef ( ShipParticle  ,
 
)
private

◆ GetCovP()

TMatrixDSym * ShipParticle::GetCovP ( )
inline

Definition at line 70 of file ShipParticle.h.

71{
72 return &fCovP;
73}

◆ GetCovV()

TMatrixDSym * ShipParticle::GetCovV ( )
inline

Definition at line 76 of file ShipParticle.h.

77{
78 return &fCovV;
79}

◆ GetDoca()

Double_t ShipParticle::GetDoca ( ) const
inline

Definition at line 58 of file ShipParticle.h.

58{ return doca; }

◆ GetMass()

Double_t ShipParticle::GetMass ( )

Definition at line 96 of file ShipParticle.cxx.

97{
98 TLorentzVector momentum;
99 GetMomentum(momentum);
100 return momentum.M();
101}
void GetMomentum(TLorentzVector &momentum)

◆ GetMomentum()

void ShipParticle::GetMomentum ( TLorentzVector &  momentum)

Accessors

Definition at line 88 of file ShipParticle.cxx.

89{
90 momentum.SetPxPyPzE(fPx,fPy,fPz,fE);
91}

◆ GetVertex()

void ShipParticle::GetVertex ( TVector3 &  vertex)

Definition at line 92 of file ShipParticle.cxx.

93{
94 vx.SetXYZ(fVx,fVy,fVz);
95}

◆ Print()

void ShipParticle::Print ( Int_t  iTrack = 0) const

Output to screen

◆ SetCovP()

void ShipParticle::SetCovP ( Double_t *  x)

Definition at line 49 of file ShipParticle.cxx.

50{
51 fCovP(0,0) = covElements[0];
52 fCovP(0,1) = covElements[1];
53 fCovP(0,2) = covElements[2];
54 fCovP(0,3) = covElements[3];
55
56 fCovP(1,0) = covElements[1];
57 fCovP(1,1) = covElements[4];
58 fCovP(1,2) = covElements[5];
59 fCovP(1,3) = covElements[6];
60
61 fCovP(2,0) = covElements[2];
62 fCovP(2,1) = covElements[5];
63 fCovP(2,2) = covElements[7];
64 fCovP(2,3) = covElements[8];
65
66
67 fCovP(3,0) = covElements[3];
68 fCovP(3,1) = covElements[6];
69 fCovP(3,2) = covElements[8];
70 fCovP(3,3) = covElements[9];
71
72
73}

◆ SetCovV()

void ShipParticle::SetCovV ( Double_t *  x)

Definition at line 75 of file ShipParticle.cxx.

76{
77 fCovV(0,0) = covElements[0];
78 fCovV(0,1) = covElements[1];
79 fCovV(0,2) = covElements[2];
80 fCovV(1,1) = covElements[3];
81 fCovV(1,2) = covElements[4];
82 fCovV(2,2) = covElements[5];
83 fCovV(1,0) = covElements[1];
84 fCovV(2,0) = covElements[2];
85 fCovV(2,1) = covElements[4];
86}

◆ SetDoca()

void ShipParticle::SetDoca ( Double_t  x)
inline

Definition at line 59 of file ShipParticle.h.

Member Data Documentation

◆ doca

Double_t ShipParticle::doca
private

Definition at line 63 of file ShipParticle.h.

◆ fCovP

TMatrixDSym ShipParticle::fCovP
private

Definition at line 61 of file ShipParticle.h.

◆ fCovV

TMatrixDSym ShipParticle::fCovV
private

Definition at line 62 of file ShipParticle.h.


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