Skip to content

Commit ac7e7c5

Browse files
authored
small fix to extract the MC truth information before filling histograms (#307)
* small fix to extract the MC truth information before filling histograms * clang fix
1 parent fa8b983 commit ac7e7c5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

PWGDQ/TableProducer/tableMakerMC.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "Framework/AnalysisTask.h"
2020
#include "Framework/AnalysisDataModel.h"
2121
#include "Framework/ASoAHelpers.h"
22+
#include "Framework/ASoA.h"
2223
#include "Framework/DataTypes.h"
2324
#include "Framework/runDataProcessing.h"
2425
#include "Common/DataModel/Multiplicity.h"
@@ -349,6 +350,8 @@ struct TableMakerMC {
349350
trackFilteringTag = uint64_t(0);
350351
trackTempFilterMap = uint8_t(0);
351352
VarManager::FillTrack<TTrackFillMap>(track);
353+
auto mctrack = track.mcParticle();
354+
VarManager::FillTrack<gkParticleMCFillMap>(mctrack);
352355

353356
if (fConfigDetailedQA) {
354357
fHistMan->FillHistClass("TrackBarrel_BeforeCuts", VarManager::fgValues);
@@ -386,9 +389,6 @@ struct TableMakerMC {
386389
}
387390
trackFilteringTag |= (uint64_t(trackTempFilterMap) << 7); // BIT7-14: user track filters
388391

389-
auto mctrack = track.mcParticle();
390-
VarManager::FillTrack<gkParticleMCFillMap>(mctrack);
391-
392392
mcflags = 0;
393393
i = 0; // runs over the MC signals
394394
int j = 0; // runs over the track cuts

0 commit comments

Comments
 (0)