- Timestamp:
- Oct 15, 2014, 6:12:51 PM (10 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- a3b2495
- Parents:
- cfc3160
- Location:
- display
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
display/DelphesEventDisplay.cc
rcfc3160 r84dd1c8 1 1 #include <cassert> 2 #include <iostream> 2 3 #include <utility> 3 4 #include <algorithm> … … 106 107 // prepare data collections 107 108 readConfig(configFile, det3D, gElements, gArrays); 109 for(std::vector<DelphesBranchBase*>::iterator element = gElements.begin(); element<gElements.end(); ++element) { 110 DelphesBranchElement<TEveTrackList>* item_v1 = dynamic_cast<DelphesBranchElement<TEveTrackList>*>(*element); 111 DelphesBranchElement<DelphesCaloData>* item_v2 = dynamic_cast<DelphesBranchElement<DelphesCaloData>*>(*element); 112 DelphesBranchElement<TEveElementList>* item_v3 = dynamic_cast<DelphesBranchElement<TEveElementList>*>(*element); 113 if(item_v1) gEve->AddElement(item_v1->GetContainer()); 114 if(item_v2) gEve->AddElement(item_v2->GetContainer()); 115 if(item_v3) gEve->AddElement(item_v3->GetContainer()); 116 } 108 117 109 118 // viewers and scenes … … 133 142 } 134 143 135 make_gui();136 load_event();144 //make_gui(); 145 //load_event(); 137 146 gEve->Redraw3D(kTRUE); 138 147 … … 229 238 printf("Loading event %d.\n", event_id); 230 239 240 231 241 // clear the previous event 232 242 gEve->GetViewers()->DeleteAnnotations(); … … 238 248 delphes_read(); 239 249 250 //TODO: it blocks somewhere below.... 251 //TODO: also the event content has one weird entry "TEveCalData" -> corruption???? 252 //other observation: projections appear in the 3D view ! -> seems to indicate that we have a common problem there. 253 //should check the content of the elements vector when filling them 240 254 // update display 241 255 TEveElement* top = (TEveElement*)gEve->GetCurrentEvent(); -
display/DelphesEventDisplay.h
rcfc3160 r84dd1c8 42 42 Int_t event_id; 43 43 ExRootTreeReader *gTreeReader; 44 void load_event(); 44 45 45 46 private: 46 47 void make_gui(); 47 void load_event();48 48 void delphes_read(); 49 49 void delphes_read_towers(TClonesArray* data, DelphesBranchBase* element);
Note:
See TracChangeset
for help on using the changeset viewer.