]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ZDC/AliZDCRecoParamPbPb.h
Just something left from v2...now clean
[u/mrichter/AliRoot.git] / ZDC / AliZDCRecoParamPbPb.h
1 #ifndef ALIZDCRECOPARAMPBPB_H
2 #define ALIZDCRECOPARAMPBPB_H
3 /* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 //////////////////////////////////////////////////////////
7 //                                                      //
8 //   Class with ZDC reconstruction parameters           //
9 //              Pb - Pb collisions                      //
10 //   Origin: Chiara.Oppedisano@to.infn.it               //
11 //                                                      //
12 //////////////////////////////////////////////////////////
13
14 #include <TF1.h>
15 #include "AliZDCRecoParam.h"
16 #include "AliZDCRecoParamPbPb.h"
17
18 //class TF1;
19
20 class AliZDCRecoParamPbPb : public AliZDCRecoParam {
21  public:
22   AliZDCRecoParamPbPb();
23   virtual ~AliZDCRecoParamPbPb();
24
25   // make reco parameters for Pb-Pb collisions
26   static AliZDCRecoParamPbPb *GetPbPbRecoParam();
27   
28   TF1* GetfZNCen()  const {return fZNCen;}
29   TF1* GetfZNPer()  const {return fZNPer;} 
30   TF1* GetfZPCen()  const {return fZPCen;} 
31   TF1* GetfZPPer()  const {return fZPPer;} 
32   TF1* GetfZDCCen() const {return fZDCCen;}
33   TF1* GetfZDCPer() const {return fZDCPer;}
34   TF1* GetfbCen()   const {return fbCen;}   
35   TF1* GetfbPer()   const {return fbPer;}   
36   TF1* GetfZEMn()   const {return fZEMn;}   
37   TF1* GetfZEMp()   const {return fZEMp;}   
38   TF1* GetfZEMsp()  const {return fZEMsp;}
39   TF1* GetfZEMb()   const {return fZEMb;}   
40   
41   void SetfZNCen(const char* formula, Double_t xmin, Double_t xmax)
42        {fZNCen = new TF1("fZNCen", formula, xmin, xmax);}
43   void SetfZNPer(const char* formula, Double_t xmin, Double_t xmax)
44        {fZNPer = new TF1("fZNPer", formula, xmin, xmax);}
45   void SetfZPCen(const char* formula, Double_t xmin, Double_t xmax)
46        {fZPCen = new TF1("fZPCen", formula, xmin, xmax);}
47   void SetfZPPer(const char* formula, Double_t xmin, Double_t xmax)
48        {fZPPer = new TF1("fZPPer", formula, xmin, xmax);}
49   void SetfZDCCen(const char* formula, Double_t xmin, Double_t xmax)
50        {fZDCCen = new TF1("fZDCCen", formula, xmin, xmax);}
51   void SetfZDCPer(const char* formula, Double_t xmin, Double_t xmax)
52        {fZDCPer = new TF1("fZDCPer", formula, xmin, xmax);}
53   void SetfbCen(const char* formula, Double_t xmin, Double_t xmax)
54        {fbCen = new TF1("fbCen", formula, xmin, xmax);}
55   void SetfbPer(const char* formula, Double_t xmin, Double_t xmax)
56        {fbPer = new TF1("fbPer", formula, xmin, xmax);}
57   void SetfZEMn(const char* formula, Double_t xmin, Double_t xmax)
58        {fZEMn = new TF1("fZEMn", formula, xmin, xmax);}
59   void SetfZEMp(const char* formula, Double_t xmin, Double_t xmax)
60        {fZEMp = new TF1("fZEMp", formula, xmin, xmax);}
61   void SetfZEMsp(const char* formula, Double_t xmin, Double_t xmax)
62        {fZEMsp = new TF1("fZEMsp", formula, xmin, xmax);}
63   void SetfZEMb(const char* formula, Double_t xmin, Double_t xmax)
64        {fZEMb = new TF1("fZEMb", formula, xmin, xmax);}
65   
66   Float_t GetZEMEndValue()     const {return fZEMEndValue;}
67   Float_t GetZEMCutFraction()  const {return fZEMCutFraction;}
68   Float_t GetDZEMSup()         const {return fDZEMSup;}
69   Float_t GetDZEMInf()         const {return fDZEMInf;}
70   //
71   Float_t GetEZN1MaxValue()  const {return fEZN1MaxValue;}
72   Float_t GetEZP1MaxValue()  const {return fEZP1MaxValue;}
73   Float_t GetEZDC1MaxValue() const {return fEZDC1MaxValue;}
74   Float_t GetEZN2MaxValue()  const {return fEZN2MaxValue;}
75   Float_t GetEZP2MaxValue()  const {return fEZP2MaxValue;}
76   Float_t GetEZDC2MaxValue() const {return fEZDC2MaxValue;}
77     
78   void  SetZEMEndValue(Float_t ZEMEndValue) {fZEMEndValue = ZEMEndValue;}
79   void  SetZEMCutFraction(Float_t ZEMCutFraction) {fZEMCutFraction = ZEMCutFraction;}
80   void  SetDZEMSup(Float_t DZEMSup) {fDZEMSup = DZEMSup;}
81   void  SetDZEMInf(Float_t DZEMInf) {fDZEMInf = DZEMInf;}
82   //
83   void  SetEZN1MaxValue(Float_t value)  {fEZN1MaxValue = value;}
84   void  SetEZP1MaxValue(Float_t value)  {fEZP1MaxValue = value;}
85   void  SetEZDC1MaxValue(Float_t value) {fEZDC1MaxValue = value;}
86   void  SetEZN2MaxValue(Float_t value)  {fEZN2MaxValue = value;}
87   void  SetEZP2MaxValue(Float_t value)  {fEZP2MaxValue = value;}
88   void  SetEZDC2MaxValue(Float_t value) {fEZDC2MaxValue = value;}
89   
90   void PrintParameters() const; 
91   
92  protected:
93   
94   AliZDCRecoParamPbPb(const AliZDCRecoParamPbPb&);
95   AliZDCRecoParamPbPb& operator =(const AliZDCRecoParamPbPb&);
96  
97   // *** PARAMETERS FOR Pb-Pb COLLISIONS
98   // --- Functions to evaluate centrality variables from defined functions
99   TF1* fZNCen;   //! Nspectator n true vs. EZN
100   TF1* fZNPer;   //! Nspectator n true vs. EZN
101   TF1* fZPCen;   //! Nspectator p true vs. EZP
102   TF1* fZPPer;   //! Nspectator p true vs. EZP
103   TF1* fZDCCen;  //! Nspectators true vs. EZDC
104   TF1* fZDCPer;  //! Nspectators true vs. EZDC
105   TF1* fbCen;    //! b vs. EZDC
106   TF1* fbPer;    //! b vs. EZDC
107   TF1* fZEMn;    //! Nspectators n from ZEM energy
108   TF1* fZEMp;    //! Nspectators p from ZEM energy
109   TF1* fZEMsp;   //! Nspectators from ZEM energy
110   TF1* fZEMb;    //! b from ZEM energy
111   // --- Coefficients for centrality selection from ZEM signal
112   Float_t  fZEMEndValue;         // End point value of ZEM energy spectrum
113   Float_t  fZEMCutFraction;      // Fraction of ZEM energy spectrum used to cut
114   Float_t  fDZEMSup;// Upper value of EZDCvs.ZEM correlation where ZEM signal is used
115   Float_t  fDZEMInf;// Lower value of EZDCvs.ZEM correlation where ZEM signal is used
116   // --- Parameters from EZDC vs. Nspec correlation
117   Float_t  fEZN1MaxValue;        // Max value of ZN1 vs. Nspec n correlation
118   Float_t  fEZP1MaxValue;        // Max value of ZP1 vs. Nspec p correlation
119   Float_t  fEZDC1MaxValue;       // Max value of ZDC1 vs. Nspec n+p correlation
120   Float_t  fEZN2MaxValue;        // Max value of ZN2 vs. Nspec n correlation
121   Float_t  fEZP2MaxValue;        // Max value of ZP2 vs. Nspec p correlation
122   Float_t  fEZDC2MaxValue;       // Max value of ZDC2 vs. Nspec n+p correlation
123  
124  ClassDef(AliZDCRecoParamPbPb, 1)
125
126 };
127
128 #endif