Changes in external/fastjet/WrappedStructure.hh [1d208a2:35cdc46] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/WrappedStructure.hh
r1d208a2 r35cdc46 1 1 //FJSTARTHEADER 2 // $Id: WrappedStructure.hh 4047 2016-03-03 13:21:49Z soyez$2 // $Id: WrappedStructure.hh 3433 2014-07-23 08:17:03Z salam $ 3 3 // 4 4 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 57 57 WrappedStructure(const SharedPtr<PseudoJetStructureBase> & to_be_shared) 58 58 : _structure(to_be_shared){ 59 if (!_structure )59 if (!_structure()) 60 60 throw Error("Trying to construct a wrapped structure around an empty (NULL) structure"); 61 61 } … … 65 65 66 66 /// description 67 virtual std::string description() const FASTJET_OVERRIDE{67 virtual std::string description() const{ 68 68 return "PseudoJet wrapping the structure ("+_structure->description()+")"; 69 69 } … … 76 76 //------------------------------------------------------------- 77 77 /// returns true if there is an associated ClusterSequence 78 virtual bool has_associated_cluster_sequence() const FASTJET_OVERRIDE{78 virtual bool has_associated_cluster_sequence() const { 79 79 return _structure->has_associated_cluster_sequence(); 80 80 } … … 82 82 /// get a (const) pointer to the parent ClusterSequence (NULL if 83 83 /// inexistent) 84 virtual const ClusterSequence* associated_cluster_sequence() const FASTJET_OVERRIDE{84 virtual const ClusterSequence* associated_cluster_sequence() const{ 85 85 return _structure->associated_cluster_sequence(); 86 86 } … … 88 88 /// returns true if this PseudoJet has an associated and still 89 89 /// valid ClusterSequence. 90 virtual bool has_valid_cluster_sequence() const FASTJET_OVERRIDE{90 virtual bool has_valid_cluster_sequence() const { 91 91 return _structure->has_valid_cluster_sequence(); 92 92 } … … 94 94 /// if the jet has a valid associated cluster sequence then return a 95 95 /// pointer to it; otherwise throw an error 96 virtual const ClusterSequence * validated_cs() const FASTJET_OVERRIDE{96 virtual const ClusterSequence * validated_cs() const{ 97 97 return _structure->validated_cs(); 98 98 } … … 100 100 /// if the jet has valid area information then return a pointer to 101 101 /// the associated ClusterSequenceAreaBase object; otherwise throw an error 102 virtual const ClusterSequenceAreaBase * validated_csab() const FASTJET_OVERRIDE{102 virtual const ClusterSequenceAreaBase * validated_csab() const{ 103 103 return _structure->validated_csab(); 104 104 } … … 120 120 /// 121 121 /// By default, throws an Error 122 virtual bool has_partner(const PseudoJet &reference, PseudoJet &partner) const FASTJET_OVERRIDE{122 virtual bool has_partner(const PseudoJet &reference, PseudoJet &partner) const{ 123 123 return _structure->has_partner(reference, partner); 124 124 } … … 129 129 /// 130 130 /// By default, throws an Error 131 virtual bool has_child(const PseudoJet &reference, PseudoJet &child) const FASTJET_OVERRIDE{131 virtual bool has_child(const PseudoJet &reference, PseudoJet &child) const{ 132 132 return _structure->has_child(reference, child); 133 133 } … … 138 138 /// 139 139 /// By default, throws an Error 140 virtual bool has_parents(const PseudoJet &reference, 141 PseudoJet &parent1, PseudoJet &parent2) const FASTJET_OVERRIDE{ 140 virtual bool has_parents(const PseudoJet &reference, PseudoJet &parent1, PseudoJet &parent2) const{ 142 141 return _structure->has_parents(reference, parent1, parent2); 143 142 } … … 147 146 /// 148 147 /// By default, throws an Error 149 virtual bool object_in_jet(const PseudoJet &reference, 150 const PseudoJet &jet) const FASTJET_OVERRIDE{ 148 virtual bool object_in_jet(const PseudoJet &reference, const PseudoJet &jet) const{ 151 149 return _structure->object_in_jet(reference, jet); 152 150 } … … 156 154 /// 157 155 /// false by default 158 virtual bool has_constituents() const FASTJET_OVERRIDE{156 virtual bool has_constituents() const { 159 157 return _structure->has_constituents(); 160 158 } … … 163 161 /// 164 162 /// By default, throws an Error 165 virtual std::vector<PseudoJet> constituents(const PseudoJet &reference) const FASTJET_OVERRIDE{163 virtual std::vector<PseudoJet> constituents(const PseudoJet &reference) const{ 166 164 return _structure->constituents(reference); 167 165 } 168 166 169 167 /// return true if the structure supports exclusive_subjets. 170 virtual bool has_exclusive_subjets() const FASTJET_OVERRIDE{168 virtual bool has_exclusive_subjets() const { 171 169 return _structure->has_exclusive_subjets(); 172 170 } … … 182 180 /// 183 181 /// By default, throws an Error 184 virtual std::vector<PseudoJet> exclusive_subjets(const PseudoJet &reference, 185 const double & dcut) const FASTJET_OVERRIDE{ 182 virtual std::vector<PseudoJet> exclusive_subjets(const PseudoJet &reference, const double & dcut) const{ 186 183 return _structure->exclusive_subjets(reference, dcut); 187 184 } … … 192 189 /// 193 190 /// By default, throws an Error 194 virtual int n_exclusive_subjets(const PseudoJet &reference, 195 const double & dcut) const FASTJET_OVERRIDE{ 191 virtual int n_exclusive_subjets(const PseudoJet &reference, const double & dcut) const{ 196 192 return _structure->n_exclusive_subjets(reference, dcut); 197 193 } … … 202 198 /// 203 199 /// By default, throws an Error 204 virtual std::vector<PseudoJet> exclusive_subjets_up_to (const PseudoJet &reference, 205 int nsub) const FASTJET_OVERRIDE{ 200 virtual std::vector<PseudoJet> exclusive_subjets_up_to (const PseudoJet &reference, int nsub) const{ 206 201 return _structure->exclusive_subjets_up_to (reference, nsub); 207 202 } … … 211 206 /// 212 207 /// By default, throws an Error 213 virtual double exclusive_subdmerge(const PseudoJet &reference, int nsub) const FASTJET_OVERRIDE{208 virtual double exclusive_subdmerge(const PseudoJet &reference, int nsub) const{ 214 209 return _structure->exclusive_subdmerge(reference, nsub); 215 210 } … … 220 215 /// 221 216 /// By default, throws an Error 222 virtual double exclusive_subdmerge_max(const PseudoJet &reference, int nsub) const FASTJET_OVERRIDE{217 virtual double exclusive_subdmerge_max(const PseudoJet &reference, int nsub) const{ 223 218 return _structure->exclusive_subdmerge_max(reference, nsub); 224 219 } … … 231 226 /// 232 227 /// false by default 233 virtual bool has_pieces(const PseudoJet &reference) const FASTJET_OVERRIDE{228 virtual bool has_pieces(const PseudoJet &reference) const { 234 229 return _structure->has_pieces(reference); 235 230 } … … 238 233 /// 239 234 /// By default, throws an Error 240 virtual std::vector<PseudoJet> pieces(const PseudoJet &reference) const FASTJET_OVERRIDE{235 virtual std::vector<PseudoJet> pieces(const PseudoJet &reference) const{ 241 236 return _structure->pieces(reference); 242 237 } … … 249 244 /// 250 245 /// false by default 251 virtual bool has_area() const FASTJET_OVERRIDE{246 virtual bool has_area() const { 252 247 return _structure->has_area(); 253 248 } … … 256 251 /// 257 252 /// By default, throws an Error 258 virtual double area(const PseudoJet &reference) const FASTJET_OVERRIDE{253 virtual double area(const PseudoJet &reference) const{ 259 254 return _structure->area(reference); 260 255 } … … 264 259 /// 265 260 /// By default, throws an Error 266 virtual double area_error(const PseudoJet &reference) const FASTJET_OVERRIDE{261 virtual double area_error(const PseudoJet &reference) const{ 267 262 return _structure->area_error(reference); 268 263 } … … 271 266 /// 272 267 /// By default, throws an Error 273 virtual PseudoJet area_4vector(const PseudoJet &reference) const FASTJET_OVERRIDE{268 virtual PseudoJet area_4vector(const PseudoJet &reference) const{ 274 269 return _structure->area_4vector(reference); 275 270 } … … 278 273 /// 279 274 /// By default, throws an Error 280 virtual bool is_pure_ghost(const PseudoJet &reference) const FASTJET_OVERRIDE{275 virtual bool is_pure_ghost(const PseudoJet &reference) const{ 281 276 return _structure->is_pure_ghost(reference); 282 277 }
Note:
See TracChangeset
for help on using the changeset viewer.