Home » PANDA » PandaRoot » General » Geantino?
Re: Geantino? [message #5846 is a reply to message #5845] |
Mon, 11 February 2008 11:19 |
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);
|
|
|
Goto Forum:
Current Time: Tue Jan 14 21:43:35 CET 2025
Total time taken to generate the page: 0.00993 seconds
|