]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALRecParam.h
remove unnecessary histogram booking, filling, storing; QA classes handle that now
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALRecParam.h
1 #ifndef ALIEMCALRECPARAM_H
2 #define ALIEMCALRECPARAM_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 //-----------------------------------------------------------------------------
9 // Container of EMCAL reconstruction parameters
10 // The purpose of this object is to store it to OCDB
11 // and retrieve it in AliEMCALClusterizerv1, AliEMCALPID,
12 // AliEMCALTracker and use it to configure AliEMCALRawUtils
13 // 
14 // 
15 // Author: Yuri Kharlov
16 //-----------------------------------------------------------------------------
17
18 // --- ROOT system ---
19
20 #include "TObject.h" 
21
22 class AliEMCALRecParam : public TObject
23 {
24 public:
25   
26   AliEMCALRecParam() ;
27   virtual ~AliEMCALRecParam() {}
28  
29  //Clustering
30   Float_t GetClusteringThreshold() const     {return fClusteringThreshold;}
31   Float_t GetW0                 () const     {return fW0                 ;}
32   Float_t GetMinECut            () const     {return fMinECut            ;}
33   void SetClusteringThreshold(Float_t thrsh)   {fClusteringThreshold = thrsh;}
34   void SetW0                 (Float_t w0)      {fW0 = w0                    ;}
35   void SetMinECut            (Float_t minEcut) {fMinECut = minEcut          ;}
36
37   //PID (Guenole)
38   Double_t GetGamma(Int_t i, Int_t j) const    {return fGamma[i][j];} 
39   Double_t GetHadron(Int_t i, Int_t j) const    {return fHadron[i][j];}
40   Double_t GetPiZero5to10(Int_t i, Int_t j) const    {return fPiZero5to10[i][j];}
41   Double_t GetPiZero10to60(Int_t i, Int_t j) const    {return fPiZero10to60[i][j];}
42
43   void SetGamma(Int_t i, Int_t j,Double_t param )   {fGamma[i][j]=param;}
44   void SetHadron(Int_t i, Int_t j,Double_t param )   {fHadron[i][j]=param;}
45   void SetPiZero5to10(Int_t i, Int_t j,Double_t param)   {fPiZero5to10[i][j]=param;}
46   void SetPiZero10to60(Int_t i, Int_t j,Double_t param)   {fPiZero10to60[i][j]=param;}
47
48   //Track Matching (Alberto)
49   /* track matching cut setters */
50   void SetTrkCutX(Double_t value)        {fTrkCutX = value;}
51   void SetTrkCutY(Double_t value)        {fTrkCutY = value;}
52   void SetTrkCutZ(Double_t value)        {fTrkCutZ = value;}
53   void SetTrkCutR(Double_t value)        {fTrkCutR = value;}
54   void SetTrkCutAlphaMin(Double_t value) {fTrkCutAlphaMin = value;}
55   void SetTrkCutAlphaMax(Double_t value) {fTrkCutAlphaMax = value;}
56   void SetTrkCutAngle(Double_t value)    {fTrkCutAngle = value;}
57   /* track matching cut getters */
58   Double_t GetTrkCutX() const        {return fTrkCutX;}
59   Double_t GetTrkCutY() const        {return fTrkCutY;}
60   Double_t GetTrkCutZ() const        {return fTrkCutZ;}
61   Double_t GetTrkCutR() const        {return fTrkCutR;}
62   Double_t GetTrkCutAlphaMin() const {return fTrkCutAlphaMin;}
63   Double_t GetTrkCutAlphaMax() const {return fTrkCutAlphaMax;}
64   Double_t GetTrkCutAngle() const    {return fTrkCutAngle;}
65
66   //Raw signal fitting (Jenn)
67   /* raw signal setters */
68   void SetHighLowGainFactor(Double_t value) {fHighLowGainFactor = value;}
69   void SetOrderParameter(Int_t value)       {fOrderParameter = value;}
70   void SetTau(Double_t value)               {fTau = value;}
71   void SetNoiseThreshold(Int_t value)       {fNoiseThreshold = value;}
72   void SetNPedSamples(Int_t value)          {fNPedSamples = value;}
73   /* raw signal getters */
74   Double_t GetHighLowGainFactor() const {return fHighLowGainFactor;}
75   Int_t    GetOrderParameter()    const {return fOrderParameter;}
76   Double_t GetTau()               const {return fTau;}
77   Int_t    GetNoiseThreshold()    const {return fNoiseThreshold;}
78   Int_t    GetNPedSamples()       const {return fNPedSamples;}
79  
80   virtual void Print(Option_t * option="") const ;
81
82   static const  TObjArray* GetMappings();
83
84 private:
85   //Clustering
86   Float_t fClusteringThreshold ; // minimum energy to seed a EC digit in a cluster
87   Float_t fW0 ;                  // logarithmic weight for the cluster center of gravity calculation
88   Float_t fMinECut;              // Minimum energy for a digit to be a member of a cluster
89
90   //PID (Guenole)
91   Double_t fGamma[6][6];        // Parameter to Compute PID      
92   Double_t fHadron[6][6];       // Parameter to Compute PID      
93   Double_t fPiZero5to10[6][6];  // Parameter to Compute PID      
94   Double_t fPiZero10to60[6][6]; // Parameter to Compute PID      
95
96   //Track-Matching (Alberto)
97   Double_t  fTrkCutX;              // X-difference cut for track matching
98   Double_t  fTrkCutY;              // Y-difference cut for track matching
99   Double_t  fTrkCutZ;              // Z-difference cut for track matching
100   Double_t  fTrkCutR;              // cut on allowed track-cluster distance
101   Double_t  fTrkCutAlphaMin;       // cut on 'alpha' parameter for track matching (min)
102   Double_t  fTrkCutAlphaMax;       // cut on 'alpha' parameter for track matching (min)
103   Double_t  fTrkCutAngle;          // cut on relative angle between different track points for track matching
104
105   //Raw signal fitting parameters (Jenn)
106   Double_t fHighLowGainFactor;     //gain factor to convert between high and low gain
107   Int_t    fOrderParameter;        //order parameter for raw signal fit
108   Double_t fTau;                   //decay constant for raw signal fit
109   Int_t    fNoiseThreshold;        //threshold to consider signal or noise
110   Int_t    fNPedSamples;           //number of time samples to use in pedestal calculation
111
112   static TObjArray* fgkMaps;       // ALTRO mappings for RCU0..RCUX
113
114   ClassDef(AliEMCALRecParam,4)   // Reconstruction parameters
115
116 } ;
117
118 #endif //  ALIEMCALRECPARAM_H
119