X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliAODCaloCluster.cxx;h=f9d6efa03e314af19eff3cf11d700390824def99;hb=8ab69caa381028af0f4393f4a5a73426534e9258;hp=4b8a2765f65b7ac8ace381e0d3c8607110dbaf49;hpb=78902954d20c76bd101df6a747ce6ee5852c111a;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliAODCaloCluster.cxx b/STEER/AliAODCaloCluster.cxx index 4b8a2765f65..f9d6efa03e3 100644 --- a/STEER/AliAODCaloCluster.cxx +++ b/STEER/AliAODCaloCluster.cxx @@ -50,7 +50,7 @@ AliAODCaloCluster::AliAODCaloCluster(Int_t id, Int_t *label, Double_t energy, Double_t x[3], - Double_t pid[9], + Double_t pid[13], Char_t ttype, UInt_t selectInfo) : AliAODCluster(id, nLabel, label, energy, x, pid, ttype, selectInfo), @@ -76,7 +76,7 @@ AliAODCaloCluster::AliAODCaloCluster(Int_t id, Int_t *label, Float_t energy, Float_t x[3], - Float_t pid[9], + Float_t pid[13], Char_t ttype, UInt_t selectInfo) : AliAODCluster(id, nLabel, label, energy, x, pid, ttype, selectInfo), @@ -215,3 +215,22 @@ void AliAODCaloCluster::GetMomentum(TLorentzVector& p, Double_t *vertex ) { p.SetPxPyPzE( energy*pos[0]/r, energy*pos[1]/r, energy*pos[2]/r, energy) ; } + + +void AliAODCaloCluster::SetCellsAbsId(UShort_t *array) +{ + // Set the array of cell absId numbers + if (fNCells) { + fCellsAbsId = new UShort_t[fNCells]; + for (Int_t i = 0; i < fNCells; i++) fCellsAbsId[i] = array[i]; + } +} + +void AliAODCaloCluster::SetCellsAmplitudeFraction(Double32_t *array) +{ + // Set the array of cell amplitude fraction + if (fNCells) { + fCellsAmpFraction = new Double32_t[fNCells]; + for (Int_t i = 0; i < fNCells; i++) fCellsAmpFraction[i] = array[i]; + } +}