Skip to content
Snippets Groups Projects

MuonSimHit - Add prefixes to the sim hit Identifiers

Merged Johannes Junggeburth requested to merge jojungge/athena:SimHitDecors into main
All threads resolved!
4 files
+ 47
22
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -6,21 +6,29 @@
#include "xAODCore/AuxStoreAccessorMacros.h"
// Local include(s):
#include "xAODMuonSimHit/versions/MuonSimHitAuxContainer_v1.h"
namespace{
static const std::string preFixStr{"MuSim_"};
}
#define SIM_AUXVARIABLE(VAR) \
do { \
static const std::string varName =preFixStr+#VAR; \
static const auxid_t auxid = getAuxID(varName, VAR); \
regAuxVar(auxid, varName, VAR); \
} while (false);
namespace xAOD {
MuonSimHitAuxContainer_v1::MuonSimHitAuxContainer_v1()
: AuxContainerBase() {
AUX_MEASUREMENTVAR(localPosition, 3);
AUX_MEASUREMENTVAR(localDirection, 3);
AUX_VARIABLE(stepLength);
AUX_VARIABLE(globalTime);
AUX_VARIABLE(pdgId);
AUX_VARIABLE(identifier);
AUX_VARIABLE(energyDeposit);
AUX_VARIABLE(kineticEnergy);
AUX_VARIABLE(mcEventIndex);
AUX_VARIABLE(mcBarcode);
AUX_VARIABLE(mcCollectionType);
SIM_AUXVARIABLE(stepLength);
SIM_AUXVARIABLE(globalTime);
SIM_AUXVARIABLE(pdgId);
SIM_AUXVARIABLE(identifier);
SIM_AUXVARIABLE(energyDeposit);
SIM_AUXVARIABLE(kineticEnergy);
SIM_AUXVARIABLE(mcEventIndex);
SIM_AUXVARIABLE(mcBarcode);
SIM_AUXVARIABLE(mcCollectionType);
}
} // namespace xAOD
\ No newline at end of file
} // namespace xAOD
#undef SIM_AUXVARIABLE
\ No newline at end of file
Loading