OK, I'm getting closer:
First of all I made a mistake when using the clonesarray:
I had in my MvdRecoTask.cxx:
((*fClusterOutputArray)[size++]) = *it;
And I should have used:
MvdCluster* clust = new ((*fClusterOutputArray)[size++]) MvdCluster(**it);
So this seems ok now.
Now there is a problem with the copy constructor of MvdCluster:
Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread -1236543792 (LWP 15045)]
0xb2fedddb in MvdCluster (this=0xb141dc0, c=@0x94fb988) at /home/ralfk/Pandaroot/pandaroot/mvd/MvdData/MvdCluster.cxx:29
29 , _mcid(c._mcid)
Current language: auto; currently c++
MvdCluster::MvdCluster(const MvdCluster& c)
: CbmHit(c)
, _frontend(c._frontend)
, _wafer(c._wafer)
, _clusterSize(c._clusterSize)
, _totaldE(c._totaldE)
, _meanTime(c._meanTime)
, _mcid(c._mcid)
{
// Copy Constructor
}
The all members are unsigned integer or double. Maybe the ":CbmHit(c)" is wrong.
Ralf.