he clusterizer identifies if a recpoint is tower of a pre shower
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 6 Dec 2002 18:05:31 +0000 (18:05 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 6 Dec 2002 18:05:31 +0000 (18:05 +0000)
EMCAL/AliEMCALClusterizerv1.cxx

index 6461b45..cc3c1a4 100644 (file)
@@ -542,8 +542,9 @@ void AliEMCALClusterizerv1::MakeClusters()
        // start a new Tower RecPoint
        if(fNumberOfTowerClusters >= towerRecPoints->GetSize()) 
          towerRecPoints->Expand(2*fNumberOfTowerClusters+1) ;
-       
-       towerRecPoints->AddAt(new  AliEMCALTowerRecPoint(""), fNumberOfTowerClusters) ;
+       AliEMCALTowerRecPoint * rp = new  AliEMCALTowerRecPoint("") ; 
+       rp->SetTower() ; 
+       towerRecPoints->AddAt(rp, fNumberOfTowerClusters) ;
        clu = dynamic_cast<AliEMCALTowerRecPoint *>(towerRecPoints->At(fNumberOfTowerClusters)) ; 
        fNumberOfTowerClusters++ ; 
        clu->AddDigit(*digit, Calibrate(digit->GetAmp(),digit->IsInPreShower())) ;