Repository navigation
additions for embedding #15836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
additions for embedding #15836
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -108,6 +108,8 @@ DECLARE_SOA_TABLE_VERSIONED(Collisions_001, "AOD", "COLLISION", 1, //! Time and | |
| collision::Flags, collision::Chi2, collision::NumContrib, | ||
| collision::CollisionTime, collision::CollisionTimeRes); | ||
|
|
||
| template <aod::is_origin_hash O> | ||
| using CollisionsFrom = Collisions_001From<O>; | ||
| using Collisions = Collisions_001; // current version | ||
| using Collision = Collisions::iterator; | ||
|
|
||
|
|
@@ -671,6 +673,8 @@ DECLARE_SOA_TABLE_VERSIONED(Run2TrackExtras_001, "AOD", "RUN2TRACKEXTRA", 1, //! | |
| track::ITSSignal, track::ITSSharedClusterMap, | ||
| track::ITSNSharedCls<track::ITSSharedClusterMap>); | ||
|
|
||
| template <aod::is_origin_hash O> | ||
| using TracksExtraFrom = TracksExtra_002From<O>; | ||
|
Comment on lines
+676
to
+677
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this needed for all tables which use the new feature?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The plan is to make this a part of the table declaration macro eventually, however, it would be much more involved, than just adding an alias. I am trying to find a way to avoid having to break the declarations in O2Physics. |
||
| using StoredTracksExtra = StoredTracksExtra_002; | ||
| using TracksExtra = TracksExtra_002; | ||
|
|
||
|
|
@@ -1918,6 +1922,8 @@ DECLARE_SOA_TABLE_VERSIONED(McCollisions_001, "AOD", "MCCOLLISION", 1, //! MC co | |
| mccollision::GetSubGeneratorId<mccollision::GeneratorsID>, | ||
| mccollision::GetSourceId<mccollision::GeneratorsID>); | ||
|
|
||
| template <aod::is_origin_hash O> | ||
| using McCollisionsFrom = McCollisions_001From<O>; | ||
| using McCollisions = McCollisions_001; | ||
| using McCollision = McCollisions::iterator; | ||
|
|
||
|
|
@@ -2048,6 +2054,9 @@ DECLARE_SOA_EXTENDED_TABLE(McParticles_001, StoredMcParticles_001, "EXMCPARTICLE | |
| mcparticle::P, | ||
| mcparticle::Y); | ||
|
|
||
| template <aod::is_origin_hash O> | ||
| using McParticlesFrom = McParticles_001From<O>; | ||
|
|
||
| using StoredMcParticles = StoredMcParticles_001; | ||
| using McParticles = McParticles_001; | ||
| using McParticle = McParticles::iterator; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed? Since
StoredBaseNameis already declared, you can useStoredBaseNameFrom<>for it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but that is for origin AOD1 isnt it? what if you want 3 versions of a table with AOD, AOD1 and EMB as origins?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In principle, with the new ability to set the origin explicitly, the staged declaration is not really needed.
From<EMB>is the same asFrom<AOD1>. Instead of declaring several types, this should be reworked into declaring a single type and predeclaring its aliases with AOD1 and EMB origins, for example.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok I will remove it then