Changeset 1d208a2 in git for external/fastjet/WrappedStructure.hh
- Timestamp:
- Aug 30, 2016, 12:36:00 AM (8 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 6be4bc0
- Parents:
- d091310
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/WrappedStructure.hh
rd091310 r1d208a2 1 1 //FJSTARTHEADER 2 // $Id: WrappedStructure.hh 3433 2014-07-23 08:17:03Z salam$2 // $Id: WrappedStructure.hh 4047 2016-03-03 13:21:49Z soyez $ 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 {67 virtual std::string description() const FASTJET_OVERRIDE{ 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 {78 virtual bool has_associated_cluster_sequence() const FASTJET_OVERRIDE { 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 {84 virtual const ClusterSequence* associated_cluster_sequence() const FASTJET_OVERRIDE{ 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 {90 virtual bool has_valid_cluster_sequence() const FASTJET_OVERRIDE { 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 {96 virtual const ClusterSequence * validated_cs() const FASTJET_OVERRIDE{ 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 {102 virtual const ClusterSequenceAreaBase * validated_csab() const FASTJET_OVERRIDE{ 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 {122 virtual bool has_partner(const PseudoJet &reference, PseudoJet &partner) const FASTJET_OVERRIDE{ 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 {131 virtual bool has_child(const PseudoJet &reference, PseudoJet &child) const FASTJET_OVERRIDE{ 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, PseudoJet &parent1, PseudoJet &parent2) const{ 140 virtual bool has_parents(const PseudoJet &reference, 141 PseudoJet &parent1, PseudoJet &parent2) const FASTJET_OVERRIDE{ 141 142 return _structure->has_parents(reference, parent1, parent2); 142 143 } … … 146 147 /// 147 148 /// By default, throws an Error 148 virtual bool object_in_jet(const PseudoJet &reference, const PseudoJet &jet) const{ 149 virtual bool object_in_jet(const PseudoJet &reference, 150 const PseudoJet &jet) const FASTJET_OVERRIDE{ 149 151 return _structure->object_in_jet(reference, jet); 150 152 } … … 154 156 /// 155 157 /// false by default 156 virtual bool has_constituents() const {158 virtual bool has_constituents() const FASTJET_OVERRIDE{ 157 159 return _structure->has_constituents(); 158 160 } … … 161 163 /// 162 164 /// By default, throws an Error 163 virtual std::vector<PseudoJet> constituents(const PseudoJet &reference) const {165 virtual std::vector<PseudoJet> constituents(const PseudoJet &reference) const FASTJET_OVERRIDE{ 164 166 return _structure->constituents(reference); 165 167 } 166 168 167 169 /// return true if the structure supports exclusive_subjets. 168 virtual bool has_exclusive_subjets() const {170 virtual bool has_exclusive_subjets() const FASTJET_OVERRIDE{ 169 171 return _structure->has_exclusive_subjets(); 170 172 } … … 180 182 /// 181 183 /// By default, throws an Error 182 virtual std::vector<PseudoJet> exclusive_subjets(const PseudoJet &reference, const double & dcut) const{ 184 virtual std::vector<PseudoJet> exclusive_subjets(const PseudoJet &reference, 185 const double & dcut) const FASTJET_OVERRIDE{ 183 186 return _structure->exclusive_subjets(reference, dcut); 184 187 } … … 189 192 /// 190 193 /// By default, throws an Error 191 virtual int n_exclusive_subjets(const PseudoJet &reference, const double & dcut) const{ 194 virtual int n_exclusive_subjets(const PseudoJet &reference, 195 const double & dcut) const FASTJET_OVERRIDE{ 192 196 return _structure->n_exclusive_subjets(reference, dcut); 193 197 } … … 198 202 /// 199 203 /// By default, throws an Error 200 virtual std::vector<PseudoJet> exclusive_subjets_up_to (const PseudoJet &reference, int nsub) const{ 204 virtual std::vector<PseudoJet> exclusive_subjets_up_to (const PseudoJet &reference, 205 int nsub) const FASTJET_OVERRIDE{ 201 206 return _structure->exclusive_subjets_up_to (reference, nsub); 202 207 } … … 206 211 /// 207 212 /// By default, throws an Error 208 virtual double exclusive_subdmerge(const PseudoJet &reference, int nsub) const {213 virtual double exclusive_subdmerge(const PseudoJet &reference, int nsub) const FASTJET_OVERRIDE{ 209 214 return _structure->exclusive_subdmerge(reference, nsub); 210 215 } … … 215 220 /// 216 221 /// By default, throws an Error 217 virtual double exclusive_subdmerge_max(const PseudoJet &reference, int nsub) const {222 virtual double exclusive_subdmerge_max(const PseudoJet &reference, int nsub) const FASTJET_OVERRIDE{ 218 223 return _structure->exclusive_subdmerge_max(reference, nsub); 219 224 } … … 226 231 /// 227 232 /// false by default 228 virtual bool has_pieces(const PseudoJet &reference) const {233 virtual bool has_pieces(const PseudoJet &reference) const FASTJET_OVERRIDE { 229 234 return _structure->has_pieces(reference); 230 235 } … … 233 238 /// 234 239 /// By default, throws an Error 235 virtual std::vector<PseudoJet> pieces(const PseudoJet &reference) const {240 virtual std::vector<PseudoJet> pieces(const PseudoJet &reference) const FASTJET_OVERRIDE { 236 241 return _structure->pieces(reference); 237 242 } … … 244 249 /// 245 250 /// false by default 246 virtual bool has_area() const {251 virtual bool has_area() const FASTJET_OVERRIDE { 247 252 return _structure->has_area(); 248 253 } … … 251 256 /// 252 257 /// By default, throws an Error 253 virtual double area(const PseudoJet &reference) const {258 virtual double area(const PseudoJet &reference) const FASTJET_OVERRIDE{ 254 259 return _structure->area(reference); 255 260 } … … 259 264 /// 260 265 /// By default, throws an Error 261 virtual double area_error(const PseudoJet &reference) const {266 virtual double area_error(const PseudoJet &reference) const FASTJET_OVERRIDE{ 262 267 return _structure->area_error(reference); 263 268 } … … 266 271 /// 267 272 /// By default, throws an Error 268 virtual PseudoJet area_4vector(const PseudoJet &reference) const {273 virtual PseudoJet area_4vector(const PseudoJet &reference) const FASTJET_OVERRIDE{ 269 274 return _structure->area_4vector(reference); 270 275 } … … 273 278 /// 274 279 /// By default, throws an Error 275 virtual bool is_pure_ghost(const PseudoJet &reference) const {280 virtual bool is_pure_ghost(const PseudoJet &reference) const FASTJET_OVERRIDE{ 276 281 return _structure->is_pure_ghost(reference); 277 282 }
Note:
See TracChangeset
for help on using the changeset viewer.