| [FIXED] Regarding Match of Track Id [message #15611] | 
			Tue, 29 October 2013 17:16   | 
		 
		
			
				
				
				
					
						  
						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  
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 |