GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » [FIXED] Regarding Match of Track Id
[FIXED] Regarding Match of Track Id [message #15611] Tue, 29 October 2013 17:16 Go to previous message
Shyam Kumar is currently offline  Shyam Kumar
Messages: 78
Registered: September 2012
Location: Mumbai, Maharashtra India
continuous participant
From: 89.204.139*
Hi,
I want to access the entries for fToF only in simulation but I am not able to access the entries. I am using code:
//---------------------------------------------
TFile* f = new TFile("sim_complete.root");
TTree *t=(TTree *) f->Get("cbmsim") ;
TClonesArray *ftof_array=new TClonesArray("PndFtofPoint");
t->SetBranchAddress("FtofPoint",&ftof_array);//Branch names

for (Int_t k=0; k<ftof_array->GetEntriesFast(); k++)
{
PndFtofPoint* tofpoint = (PndFtofPoint*)ftof_array->At(k);
cout<<"The entries in Ftof are="<< k<<endl;
}
//-----------------------------------------------

Thank You

[Updated on: Fri, 07 February 2014 19:54] by Moderator

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [FIXED] Bug in DIRC correlation
Next Topic: [FIXED] problem with apr13 release
Goto Forum:
  


Current Time: Thu Mar 28 16:39:54 CET 2024

Total time taken to generate the page: 0.00742 seconds