Home » PANDA » PandaRoot » General » charged geantino
Re: charged geantino [message #13015 is a reply to message #13003] |
Thu, 02 February 2012 12:12 |
asanchez
Messages: 350 Registered: March 2006
|
first-grade participant |
From: *kph.uni-mainz.de
|
|
Hi again, Ok now it is called FairParticle at the fairbase/base directory,
the general constructor is
FairParticle( Int_t pdg , const TString name, TMCParticleType mcType, Double_t mass, Double_t charge,
Double_t lifetime, const TString pType="Ion", Double_t width=0, Int_t iSpin=0, Int_t iParity=0,
Int_t iConjugation=0, Int_t iIsospin=0, Int_t iIsospinZ=0, Int_t gParity=0, Int_t lepton=0,
Int_t baryon=0,Bool_t stable=kFALSE);
In your simulation macro (first approach),
you should define your particle (for example in my case it was a double hypernucleus)
FairParticle *B13LL = new FairParticle("B13LL", 5,13, 2,12.45659,5,kFALSE,0.200e-9);
fRun->AddNewParticle(B13LL);
you have to know what is the pdgcode assigned to your particle,
(so that you can generate it afterwards) by doing
Int_t B13LLPDG;
p= db->GetParticle("B13LL");
if(p) B13LLPDG=p->PdgCode();
cout<<B13LLPDG<<endl;
for the physical processes , const TString pType="Ion", you should see that you get something similar to the rootino/geantino family.
instead of "ion".
I hope it works
cheers
Alicia.
|
|
|
Goto Forum:
Current Time: Thu Dec 05 18:26:21 CET 2024
Total time taken to generate the page: 0.00711 seconds
|