Changeset b9ae4c3 in git for external/fastjet/tools/JetMedianBackgroundEstimator.cc
- Timestamp:
- Sep 2, 2016, 3:46:14 PM (8 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- fa068d3
- Parents:
- ec5e04b (diff), 23389ff (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Pavel Demin <pavel-demin@…> (09/02/16 15:46:14)
- git-committer:
- GitHub <noreply@…> (09/02/16 15:46:14)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/tools/JetMedianBackgroundEstimator.cc
rec5e04b rb9ae4c3 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 }
Note:
See TracChangeset
for help on using the changeset viewer.