The emc and ppsd multiplicity was not reinitialized from event to the next causing...
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Jul 2000 10:34:50 +0000 (10:34 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Jul 2000 10:34:50 +0000 (10:34 +0000)
PHOS/AliPHOSClusterizerv1.cxx
PHOS/AliPHOSTrackSegmentMakerv1.cxx

index 8a5a6e02914e10ec156027a3cf7f5ff8c76965da..89160c8392a96ba2876f803bdcb1b06200f7a3b0 100644 (file)
@@ -194,8 +194,8 @@ void AliPHOSClusterizerv1::MakeClusters(const DigitsList * dl,
       if  ( IsInEmc(digit) ) {   
        // start a new EMC RecPoint
        //        new ((*emcl)[fNumberOfEmcClusters]) AliPHOSEmcRecPoint(fW0, fLocMaxCut) ; if TClonesArray
+       fNumberOfEmcClusters = emcl->GetEntries() ;
        (*emcl)[fNumberOfEmcClusters] = new  AliPHOSEmcRecPoint(fW0, fLocMaxCut) ;
-
        clu = (AliPHOSEmcRecPoint *) emcl->At(fNumberOfEmcClusters) ; 
        fNumberOfEmcClusters++ ; 
        clu->AddDigit(*digit, Calibrate(digit->GetAmp())) ; 
@@ -209,6 +209,7 @@ void AliPHOSClusterizerv1::MakeClusters(const DigitsList * dl,
        
        // start a new PPSD cluster
        // new ((*ppsdl)[fNumberOfPpsdClusters]) AliPHOSPpsdRecPoint() ;  if TClonesArray
+       fNumberOfPpsdClusters = ppsdl->GetEntries() ; 
        (*ppsdl)[fNumberOfPpsdClusters] = new AliPHOSPpsdRecPoint() ;
        
        clu =  (AliPHOSPpsdRecPoint *) ppsdl->At(fNumberOfPpsdClusters)  ;  
index 5afac62e9a41ba3d8b22feebe04c509042e2151e..307ffa9c874de220611a57ea7d8744f4c198c7ac 100644 (file)
@@ -318,7 +318,8 @@ void  AliPHOSTrackSegmentMakerv1::MakePairs(TObjArray * emcRecPoints,
         
         nextUp.Reset();
 //          AliPHOSTrackSegment * subtr = new AliPHOSTrackSegment(emc, ppsdUp, ppsdLow ) ;
-//      trsl->Add(subtr) ;  
+//      trsl->Add(subtr) ; 
+        fNTrackSegments = trsl->GetEntries() ; 
         new( (*trsl)[fNTrackSegments] ) AliPHOSTrackSegment(emc, ppsdUp, ppsdLow ) ;
         fNTrackSegments++ ;
         emcRecPoints->AddAt(nullpointer,linkLow->GetEmc()) ;     
@@ -346,6 +347,7 @@ void  AliPHOSTrackSegmentMakerv1::MakePairs(TObjArray * emcRecPoints,
       
     }
 
+    fNTrackSegments = trsl->GetEntries() ; 
     new( (*trsl)[fNTrackSegments] ) AliPHOSTrackSegment(emc, ppsdUp, ppsdLow ) ;
     fNTrackSegments++ ;