go-hep.org/x/hep@v0.38.1/cmd/podio-gen/testdata/datalayout.go (about) 1 // Automatically generated. DO NOT EDIT. 2 3 package podio 4 5 // SimpleStruct 6 type SimpleStruct struct { 7 X int32 8 Y int32 9 Z int32 10 P [4]int32 11 } 12 13 // NotSoSimpleStruct 14 type NotSoSimpleStruct struct { 15 Data SimpleStruct 16 } 17 18 // ex2::NamespaceStruct 19 type ex2_NamespaceStruct struct { 20 X int32 21 Y int32 22 } 23 24 // ex2::NamespaceInNamespaceStruct 25 type ex2_NamespaceInNamespaceStruct struct { 26 Data ex2_NamespaceStruct 27 } 28 29 // EventInfo 30 // Event info 31 type EventInfo struct { 32 Number int32 // event number 33 } 34 35 // ExampleHit 36 // Example Hit 37 type ExampleHit struct { 38 CellID uint64 // cellID 39 X float64 // x-coordinate 40 Y float64 // y-coordinate 41 Z float64 // z-coordinate 42 Energy float64 // measured energy deposit 43 } 44 45 // ExampleMC 46 // Example MC-particle 47 type ExampleMC struct { 48 Energy float64 // energy 49 PDG int32 // PDG code 50 Parents []*ExampleMC // parents 51 Daughters []*ExampleMC // daughters 52 } 53 54 // ExampleCluster 55 // Cluster 56 type ExampleCluster struct { 57 Energy float64 // cluster energy 58 Hits []*ExampleHit // hits contained in the cluster 59 Clusters []*ExampleCluster // sub clusters used to create this cluster 60 } 61 62 // ExampleReferencingType 63 // Referencing Type 64 type ExampleReferencingType struct { 65 Clusters []*ExampleCluster // some refs to Clusters 66 Refs []*ExampleReferencingType // refs into same type 67 } 68 69 // ExampleWithVectorMember 70 // Type with a vector member 71 type ExampleWithVectorMember struct { 72 Count []int32 // various ADC counts 73 } 74 75 // ExampleWithOneRelation 76 // Type with one relation member 77 type ExampleWithOneRelation struct { 78 Cluster *ExampleCluster // a particular cluster 79 } 80 81 // ExampleWithComponent 82 // Type with one component 83 type ExampleWithComponent struct { 84 Component NotSoSimpleStruct // a component 85 } 86 87 // ExampleForCyclicDependency1 88 // Type for cyclic dependency 89 type ExampleForCyclicDependency1 struct { 90 Ref *ExampleForCyclicDependency2 // a ref 91 } 92 93 // ExampleForCyclicDependency2 94 // Type for cyclic dependency 95 type ExampleForCyclicDependency2 struct { 96 Ref *ExampleForCyclicDependency1 // a ref 97 } 98 99 // ExampleWithString 100 // Type with a string 101 type ExampleWithString struct { 102 TheString string // the string 103 } 104 105 // ex42::ExampleWithNamespace 106 // Type with namespace and namespaced member 107 type ex42_ExampleWithNamespace struct { 108 Data ex2_NamespaceStruct // a component 109 } 110 111 // ex42::ExampleWithARelation 112 // Type with namespace and namespaced relation 113 type ex42_ExampleWithARelation struct { 114 Number float32 // just a number 115 Ref *ex42_ExampleWithNamespace // a ref in a namespace 116 Refs []*ex42_ExampleWithNamespace // multiple refs in a namespace 117 } 118 119 // ExampleWithArray 120 // Datatype with an array member 121 type ExampleWithArray struct { 122 ArrayStruct NotSoSimpleStruct // component that contains an array 123 MyArray [4]int32 // array-member without space to test regex 124 AnotherArray2 [4]int32 // array-member with space to test regex 125 Snail_case_array [4]int32 // snail case to test regex 126 Snail_case_Array3 [4]int32 // mixing things up for regex 127 StructArray [4]ex2_NamespaceStruct // an array containing structs 128 }