- if(fNumberOfPpsdClusters >= ppsdl->GetSize())
- ppsdl->Expand(2*fNumberOfPpsdClusters+1) ;
-
- (*ppsdl)[fNumberOfPpsdClusters] = new AliPHOSPpsdRecPoint() ;
- clu = (AliPHOSPpsdRecPoint *) ppsdl->At(fNumberOfPpsdClusters) ;
+ if(fNumberOfPpsdClusters >= ppsdl->GetSize()) ppsdl->Expand(2*fNumberOfPpsdClusters+1);
+ if (strcmp(fGeom->GetName(),"GPS2") == 0) {
+ (*ppsdl)[fNumberOfPpsdClusters] = new AliPHOSPpsdRecPoint() ;
+ clu = (AliPHOSPpsdRecPoint *) ppsdl->At(fNumberOfPpsdClusters) ;
+ }
+ else if (strcmp(fGeom->GetName(),"IHEP") == 0) {
+ (*ppsdl)[fNumberOfPpsdClusters] = new AliPHOSEmcRecPoint(fW0CPV, fLocMaxCutCPV) ;
+ clu = (AliPHOSEmcRecPoint *) ppsdl->At(fNumberOfPpsdClusters) ;
+ }