GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » Geantino?
Re: Geantino? [message #5846 is a reply to message #5845] Mon, 11 February 2008 11:19 Go to previous messageGo to previous message
asanchez is currently offline  asanchez
Messages: 350
Registered: March 2006
first-grade participant
From: *kph.uni-mainz.de
hallo Tobias,
you can add your charge geantino doing as follows
best regrads
ALicia

CbmParticle *chargedGeant = new CbmParticle("He5", Z,A,1, mass,Z,kFALSE,lifetime);


fRun->AddNewParticle(cgargedGeant );

Int_t pdg;
TDatabasePDG *db= TDatabasePDG::Instance();
TParticlePDG *p=0;
p=db->GetParticle("chargedGeant");
if(p) pdg = p->PdgCode();


CbmParticleGenerator* partGen = new CbmParticleGenerator(pdg, 1, -0.3,0.3,0.
3, 0., 0., 0);
primGen->AddGenerator(partGen);
 
Read Message icon5.gif
Read Message
Read Message
Read Message icon4.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: svn and our policies
Next Topic: PdgCode > 1000000000 ?
Goto Forum:
  


Current Time: Wed Jul 17 18:42:42 CEST 2024

Total time taken to generate the page: 0.00788 seconds