Changes in modules/FastJetFinder.cc [f319c1d:ba75867] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/FastJetFinder.cc
rf319c1d rba75867 66 66 #include "fastjet/contribs/Nsubjettiness/ExtraRecombiners.hh" 67 67 68 #include "fastjet/contribs/ValenciaPlugin/ValenciaPlugin.hh"69 70 68 #include "fastjet/tools/Filter.hh" 71 69 #include "fastjet/tools/Pruner.hh" … … 81 79 FastJetFinder::FastJetFinder() : 82 80 fPlugin(0), fRecomb(0), fAxesDef(0), fMeasureDef(0), fNjettinessPlugin(0), 83 fDefinition(0), fAreaDefinition(0), fItInputArray(0) , fValenciaPlugin(0)81 fDefinition(0), fAreaDefinition(0), fItInputArray(0) 84 82 { 85 83 … … 120 118 fJetPTMin = GetDouble("JetPTMin", 10.0); 121 119 122 123 120 //-- N(sub)jettiness parameters -- 124 121 … … 128 125 fRcutOff = GetDouble("RcutOff", 0.8); // used only if Njettiness is used as jet clustering algo (case 8) 129 126 fN = GetInt("N", 2); // used only if Njettiness is used as jet clustering algo (case 8) 130 131 //-- Exclusive clustering for e+e- collisions -- 132 133 fNJets = GetInt("NJets",2); 134 fExclusiveClustering = GetBool("ExclusiveClustering", false); 135 136 //-- Valencia Linear Collider algorithm 137 fGamma = GetDouble("Gamma", 1.0); 138 //fBeta parameter see above 139 127 140 128 fMeasureDef = new NormalizedMeasure(fBeta, fParameterR); 141 129 … … 248 236 fDefinition = new JetDefinition(fNjettinessPlugin); 249 237 break; 250 case 9:251 fValenciaPlugin = new ValenciaPlugin(fParameterR, fBeta, fGamma);252 fDefinition = new JetDefinition(fValenciaPlugin);253 break;254 255 238 } 256 239 … … 311 294 if(fAxesDef) delete fAxesDef; 312 295 if(fMeasureDef) delete fMeasureDef; 313 if(fValenciaPlugin) delete static_cast<JetDefinition::Plugin*>(fValenciaPlugin);314 315 296 } 316 297 … … 376 357 377 358 outputList.clear(); 378 379 if(fExclusiveClustering) 380 { 381 outputList = sorted_by_pt(sequence->exclusive_jets( fNJets )); 382 } 383 else 384 { 385 outputList = sorted_by_pt(sequence->inclusive_jets(fJetPTMin)); 386 } 359 outputList = sorted_by_pt(sequence->inclusive_jets(fJetPTMin)); 360 387 361 388 362 // loop over all jets and export them … … 520 494 candidate->NSubJetsSoftDropped = softdrop_jet.pieces().size(); 521 495 496 candidate->SoftDroppedJet = candidate->SoftDroppedP4[0]; 497 522 498 for (size_t i = 0; i < subjets.size() and i < 4; i++) 523 499 { 524 500 if(subjets.at(i).pt() < 0) continue ; 525 501 candidate->SoftDroppedP4[i+1].SetPtEtaPhiM(subjets.at(i).pt(), subjets.at(i).eta(), subjets.at(i).phi(), subjets.at(i).m()); 502 if(i==0) candidate->SoftDroppedSubJet1 = candidate->SoftDroppedP4[i+1]; 503 if(i==1) candidate->SoftDroppedSubJet2 = candidate->SoftDroppedP4[i+1]; 526 504 } 527 505 }
Note:
See TracChangeset
for help on using the changeset viewer.