Commit 62fcd54f authored by Frank Gaede's avatar Frank Gaede
Browse files

make compatible with EDM4hep HEAD (mutable classes)

  - use
    #define use_new_EDM4hep 0/1
    to toggle between old and new EDM4hep
parent 80341611
......@@ -5,6 +5,16 @@
#include "G4NistManager.hh"
#include "G4Material.hh"
#include "G4SystemOfUnits.hh"
#include "edm4hep/SimCalorimeterHitCollection.h"
/// typdef for EDM4hep SimCalorimeterHit class - use Mutable for recent (Jan 2022)
#define use_new_EDM4hep 1
#if use_new_EDM4hep
typedef edm4hep::MutableSimCalorimeterHit EDM4hep_SimCalorimterHit;
#else
typedef edm4hep::SimCalorimeterHit EDM4hep_SimCalorimterHit;
#endif
/** Global Configuration parameters for SimpleCalo example
......
......@@ -198,7 +198,7 @@ void SimpleCaloEDM4hepEventAction::EndOfEventAction(const G4Event *evt)
mcp.setCharge( pparticle->GetCharge() ) ;
std::map<unsigned long long, edm4hep::SimCalorimeterHit> hits ;
std::map<unsigned long long, EDM4hep_SimCalorimterHit> hits ;
for (int i=0;i<n_hit;i++)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment