Double_t GetMinEtCorrection(Int_t clusterMultiplicity) {
return fTmCorrections->GetMinEtCorrection(clusterMultiplicity);
}
+ /** Get contribution from non-removed neutrons */
+ Double_t GetNeutronContribution(Int_t clusterMultiplicity) {
+ return fTmCorrections->GetNeutronCorrection(clusterMultiplicity);
+ }
+ /** Get contribution from non-removed hadrons */
+ Double_t GetHadronContribution(Int_t clusterMultiplicity) {
+ return fTmCorrections->GetHadronCorrection(clusterMultiplicity);
+ }
+ /** Get contribution from non-removed kaons */
+ Double_t GetKaonContribution(Int_t clusterMultiplicity) {
+ return fTmCorrections->GetKaonCorrection(clusterMultiplicity);
+ }//hadron
+ /** Get contribution from non-removed secondarys */
+ Double_t GetSecondaryContribution(Int_t clusterMultiplicity) {
+ return fTmCorrections->GetSecondaryCorrection(clusterMultiplicity);
+ }//hadron
+
/** Get contribution from non-removed charged particles */
Double_t GetChargedContribution(Int_t clusterMultiplicity) {
return fTmCorrections->GammaContr(clusterMultiplicity);
}
- /** Get contribution from secondaries */
- Double_t GetSecondaryContribution(Int_t clusterMultiplicity) {
- return fTmCorrections->SecondaryContr(clusterMultiplicity);
- }
-
void MakeSparseHistograms() {
fMakeSparse=kTRUE;
}
fGammaEnergyAdded = GetGammaContribution(fNeutralMultiplicity);
fHistGammaEnergyAdded->Fill(fGammaEnergyAdded, fNeutralMultiplicity);
- Double_t removedEnergy = GetChargedContribution(cent) + GetNeutralContribution(cent) + GetGammaContribution(cent) + GetSecondaryContribution(cent);//fNeutralMultiplicity
+ //Double_t removedEnergy = GetChargedContribution(cent) + GetNeutralContribution(cent) + GetGammaContribution(cent) + GetSecondaryContribution(cent);//fNeutralMultiplicity
+ Double_t removedEnergy = GetHadronContribution(cent) + GetNeutronContribution(cent) + GetKaonContribution(cent) + GetSecondaryContribution(cent);//fNeutralMultiplicity
+ //cout<<" centbin "<<cent<<" removed energy ch "<< GetHadronContribution(cent)<<" n " << GetNeutronContribution(cent) <<" kaon "<< GetKaonContribution(cent)<<" secondary "<< GetSecondaryContribution(cent);//fNeutralMultiplicity
+ //cout<<" test min et "<<fTmCorrections->GetMinEtCorrection(cent);
+ //cout<<" test neutral "<<fTmCorrections->NeutralContr(cent);
+ //cout<<" test neutron "<<fTmCorrections->NeutralContr(cent);
fHistRemovedEnergy->Fill(removedEnergy);
fTotNeutralEtAcc = fTotNeutralEt;
fHistTotAllRawEtEffCorr->Fill(fTotAllRawEtEffCorr,cent);
//cout<<"fTotAllRawEtEffCorr "<<fTotAllRawEtEffCorr<<" fTotAllRawEt "<<fTotAllRawEt<<" fTotRawEtEffCorr "<<fTotRawEtEffCorr<<"("<<fTotNeutralEt<<")"<<" fTotRawEt "<<fTotRawEt<<endl;
//cout<<"uncorr "<<uncorrEt<<" raw "<<nominalRawEt<<" tot raw "<<fTotNeutralEt;
- fTotNeutralEt = (fTotNeutralEt - removedEnergy)/GetMinEtCorrection(cent);
+ //cout<<" raw "<<fTotNeutralEt<<" removed "<<removedEnergy<<" etmin "<<GetMinEtCorrection(cent)<<" final ";
+ if(GetMinEtCorrection(cent)>0) fTotNeutralEt = (fTotNeutralEt - removedEnergy)/GetMinEtCorrection(cent);
+ //cout<<fTotNeutralEt<<endl;
//cout<<" tot corr "<<fTotNeutralEt<<endl;
fTotEt = fTotChargedEt + fTotNeutralEt;
// Fill the histograms...0