From 1e7ff439065472398dd3811ef7b00b9e639f4621 Mon Sep 17 00:00:00 2001 From: richterm Date: Tue, 6 Dec 2011 22:01:05 +0000 Subject: [PATCH] adding method for setting MC label, according to extension of AliHLTTPCDataCompressionDecoder interface --- HLT/TPCLib/AliHLTTPCClusterAccessHLTOUT.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/HLT/TPCLib/AliHLTTPCClusterAccessHLTOUT.h b/HLT/TPCLib/AliHLTTPCClusterAccessHLTOUT.h index d16c59d7a5a..be6f8dc992f 100644 --- a/HLT/TPCLib/AliHLTTPCClusterAccessHLTOUT.h +++ b/HLT/TPCLib/AliHLTTPCClusterAccessHLTOUT.h @@ -157,6 +157,10 @@ class AliHLTTPCClusterAccessHLTOUT : public TObject void SetSigmaZ2(float sigmaZ2) {if (fCluster) fCluster->SetSigmaZ2(sigmaZ2);} void SetCharge(unsigned charge) {if (fCluster) fCluster->SetQ(charge);} void SetQMax(unsigned qmax) {if (fCluster) fCluster->SetMax(qmax);} + void SetMC(const AliHLTTPCClusterMCLabel* pMC) { + if (!fCluster || !pMC) return; + for (int k=0; k<3; k++) fCluster->SetLabel(pMC->fClusterID[k].fMCID, k); + } // switch to next cluster iterator& Next(int slice, int partition); -- 2.39.3