GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Monte Carlo Engines » Geant energy loss zero
Geant energy loss zero [message #21485] Mon, 18 September 2017 17:36 Go to previous message
Stefan Pflueger is currently offline  Stefan Pflueger
Messages: 99
Registered: February 2012
continuous participant
From: *specf.him.uni-mainz.de
Hi,

I'm currently trying to get our LMD simulation macro to work with the new Pandaroot/Fairroot code and I found a few issues. I added a line in the Register function of PndSdsDetector because no MCHits were generated by GEANT4... This seems to solve the issue. However the energy loss is 0, hence the hits are not written to file or when force written the digitization fails. Afaik the MVD code also uses the SDS classes. Do the new simulations work for you? My second question would be, why is the energy loss zero? Maybe some weird cut or some bad Geant4 setting?

Stefan

void PndSdsDetector::Register()
{
	fPndSdsCollection = FairRootManager::Instance()->GetTClonesArray(fOutBranchName);
	if (! fPndSdsCollection){
		  std::cout << "-W- PndSdsDetector: New branch " << fOutBranchName << " created!" << std::endl;
		  FairRootManager::Instance()->Register(fOutBranchName, "PndSdsMCPoint", fFolderName, kTRUE);
		  [b]fPndSdsCollection = FairRootManager::Instance()->GetTClonesArray(fOutBranchName);[/b]
	}
  //FairRootManager::Instance()->Register(fOutBranchName, fFolderName, fPndSdsCollection, fPersistance);
}

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Unexpected particles in Event Display window.
Next Topic: Initialization Error of Geane using Geant3
Goto Forum:
  


Current Time: Mon Oct 21 00:16:39 CEST 2019

Total time taken to generate the page: 0.02560 seconds