Changeset 43 in svn for trunk/Delphes.cpp
- Timestamp:
- Nov 19, 2008, 2:06:15 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Delphes.cpp
r40 r43 168 168 vector<TLorentzVector> TrackCentral; 169 169 vector<PhysicsTower> towers; 170 171 170 vector<fastjet::PseudoJet> input_particles;//for FastJet algorithm 172 171 vector<fastjet::PseudoJet> inclusive_jets; … … 214 213 // set up a CDF midpoint jet definition 215 214 #ifdef ENABLE_PLUGIN_CDFCONES 216 plugins = new fastjet::CDFJetCluPlugin(DET-> C_SEEDTHRESHOLD,DET->CONERADIUS,DET->C_ADJACENCYCUT,DET->C_MAXITERATIONS,DET->C_IRATCH,DET->C_OVERLAPTHRESHOLD);215 plugins = new fastjet::CDFJetCluPlugin(DET->SEEDTHRESHOLD,DET->CONERADIUS,DET->C_ADJACENCYCUT,DET->C_MAXITERATIONS,DET->C_IRATCH,DET->OVERLAPTHRESHOLD); 217 216 jet_def = fastjet::JetDefinition(plugins); 218 217 #else … … 226 225 // set up a CDF midpoint jet definition 227 226 #ifdef ENABLE_PLUGIN_CDFCONES 228 plugins = new fastjet::CDFMidPointPlugin (DET-> M_SEEDTHRESHOLD,DET->CONERADIUS,DET->M_CONEAREAFRACTION,DET->M_MAXPAIRSIZE,DET->M_MAXPAIRSIZE,DET->C_OVERLAPTHRESHOLD);227 plugins = new fastjet::CDFMidPointPlugin (DET->SEEDTHRESHOLD,DET->CONERADIUS,DET->M_CONEAREAFRACTION,DET->M_MAXPAIRSIZE,DET->M_MAXPAIRSIZE,DET->OVERLAPTHRESHOLD); 229 228 jet_def = fastjet::JetDefinition(plugins); 230 229 #else … … 238 237 int npass = 0; // do infinite number of passes 239 238 double protojet_ptmin = 0.0; // use all protojets 240 plugins = new fastjet::SISConePlugin (DET->CONERADIUS,DET-> C_OVERLAPTHRESHOLD,npass, protojet_ptmin);239 plugins = new fastjet::SISConePlugin (DET->CONERADIUS,DET->OVERLAPTHRESHOLD,npass, protojet_ptmin); 241 240 jet_def = fastjet::JetDefinition(plugins); 242 241 #else … … 262 261 treeReader->ReadEntry(entry); 263 262 treeWriter->Clear(); 264 265 263 if((entry % 100) == 0 && entry > 0 ) cout << "** Processing element # " << entry << endl; 266 264 … … 337 335 // all final particles but muons and neutrinos 338 336 // for calorimetric towers and mission PT 339 if(genMomentum.E()!=0) { 337 338 if(genMomentum.E() !=0) { 340 339 if(pid !=pMU) { 341 340 PhysicsTower CaloTower = PhysicsTower(LorentzVector(genMomentum.Px(),genMomentum.Py(),genMomentum.Pz(), genMomentum.E())); … … 371 370 TrackCentral.push_back(genMomentum); 372 371 } 373 } // switch 372 373 } // switch 374 374 375 375 // Forward particles in CASTOR ? … … 470 470 } 471 471 472 473 472 // computes the Missing Transverse Momentum 474 473 TLorentzVector Att(0.,0.,0.,0.); … … 483 482 elementEtmis->Px = (-PTmis).Px(); 484 483 elementEtmis->Py = (-PTmis).Py(); 485 486 484 //***************************** 487 485 488 486 // run the jet clustering with the above jet definition 487 cout<<input_particles.size()<<endl; 489 488 if(input_particles.size()!=0) 490 489 { 491 490 fastjet::ClusterSequence clust_seq(input_particles, jet_def); 492 493 494 491 // extract the inclusive jets with pt > 5 GeV 495 492 double ptmin = 5.0; 496 493 inclusive_jets = clust_seq.inclusive_jets(ptmin); 497 494 cout<<"inclusive_jets "<<inclusive_jets.size()<<endl; 498 495 // sort jets into increasing pt 499 496 sorted_jets = sorted_by_pt(inclusive_jets); 500 497 } 498 cout<<"sorted_jets.size() "<<sorted_jets.size()<<endl; 501 499 for (unsigned int i = 0; i < sorted_jets.size(); i++) { 502 500 TLorentzVector JET;
Note:
See TracChangeset
for help on using the changeset viewer.