GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » Crash in PndDpmDirect
Crash in PndDpmDirect [message #10227] Thu, 18 February 2010 15:58 Go to next message
Klaus Götzen is currently offline  Klaus Götzen
Messages: 293
Registered: June 2006
Location: GSI
first-grade participant
From: *gsi.de
Hi,


while playing around with PndDpmDirect I encountered a crash when using mode 1 or 2 (i.e. elastic scattering). The (to a minimum reduced) code I used was

run_test()
{
  gROOT->LoadMacro("$VMCWORKDIR/gconfig/rootlogon.C");
  rootlogon();
  
  FairRunSim *fRun = new FairRunSim();

  FairPrimaryGenerator* primGen = new FairPrimaryGenerator();
  fRun->SetGenerator(primGen);
  
  PndDpmDirect *dpmGen=new PndDpmDirect(10.0,1);
  primGen->AddGenerator(dpmGen);
}


leading to a segmentation violation. This example works w/o crash with mode=0, but under particular conditions I also found it crashing in that case.

Does somebody have an idea what's going wrong?


Thanks,
Klaus
Re: Crash in PndDpmDirect [message #10228 is a reply to message #10227] Thu, 18 February 2010 16:05 Go to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
Maybe you should set thetamin.
This is not propagated in the PndDpmDirect class, but you could try to create your own dpm root file, and then to load it with PndDpmEvtGenerator. If it works, then it is a matter of this missing thetamin.
Previous Topic: Persitancy in Tasks
Next Topic: Root source files in fairsoft_jan10
Goto Forum:
  


Current Time: Thu Dec 26 18:35:35 CET 2024

Total time taken to generate the page: 0.00596 seconds