- Timestamp:
- Apr 16, 2014, 4:32:53 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 15 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r1367 r1368 494 494 external/fastjet/plugins/SISCone/fastjet/SISConePlugin.hh \ 495 495 external/fastjet/plugins/CDFCones/fastjet/CDFMidPointPlugin.hh \ 496 external/fastjet/plugins/CDFCones/fastjet/CDFJetCluPlugin.hh 496 external/fastjet/plugins/CDFCones/fastjet/CDFJetCluPlugin.hh \ 497 external/fastjet/contribs/Nsubjettiness/Nsubjettiness.hh \ 498 external/fastjet/contribs/Nsubjettiness/Njettiness.hh \ 499 external/fastjet/contribs/Nsubjettiness/NjettinessPlugin.hh \ 500 external/fastjet/contribs/Nsubjettiness/WinnerTakeAllRecombiner.hh 497 501 tmp/modules/BTagging.$(ObjSuf): \ 498 502 modules/BTagging.$(SrcSuf) \ … … 1019 1023 tmp/external/Hector/H_OpticalElement.$(ObjSuf): \ 1020 1024 external/Hector/H_OpticalElement.$(SrcSuf) 1025 tmp/external/fastjet/contribs/Nsubjettiness/MeasureFunction.$(ObjSuf): \ 1026 external/fastjet/contribs/Nsubjettiness/MeasureFunction.$(SrcSuf) 1027 tmp/external/fastjet/contribs/Nsubjettiness/AxesFinder.$(ObjSuf): \ 1028 external/fastjet/contribs/Nsubjettiness/AxesFinder.$(SrcSuf) 1029 tmp/external/fastjet/contribs/Nsubjettiness/WinnerTakeAllRecombiner.$(ObjSuf): \ 1030 external/fastjet/contribs/Nsubjettiness/WinnerTakeAllRecombiner.$(SrcSuf) 1031 tmp/external/fastjet/contribs/Nsubjettiness/Nsubjettiness.$(ObjSuf): \ 1032 external/fastjet/contribs/Nsubjettiness/Nsubjettiness.$(SrcSuf) 1033 tmp/external/fastjet/contribs/Nsubjettiness/NjettinessPlugin.$(ObjSuf): \ 1034 external/fastjet/contribs/Nsubjettiness/NjettinessPlugin.$(SrcSuf) 1035 tmp/external/fastjet/contribs/Nsubjettiness/Njettiness.$(ObjSuf): \ 1036 external/fastjet/contribs/Nsubjettiness/Njettiness.$(SrcSuf) 1021 1037 DELPHES_OBJ += \ 1022 1038 tmp/classes/DelphesFormula.$(ObjSuf) \ … … 1167 1183 tmp/external/Hector/H_Parameters.$(ObjSuf) \ 1168 1184 tmp/external/Hector/H_Marker.$(ObjSuf) \ 1169 tmp/external/Hector/H_OpticalElement.$(ObjSuf) 1185 tmp/external/Hector/H_OpticalElement.$(ObjSuf) \ 1186 tmp/external/fastjet/contribs/Nsubjettiness/MeasureFunction.$(ObjSuf) \ 1187 tmp/external/fastjet/contribs/Nsubjettiness/AxesFinder.$(ObjSuf) \ 1188 tmp/external/fastjet/contribs/Nsubjettiness/WinnerTakeAllRecombiner.$(ObjSuf) \ 1189 tmp/external/fastjet/contribs/Nsubjettiness/Nsubjettiness.$(ObjSuf) \ 1190 tmp/external/fastjet/contribs/Nsubjettiness/NjettinessPlugin.$(ObjSuf) \ 1191 tmp/external/fastjet/contribs/Nsubjettiness/Njettiness.$(ObjSuf) 1170 1192 1171 1193 ifeq ($(HAS_PYTHIA8),true) … … 1363 1385 @touch $@ 1364 1386 1387 external/fastjet/contribs/Nsubjettiness/Njettiness.hh: \ 1388 external/fastjet/PseudoJet.hh 1389 @touch $@ 1390 1365 1391 modules/Efficiency.h: \ 1366 1392 classes/DelphesModule.h … … 1403 1429 @touch $@ 1404 1430 1431 external/fastjet/contribs/Nsubjettiness/NjettinessPlugin.hh: \ 1432 external/fastjet/ClusterSequence.hh \ 1433 external/fastjet/JetDefinition.hh 1434 @touch $@ 1435 1405 1436 modules/Cloner.h: \ 1406 1437 classes/DelphesModule.h … … 1506 1537 @touch $@ 1507 1538 1539 external/fastjet/contribs/Nsubjettiness/WinnerTakeAllRecombiner.hh: \ 1540 external/fastjet/PseudoJet.hh \ 1541 external/fastjet/JetDefinition.hh 1542 @touch $@ 1543 1508 1544 modules/ImpactParameterSmearing.h: \ 1509 1545 classes/DelphesModule.h … … 1558 1594 external/fastjet/SharedPtr.hh \ 1559 1595 external/fastjet/PseudoJetStructureBase.hh 1596 @touch $@ 1597 1598 external/fastjet/contribs/Nsubjettiness/Nsubjettiness.hh: \ 1599 external/fastjet/FunctionOfPseudoJet.hh 1560 1600 @touch $@ 1561 1601 -
trunk/classes/DelphesClasses.cc
r1367 r1368 112 112 Position(0.0, 0.0, 0.0, 0.0), 113 113 Dxy(0),SDxy(0),Xd(0),Yd(0),Zd(0), 114 Tau1(0.0), Tau2(0.0), Tau3(0.0), Tau4(0.0), Tau5(0.0), 114 115 Area(0.0, 0.0, 0.0, 0.0), 115 116 NCharged(0), … … 235 236 object.FracPt[3] = FracPt[3]; 236 237 object.FracPt[4] = FracPt[4]; 237 238 object.Tau1 = Tau1; 239 object.Tau2 = Tau2; 240 object.Tau3 = Tau3; 241 object.Tau4 = Tau4; 242 object.Tau5 = Tau5; 243 238 244 object.fFactory = fFactory; 239 245 object.fArray = 0; … … 292 298 FracPt[3] = 0.0; 293 299 FracPt[4] = 0.0; 294 300 Tau1 = 0.0; 301 Tau2 = 0.0; 302 Tau3 = 0.0; 303 Tau4 = 0.0; 304 Tau5 = 0.0; 305 295 306 fArray = 0; 296 307 } -
trunk/classes/DelphesClasses.h
r1367 r1368 318 318 Float_t FracPt[5]; 319 319 320 320 // -- Nsubjettiness variables --- 321 322 Float_t Tau1; 323 Float_t Tau2; 324 Float_t Tau3; 325 Float_t Tau4; 326 Float_t Tau5; 321 327 322 328 ClassDef(Jet, 2) … … 466 472 Float_t PTD; 467 473 Float_t FracPt[5]; 468 474 475 // -- Nsubjettiness variables --- 476 477 Float_t Tau1; 478 Float_t Tau2; 479 Float_t Tau3; 480 Float_t Tau4; 481 Float_t Tau5; 482 469 483 static CompBase *fgCompare; //! 470 484 const CompBase *GetCompare() const { return fgCompare; } -
trunk/doc/genMakefile.tcl
r1360 r1368 273 273 dictDeps {DISPLAY_DICT} {display/DisplayLinkDef.h} 274 274 275 sourceDeps {DELPHES} {classes/*.cc} {modules/*.cc} {external/ExRootAnalysis/*.cc} {external/fastjet/*.cc} {external/fastjet/tools/*.cc} {external/fastjet/plugins/*/*.cc} {external/Hector/*.cc} 275 sourceDeps {DELPHES} {classes/*.cc} {modules/*.cc} {external/ExRootAnalysis/*.cc} {external/fastjet/*.cc} {external/fastjet/tools/*.cc} {external/fastjet/plugins/*/*.cc} {external/Hector/*.cc} {external/fastjet/contribs/Nsubjettiness/*.cc} 276 276 277 277 sourceDeps {DISPLAY} {display/*.cc} -
trunk/modules/FastJetFinder.cc
r1345 r1368 47 47 #include "fastjet/plugins/CDFCones/fastjet/CDFJetCluPlugin.hh" 48 48 49 #include "fastjet/contribs/Nsubjettiness/Nsubjettiness.hh" 50 #include "fastjet/contribs/Nsubjettiness/Njettiness.hh" 51 #include "fastjet/contribs/Nsubjettiness/NjettinessPlugin.hh" 52 #include "fastjet/contribs/Nsubjettiness/WinnerTakeAllRecombiner.hh" 53 49 54 using namespace std; 50 55 using namespace fastjet; 56 using namespace fastjet::contrib; 57 51 58 52 59 //------------------------------------------------------------------------------ 53 60 54 61 FastJetFinder::FastJetFinder() : 55 fPlugin(0), fDefinition(0), fAreaDefinition(0), fItInputArray(0) 62 fPlugin(0), fDefinition(0), fAreaDefinition(0), fItInputArray(0), fRecomb(0), fNjettinessPlugin(0) 56 63 { 57 64 … … 69 76 void FastJetFinder::Init() 70 77 { 78 71 79 JetDefinition::Plugin *plugin = NULL; 72 80 JetDefinition::Recombiner *recomb = NULL; 81 NjettinessPlugin *njet_plugin = NULL; 82 73 83 // read eta ranges 74 84 … … 99 109 fJetPTMin = GetDouble("JetPTMin", 10.0); 100 110 111 //-- N(sub)jettiness parameters -- 112 113 fComputeNsubjettiness = GetBool("ComputeNsubjettiness", false); 114 fBeta = GetDouble("Beta", 1.0); 115 fAxisMode = GetInt("AxisMode", 1); 116 fRcutOff = GetDouble("RcutOff", 0.8); //used only if Njettiness is used as jet clustering algo (case 8) 117 fN = GetInt("N", 2); //used only if Njettiness is used as jet clustering algo (case 8) 118 101 119 // --- Jet Area Parameters --- 102 120 fAreaAlgorithm = GetInt("AreaAlgorithm", 0); 103 121 fComputeRho = GetBool("ComputeRho", false); 122 104 123 // - ghost based areas - 105 124 fGhostEtaMax = GetDouble("GhostEtaMax", 5.0); … … 109 128 fPtScatter = GetDouble("PtScatter", 0.1); 110 129 fMeanGhostPt = GetDouble("MeanGhostPt", 1.0E-100); 130 111 131 // - voronoi based areas - 112 132 fEffectiveRfact = GetDouble("EffectiveRfact", 1.0); … … 159 179 fDefinition = new fastjet::JetDefinition(fastjet::antikt_algorithm, fParameterR); 160 180 break; 161 } 181 case 7: 182 recomb = new fastjet::contrib::WinnerTakeAllRecombiner(); 183 fDefinition = new fastjet::JetDefinition(fastjet::antikt_algorithm, fParameterR, recomb, Best); 184 break; 185 case 8: 186 njet_plugin = new fastjet::contrib::NjettinessPlugin(fN, Njettiness::wta_kt_axes, Njettiness::unnormalized_cutoff_measure, fBeta, fRcutOff); 187 fDefinition = new fastjet::JetDefinition(njet_plugin); 188 break; 189 } 190 162 191 163 192 fPlugin = plugin; 164 193 fRecomb = recomb; 194 fNjettinessPlugin = njet_plugin; 195 165 196 ClusterSequence::print_banner(); 166 197 … … 184 215 if(fAreaDefinition) delete fAreaDefinition; 185 216 if(fPlugin) delete static_cast<JetDefinition::Plugin*>(fPlugin); 217 if(fRecomb) delete static_cast<JetDefinition::Recombiner*>(fRecomb); 218 if(fNjettinessPlugin) delete static_cast<JetDefinition::Plugin*>(fNjettinessPlugin); 186 219 } 187 220 … … 248 281 outputList = sorted_by_pt(sequence->inclusive_jets(fJetPTMin)); 249 282 283 250 284 // loop over all jets and export them 251 285 detaMax = 0.0; … … 265 299 inputList.clear(); 266 300 inputList = sequence->constituents(*itOutputList); 301 267 302 for(itInputList = inputList.begin(); itInputList != inputList.end(); ++itInputList) 268 303 { … … 289 324 candidate->DeltaPhi = dphiMax; 290 325 326 // --- compute N-subjettiness with N = 1,2,3,4,5 ---- 327 328 if(fComputeNsubjettiness) 329 { 330 Njettiness::AxesMode axisMode; 331 332 if (fAxisMode == 1) axisMode = Njettiness::wta_kt_axes; 333 if (fAxisMode == 2) axisMode = Njettiness::onepass_wta_kt_axes; 334 if (fAxisMode == 3) axisMode = Njettiness::kt_axes; 335 if (fAxisMode == 4) axisMode = Njettiness::onepass_kt_axes; 336 337 Njettiness::MeasureMode measureMode = Njettiness::unnormalized_measure; 338 339 Nsubjettiness nSub1(1, axisMode, measureMode, fBeta); 340 Nsubjettiness nSub2(2, axisMode, measureMode, fBeta); 341 Nsubjettiness nSub3(3, axisMode, measureMode, fBeta); 342 Nsubjettiness nSub4(4, axisMode, measureMode, fBeta); 343 Nsubjettiness nSub5(5, axisMode, measureMode, fBeta); 344 345 candidate -> Tau1 = nSub1(*itOutputList); 346 candidate -> Tau2 = nSub2(*itOutputList); 347 candidate -> Tau3 = nSub3(*itOutputList); 348 candidate -> Tau4 = nSub4(*itOutputList); 349 candidate -> Tau5 = nSub5(*itOutputList); 350 } 351 352 291 353 fOutputArray->Add(candidate); 292 354 } -
trunk/modules/FastJetFinder.h
r1337 r1368 41 41 42 42 void *fPlugin; //! 43 void *fRecomb; //! 44 void *fNjettinessPlugin; //! 45 43 46 fastjet::JetDefinition *fDefinition; //! 44 47 … … 55 58 Double_t fOverlapThreshold; 56 59 60 //-- N (sub)jettiness parameters -- 61 62 Bool_t fComputeNsubjettiness; 63 Double_t fBeta; 64 Int_t fAxisMode; 65 Double_t fRcutOff; 66 Int_t fN ; 67 57 68 // --- FastJet Area method -------- 58 69 -
trunk/modules/TreeWriter.cc
r1367 r1368 554 554 entry->FracPt[3] = candidate->FracPt[3]; 555 555 entry->FracPt[4] = candidate->FracPt[4]; 556 556 557 //--- N-subjettiness variables ---- 558 559 entry->Tau1 = candidate->Tau1; 560 entry->Tau2 = candidate->Tau2; 561 entry->Tau3 = candidate->Tau3; 562 entry->Tau4 = candidate->Tau4; 563 entry->Tau5 = candidate->Tau5; 564 557 565 FillParticles(candidate, &entry->Particles); 558 566 }
Note:
See TracChangeset
for help on using the changeset viewer.