GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » Number of entries in TTree
Number of entries in TTree [message #12198] Tue, 05 July 2011 13:19 Go to previous message
Dima Melnychuk is currently offline  Dima Melnychuk
Messages: 213
Registered: April 2004
Location: National Centre for Nucle...
first-grade participant
From: *
Dear colleagues,

I have observed a strangeness with number of entries in TTree for simulation, digitization, reconstruction and pid, i.e. these number are different and I expect them to be equal.

I do simulation with eta_c macros from /macro/run/tdrct/eta_c.
With 2000 events simulation with trunk rev.12565

Running simple macro on produced data

void test_data()
	TString inSimFileName = "evt_points_stt.root";
	TString inDigiFileName = "evt_digi_stt.root";
	TString inRecoFileName = "evt_reco_stt.root";
	TString inPidFileName  = "evt_pid_stt.root";
	TFile *inSimFile = TFile::Open(inSimFileName,"READ");
	TTree *treeSim=(TTree *) inSimFile->Get("cbmsim");

	TFile *inDigiFile = TFile::Open(inDigiFileName,"READ");
	TTree *treeDigi=(TTree *) inDigiFile->Get("cbmsim");

	TFile *inRecoFile = TFile::Open(inRecoFileName,"READ");
	TTree *treeReco=(TTree *) inRecoFile->Get("cbmsim");

	TFile *inPidFile = TFile::Open(inPidFileName,"READ");
	TTree *treePid=(TTree *) inPidFile->Get("cbmsim");


I have the following output

And those number are the same for stt and tpc simulation.

Should those numbers be equal?


Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Crash in PndTpcRiemannTrackingTask
Next Topic: D+ and D- vertex resolution from Psi analysis
Goto Forum:

Current Time: Sun Jul 14 12:20:47 CEST 2024

Total time taken to generate the page: 0.00905 seconds