Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • display/DelphesBranchElement.cc

    r486c4c3 r1fa50c2  
    155155  trkProp->SetMaxR(tkRadius_);
    156156  trkProp->SetMaxZ(tkHalfLength_);
    157   GenParticle *particle;
    158157  if(type=="Track") { // CASE 1: TRACKS
    159158    Track *track;
     
    162161                   track->P4().Px(), track->P4().Py(),
    163162                   track->P4().Pz(), track->P4().E(),
    164                    track->X/10.0, track->Y/10.0, track->Z/10.0, track->T/10.0);
     163                   track->X, track->Y, track->Z, 0.0);
    165164      eveTrack = new TEveTrack(&pb, counter, trkProp);
    166165      eveTrack->SetName(Form("%s [%d]", pb.GetName(), counter++));
     
    174173    Electron *electron;
    175174    while((electron = (Electron *) itTrack.Next())) {
    176       particle = (GenParticle*) electron->Particle.GetObject();
    177175      TParticle pb(electron->Charge<0?11:-11, 1, 0, 0, 0, 0,
    178176                   electron->P4().Px(), electron->P4().Py(),
    179177                   electron->P4().Pz(), electron->P4().E(),
    180                    particle->X/10.0, particle->Y/10.0, particle->Z/10.0, particle->T/10.0);
     178                   0., 0., 0., 0.);
    181179      eveTrack = new TEveTrack(&pb, counter, trkProp);
    182180      eveTrack->SetName(Form("%s [%d]", pb.GetName(), counter++));
     
    190188    Muon *muon;
    191189    while((muon = (Muon *) itTrack.Next())) {
    192       particle = (GenParticle*) muon->Particle.GetObject();
    193190      TParticle pb(muon->Charge<0?13:-13, 1, 0, 0, 0, 0,
    194191                   muon->P4().Px(), muon->P4().Py(),
    195192                   muon->P4().Pz(), muon->P4().E(),
    196                    particle->X/10.0, particle->Y/10.0, particle->Z/10.0, particle->T/10.0);
     193                   0., 0., 0., 0.);
    197194      eveTrack = new TEveTrack(&pb, counter, trkProp);
    198195      eveTrack->SetName(Form("%s [%d]", pb.GetName(), counter++));
     
    209206                   photon->P4().Px(), photon->P4().Py(),
    210207                   photon->P4().Pz(), photon->P4().E(),
    211                    0.0, 0.0, 0.0, 0.0);
     208                   0., 0., 0., 0.);
    212209      eveTrack = new TEveTrack(&pb, counter, trkProp);
    213210      eveTrack->SetName(Form("%s [%d]", pb.GetName(), counter++));
     
    226223                   particle->P4().Px(), particle->P4().Py(),
    227224                   particle->P4().Pz(), particle->P4().E(),
    228                    particle->X/10.0, particle->Y/10.0, particle->Z/10.0, particle->T/10.0);
     225                   particle->X, particle->Y, particle->Z, particle->T);
    229226      eveTrack = new TEveTrack(&pb, counter, trkProp);
    230227      eveTrack->SetName(Form("%s [%d]", pb.GetName(), counter++));
Note: See TracChangeset for help on using the changeset viewer.