Skip to content

Commit 191238b

Browse files
authored
[PWGCF] FemtoUniverse: Adding kNoSameBunchPileup and kIsGoodZvtxFT0vsPV cuts (#8301)
1 parent 5400364 commit 191238b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

PWGCF/FemtoUniverse/TableProducer/femtoUniverseProducerTask.cxx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@
1515
/// \author Zuzanna Chochulska, WUT Warsaw & CTU Prague, zchochul@cern.ch
1616
/// \author Malgorzata Janik, WUT Warsaw, majanik@cern.ch
1717

18+
#include <CCDB/BasicCCDBManager.h>
1819
#include <TDatabasePDG.h> // FIXME
20+
#include <vector>
21+
#include <algorithm>
22+
#include <set>
1923

20-
#include <CCDB/BasicCCDBManager.h>
2124
#include "Common/Core/trackUtilities.h"
2225
#include "Common/DataModel/EventSelection.h"
2326
#include "Common/DataModel/Multiplicity.h"
@@ -861,7 +864,7 @@ struct femtoUniverseProducerTask {
861864
}
862865

863866
// colCuts.fillQA(col); //for now, TODO: create a configurable so in the FemroUniverseCollisionSelection.h there is an option to plot QA just for the posZ
864-
if (occupancy > ConfTPCOccupancyMin && occupancy <= ConfTPCOccupancyMax) {
867+
if ((col.selection_bit(aod::evsel::kNoSameBunchPileup)) && (col.selection_bit(aod::evsel::kIsGoodZvtxFT0vsPV)) && (occupancy > ConfTPCOccupancyMin && occupancy <= ConfTPCOccupancyMax)) {
865868
if (ConfDoSpher) {
866869
outputCollision(vtxZ, cent, multNtr, colCuts.computeSphericity(col, tracks), mMagField);
867870
} else {
@@ -1433,7 +1436,7 @@ struct femtoUniverseProducerTask {
14331436
if (particle.pt() < ConfFilterCuts.ConfPtLowFilterCut || particle.pt() > ConfFilterCuts.ConfPtHighFilterCut)
14341437
continue;
14351438

1436-
uint32_t pdgCode = (uint32_t)particle.pdgCode();
1439+
uint32_t pdgCode = static_cast<uint32_t>(particle.pdgCode());
14371440

14381441
if (ConfMCTruthAnalysisWithPID) {
14391442
bool pass = false;

0 commit comments

Comments
 (0)