|
19 | 19 | #include "CommonConstants/PhysicsConstants.h" |
20 | 20 | #include "CommonConstants/GeomConstants.h" |
21 | 21 | #include "CommonConstants/ZDCConstants.h" |
22 | | -#include "SimulationDataFormat/MCGenStatus.h" |
| 22 | +#include "SimulationDataFormat/MCGenProperties.h" |
23 | 23 |
|
24 | 24 | using namespace o2::constants::math; |
25 | 25 |
|
@@ -1271,13 +1271,20 @@ namespace mccollision |
1271 | 1271 | { |
1272 | 1272 | DECLARE_SOA_INDEX_COLUMN(BC, bc); //! BC index |
1273 | 1273 | // TODO enum to be added to O2 |
1274 | | -DECLARE_SOA_COLUMN(GeneratorsID, generatorsID, short); //! |
| 1274 | +DECLARE_SOA_COLUMN(GeneratorsID, generatorsID, short); //! disentangled generator IDs should be accessed from dynamic columns using getGenId, getCocktailId and getSourceId |
1275 | 1275 | DECLARE_SOA_COLUMN(PosX, posX, float); //! X vertex position in cm |
1276 | 1276 | DECLARE_SOA_COLUMN(PosY, posY, float); //! Y vertex position in cm |
1277 | 1277 | DECLARE_SOA_COLUMN(PosZ, posZ, float); //! Z vertex position in cm |
1278 | 1278 | DECLARE_SOA_COLUMN(T, t, float); //! Collision time relative to given bc in ns |
1279 | 1279 | DECLARE_SOA_COLUMN(Weight, weight, float); //! MC weight |
1280 | 1280 | DECLARE_SOA_COLUMN(ImpactParameter, impactParameter, float); //! Impact parameter for A-A |
| 1281 | +DECLARE_SOA_DYNAMIC_COLUMN(GetGenId, getGenId, //! The global generator ID which might have been assigned by the user |
| 1282 | + [](short generatorsID) -> int { return o2::mcgenid::getGeneratorId(generatorsID); }); |
| 1283 | +DECLARE_SOA_DYNAMIC_COLUMN(GetCocktailId, getCocktailId, //! A specific cocktail ID in case the generator consisted of multiple cocktail constituents |
| 1284 | + [](short generatorsID) -> int { return o2::mcgenid::getCocktailId(generatorsID); }); |
| 1285 | +DECLARE_SOA_DYNAMIC_COLUMN(GetSourceId, getSourceId, //! The source ID to differentiate between signals and background in an embedding simulation |
| 1286 | + [](short generatorsID) -> int { return o2::mcgenid::getSourceId(generatorsID); }); |
| 1287 | + |
1281 | 1288 | } // namespace mccollision |
1282 | 1289 |
|
1283 | 1290 | DECLARE_SOA_TABLE(McCollisions, "AOD", "MCCOLLISION", //! MC collision table |
|
0 commit comments