-
-
-// Int_t AliHLTCaloHistoInvMass::FillHistograms(Int_t nc, TRefArray * clustersArray) {
-// //See header file for documentation
-
-// Float_t cPos[nc][3];
-// Float_t cEnergy[nc];
-
-// for(int ic = 0; ic < nc; ic++) {
-// AliESDCaloCluster * cluster = static_cast<AliESDCaloCluster*>(clustersArray->At(ic));
-// cluster->GetPosition(cPos[ic]);
-// cEnergy[ic] = cluster->E();
-// }
-
-// for(Int_t ipho = 0; ipho<(nc-1); ipho++) {
-// for(Int_t jpho = ipho+1; jpho<nc; jpho++) {
-// // Calculate the theta angle between two photons
-// Double_t theta = (2* asin(0.5*TMath::Sqrt((cPos[ipho][0]-cPos[jpho][0])*(cPos[ipho][0]-cPos[jpho][0]) +(cPos[ipho][1]-cPos[jpho][1])*(cPos[ipho][1]-cPos[jpho][1]))/460));
-
-// // Calculate the mass m of the pion candidate
-// Double_t m =(TMath::Sqrt(2 * cEnergy[ipho]* cEnergy[jpho]*(1-TMath::Cos(theta))));
-
-// fHistTwoClusterInvMass->Fill(m);
-// }
-// }
-
-// return 0;
-// }
-
-
-
-// Int_t AliHLTCaloHistoInvMass::DoEvent(AliHLTCaloClusterHeaderStruct* cHeader) {
-
-// fClusterReader->SetMemory(cHeader);
-
-// int ncls = cHeader->fNClusters;
-// Float_t* cPos[ncls];
-// Float_t cEnergy[ncls];
-
-// AliHLTCaloClusterDataStruct* cluster;
-// Int_t icls = 0;
-// while ( ( cluster = fClusterReader->NextCluster() ) ) {
-
-// cPos[icls] = cluster->fGlobalPos;
-// cEnergy[icls] = cluster->fEnergy;
-
-// icls++;
-// }
-
-// for(Int_t ipho = 0; ipho<(ncls-1); ipho++) {
-// for(Int_t jpho = ipho+1 ; jpho<ncls ; jpho++) {
-// // Calcul of the theta angle between two photons
-// Double_t theta = (2* asin(0.5*TMath::Sqrt((cPos[ipho][0]-cPos[jpho][0])*(cPos[ipho][0]-cPos[jpho][0]) +(cPos[ipho][1]-cPos[jpho][1])*(cPos[ipho][1]-cPos[jpho][1]))/460));
-
-// // Calcul of the mass m of the pion
-// Double_t m =(TMath::Sqrt(2 * cEnergy[ipho]* cEnergy[jpho]*(1-TMath::Cos(theta))));
-
-
-// //BALLE
-// // fHistTwoClusterInvMass->Fill(m);
-// }
-// }
-
-// return 0;
-// }
-
-
-
-