Changeset 1d208a2 in git for external/fastjet/tools
- Timestamp:
- Aug 30, 2016, 12:36:00 AM (8 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 6be4bc0
- Parents:
- d091310
- Location:
- external/fastjet/tools
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/tools/Filter.cc
rd091310 r1d208a2 1 1 //FJSTARTHEADER 2 // $Id: Filter.cc 3760 2014-12-19 10:05:10Z soyez $2 // $Id: Filter.cc 4080 2016-03-09 15:01:57Z soyez $ 3 3 // 4 4 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 31 31 #include "fastjet/tools/Filter.hh" 32 32 #include "fastjet/tools/Recluster.hh" 33 #include "fastjet/tools/Subtractor.hh" 33 34 #include <fastjet/ClusterSequenceActiveAreaExplicitGhosts.hh> 34 35 #include <cassert> … … 98 99 } else if (_rho!=0){ 99 100 if (subjets.size()>0){ 100 const ClusterSequenceAreaBase *csab = subjets[0].validated_csab();101 //const ClusterSequenceAreaBase *csab = subjets[0].validated_csab(); 101 102 for (unsigned int i=0;i<subjets.size();i++){ 102 subjets[i]=csab->subtracted_jet(subjets[i], _rho); 103 //subjets[i]=csab->subtracted_jet(subjets[i], _rho); 104 subjets[i]=Subtractor(_rho)(subjets[i]); 103 105 } 104 106 } -
external/fastjet/tools/Filter.hh
rd091310 r1d208a2 3 3 4 4 //FJSTARTHEADER 5 // $Id: Filter.hh 384 5 2015-03-08 08:35:36Z soyez $5 // $Id: Filter.hh 3846 2015-03-08 08:35:43Z soyez $ 6 6 // 7 7 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 143 143 /// deciding which ones to keep. It takes precedence over a non-zero rho. 144 144 void set_subtractor(const FunctionOfPseudoJet<PseudoJet> * subtractor_in) {_subtractor = subtractor_in;} 145 146 /// Set a subtractor that is applied to all individual subjets before 147 /// deciding which ones to keep. It takes precedence over a non-zero rho. 148 const FunctionOfPseudoJet<PseudoJet> * subtractor() const{ return _subtractor;} 145 149 146 150 /// runs the filtering and sets kept and rejected to be the jets of interest -
external/fastjet/tools/GridMedianBackgroundEstimator.hh
rd091310 r1d208a2 3 3 4 4 //FJSTARTHEADER 5 // $Id: GridMedianBackgroundEstimator.hh 3 778 2014-12-24 09:28:09Z salam $5 // $Id: GridMedianBackgroundEstimator.hh 3969 2015-09-21 08:57:59Z salam $ 6 6 // 7 7 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 194 194 /// determination of rho_m. 195 195 /// 196 /// Note that support for sigma_m is automatic i sone has sigma and196 /// Note that support for sigma_m is automatic if one has sigma and 197 197 /// rho_m support. 198 198 bool has_rho_m() const {return _enable_rho_m;} -
external/fastjet/tools/JetMedianBackgroundEstimator.cc
rd091310 r1d208a2 1 1 //FJSTARTHEADER 2 // $Id: JetMedianBackgroundEstimator.cc 3517 2014-08-01 14:23:13Z soyez $2 // $Id: JetMedianBackgroundEstimator.cc 4047 2016-03-03 13:21:49Z soyez $ 3 3 // 4 4 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 194 194 195 195 _csi = jets[0].structure_shared_ptr(); 196 ClusterSequenceStructure * csi = dynamic_cast<ClusterSequenceStructure*>(_csi ());196 ClusterSequenceStructure * csi = dynamic_cast<ClusterSequenceStructure*>(_csi.get()); 197 197 const ClusterSequenceAreaBase * csab = csi->validated_csab(); 198 198 … … 467 467 468 468 // determine the number of empty jets 469 const ClusterSequenceAreaBase * csab = (dynamic_cast<ClusterSequenceStructure*>(_csi ()))->validated_csab();469 const ClusterSequenceAreaBase * csab = (dynamic_cast<ClusterSequenceStructure*>(_csi.get()))->validated_csab(); 470 470 if (csab->has_explicit_ghosts()) { 471 471 _empty_area = 0.0; … … 503 503 // throw an error otherwise 504 504 void JetMedianBackgroundEstimator::_check_csa_alive() const{ 505 ClusterSequenceStructure* csa = dynamic_cast<ClusterSequenceStructure*>(_csi ());505 ClusterSequenceStructure* csa = dynamic_cast<ClusterSequenceStructure*>(_csi.get()); 506 506 if (csa == 0) { 507 507 throw Error("JetMedianBackgroundEstimator: there is no cluster sequence associated with the JetMedianBackgroundEstimator"); 508 508 } 509 if (! dynamic_cast<ClusterSequenceStructure*>(_csi ())->has_associated_cluster_sequence())509 if (! dynamic_cast<ClusterSequenceStructure*>(_csi.get())->has_associated_cluster_sequence()) 510 510 throw Error("JetMedianBackgroundEstimator: modifications are no longer possible as the underlying ClusterSequence has gone out of scope"); 511 511 } … … 521 521 // cluster sequence 522 522 if (_jet_def.jet_algorithm() == undefined_jet_algorithm){ 523 const ClusterSequence * cs = dynamic_cast<ClusterSequenceStructure*>(_csi ())->validated_cs();523 const ClusterSequence * cs = dynamic_cast<ClusterSequenceStructure*>(_csi.get())->validated_cs(); 524 524 jet_def = &(cs->jet_def()); 525 525 } -
external/fastjet/tools/Recluster.hh
rd091310 r1d208a2 2 2 #define __FASTJET_TOOLS_RECLUSTER_HH__ 3 3 4 // $Id: Recluster.hh 37 60 2014-12-19 10:05:10Z soyez$4 // $Id: Recluster.hh 3753 2014-12-17 15:19:55Z salam $ 5 5 // 6 6 // Copyright (c) 2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez -
external/fastjet/tools/Subtractor.cc
rd091310 r1d208a2 1 1 //FJSTARTHEADER 2 // $Id: Subtractor.cc 3 670 2014-09-08 14:17:59Z soyez$2 // $Id: Subtractor.cc 3970 2015-09-21 10:31:17Z salam $ 3 3 // 4 4 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 39 39 const double Subtractor::_invalid_rho = -numeric_limits<double>::infinity(); 40 40 41 LimitedWarning Subtractor::_unused_rho_m_warning; 41 42 42 43 //---------------------------------------------------------------------- -
external/fastjet/tools/Subtractor.hh
rd091310 r1d208a2 1 1 //FJSTARTHEADER 2 // $Id: Subtractor.hh 3 670 2014-09-08 14:17:59Z soyez$2 // $Id: Subtractor.hh 3970 2015-09-21 10:31:17Z salam $ 3 3 // 4 4 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 203 203 static const double _invalid_rho; 204 204 205 mutableLimitedWarning _unused_rho_m_warning;205 static LimitedWarning _unused_rho_m_warning; 206 206 }; 207 207
Note:
See TracChangeset
for help on using the changeset viewer.