File indexing completed on 2024-04-06 12:11:12
0001 {
0002
0003 TH2F* frame = new TH2F("h2","h2",100,-200,200,100,-200,200);
0004 frame->Draw();
0005 TFile * = new TFile("Grid.root");
0006 TIter nextkey( gDirectory->GetListOfKeys() );
0007 TKey *key, *oldkey=0;;
0008 unsigned cont=0;
0009 while ( (key = (TKey*)nextkey()))
0010 {
0011
0012
0013 if (oldkey && !strcmp(oldkey->GetName(),key->GetName()) || !TString(key->GetName()).BeginsWith("iBCEP")) continue;
0014 TObject *obj = key->ReadObj();
0015 if ( obj->IsA()==TMarker().Class() )
0016 {
0017
0018
0019 TMarker * myMarker=(TMarker*)obj->Clone();
0020 myMarker->Draw();
0021 ++cont;
0022 }
0023 oldkey=key;
0024 }
0025 }