FairRoot/PandaRoot
PndPhiPhiKK.C
Go to the documentation of this file.
1 // $Id: PndPhiPhiKK.C,v 1.2 2003/12/09 17:12:57 carsten Exp $
2 //
3 //C.Schwarz, GSI, Darmstadt, Germany. 28-Apr-2003
4 //
5 // Macro for the PndJRGen generator. It samples the reaction
6 // pbar + p --> phi + phi at 8.5 GeV
7 // modified by A.Galoyan
8 
9 {
10  // load shared libraries
11  gROOT->Reset();
12  gSystem->Load("libPhysics.so");
13  gSystem->Load("libEG.so");
14  gSystem->Load("lib/libPndJRGen.so");
15 
16 
17 gRandom.SetSeed(123475);
18 
19  // define beam - target system
20 
21  if (!(TDatabasePDG::Instance())->GetParticle(999))
22  (TDatabasePDG::Instance())->AddParticle("BeamTarget",
23  "Title",
24  4.0,
25  0,
26  4.0,
27  0,
28  "Unknown",
29  999);
30 
31  Int_t array[2]={333,333}; // phi phi
32  ((TDatabasePDG::Instance())->GetParticle(999))
33  -> AddDecayChannel(1, 1.0, 2, array);
34 
35  TLorentzVector Vertex, Beam, Target, s;
36  Beam. SetXYZM(0.,0.,8.5,((TDatabasePDG::Instance())
37  -> GetParticle(-2212)) -> Mass());
38  Target.SetXYZM(0.,0.,0.0,((TDatabasePDG::Instance())
39  -> GetParticle( 2212)) -> Mass());
40  s = Beam+Target;
41 
42  // mean location of the target
43  Vertex.SetXYZT(0,0,0,0); // zero by default
44 
45  // smearing of the primary vertex (Gauss with the above mean, and this sigma)
46  //TVector3 VtxRes(.1,.1,.2); // what target smearing do you want???
47  TVector3 VtxRes(0,0,0);
48  TParticle BeamTarget(999,1,0,0,0,0,s,Vertex);
49 
50  PndReaction reaction( BeamTarget, VtxRes, "Gen_PhiPhiKK.root");
51 
52  reaction.Loop(10001);
53 
54 }
TLorentzVector Target
Definition: PndPhiPhiKK.C:35
TVector3 VtxRes(0, 0, 0)
TLorentzVector Beam
Definition: PndPhiPhiKK.C:35
TLorentzVector Vertex
Definition: PndPhiPhiKK.C:35
Beam SetXYZM(0., 0., 8.5,((TDatabasePDG::Instance()) -> GetParticle(-2212)) -> Mass())
TParticle BeamTarget(999, 1, 0, 0, 0, 0, s, Vertex)
TLorentzVector s
Definition: PndPhiPhiKK.C:35
PndReaction reaction(BeamTarget, VtxRes,"Gen_PhiPhiKK.root")