FairRoot/PandaRoot
THParticle.cxx
Go to the documentation of this file.
1 //
3 // PndHypPoint
4 //
5 // Geant point for Hyp detector
6 //
7 //
9 
10 #include <iostream>
11 using std::cout;
12 using std::endl;
13 #include "THParticle.h"
14 
15 // ----- Default constructor -------------------------------------------
16 THParticle::THParticle() : TParticle() {
17 
18  fEventID = -1;
19  fstatus =0;
20  fIndex =0;
21 
22  fCalcMass = 0.0;
23  fA =fZ = fH = fpdgCode = 0;
24  fPx = fPy = fPz =fVx = fVy = fVz = 0.;
25 
26 }
27 // -------------------------------------------------------------------------
28 
29 
30 
31 // ----- Standard constructor ------------------------------------------
32 THParticle::THParticle(Int_t pdg, Int_t status,Int_t evtID,
33  Int_t index, Double_t mass,
34  Int_t A,Int_t Z,Int_t H,
35  const TLorentzVector &p,
36  const TLorentzVector &v)
37  : TParticle(pdg, status, 0,0,0,0,p,v)
38  {
39 
40  fstatus = status;
41  fIndex = index;
42  fEventID = evtID;
43  fpdgCode = pdg;
44  fPx = p.Px();
45  fPy = p.Py();
46  fPz = p.Pz();
47  fVx = v.X();
48  fVy = v.Y();
49  fVz = v.Z();
50 
51  fA = A;
52  fZ = Z;
53  fH = H;
54  fCalcMass = mass;
55 
56 
57 
58 
59 
60 }
61 
62 
63 // ----- Destructor ----------------------------------------------------
65 // -------------------------------------------------------------------------
66 
67 // ----- Public method Print -------------------------------------------
68 void THParticle::Print(const Option_t* ) const {
69  cout << "-I- THParticle: HYP fragment for track " << fpdgCode
70  << " in event " <<fEventID<< endl;
71 
72 
73 }
74 // -------------------------------------------------------------------------
75 
76 
77 
Double_t p
Definition: anasim.C:58
virtual ~THParticle()
Definition: THParticle.cxx:64
__m128 v
Definition: P4_F32vec4.h:4
Double_t fVx
Definition: THParticle.h:92
Double_t fCalcMass
Definition: THParticle.h:91
Int_t fA
Definition: THParticle.h:95
Double_t fVy
Definition: THParticle.h:92
Int_t fIndex
Definition: THParticle.h:95
Double_t
Int_t fEventID
Definition: THParticle.h:88
Int_t fstatus
Definition: THParticle.h:87
Int_t fpdgCode
Definition: THParticle.h:89
Double_t fVz
Definition: THParticle.h:92
virtual void Print(const Option_t *opt) const
Definition: THParticle.cxx:68
Int_t fZ
Definition: THParticle.h:95
ClassImp(PndAnaContFact)
double Z
Definition: anaLmdDigi.C:68
Int_t fH
Definition: THParticle.h:95
int status[10]
Definition: f_Init.h:28