Skip to content

Commit

Permalink
Update DGBCCandProducer.cxx
Browse files Browse the repository at this point in the history
  • Loading branch information
abylinkin authored Oct 14, 2024
1 parent e9caf35 commit 3c4da09
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions PWGUD/TableProducer/DGBCCandProducer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <algorithm>
#include "Framework/runDataProcessing.h"
#include "Framework/AnalysisTask.h"
#include "ReconstructionDataFormats/Vertex.h"
#include "PWGUD/DataModel/UDTables.h"
#include "PWGUD/Core/UDHelpers.h"
#include "PWGUD/Core/UPCHelpers.h"
Expand Down Expand Up @@ -417,8 +418,7 @@ struct DGBCCandProducer {
nCharge = udhelpers::netCharge<true>(colTracks);
int upc_flag = 0;
ushort flags = col.flags();
const ushort UPCModeMask = 0x1 << 1;
if (flags & UPCModeMask)
if (flags & Vertex::UPCMode)
upc_flag = 1;
updateUDTables(false, col.globalIndex(), bc.globalBC(), bc.runNumber(), col.posX(), col.posY(), col.posZ(), upc_flag,
col.numContrib(), nCharge, rtrwTOF, colTracks, fitInfo);
Expand Down Expand Up @@ -618,8 +618,7 @@ struct DGBCCandProducer {
udhelpers::getFITinfo(fitInfo, bc, bcs, ft0s, fv0as, fdds);
int upc_flag = 0;
ushort flags = col.flags();
const ushort UPCModeMask = 0x1 << 1;
if (flags & UPCModeMask)
if (flags & Vertex::UPCMode)
upc_flag = 1;
updateUDTables(false, col.globalIndex(), bcnum, bc.runNumber(), col.posX(), col.posY(), col.posZ(), upc_flag,
col.numContrib(), nCharge, rtrwTOF, colTracks, fitInfo);
Expand Down Expand Up @@ -692,8 +691,7 @@ struct DGBCCandProducer {
int64_t colID = withCollision ? col.globalIndex() : -1;
int upc_flag = 0;
ushort flags = col.flags();
const ushort UPCModeMask = 0x1 << 1;
if (flags & UPCModeMask)
if (flags & Vertex::UPCMode)
upc_flag = 1;
updateUDTables(false, colID, bcnum, tibc.runNumber(), vpos[0], vpos[1], vpos[2], upc_flag,
tracksArray.size(), nCharge, rtrwTOF, tracksArray, fitInfo);
Expand Down

0 comments on commit 3c4da09

Please sign in to comment.