AliRoot Core  edcc906 (edcc906)
AliV0HypSel.h
Go to the documentation of this file.
1 #ifndef ALIV0HYPSEL_H
2 #define ALIV0HYPSEL_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 //------------------------------------------------------------------
7 // V0 hypothesis selection params
8 // Used to check if given V0 is candidate for given hypothesis
9 //------------------------------------------------------------------
10 
11 #include "TNamed.h"
12 
13 
14 //_____________________________________________________________________________
15 class AliV0HypSel : public TNamed {
16 public:
17 
18  AliV0HypSel();
19  AliV0HypSel(const AliV0HypSel& src);
20  AliV0HypSel(const char *name, float m0,float m1, float mass, float sigma,
21  float nsig, float margin, float cf0=0., float cf1=0.);
22  void Validate();
23 
24  float GetM0() const {return fM0;}
25  float GetM1() const {return fM1;}
26  float GetMass() const {return fMass;}
27  float GetSigmaM() const {return fSigmaM;}
28  float GetNSigma() const {return fNSigma;}
29  float GetCoef0Pt() const {return fCoef0Pt;}
30  float GetCoef1Pt() const {return fCoef1Pt;}
31  float GetMarginAdd() const {return fMarginAdd;}
32  float GetMassMargin(float pT) const {return fNSigma*fgBFieldCoef*fSigmaM*(fCoef0Pt+pT*fCoef1Pt)+fMarginAdd;}
33 
34  static void AccountBField(float b);
35  static void SetBFieldCoef(float v) {fgBFieldCoef = v>0. ? v : 1.0;}
36  static float GetBFieldCoef() { return fgBFieldCoef; }
37 
38  virtual void Print(const Option_t *) const;
39 
40 private:
41  Float_t fM0; // mass of the 1st prong
42  Float_t fM1; // mass of the 2nd prong
43  Float_t fMass ; // expected V0 mass
44  Float_t fSigmaM; // rough sigma estimate for sigmaMass = fSigmaM*(fCoef0Pt+fCoef1Pt*Pt) parameterization
45  Float_t fCoef0Pt; // offset of sigma_m pT dependence
46  Float_t fCoef1Pt; // pT proportional coef. of sigma_m pT dependence
47  Float_t fNSigma; // number fSigmaM to apply
48  Float_t fMarginAdd; // additional additive safety margin
49 
50  static float fgBFieldCoef; // scaling of sigma due to non-nominal field
51  ClassDef(AliV0HypSel,1) // V0 Hypothesis selection
52 };
53 
54 
55 #endif
56 
57 
float GetSigmaM() const
Definition: AliV0HypSel.h:27
TBrowser b
Definition: RunAnaESD.C:12
static void SetBFieldCoef(float v)
Definition: AliV0HypSel.h:35
float GetM1() const
Definition: AliV0HypSel.h:25
Float_t fNSigma
Definition: AliV0HypSel.h:47
Float_t fSigmaM
Definition: AliV0HypSel.h:44
float GetNSigma() const
Definition: AliV0HypSel.h:28
float GetMassMargin(float pT) const
Definition: AliV0HypSel.h:32
Float_t fCoef1Pt
Definition: AliV0HypSel.h:46
static float GetBFieldCoef()
Definition: AliV0HypSel.h:36
float GetCoef0Pt() const
Definition: AliV0HypSel.h:29
static void AccountBField(float b)
Definition: AliV0HypSel.cxx:94
Float_t fM0
Definition: AliV0HypSel.h:41
float GetCoef1Pt() const
Definition: AliV0HypSel.h:30
float GetM0() const
Definition: AliV0HypSel.h:24
float GetMarginAdd() const
Definition: AliV0HypSel.h:31
float GetMass() const
Definition: AliV0HypSel.h:26
Float_t fCoef0Pt
Definition: AliV0HypSel.h:45
Float_t fMarginAdd
Definition: AliV0HypSel.h:48
Float_t fMass
Definition: AliV0HypSel.h:43
static float fgBFieldCoef
Definition: AliV0HypSel.h:50
virtual void Print(const Option_t *) const
Definition: AliV0HypSel.cxx:86
Float_t fM1
Definition: AliV0HypSel.h:42
void Validate()
Definition: AliV0HypSel.cxx:71