Changeset 100 in svn for trunk/Delphes.cpp
- Timestamp:
- Dec 18, 2008, 2:39:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Delphes.cpp
r98 r100 105 105 106 106 //Propagation of tracks in the B field 107 TrackPropagation *TRACP = new TrackPropagation( );107 TrackPropagation *TRACP = new TrackPropagation(DetDatacard); 108 108 109 109 //Jet information 110 JetsUtil *JETRUN = new JetsUtil( );110 JetsUtil *JETRUN = new JetsUtil(DetDatacard); 111 111 112 112 //VFD information 113 VeryForward * VFD = new VeryForward( );113 VeryForward * VFD = new VeryForward(DetDatacard); 114 114 115 115 //todo(LogName.c_str()); … … 189 189 190 190 191 191 float iPhi=0,iEta=0; 192 192 193 // Loop over all events 193 194 Long64_t entry, allEntries = treeReader->GetEntries(); … … 266 267 267 268 // all final particles but muons and neutrinos 268 // for calorimetric towers and missi onPT269 // for calorimetric towers and missing PT 269 270 int charge=Charge(pid); 270 271 if(genMomentum.E() !=0 && pid != pMU) { 271 272 if(charge == 0 || (charge !=0 && genMomentum.Pt() >= DET->TRACK_ptmin)){ 272 PhysicsTower CaloTower = PhysicsTower(LorentzVector(genMomentum.Px(),genMomentum.Py(),genMomentum.Pz(), genMomentum.E())); 273 towers.push_back(CaloTower); 274 // create a fastjet::PseudoJet with these components and put it onto 275 // back of the input_particles vector 276 input_particles.push_back(fastjet::PseudoJet(genMomentum.Px(),genMomentum.Py(),genMomentum.Pz(), genMomentum.E())); 277 278 genMomentumCalo.SetPxPyPzE(CaloTower.fourVector.px,CaloTower.fourVector.py,CaloTower.fourVector.pz,CaloTower.fourVector.E); 279 280 elementCalo = (TRootCalo*) branchCalo->NewEntry(); 281 elementCalo->Set(genMomentumCalo); 282 DET->BinEtaPhi(genMomentumCalo.Phi(), genMomentumCalo.Eta(), elementCalo->Phi, elementCalo->Eta); 273 DET->BinEtaPhi(genMomentum.Phi(), genMomentum.Eta(), iPhi, iEta); 274 if(iEta != -100 && iPhi != -100) 275 { 276 genMomentumCalo.SetPtEtaPhiE(genMomentum.Pt(),iEta,iPhi,genMomentum.E()); 277 elementCalo = (TRootCalo*) branchCalo->NewEntry(); 278 elementCalo->Set(genMomentumCalo); 279 280 // CalTower myCaloTower(genMomentumCalo.Et,genMomentumCalo.Eta,genMomentumCalo.Phi,iEta,iPhi); 281 // PhysicsTower Tower(LorentzVector(genMomentumCalo.Px(),genMomentumCalo.Py(),genMomentumCalo.Pz(), genMomentumCalo.E()),myCaloTower); 282 PhysicsTower Tower(LorentzVector(genMomentumCalo.Px(),genMomentumCalo.Py(),genMomentumCalo.Pz(), genMomentumCalo.E())); 283 towers.push_back(Tower); 284 } 283 285 } 284 286 } … … 302 304 if(DET->FLAG_vfd==1) 303 305 { 304 305 306 VFD->ZDC(treeWriter,branchZDC,particle); 307 VFD->RomanPots(treeWriter,branchRP220,branchFP420,particle); 306 308 } 307 309 … … 332 334 for(unsigned int i=0; i < towers.size(); i++) 333 335 { 334 Att.SetPxPyPzE(towers[i].fourVector.px,towers[i].fourVector.py,towers[i].fourVector.pz,towers[i].fourVector.E); 336 Att.SetPxPyPzE(towers[i].fourVector.px, towers[i].fourVector.py, towers[i].fourVector.pz, towers[i].fourVector.E); 337 if(fabs(Att.Eta())<DET->CEN_max_calo_fwd) 338 { 335 339 PTmis = PTmis + Att; 340 // create a fastjet::PseudoJet with these components and put it onto 341 // back of the input_particles vector 342 input_particles.push_back(fastjet::PseudoJet(towers[i].fourVector.px,towers[i].fourVector.py,towers[i].fourVector.pz,towers[i].fourVector.E)); 343 } 336 344 } 337 345 elementEtmis = (TRootETmis*) branchETmis->NewEntry();
Note:
See TracChangeset
for help on using the changeset viewer.