StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StHbtFsiLednickyPurity.h
1 /***************************************************************************
2  *
3  *
4  *
5  * Author: Adam Kisiel, Warsaw University of Technology, Poland
6  ***************************************************************************
7  *
8  * Description : Calculate correlation weight using R.Lednicky's code
9  * with the possibility to specify particle purity
10  * Use the fortran files : FsiLednickyWeight.F and FsiTools.F
11  *
12  ***************************************************************************
13  *
14  *
15  *
16  ***************************************************************************/
17 
18 #ifndef StHbtFsiLednickyPurity_hh
19 #define StHbtFsiLednickyPurity_hh
20 
21 #include "TRandom.h"
22 #include "StHbtMaker/Base/StHbtFsiWeight.hh"
23 #include "StHbtMaker/Infrastructure/StHbtTypes.hh"
24 #include "StHbtMaker/Base/StHbtThPair.hh"
25 #include "StHbtMaker/ThCorrFctn/StHbtFsiLednicky.h"
26 
28  public:
29 // --- Constructor
30  StHbtFsiLednickyPurity(); // call SetDefaultCalcPar
31 // --- Destructor : nothing to explicitly delete
33 
34 // --- Function to be called in the correlation function
35  // see StThCorrFctn for details
36  virtual double GetWeight(const StHbtThPair* aThPair);
37 
38 // --- Setting
39 
40 // >>> Calculation mode
41  void SetPurity(const double aPurity);
42  void SetPurity(const double aPurity1, const double aPurity2);
43 
44  virtual StHbtString Report();
45 
46 protected:
47 
48  // Particle purity
49  double mPurity1, mPurity2;
50 
51  TRandom mRandom;
52 
53 #ifdef __ROOT__
54  ClassDef(StHbtFsiLednickyPurity,1)
55 #endif
56 };
57 
58 #endif