StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StAnneling.h
1 #ifndef __StAnneling_h__
2 #define __StAnneling_h__
3 // $Id: StAnneling.h,v 2.1 2012/05/07 14:56:14 fisyak Exp $
4 #include "TMath.h"
5 #include "TObject.h"
6 //________________________________________________________________________________
7 class StAnneling : public TObject {
8 public:
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())));
16  }
17 private:
18  static Double_t fTemperature;
19  static Double_t fChi2Cut;
20  ClassDef(StAnneling,1)
21 };
22 // $Log: StAnneling.h,v $
23 // Revision 2.1 2012/05/07 14:56:14 fisyak
24 // Add StKFVertexMaker
25 //
26 // Revision 1.3 2012/02/07 19:38:26 fisyak
27 // Repackage
28 //
29 #endif