Changeset 3f51314 in git for display/DelphesEventDisplay.cc
- Timestamp:
- Oct 25, 2014, 11:32:13 PM (10 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- ad015db
- Parents:
- 2ca23b5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
display/DelphesEventDisplay.cc
r2ca23b5 r3f51314 156 156 fStatusBar_->SetText("Ready.", 1); 157 157 load_event(); 158 plotSummary_->FillSample(treeReader_, event_id_); //TODO later, control it via a GUI button. 159 plotSummary_->FillEvent(); //TODO later move to event loop 160 plotSummary_->Draw(); 158 161 gEve->Redraw3D(kTRUE); 159 162 … … 386 389 plotSummary_ = new DelphesPlotSummary(tab); 387 390 plotSummary_->Init(elements_); 388 plotSummary_->FillSample(treeReader_); //TODO later, control it via a GUI button. 389 plotSummary_->FillEvent(); //TODO later move to event loop 390 391 //for test 392 TH1F* h; 393 TRootEmbeddedCanvas* trec; 394 TCanvas* gCanvas_; 395 396 slot = tab->NewSlot(); 397 trec = new TRootEmbeddedCanvas(); 398 gCanvas_ = trec->GetCanvas(); 399 wf = slot->MakeFrame(trec); 400 wf->SetElementName("Tracks"); 401 h = new TH1F("tracks","tracks",100,0,100); 402 gCanvas_->cd(); 403 h->Draw(); 404 405 slot = tab->NewSlot(); 406 trec = new TRootEmbeddedCanvas(); 407 gCanvas_ = trec->GetCanvas(); 408 wf = slot->MakeFrame(trec); 409 wf->SetElementName("Electrons"); 410 h = new TH1F("electrons","electrons",100,0,100); 411 gCanvas_->cd(); 412 h->Draw(); 413 414 // TODO: here we have, for each collection, Pt,Eta,Phi for all, leading, subleading 415 // for each event, we will then add a marker with the current value and/or a histo for current event. 416 // this means to create one tab with subtabs (one per collection). 417 418 } 419 391 } 392
Note:
See TracChangeset
for help on using the changeset viewer.