Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:12

0001 {
0002   // You should run "cmsRun testCaloGeometryTools.cfg" first
0003   TH2F* frame = new TH2F("h2","h2",100,-1.6,1.6,100,-3.2,3.2);
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       //keep only the highest cycle number for each key
0013       if (oldkey && !strcmp(oldkey->GetName(),key->GetName()) || !TString(key->GetName()).BeginsWith("iSM")) continue;
0014       TObject *obj = key->ReadObj();
0015       if ( obj->IsA()==TMarker().Class()  ) 
0016     {
0017       //      cout << key->GetName() << endl;
0018       //      (TText*)obj->Print() ;
0019       TMarker * myMarker=(TMarker*)obj->Clone();
0020       myMarker->Draw();
0021       ++cont;
0022     }
0023       oldkey=key;
0024     }
0025 }