FairRoot/PandaRoot
PndPsi3770MuMu.C
Go to the documentation of this file.
1 // $Id: PndPsi3770MuMu.C,v 1.1 2003/09/24 10:09:30 ritman Exp $
2 //
3 // J.Ritman Sept 2003
4 //
5 // Macro for the PANDA event generator. It samples the reaction
6 // pbar(6.6 GeV/c) + p --> Psi(3770) -> mu+ mu-
7 //
8 // modified by A.Galoyan
9 
10 {
11  // load shared libraries
12  gROOT->Reset();
13  gSystem->Load("libPhysics.so");
14  gSystem->Load("libEG.so");
15  gSystem->Load("lib/libPndJRGen.so");
16 
17 
18 gRandom.SetSeed(123456);
19 
20 // use cm not mm
21 if (!(TDatabasePDG::Instance())->GetParticle(997))
22  (TDatabasePDG::Instance())->AddParticle
23 ("Psi(3770) -> mu- mu+","Title",3.770,0,1.0,0,"Unknown",997);
24 
25 Int_t array[2]={-13,13};
26 ((TDatabasePDG::Instance())->GetParticle(997))-> AddDecayChannel(1, 1.0, 2, array);
27 
28 TLorentzVector Vertex(0.0,0.0,0.0), Beam;
29 Beam. SetXYZM(0.,0.,6.6,((TDatabasePDG::Instance()) -> GetParticle(997)) -> Mass());
30 
31 
32 TVector3 VtxRes(0,0,0); // what target smearing do you want???
33 
34 TParticle BeamTarget(997,1,0,0,0,0,Beam,Vertex);
35 
36 PndReaction reaction( BeamTarget, VtxRes, "Gen_PsiMuMu.root" );
37 
38 // reaction.UsePoleMass();
39 
40  reaction.Loop(1001);
41 
42 }
43 
44 
PndReaction reaction(BeamTarget, VtxRes,"Gen_2K02Pi0.root")
TLorentzVector Vertex
Definition: Pnd2DStar.C:50
TParticle BeamTarget(999, 1, 0, 0, 0, 0, s, Vertex)
Beam SetXYZM(0., 0., 8,((TDatabasePDG::Instance()) -> GetParticle(-2212)) -> Mass())
TLorentzVector Beam
Definition: Pnd2DStar.C:50
TVector3 VtxRes(.1,.1,.2)