FairRoot/PandaRoot
PndK+K-.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  Int_t array[2]={-321,321}; //K- K+
31  ((TDatabasePDG::Instance())->GetParticle(999))
32  -> AddDecayChannel(1, 1.0, 2, array);
33 
34  TLorentzVector Vertex, Beam, Target, s;
35  Beam. SetXYZM(0.,0.,4.0,((TDatabasePDG::Instance())
36  -> GetParticle(-2212)) -> Mass());
37  Target.SetXYZM(0.,0.,0.0,((TDatabasePDG::Instance())
38  -> GetParticle( 2212)) -> Mass());
39  s = Beam+Target;
40 
41  // mean location of the target
42  Vertex.SetXYZT(0,0,0,0); // zero by default
43 
44  // smearing of the primary vertex (Gauss with the above mean, and this sigma)
45  //TVector3 VtxRes(.1,.1,.2); // what target smearing do you want???
46  TVector3 VtxRes(0,0,0);
47  TParticle BeamTarget(999,1,0,0,0,0,s,Vertex);
48 
49  PndReaction reaction( BeamTarget, VtxRes, "Gen_KpKm.root");
50 
51  reaction.Loop(1001);
52 
53 }
TLorentzVector Target
Definition: PndK+K-.C:34
Beam SetXYZM(0., 0., 4.0,((TDatabasePDG::Instance()) -> GetParticle(-2212)) -> Mass())
TLorentzVector Beam
Definition: PndK+K-.C:34
TVector3 VtxRes(0, 0, 0)
PndReaction reaction(BeamTarget, VtxRes,"Gen_KpKm.root")
TParticle BeamTarget(999, 1, 0, 0, 0, 0, s, Vertex)
TLorentzVector Vertex
Definition: PndK+K-.C:34
TLorentzVector s
Definition: PndK+K-.C:34