Changeset 38 in svn for trunk/Delphes.cpp
- Timestamp:
- Nov 18, 2008, 8:54:30 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Delphes.cpp
r33 r38 164 164 165 165 TLorentzVector genMomentum(0,0,0,0); 166 TLorentzVector genMomentumCalo(0,0,0,0); 166 167 LorentzVector jetMomentum; 167 168 vector<TLorentzVector> TrackCentral; … … 339 340 PTmis = PTmis + genMomentum;//ptmis 340 341 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); 343 344 // create a fastjet::PseudoJet with these components and put it onto 344 345 // back of the input_particles vector 345 346 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); 346 348 elementCalo = (TRootCalo*) branchCalo->NewEntry(); 347 elementCalo->Set(genMomentum );349 elementCalo->Set(genMomentumCalo); 348 350 } 349 351 } … … 492 494 } 493 495 for (unsigned int i = 0; i < sorted_jets.size(); i++) { 494 elementJet = (TRootJet*) branchJet->NewEntry();495 496 TLorentzVector JET; 496 497 JET.SetPxPyPzE(sorted_jets[i].px(),sorted_jets[i].py(),sorted_jets[i].pz(),sorted_jets[i].E()); … … 510 511 if(JET.Pt() > DET->JET_pt) 511 512 { 513 elementJet = (TRootJet*) branchJet->NewEntry(); 512 514 elementJet->Set(JET); 513 515 // b-jets
Note:
See TracChangeset
for help on using the changeset viewer.