GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » EmcCluster: Map version 0 does not exist
Re: EmcCluster: Map version 0 does not exist [message #6951 is a reply to message #6917] Mon, 16 June 2008 19:45 Go to previous messageGo to previous message
Jens Sören Lange is currently offline  Jens Sören Lange
Messages: 193
Registered: June 2005
first-grade participant
From: *web.vodafone.de
This works now (thanks to Dima).

The correct sequence is (load the sim file first for the map):

TFile* fsim = new TFile("simfile.root");
TTree *tsim=(TTree *) fsim->Get("cbmsim");
PndEmcMapper *emcMap=PndEmcMapper::Instance(1);
TChain *chain = new TChain("cbmsim");
chain->Add("recofile.root");
TClonesArray* cluster_array=new TClonesArray("PndEmcCluster");
chain->SetBranchAddress("EmcCluster",&cluster_array);
...

 
Read Message icon4.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: simpleEvtGen for fast simulation limited (?)
Next Topic: Fix in lhetrack
Goto Forum:
  


Current Time: Tue Dec 03 23:03:47 CET 2024

Total time taken to generate the page: 0.00684 seconds