Skip to content

Commit eac1d18

Browse files
mhemmer-cernsawenzel
authored andcommitted
[EMCAL-888] Add versioning for McCaloLabels
1 parent 65e4348 commit eac1d18

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Framework/Core/include/Framework/AnalysisDataModel.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,13 +1139,17 @@ using McFwdTrackLabel = McFwdTrackLabels::iterator;
11391139

11401140
namespace mccalolabel
11411141
{
1142+
DECLARE_SOA_INDEX_COLUMN(McParticle, mcParticle); //! MC particle
11421143
DECLARE_SOA_ARRAY_INDEX_COLUMN(McParticle, mcParticle); //! Array of MC particles that deposited energy in this calo cell
11431144
DECLARE_SOA_COLUMN(McMask, mcMask, uint16_t); //! Bit mask to indicate detector mismatches (bit ON means mismatch). Bit 15: indicates negative label
11441145
DECLARE_SOA_COLUMN(AmplitudeA, amplitudeA, std::vector<float>); //! Energy fraction deposited by a particle inside this calo cell.
11451146
} // namespace mccalolabel
11461147

1147-
DECLARE_SOA_TABLE(McCaloLabels, "AOD", "MCCALOLABEL", //! Table joined to the calo table containing the MC index
1148-
mccalolabel::McParticleIds, mccalolabel::McMask, mccalolabel::AmplitudeA);
1148+
DECLARE_SOA_TABLE(McCaloLabels_000, "AOD", "MCCALOLABEL", //! Table joined to the calo table containing the MC index (version 000)
1149+
mccalolabel::McParticleId, mccalolabel::McMask);
1150+
DECLARE_SOA_TABLE_VERSIONED(McCaloLabels_001, "AOD", "MCCALOLABEL", 1, //! Table joined to the calo table containing multiple MC indeces and the amplitude fraction (version 001)
1151+
mccalolabel::McParticleIds, mccalolabel::McMask, mccalolabel::AmplitudeA);
1152+
using McCaloLabels = McCaloLabels_000;
11491153
using McCaloLabel = McCaloLabels::iterator;
11501154

11511155
namespace mccollisionlabel

0 commit comments

Comments
 (0)