@@ -108,8 +108,7 @@ DECLARE_SOA_COLUMN(IsEventReject, isEventReject, int);
108108DECLARE_SOA_COLUMN (RunNumber, runNumber, int );
109109} // namespace full
110110
111- DECLARE_SOA_TABLE (HfCandTccFulls, " AOD" , " HFCANDTCCFULL" ,
112- full::CollisionId,
111+ DECLARE_SOA_TABLE (HfCandTccLites, " AOD" , " HFCANDTCCLITE" ,
113112 full::PtD1,
114113 full::PtD2,
115114 full::PtPi,
@@ -161,7 +160,7 @@ DECLARE_SOA_TABLE(HfCandTccFulls, "AOD", "HFCANDTCCFULL",
161160 full::NTPCChi2NClSoftPi,
162161 full::CentOfCand);
163162
164- DECLARE_SOA_TABLE (HfCandD0FullEvs , " AOD" , " HFCANDD0FULLEV " ,
163+ DECLARE_SOA_TABLE (HfCandTccFullEvs , " AOD" , " HFCANDTCCFULLEV " ,
165164 full::CollisionId,
166165 collision::NumContrib,
167166 collision::PosX,
@@ -173,10 +172,10 @@ DECLARE_SOA_TABLE(HfCandD0FullEvs, "AOD", "HFCANDD0FULLEV",
173172
174173// / Writes the full information in an output TTree
175174struct HfTreeCreatorTccToD0D0Pi {
176- Produces<o2::aod::HfCandTccFulls> rowCandidateFull ;
177- Produces<o2::aod::HfCandD0FullEvs > rowCandidateFullEvents;
175+ Produces<o2::aod::HfCandTccLites> rowCandidateLite ;
176+ Produces<o2::aod::HfCandTccFullEvs > rowCandidateFullEvents;
178177
179- Configurable<float > ptMinSoftPion{" ptMinSoftPion" , 0.0 , " Min pt for the softpion " };
178+ Configurable<float > ptMinSoftPion{" ptMinSoftPion" , 0.0 , " Min pt for the soft pion " };
180179 Configurable<bool > usePionIsGlobalTrackWoDCA{" usePionIsGlobalTrackWoDCA" , true , " check isGlobalTrackWoDCA status for pions" };
181180
182181 Configurable<float > softPiEtaMax{" softPiEtaMax" , 0 .9f , " Soft pion max value for pseudorapidity (abs vale)" };
@@ -273,7 +272,6 @@ struct HfTreeCreatorTccToD0D0Pi {
273272 aod::TrackAssoc const & trackIndices,
274273 TrkType const & track, aod::BCs const &)
275274 {
276- // Filling event properties
277275 for (const auto & candidateD1 : candidates) {
278276 for (auto candidateD2 = candidateD1 + 1 ; candidateD2 != candidates.end (); ++candidateD2) {
279277 for (const auto & trackId : trackIndices) {
@@ -373,8 +371,7 @@ struct HfTreeCreatorTccToD0D0Pi {
373371 continue ;
374372 }
375373
376- rowCandidateFull (
377- candidateD1.collisionId (),
374+ rowCandidateLite (
378375 candidateD1.pt (),
379376 candidateD2.pt (),
380377 trackPion.pt (),
@@ -436,8 +433,8 @@ struct HfTreeCreatorTccToD0D0Pi {
436433 TracksWPid const & tracks,
437434 aod::BCs const & bcs)
438435 {
436+ rowCandidateFullEvents.reserve (collisions.size ());
439437 for (const auto & collision : collisions) {
440- rowCandidateFullEvents.reserve (collisions.size ());
441438 fillEvent (collision, 0 , collision.bc ().runNumber ());
442439 auto thisCollId = collision.globalIndex ();
443440 auto candwD0ThisColl = candidates.sliceBy (candsD0PerCollisionWithMl, thisCollId);
@@ -455,8 +452,8 @@ struct HfTreeCreatorTccToD0D0Pi {
455452 TracksWPid const & tracks,
456453 aod::BCs const & bcs)
457454 {
455+ rowCandidateFullEvents.reserve (collisions.size ());
458456 for (const auto & collision : collisions) {
459- rowCandidateFullEvents.reserve (collisions.size ());
460457 fillEvent (collision, 0 , collision.bc ().runNumber ());
461458 auto thisCollId = collision.globalIndex ();
462459 auto candwD0ThisColl = candidates.sliceBy (candsD0PerCollisionWithMl, thisCollId);
@@ -474,8 +471,8 @@ struct HfTreeCreatorTccToD0D0Pi {
474471 TracksWPid const & tracks,
475472 aod::BCs const & bcs)
476473 {
474+ rowCandidateFullEvents.reserve (collisions.size ());
477475 for (const auto & collision : collisions) {
478- rowCandidateFullEvents.reserve (collisions.size ());
479476 fillEvent (collision, 0 , collision.bc ().runNumber ());
480477 auto thisCollId = collision.globalIndex ();
481478 auto candwD0ThisColl = candidates.sliceBy (candsD0PerCollisionWithMl, thisCollId);
0 commit comments