1111#include  < edm4eic/ProtoClusterCollection.h> 
1212#include  < edm4eic/unit_system.h> 
1313#include  < edm4hep/CaloHitContributionCollection.h> 
14+ #include  < edm4hep/EDM4hepVersion.h> 
1415#include  < edm4hep/MCParticleCollection.h> 
1516#include  < edm4hep/RawCalorimeterHitCollection.h> 
1617#include  < edm4hep/SimCalorimeterHitCollection.h> 
18+ #if  EDM4HEP_BUILD_VERSION < EDM4HEP_VERSION(0, 99, 2)
1719#include  < edm4hep/Vector2i.h> 
20+ #endif 
1821#include  < edm4hep/Vector3d.h> 
1922#include  < edm4hep/Vector3f.h> 
2023#include  < spdlog/common.h> 
@@ -88,8 +91,10 @@ TEST_CASE("the calorimeter CoG algorithm runs", "[CalorimeterClusterRecoCoG]") {
8891                                      edm4hep::Vector3d (), //  edm4hep::Vector3d endpoint
8992                                      edm4hep::Vector3f (), //  edm4hep::Vector3f momentum
9093                                      edm4hep::Vector3f (), //  edm4hep::Vector3f momentumAtEndpoint
91-                                       edm4hep::Vector3f (), //  edm4hep::Vector3f spin
92-                                       edm4hep::Vector2i ()  //  edm4hep::Vector2i colorFlow
94+                                       edm4hep::Vector3f ()  //  edm4hep::Vector3f spin
95+ #if  EDM4HEP_BUILD_VERSION < EDM4HEP_VERSION(0, 99, 2)
96+                                       ,edm4hep::Vector2i () //  edm4hep::Vector2i colorFlow
97+ #endif 
9398  );
9499
95100  auto  mcpart12 = mcparts_coll.create (
@@ -103,8 +108,10 @@ TEST_CASE("the calorimeter CoG algorithm runs", "[CalorimeterClusterRecoCoG]") {
103108      edm4hep::Vector3d (),                                  //  edm4hep::Vector3d endpoint
104109      edm4hep::Vector3f (),                                  //  edm4hep::Vector3f momentum
105110      edm4hep::Vector3f (),                                  //  edm4hep::Vector3f momentumAtEndpoint
106-       edm4hep::Vector3f (),                                  //  edm4hep::Vector3f spin
107-       edm4hep::Vector2i ()                                   //  edm4hep::Vector2i colorFlow
111+       edm4hep::Vector3f ()                                   //  edm4hep::Vector3f spin
112+ #if  EDM4HEP_BUILD_VERSION < EDM4HEP_VERSION(0, 99, 2)
113+       ,edm4hep::Vector2i ()                                  //  edm4hep::Vector2i colorFlow
114+ #endif 
108115  );
109116
110117  mcpart12.addToParents (mcpart11);
@@ -161,8 +168,10 @@ TEST_CASE("the calorimeter CoG algorithm runs", "[CalorimeterClusterRecoCoG]") {
161168      edm4hep::Vector3d (),                                  //  edm4hep::Vector3d endpoint
162169      edm4hep::Vector3f (),                                  //  edm4hep::Vector3f momentum
163170      edm4hep::Vector3f (),                                  //  edm4hep::Vector3f momentumAtEndpoint
164-       edm4hep::Vector3f (),                                  //  edm4hep::Vector3f spin
165-       edm4hep::Vector2i ()                                   //  edm4hep::Vector2i colorFlow
171+       edm4hep::Vector3f ()                                  //  edm4hep::Vector3f spin
172+ #if  EDM4HEP_BUILD_VERSION < EDM4HEP_VERSION(0, 99, 2)
173+       ,edm4hep::Vector2i ()                                   //  edm4hep::Vector2i colorFlow
174+ #endif 
166175  );
167176
168177  auto  contrib2 = contribs_coll.create (0 ,                        //  int32_t PDG
0 commit comments