timeList[iDigit] = (UShort_t)(digit->GetTime()*1e9*100); // time in units of 0.01 ns
digiList[iDigit] = (UShort_t)(digit->GetId());
}
+
+ ec->SetPHOS(kTRUE);
ec->SetGlobalPosition(xyz); //rec.point position in MARS
ec->SetClusterEnergy(rp->Energy()); //total particle energy
ec->SetClusterDisp(emcRP->GetDispersion()); //cluster dispersion
}
}
+//____________________________________________________________________________
void AliPHOSReconstructor::FillESD(AliRunLoader* runLoader,
AliRawReader* rawReader, AliESD* esd) const
{
Int_t eventNumber = runLoader->GetEventNumber() ;
- if(eventNumber==0) {
- rawReader->RewindEvents();
- rawReader->NextEvent();
- }
-
AliPHOSGetter *gime = AliPHOSGetter::Instance();
-
- Bool_t isOldRCUFormat = kFALSE;
- TString opt = GetOption();
- if(opt.Contains("OldRCUFormat"))
- isOldRCUFormat = kTRUE;
-
- gime->ReadRaw(rawReader,isOldRCUFormat) ;
+ gime->Event(eventNumber, "DRTP") ;
TClonesArray *recParticles = gime->RecParticles();
Int_t nOfRecParticles = recParticles->GetEntries();
AliFatal(Form("Digit not found at the expected position %d!",iDigit));
}
else {
- amplList[iDigit] = (UShort_t)(digit->GetEnergy()*500); // Energy in units of GeV/500
+ amplList[iDigit] = (UShort_t)digit->GetEnergy();
digiList[iDigit] = (UShort_t)(digit->GetId());
}
}
+ ec->SetPHOS(kTRUE);
ec->SetGlobalPosition(xyz); //rec.point position in MARS
ec->SetClusterEnergy(rp->Energy()); //total particle energy
ec->SetClusterDisp(emcRP->GetDispersion()); //cluster dispersion
ec->SetM20(emcRP->GetM2z()) ; //second moment M2z
ec->SetNExMax(emcRP->GetNExMax()); //number of local maxima
ec->SetNumberOfDigits(digitMult); //digit multiplicity
- ec->SetDigitAmplitude(amplList); //energies in 1/500 of GeV
+ ec->SetDigitAmplitude(amplList); //digit energies
ec->SetDigitIndex(digiList); //abs id of the cell
ec->SetEmcCpvDistance(-1); //not yet implemented
ec->SetClusterChi2(-1); //not yet implemented