X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ZDC%2FAliZDCRecoParamPbPb.h;h=2f0e50de892b4c0379c45cffbfa2098fa3ece9c2;hb=725da720897da625e158901c80e9b4dbe0d63266;hp=933bff25ffd6cfc6465f6c8a296ea53661252ec0;hpb=7bff376657fb784d02d203615fa7f557a518de2a;p=u%2Fmrichter%2FAliRoot.git diff --git a/ZDC/AliZDCRecoParamPbPb.h b/ZDC/AliZDCRecoParamPbPb.h index 933bff25ffd..2f0e50de892 100644 --- a/ZDC/AliZDCRecoParamPbPb.h +++ b/ZDC/AliZDCRecoParamPbPb.h @@ -11,117 +11,43 @@ // // ////////////////////////////////////////////////////////// -#include +#include "AliLog.h" +#include "AliCDBEntry.h" +#include "AliCDBManager.h" #include "AliZDCRecoParam.h" -#include "AliZDCRecoParamPbPb.h" - -//class TF1; class AliZDCRecoParamPbPb : public AliZDCRecoParam { public: AliZDCRecoParamPbPb(); + AliZDCRecoParamPbPb(TH1D * hNpart, TH1D * hb, Float_t clkCent); + AliZDCRecoParamPbPb(const AliZDCRecoParamPbPb &oldrecopar); + AliZDCRecoParamPbPb& operator= (const AliZDCRecoParamPbPb &recpar); virtual ~AliZDCRecoParamPbPb(); - // make reco parameters for Pb-Pb collisions - static AliZDCRecoParamPbPb *GetPbPbRecoParam(); - - TF1* GetfZNCen() const {return fZNCen;} - TF1* GetfZNPer() const {return fZNPer;} - TF1* GetfZPCen() const {return fZPCen;} - TF1* GetfZPPer() const {return fZPPer;} - TF1* GetfZDCCen() const {return fZDCCen;} - TF1* GetfZDCPer() const {return fZDCPer;} - TF1* GetfbCen() const {return fbCen;} - TF1* GetfbPer() const {return fbPer;} - TF1* GetfZEMn() const {return fZEMn;} - TF1* GetfZEMp() const {return fZEMp;} - TF1* GetfZEMsp() const {return fZEMsp;} - TF1* GetfZEMb() const {return fZEMb;} + + // make reco parameters for A-A collisions + static AliZDCRecoParamPbPb *GetHighFluxParam(Float_t beamEnergy); - void SetfZNCen(const char* formula, Double_t xmin, Double_t xmax) - {fZNCen = new TF1("fZNCen", formula, xmin, xmax);} - void SetfZNPer(const char* formula, Double_t xmin, Double_t xmax) - {fZNPer = new TF1("fZNPer", formula, xmin, xmax);} - void SetfZPCen(const char* formula, Double_t xmin, Double_t xmax) - {fZPCen = new TF1("fZPCen", formula, xmin, xmax);} - void SetfZPPer(const char* formula, Double_t xmin, Double_t xmax) - {fZPPer = new TF1("fZPPer", formula, xmin, xmax);} - void SetfZDCCen(const char* formula, Double_t xmin, Double_t xmax) - {fZDCCen = new TF1("fZDCCen", formula, xmin, xmax);} - void SetfZDCPer(const char* formula, Double_t xmin, Double_t xmax) - {fZDCPer = new TF1("fZDCPer", formula, xmin, xmax);} - void SetfbCen(const char* formula, Double_t xmin, Double_t xmax) - {fbCen = new TF1("fbCen", formula, xmin, xmax);} - void SetfbPer(const char* formula, Double_t xmin, Double_t xmax) - {fbPer = new TF1("fbPer", formula, xmin, xmax);} - void SetfZEMn(const char* formula, Double_t xmin, Double_t xmax) - {fZEMn = new TF1("fZEMn", formula, xmin, xmax);} - void SetfZEMp(const char* formula, Double_t xmin, Double_t xmax) - {fZEMp = new TF1("fZEMp", formula, xmin, xmax);} - void SetfZEMsp(const char* formula, Double_t xmin, Double_t xmax) - {fZEMsp = new TF1("fZEMsp", formula, xmin, xmax);} - void SetfZEMb(const char* formula, Double_t xmin, Double_t xmax) - {fZEMb = new TF1("fZEMb", formula, xmin, xmax);} + TH1D* GethNpartDist() const {return fhNpartDist;} + TH1D* GethbDist() const {return fhbDist;} + Float_t GetClkCenter() const {return fClkCenter;} - Float_t GetZEMEndValue() const {return fZEMEndValue;} - Float_t GetZEMCutFraction() const {return fZEMCutFraction;} - Float_t GetDZEMSup() const {return fDZEMSup;} - Float_t GetDZEMInf() const {return fDZEMInf;} - // - Float_t GetEZN1MaxValue() const {return fEZN1MaxValue;} - Float_t GetEZP1MaxValue() const {return fEZP1MaxValue;} - Float_t GetEZDC1MaxValue() const {return fEZDC1MaxValue;} - Float_t GetEZN2MaxValue() const {return fEZN2MaxValue;} - Float_t GetEZP2MaxValue() const {return fEZP2MaxValue;} - Float_t GetEZDC2MaxValue() const {return fEZDC2MaxValue;} + void SetNpartDist(TH1D *hDist) {fhNpartDist = hDist;} + void SetbDist(TH1D *hbDist) {fhbDist = hbDist;} + void SetClkCenter(Float_t xValue) {fClkCenter = xValue;} + void SetGlauberMCDist(Float_t beamEnergy); - void SetZEMEndValue(Float_t ZEMEndValue) {fZEMEndValue = ZEMEndValue;} - void SetZEMCutFraction(Float_t ZEMCutFraction) {fZEMCutFraction = ZEMCutFraction;} - void SetDZEMSup(Float_t DZEMSup) {fDZEMSup = DZEMSup;} - void SetDZEMInf(Float_t DZEMInf) {fDZEMInf = DZEMInf;} - // - void SetEZN1MaxValue(Float_t value) {fEZN1MaxValue = value;} - void SetEZP1MaxValue(Float_t value) {fEZP1MaxValue = value;} - void SetEZDC1MaxValue(Float_t value) {fEZDC1MaxValue = value;} - void SetEZN2MaxValue(Float_t value) {fEZN2MaxValue = value;} - void SetEZP2MaxValue(Float_t value) {fEZP2MaxValue = value;} - void SetEZDC2MaxValue(Float_t value) {fEZDC2MaxValue = value;} - - void PrintParameters() const; + //void Print(Option_t *) const; protected: - AliZDCRecoParamPbPb(const AliZDCRecoParamPbPb&); - AliZDCRecoParamPbPb& operator =(const AliZDCRecoParamPbPb&); - // *** PARAMETERS FOR Pb-Pb COLLISIONS - // --- Functions to evaluate centrality variables from defined functions - TF1* fZNCen; //! Nspectator n true vs. EZN - TF1* fZNPer; //! Nspectator n true vs. EZN - TF1* fZPCen; //! Nspectator p true vs. EZP - TF1* fZPPer; //! Nspectator p true vs. EZP - TF1* fZDCCen; //! Nspectators true vs. EZDC - TF1* fZDCPer; //! Nspectators true vs. EZDC - TF1* fbCen; //! b vs. EZDC - TF1* fbPer; //! b vs. EZDC - TF1* fZEMn; //! Nspectators n from ZEM energy - TF1* fZEMp; //! Nspectators p from ZEM energy - TF1* fZEMsp; //! Nspectators from ZEM energy - TF1* fZEMb; //! b from ZEM energy - // --- Coefficients for centrality selection from ZEM signal - Float_t fZEMEndValue; // End point value of ZEM energy spectrum - Float_t fZEMCutFraction; // Fraction of ZEM energy spectrum used to cut - Float_t fDZEMSup;// Upper value of EZDCvs.ZEM correlation where ZEM signal is used - Float_t fDZEMInf;// Lower value of EZDCvs.ZEM correlation where ZEM signal is used - // --- Parameters from EZDC vs. Nspec correlation - Float_t fEZN1MaxValue; // Max value of ZN1 vs. Nspec n correlation - Float_t fEZP1MaxValue; // Max value of ZP1 vs. Nspec p correlation - Float_t fEZDC1MaxValue; // Max value of ZDC1 vs. Nspec n+p correlation - Float_t fEZN2MaxValue; // Max value of ZN2 vs. Nspec n correlation - Float_t fEZP2MaxValue; // Max value of ZP2 vs. Nspec p correlation - Float_t fEZDC2MaxValue; // Max value of ZDC2 vs. Nspec n+p correlation + // --- Correlation E_ZDC vs. E_ZEM + TH1D * fhNpartDist; // Npart distribution from Glauber MC + TH1D * fhbDist; // b distribution from Glauber MC + Float_t fClkCenter; // clock center: value of x-axis - ClassDef(AliZDCRecoParamPbPb, 1) + ClassDef(AliZDCRecoParamPbPb, 3) };