Changeset 572 in svn for trunk/Utilities/HepMC/interface/GenVertex.h
- Timestamp:
- Nov 2, 2011, 5:39:26 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/HepMC/interface/GenVertex.h
r349 r572 24 24 #include "WeightContainer.h" 25 25 #include "SimpleVector.h" 26 #include "IteratorRange.h" 26 27 #include <iostream> 27 28 #include <iterator> … … 29 30 #include <set> 30 31 #include <algorithm> 32 #include <cstddef> 31 33 32 34 namespace HepMC { 33 35 34 /// type of iteration 35 enum IteratorRange { parents, children, family, 36 ancestors, descendants, relatives }; 36 class GenVertexParticleRange; 37 class GenParticleProductionRange; 38 class ConstGenParticleProductionRange; 39 class GenParticleEndRange; 40 class ConstGenParticleEndRange; 41 37 42 class GenParticle; 38 43 class GenEvent; … … 110 115 /// 111 116 /// The barcode is the vertex's reference number, every vertex in the 112 /// event has a unique barcode. Vertex barcodes are negative numbers, 113 /// particle barcodes are positive numbers. 117 /// event has a unique barcode. Vertex barcodes are negative numbers, 118 /// particle barcodes are positive numbers. 119 /// 120 /// Please note that the barcodes are intended for internal use within 121 /// HepMC as a unique identifier for the particles and vertices. 122 /// Using the barcode to encode extra information is an abuse of 123 /// the barcode data member and causes confusion among users. 124 /// 114 125 int barcode() const; //!< unique identifier 115 126 … … 121 132 /// const direct access to the weights container 122 133 const WeightContainer& weights() const; 134 135 /// particle range 136 GenVertexParticleRange particles( IteratorRange range = relatives ); 137 /// incoming particle range 138 GenParticleProductionRange particles_in( GenParticle&, IteratorRange range = relatives ); 139 /// incoming particle range 140 ConstGenParticleProductionRange particles_in( GenParticle const &, IteratorRange range = relatives ) const; 141 /// outgoing particle range 142 GenParticleEndRange particles_out( GenParticle&, IteratorRange range = relatives ); 143 /// outgoing particle range 144 ConstGenParticleEndRange particles_out( GenParticle const &, IteratorRange range = relatives ) const; 123 145 124 146 //////////////////// … … 197 219 /// root vertex of this iteration 198 220 const GenVertex* vertex_root() const; 221 private: 222 /// Pre-fix increment -- is not allowed 223 edge_iterator& operator--(void); 224 /// Post-fix increment -- is not allowed 225 edge_iterator operator--(int); 199 226 private: 200 227 const GenVertex* m_vertex; … … 275 302 recursive_v_iter ); 276 303 private: 304 /// Pre-fix increment -- is not allowed 305 vertex_iterator& operator--(void); 306 /// Post-fix increment -- is not allowed 307 vertex_iterator operator--(int); 308 309 private: 277 310 GenVertex* m_vertex; // the vertex associated to this iter 278 311 IteratorRange m_range;
Note:
See TracChangeset
for help on using the changeset viewer.