]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
adding method for setting MC label, according to extension of AliHLTTPCDataCompressio...
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Dec 2011 22:01:05 +0000 (22:01 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Dec 2011 22:01:05 +0000 (22:01 +0000)
HLT/TPCLib/AliHLTTPCClusterAccessHLTOUT.h

index d16c59d7a5aa7b2bfa307779fc69ee71a04a70a7..be6f8dc992f140e3863f4eb86c4e04d4f6d8e5f3 100644 (file)
@@ -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);