1 #ifndef __StAnneling_h__
2 #define __StAnneling_h__
9 static void SetTemperature(Double_t Temperature=1) {fTemperature = Temperature;}
10 static Double_t Temperature() {
return fTemperature;}
11 static void SetChi2Cut (Double_t chi2Cut=12.25) {fChi2Cut = chi2Cut;}
12 static Double_t Chi2Cut() {
return fChi2Cut;}
13 static Double_t Weight() {
14 return TMath::Exp(Chi2Cut()/(2*Temperature())) +
15 Temperature()*TMath::Log(1 + TMath::Exp(Chi2Cut()/(2*Temperature())));
18 static Double_t fTemperature;
19 static Double_t fChi2Cut;