Skip to content

Commit

Permalink
Update DGCandProducer.cxx
Browse files Browse the repository at this point in the history
  • Loading branch information
abylinkin authored Oct 14, 2024
1 parent 3c4da09 commit 5b8e9bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PWGUD/TableProducer/DGCandProducer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include "Framework/runDataProcessing.h"
#include "Framework/AnalysisTask.h"
#include "ReconstructionDataFormats/Vertex.h"
#include "PWGUD/DataModel/UDTables.h"
#include "PWGUD/Core/UPCHelpers.h"
#include "PWGUD/Core/DGSelector.h"
Expand Down Expand Up @@ -271,8 +272,7 @@ struct DGCandProducer {
auto rtrwTOF = udhelpers::rPVtrwTOF<true>(tracks, collision.numContrib());
int upc_flag = 0;
ushort flags = collision.flags();
const ushort UPCModeMask = 0x1 << 1;
if (flags & UPCModeMask)
if (flags & Vertex::UPCMode)
upc_flag = 1;
outputCollisions(bc.globalBC(), bc.runNumber(),
collision.posX(), collision.posY(), collision.posZ(), upc_flag,
Expand Down

0 comments on commit 5b8e9bd

Please sign in to comment.