Changeset 43 in svn
- Timestamp:
- Nov 19, 2008, 2:06:15 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 4 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; -
trunk/Resolutions.cpp
r39 r43 224 224 // set up a CDF midpoint jet definition 225 225 #ifdef ENABLE_PLUGIN_CDFCONES 226 plugins = new fastjet::CDFJetCluPlugin(0,DET->CONERADIUS,DET->C_ADJACENCYCUT,DET->C_MAXITERATIONS,DET->C_IRATCH,DET-> C_OVERLAPTHRESHOLD);226 plugins = new fastjet::CDFJetCluPlugin(0,DET->CONERADIUS,DET->C_ADJACENCYCUT,DET->C_MAXITERATIONS,DET->C_IRATCH,DET->OVERLAPTHRESHOLD); 227 227 jet_def = fastjet::JetDefinition(plugins); 228 228 #else … … 232 232 // set up a CDF midpoint jet definition 233 233 #ifdef ENABLE_PLUGIN_CDFCONES 234 pluginsS = new fastjet::CDFJetCluPlugin(1,DET->CONERADIUS,DET->C_ADJACENCYCUT,DET->C_MAXITERATIONS,DET->C_IRATCH,DET-> C_OVERLAPTHRESHOLD);234 pluginsS = new fastjet::CDFJetCluPlugin(1,DET->CONERADIUS,DET->C_ADJACENCYCUT,DET->C_MAXITERATIONS,DET->C_IRATCH,DET->OVERLAPTHRESHOLD); 235 235 jet_defS = fastjet::JetDefinition(pluginsS); 236 236 #else … … 240 240 // set up a CDF midpoint jet definition 241 241 #ifdef ENABLE_PLUGIN_CDFCONES 242 pluginsT = new fastjet::CDFJetCluPlugin(0,DET->CONERADIUS,DET->C_ADJACENCYCUT,DET->C_MAXITERATIONS,DET->C_IRATCH,DET-> C_OVERLAPTHRESHOLD);242 pluginsT = new fastjet::CDFJetCluPlugin(0,DET->CONERADIUS,DET->C_ADJACENCYCUT,DET->C_MAXITERATIONS,DET->C_IRATCH,DET->OVERLAPTHRESHOLD); 243 243 jet_defT = fastjet::JetDefinition(pluginsT); 244 244 #else … … 256 256 treeReader->ReadEntry(entry); 257 257 treeWriter->Clear(); 258 259 258 if((entry % 100) == 0 && entry > 0 ) cout << "** Processing element # " << entry << endl; 260 259 … … 329 328 } // switch (pid) 330 329 331 if(pid != pMU )330 if(pid != pMU && genMomentum.Et() !=0) 332 331 { 333 332 towers.push_back(PhysicsTower(LorentzVector(genMomentum.Px(),genMomentum.Py(),genMomentum.Pz(), genMomentum.E()))); … … 354 353 355 354 TLorentzVector Att(0.,0.,0.,0.); 356 float ScalarEt=0;357 355 for(unsigned int i=0; i < towers.size(); i++) 358 356 { 359 357 Att.SetPxPyPzE(towers[i].fourVector.px,towers[i].fourVector.py,towers[i].fourVector.pz,towers[i].fourVector.E); 360 ScalarEt = ScalarEt + Att.Et();361 358 PTmisS = PTmisS + Att; 362 359 } 363 //cout<<"non smeare "<<PTmis.Pt()<<" "<<PTmisS.Pt()<<endl;364 //cout<<"smeare "<<PTmis.Px()<<" "<<PTmisS.Px()<<endl;365 //cout<<"**********"<<endl;366 360 367 361 elementEtmis= (ETMIS*) branchetmis->NewEntry(); 368 362 elementEtmis->Et = (PTmis).Pt(); 369 elementEtmis->Ex = (-PTmis).Px();370 elementEtmis->SEt = ScalarEt;371 372 363 elementEtmis->EtSmeare = (PTmisS).Pt()-(PTmis).Pt(); 373 elementEtmis->ExSmeare = (-PTmisS).Px()-(PTmis).Px();374 364 375 365 //***************************** -
trunk/interface/SmearUtil.h
r33 r43 93 93 double CONERADIUS; 94 94 int JETALGO; 95 96 //General jet variable 97 double SEEDTHRESHOLD; 98 double OVERLAPTHRESHOLD; 99 95 100 // MidPoint algorithm definition 96 double M_SEEDTHRESHOLD;97 101 double M_CONEAREAFRACTION; 98 102 int M_MAXPAIRSIZE; 99 103 int M_MAXITERATIONS; 100 double M_OVERLAPTHRESHOLD;101 104 102 105 // Define Cone algorithm. 103 double C_SEEDTHRESHOLD;104 106 int C_ADJACENCYCUT; 105 107 int C_MAXITERATIONS; 106 108 int C_IRATCH; 107 double C_OVERLAPTHRESHOLD;108 109 109 110 /// Reads the data card for the initialisation of the parameters -
trunk/src/SmearUtil.cc
r33 r43 80 80 CONERADIUS = 0.7; // generic jet radius ; not for tau's !!! 81 81 JETALGO = 1; // 1 for Cone algorithm, 2 for MidPoint algorithm, 3 for SIScone algorithm, 4 for kt algorithm 82 83 //General jet parameters 84 SEEDTHRESHOLD = 1.0; 85 OVERLAPTHRESHOLD = 0.75; 86 82 87 // Define Cone algorithm. 83 C_SEEDTHRESHOLD = 1.0;84 88 C_ADJACENCYCUT = 2; 85 89 C_MAXITERATIONS = 100; 86 90 C_IRATCH = 1; 87 C_OVERLAPTHRESHOLD = 0.75;88 91 89 92 //Define MidPoint algorithm. 90 M_SEEDTHRESHOLD = 1.0;91 93 M_CONEAREAFRACTION = 0.25; 92 94 M_MAXPAIRSIZE = 2; 93 95 M_MAXITERATIONS = 100; 94 M_OVERLAPTHRESHOLD = 0.75;95 96 96 97 } … … 149 150 } 150 151 152 // General jet variables 153 SEEDTHRESHOLD = 1.0; 154 OVERLAPTHRESHOLD = 0.75; 155 151 156 // Define Cone algorithm. 152 C_SEEDTHRESHOLD = 1.0;153 157 C_ADJACENCYCUT = 2; 154 158 C_MAXITERATIONS = 100; 155 159 C_IRATCH = 1; 156 C_OVERLAPTHRESHOLD = 0.75;157 160 158 161 //Define MidPoint algorithm. 159 M_SEEDTHRESHOLD = 1.0;160 162 M_CONEAREAFRACTION = 0.25; 161 163 M_MAXPAIRSIZE = 2; 162 164 M_MAXITERATIONS = 100; 163 M_OVERLAPTHRESHOLD = 0.75;164 165 165 166 } … … 250 251 double Energie=0; 251 252 for(unsigned int i=0; i < towers.size(); i++) { 252 if(towers[i].fourVector.pt() < M_SEEDTHRESHOLD) continue;253 if(towers[i].fourVector.pt() < SEEDTHRESHOLD) continue; 253 254 if((DeltaR(phi,eta,towers[i].fourVector.phi(),towers[i].fourVector.eta()) < TAU_CONE_ENERGY)) { 254 255 Energie += towers[i].fourVector.E;
Note:
See TracChangeset
for help on using the changeset viewer.