Skip to content

Commit 3271777

Browse files
pbuehlerrolavick
andauthored
[PWGUD] update DGCandProducer to fill proper globalBC number into UDMcCollisions table (#8449)
Co-authored-by: rolavick <roman.lavicka@cern.ch>
1 parent a48eb15 commit 3271777

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

PWGUD/TableProducer/DGCandProducer.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
//
1212
// \brief Saves relevant information of DG candidates
1313
// \author Paul Buehler, paul.buehler@oeaw.ac.at
14+
1415
#include <vector>
1516
#include <string>
1617
#include <map>
@@ -377,7 +378,8 @@ struct McDGCandProducer {
377378
void updateUDMcCollisions(TMcCollision const& mccol)
378379
{
379380
// save mccol
380-
outputMcCollisions(mccol.bcId(),
381+
auto bc = mccol.template bc_as<BCs>();
382+
outputMcCollisions(bc.globalBC(),
381383
mccol.generatorsID(),
382384
mccol.posX(),
383385
mccol.posY(),

0 commit comments

Comments
 (0)