Problems with AddFriend Functionality

From: Hovhannes Khandanyan <khandan_at_cern.ch>
Date: Sat, 26 Mar 2011 16:12:17 +0100


Dear ROOTers,

Out of large data ntuple I produce light weight analysis one where I store several analysis related flags as well as 'RunNumber' and 'EventNumber' to keep track of my 'good' events. Snippet below shows the RunNumber:EventNumber pair for one of analysis flag:

root [3] TFile *_file0 = TFile::Open("/mnt/data/khandan/r1831/output070/default/data_pdg24/TL.root") root [4] OptDL->Scan("RunNumber:EventNumber","Passedee")


Anyhow, when I try to use the same analysis flag - "Passedee" and scan through Run & Event Numbers in initial data ntuple I see that "Passedee" flag points at totally different RunNumber:EventNumber pair in initial data ntuple:

root [5] 
root [5] TChain * ch = new TChain("CollectionTree")
root [6] ch->Add("/mnt/data/r2040/data/All/*root*")
(Int_t)1955
root [7] ch->AddFriend("OptDL","/mnt/data/khandan/r1831/output070/default/data_pdg24/TL.root") (class TFriendElement*)0xa554590
root [8] ch->Scan("RunNumber:EventNumber","Passedee") Warning in <TClass::TClass>: no dictionary for class AttributeListLayout is available Warning in <TClass::TClass>: no dictionary for class pair<string,string> is available

although I confirm 1-to-1 correspondence of RunNumber/EventNumber parameters in initial and derived analysis ntuples;

root [9]
root [9] ch->Scan("RunNumber:EventNumber","EventNumber==6837664")


So, please let me know what I am doing wrong and what I should do to ensure that my flag (eg "Passedee") points ar same event both in analysis and initial data ntuples.

Thank you,
Hovhannes Received on Sat Mar 26 2011 - 16:12:20 CET

This archive was generated by hypermail 2.2.0 : Tue Mar 29 2011 - 23:50:01 CEST