Fork me on GitHub

Changeset 38 in svn


Ignore:
Timestamp:
Nov 18, 2008, 8:54:30 AM (16 years ago)
Author:
severine ovyn
Message:

remove MY bug jets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Delphes.cpp

    r33 r38  
    164164 
    165165  TLorentzVector genMomentum(0,0,0,0);
     166  TLorentzVector genMomentumCalo(0,0,0,0);
    166167  LorentzVector jetMomentum;
    167168  vector<TLorentzVector> TrackCentral; 
     
    339340              PTmis = PTmis + genMomentum;//ptmis
    340341              if(pid !=pMU) {
    341                
    342                 towers.push_back(PhysicsTower(LorentzVector(genMomentum.Px(),genMomentum.Py(),genMomentum.Pz(), genMomentum.E())));
     342                PhysicsTower CaloTower = PhysicsTower(LorentzVector(genMomentum.Px(),genMomentum.Py(),genMomentum.Pz(), genMomentum.E()));
     343                towers.push_back(CaloTower);
    343344                // create a fastjet::PseudoJet with these components and put it onto
    344345                // back of the input_particles vector
    345346                input_particles.push_back(fastjet::PseudoJet(genMomentum.Px(),genMomentum.Py(),genMomentum.Pz(), genMomentum.E()));
     347                genMomentumCalo.SetPxPyPzE(CaloTower.fourVector.px,CaloTower.fourVector.py,CaloTower.fourVector.pz,CaloTower.fourVector.E);
    346348                elementCalo = (TRootCalo*) branchCalo->NewEntry();
    347                 elementCalo->Set(genMomentum);
     349                elementCalo->Set(genMomentumCalo);
    348350              }
    349351            }
     
    492494        }
    493495      for (unsigned int i = 0; i < sorted_jets.size(); i++) {
    494         elementJet = (TRootJet*) branchJet->NewEntry();
    495496        TLorentzVector JET;
    496497        JET.SetPxPyPzE(sorted_jets[i].px(),sorted_jets[i].py(),sorted_jets[i].pz(),sorted_jets[i].E());
     
    510511        if(JET.Pt() > DET->JET_pt)
    511512          {
     513            elementJet = (TRootJet*) branchJet->NewEntry();
    512514            elementJet->Set(JET);
    513515            // b-jets
Note: See TracChangeset for help on using the changeset viewer.