Fork me on GitHub

Changeset 84dd1c8 in git


Ignore:
Timestamp:
Oct 15, 2014, 6:12:51 PM (10 years ago)
Author:
Christophe Delaere <christophe.delaere@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
a3b2495
Parents:
cfc3160
Message:

Debugging ongoing - signs of corruption

Location:
display
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • display/DelphesEventDisplay.cc

    rcfc3160 r84dd1c8  
    11#include <cassert>
     2#include <iostream>
    23#include <utility>
    34#include <algorithm>
     
    106107   // prepare data collections
    107108   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   }
    108117
    109118   // viewers and scenes
     
    133142   }
    134143
    135    make_gui();
    136    load_event();
     144   //make_gui();
     145   //load_event();
    137146   gEve->Redraw3D(kTRUE);   
    138147
     
    229238   printf("Loading event %d.\n", event_id);
    230239
     240
    231241   // clear the previous event
    232242   gEve->GetViewers()->DeleteAnnotations();
     
    238248   delphes_read();
    239249
     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
    240254   // update display
    241255   TEveElement* top = (TEveElement*)gEve->GetCurrentEvent();
  • display/DelphesEventDisplay.h

    rcfc3160 r84dd1c8  
    4242    Int_t event_id;
    4343    ExRootTreeReader *gTreeReader;
     44    void load_event();
    4445
    4546  private:
    4647    void make_gui();
    47     void load_event();
    4848    void delphes_read();
    4949    void delphes_read_towers(TClonesArray* data, DelphesBranchBase* element);
Note: See TracChangeset for help on using the changeset viewer.