unsigned short charge,
unsigned short qmax,
AliHLTUInt32_t id,
- const AliHLTTPCClusterMCLabel &mc
+ const AliHLTTPCClusterMCLabel *mc
)
{
/// add a candidate for merging and register in the index grid
}
fClusters.push_back(AliClusterRecord(slice, partition, iBorder, -1, id,
- AliHLTTPCRawCluster(partitionrow, pad, time, sigmaY2, sigmaZ2, charge, qmax), mc ));
+ AliHLTTPCRawCluster(partitionrow, pad, time, sigmaY2, sigmaZ2, charge, qmax),
+ mc!=NULL?*mc:AliHLTTPCClusterMCLabel() ));
if( iBorder>=0 ){
fBorderNClusters[iBorder]++;
int partition,
AliHLTUInt32_t id,
const T& c,
- const AliHLTTPCClusterMCLabel &mc) {
+ const AliHLTTPCClusterMCLabel *mc) {
return AddCandidate(slice,
partition,
c.GetPadRow(),
unsigned short charge,
unsigned short qmax,
AliHLTUInt32_t id=~AliHLTUInt32_t(0),
- const AliHLTTPCClusterMCLabel &mc=AliHLTTPCClusterMCLabel()
+ const AliHLTTPCClusterMCLabel *mc=NULL
);
/// merge clusters
if( !merger.CheckCandidate(slice, patch, rawCluster) ) continue;
- int id = merger.AddCandidate(slice, patch, ~AliHLTUInt32_t(0), rawCluster, mc);
+ int id = merger.AddCandidate(slice, patch, ~AliHLTUInt32_t(0), rawCluster, &mc);
if( id>=0 ){
nAccepted++;
vClusters.push_back(*cl);