Changeset 35cdc46 in git for external/fastjet/PseudoJet.hh
- Timestamp:
- Sep 3, 2014, 3:18:54 PM (10 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- be2222c
- Parents:
- 5b5a56b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/PseudoJet.hh
r5b5a56b r35cdc46 1 // STARTHEADER2 // $Id: PseudoJet.hh 3 111 2013-05-04 08:17:27Z salam $1 //FJSTARTHEADER 2 // $Id: PseudoJet.hh 3566 2014-08-11 15:36:34Z salam $ 3 3 // 4 // Copyright (c) 2005-201 1, Matteo Cacciari, Gavin P. Salam and Gregory Soyez4 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez 5 5 // 6 6 //---------------------------------------------------------------------- … … 13 13 // 14 14 // The algorithms that underlie FastJet have required considerable 15 // development and are described in hep-ph/0512210. If you use 15 // development. They are described in the original FastJet paper, 16 // hep-ph/0512210 and in the manual, arXiv:1111.6097. If you use 16 17 // FastJet as part of work towards a scientific publication, please 17 // include a citation to the FastJet paper. 18 // quote the version you use and include a citation to the manual and 19 // optionally also to hep-ph/0512210. 18 20 // 19 21 // FastJet is distributed in the hope that it will be useful, … … 25 27 // along with FastJet. If not, see <http://www.gnu.org/licenses/>. 26 28 //---------------------------------------------------------------------- 27 // ENDHEADER29 //FJENDHEADER 28 30 29 31 … … 571 573 /// structure type 572 574 /// 573 /// If there is no s ructure associated, an Error is thrown.575 /// If there is no structure associated, an Error is thrown. 574 576 /// If the type is not met, a std::bad_cast error is thrown. 575 577 template<typename StructureType> … … 664 666 /// an Error is thrown if this PseudoJet has no currently valid 665 667 /// associated ClusterSequence 666 std::vector<PseudoJet> exclusive_subjets (const double &dcut) const;668 std::vector<PseudoJet> exclusive_subjets (const double dcut) const; 667 669 668 670 /// return the size of exclusive_subjets(...); still n ln n with same … … 672 674 /// an Error is thrown if this PseudoJet has no currently valid 673 675 /// associated ClusterSequence 674 int n_exclusive_subjets(const double &dcut) const;676 int n_exclusive_subjets(const double dcut) const; 675 677 676 678 /// return the list of subjets obtained by unclustering the supplied … … 694 696 std::vector<PseudoJet> exclusive_subjets_up_to (int nsub) const; 695 697 696 /// returnthe dij that was present in the merging nsub+1 -> nsub698 /// Returns the dij that was present in the merging nsub+1 -> nsub 697 699 /// subjets inside this jet. 700 /// 701 /// Returns 0 if there were nsub or fewer constituents in the jet. 698 702 /// 699 703 /// an Error is thrown if this PseudoJet has no currently valid … … 701 705 double exclusive_subdmerge(int nsub) const; 702 706 703 /// returnthe maximum dij that occurred in the whole event at the707 /// Returns the maximum dij that occurred in the whole event at the 704 708 /// stage that the nsub+1 -> nsub merge of subjets occurred inside 705 709 /// this jet. 710 /// 711 /// Returns 0 if there were nsub or fewer constituents in the jet. 706 712 /// 707 713 /// an Error is thrown if this PseudoJet has no currently valid … … 802 808 /// set cached rapidity and phi values 803 809 void _set_rap_phi() const; 810 811 // needed for operator* to have access to _ensure_valid_rap_phi() 812 friend PseudoJet operator*(double, const PseudoJet &); 804 813 }; 805 814 … … 825 834 /// momentum components are equal to val (=0.0) 826 835 bool operator==(const PseudoJet & jet, const double val); 836 inline bool operator==(const double val, const PseudoJet & jet) {return jet == val;} 827 837 828 838 /// Can only be used with val=0 and tests whether at least one of the 829 839 /// four momentum components is different from val (=0.0) 830 inline bool operator!=(const PseudoJet & a, const double & val) {return !(a==val);} 840 inline bool operator!=(const PseudoJet & a, const double val) {return !(a==val);} 841 inline bool operator!=( const double val, const PseudoJet & a) {return !(a==val);} 831 842 832 843 inline double dot_product(const PseudoJet & a, const PseudoJet & b) { … … 881 892 _ref_values = reference_values; 882 893 }; 883 inline int operator() (const int & i1, const int &i2) const {894 inline int operator() (const int i1, const int i2) const { 884 895 return (*_ref_values)[i1] < (*_ref_values)[i2]; 885 896 };
Note:
See TracChangeset
for help on using the changeset viewer.