Skip to content

Commit 73b8812

Browse files
authored
Add files via upload
1 parent f62d934 commit 73b8812

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

PWGDQ/TableProducer/tableMakerMC_withAssoc.cxx

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,6 @@ struct TableMakerMC {
260260
std::array<double, 1> cutValues;
261261
std::vector<int> cutDirMl;
262262

263-
std::unordered_set<int> labelsToReserve;
264-
265263
void init(o2::framework::InitContext& context)
266264
{
267265
// Check whether barrel or muon are enabled
@@ -543,24 +541,6 @@ struct TableMakerMC {
543541
if (mcflags == 0) {
544542
continue;
545543
}
546-
547-
auto mcCollision = mctrack.template mcCollision_as<MyEventsMcWithMults>();
548-
549-
bool isjpsi = false;
550-
if(mctrack.pdgCode() == 443) {
551-
isjpsi = true;
552-
}
553-
554-
//add rapidity and pT cuts for mcparticles
555-
if(isjpsi && (fConfigJpsiMinPtMC.value > 0 && std::abs(mctrack.pt()) < fConfigJpsiMinPtMC.value)) continue;
556-
if(isjpsi && (fConfigJpsiMaxPtMC.value > 0 && std::abs(mctrack.pt()) > fConfigJpsiMaxPtMC.value)) continue;
557-
if(isjpsi && (fConfigTrackMaxRapidityMC.value > 0 && std::abs(mctrack.y()) > fConfigTrackMaxRapidityMC.value)) continue;
558-
559-
//Save jpsi events that satisfied the cut conditions
560-
if(fConfigApplyselctionMC && isjpsi && ((std::abs(mctrack.pt()) > fConfigJpsiMinPtMC.value) && (std::abs(mctrack.pt()) < fConfigJpsiMaxPtMC.value) && (std::abs(mctrack.y()) < fConfigTrackMaxRapidityMC.value)))
561-
{
562-
labelsToReserve.insert(mcCollision.globalIndex());
563-
}
564544

565545
// If this MC track was not already added to the map, add it now
566546
if (fLabelsMap.find(mctrack.globalIndex()) == fLabelsMap.end()) {
@@ -785,12 +765,6 @@ struct TableMakerMC {
785765
// However, in data analysis one should loop over associations, so this one should not be used.
786766
// In the case of Run2-like analysis, there will be no associations, so this ID will be the one originally assigned in the AO2Ds (updated for the skims)
787767
uint32_t reducedEventIdx = fCollIndexMap[track.collisionId()];
788-
789-
// apply the event selection for reconstrcted tracks
790-
if (fConfigApplyselctionMC && track.has_mcParticle()) {
791-
auto mcCollision = collision.template mcCollision_as<MyEventsMcWithMults>();
792-
if ((labelsToReserve.count(mcCollision.globalIndex()) == 0)) continue;
793-
}
794768

795769
// NOTE: trackBarrelInfo stores the index of the collision as in AO2D (for use in some cases where the analysis on skims is done
796770
// in workflows where the original AO2Ds are also present)

0 commit comments

Comments
 (0)