// and the TreeD at the end of the event (branch is set in FinishEvent() ).
fHits= new TClonesArray("AliPHOSHit",1000) ;
- gAlice->AddHitList(fHits);
fNhits = 0 ;
fDigits = 0 ;
fHits= new TClonesArray("AliPHOSHit",1000) ;
- gAlice->AddHitList(fHits);
+
fNhits = 0 ;
fIshunt = 1 ; // All hits are associated with primary particles
fPpsdRecPoints = 0 ;
}
+ if ( fCpvRecPoints ) {
+ fCpvRecPoints->Delete() ;
+ delete fCpvRecPoints ;
+ fCpvRecPoints = 0 ;
+ }
+
if ( fTrackSegments ) {
fTrackSegments->Delete() ;
delete fTrackSegments ;
gAlice->TreeR()->Branch(branchname, "TObjArray", &fPpsdRecPoints, fBufferSize, splitlevel) ;
}
+ fCpvRecPoints->Delete() ;
+
+ if ( fCpvRecPoints && gAlice->TreeR() ) {
+ sprintf(branchname,"%sCpvRP",GetName()) ;
+ gAlice->TreeR()->Branch(branchname, "TObjArray", &fCpvRecPoints, fBufferSize, splitlevel) ;
+ }
+
fTrackSegments->Delete() ;
if ( fTrackSegments && gAlice->TreeR() ) {
fRecParticles->Delete() ;
- if (strcmp(fGeom->GetName(),"GPS2") == 0 || strcmp(fGeom->GetName(),"MIXT") == 0) {
+ if (strcmp(fGeom->GetName(),"GPS2") == 0 || strcmp(fGeom->GetName(),"MIXT") == 0) {
if ( fRecParticles && gAlice->TreeR() ) {
sprintf(branchname,"%sRP",GetName()) ;
gAlice->TreeR()->Branch(branchname, &fRecParticles, fBufferSize) ;
}
// 3.
- if (strcmp(fGeom->GetName(),"GPS2") == 0 || strcmp(fGeom->GetName(),"MIXT") == 0)
- fReconstructioner->MakePPSD(fDigits, fEmcRecPoints, fPpsdRecPoints, fTrackSegments, fRecParticles);
- if (strcmp(fGeom->GetName(),"IHEP") == 0 || strcmp(fGeom->GetName(),"MIXT") == 0)
- fReconstructioner->MakeCPV (fDigits, fEmcRecPoints, fPpsdRecPoints);
+
+ fReconstructioner->Make(fDigits, fEmcRecPoints, fPpsdRecPoints,
+ fCpvRecPoints, fTrackSegments, fRecParticles);
+
+ printf("Reconstruction: %d %d %d %d %d\n",
+ fEmcRecPoints->GetEntries(),fPpsdRecPoints->GetEntries(),fCpvRecPoints->GetEntries(),
+ fTrackSegments->GetEntries(),fRecParticles->GetEntries());
// 4. Expand or Shrink the arrays to the proper size
size = fPpsdRecPoints->GetEntries() ;
fPpsdRecPoints->Expand(size) ;
+ size = fCpvRecPoints->GetEntries() ;
+ fCpvRecPoints->Expand(size) ;
+
size = fTrackSegments->GetEntries() ;
fTrackSegments->Expand(size) ;
{
// Deleting reconstructed objects
- if ( fEmcRecPoints ) fEmcRecPoints->Delete();
+ if ( fEmcRecPoints ) fEmcRecPoints ->Delete();
if ( fPpsdRecPoints ) fPpsdRecPoints->Delete();
+ if ( fCpvRecPoints ) fCpvRecPoints ->Delete();
if ( fTrackSegments ) fTrackSegments->Delete();
- if ( fRecParticles ) fRecParticles->Delete();
+ if ( fRecParticles ) fRecParticles ->Delete();
}