class restored.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 27 Oct 2011 15:28:03 +0000 (15:28 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 27 Oct 2011 15:28:03 +0000 (15:28 +0000)
OADB/AliOADBCentrality.cxx [new file with mode: 0644]
OADB/AliOADBCentrality.h [new file with mode: 0644]
OADB/CMakelibOADB.pkg
OADB/OADBLinkDef.h

diff --git a/OADB/AliOADBCentrality.cxx b/OADB/AliOADBCentrality.cxx
new file mode 100644 (file)
index 0000000..c7521dd
--- /dev/null
@@ -0,0 +1,83 @@
+/**************************************************************************
+ * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Author: The ALICE Off-line Project.                                    *
+ * Contributors are mentioned in the code where appropriate.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+
+/* $Id$ */
+
+//-------------------------------------------------------------------------
+//     OADB class for run dependent centrality scaling and 
+//     data for centrality determination
+//     Author: Andreas Morsch, CERN
+//-------------------------------------------------------------------------
+
+#include "AliOADBCentrality.h"
+ClassImp(AliOADBCentrality);
+
+//______________________________________________________________________________
+AliOADBCentrality::AliOADBCentrality() : 
+  TNamed(),
+  fV0MScaleFactor(1.),
+  fSPDScaleFactor(1.),
+  fTPCScaleFactor(1.),
+  fV0MScaleFactorMC(1.),
+  fV0MSPDOutlierPar0(1.),
+  fV0MSPDOutlierPar1(1.),
+  fV0MTPCOutlierPar0(1.),
+  fV0MTPCOutlierPar1(1.),
+  fV0MSPDSigmaOutlierPar0(1.),
+  fV0MSPDSigmaOutlierPar1(1.),
+  fV0MSPDSigmaOutlierPar2(1.),
+  fV0MTPCSigmaOutlierPar0(1.),
+  fV0MTPCSigmaOutlierPar1(1.),
+  fV0MTPCSigmaOutlierPar2(1.),
+  fV0MZDCOutlierPar0(1.),
+  fV0MZDCOutlierPar1(1.),
+  fV0MZDCEcalOutlierPar0(1.),
+  fV0MZDCEcalOutlierPar1(1.),
+  f1DHistos(),
+  f2DHistos()
+{
+  // Default constructor
+}
+//______________________________________________________________________________
+AliOADBCentrality::AliOADBCentrality(char* name) : 
+  TNamed(name, "Centrality Scaling"),
+  fV0MScaleFactor(1.),
+  fSPDScaleFactor(1.),
+  fTPCScaleFactor(1.),
+  fV0MScaleFactorMC(1.),
+  fV0MSPDOutlierPar0(1.),
+  fV0MSPDOutlierPar1(1.),
+  fV0MTPCOutlierPar0(1.),
+  fV0MTPCOutlierPar1(1.),
+  fV0MSPDSigmaOutlierPar0(1.),
+  fV0MSPDSigmaOutlierPar1(1.),
+  fV0MSPDSigmaOutlierPar2(1.),
+  fV0MTPCSigmaOutlierPar0(1.),
+  fV0MTPCSigmaOutlierPar1(1.),
+  fV0MTPCSigmaOutlierPar2(1.),
+  fV0MZDCOutlierPar0(1.),
+  fV0MZDCOutlierPar1(1.),
+  fV0MZDCEcalOutlierPar0(1.),
+  fV0MZDCEcalOutlierPar1(1.),
+  f1DHistos(),
+  f2DHistos()
+{
+  // Constructor
+}
+//______________________________________________________________________________
+AliOADBCentrality::~AliOADBCentrality() 
+{
+  // destructor
+}
diff --git a/OADB/AliOADBCentrality.h b/OADB/AliOADBCentrality.h
new file mode 100644 (file)
index 0000000..d247376
--- /dev/null
@@ -0,0 +1,105 @@
+#ifndef AliOADBCentrality_H
+#define AliOADBCentrality_H
+/* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id$ */
+
+//-------------------------------------------------------------------------
+//     OADB class for run dependent centrality scaling factors and 
+//     data for centrality determination
+//     Author: Andreas Morsch, CERN
+//-------------------------------------------------------------------------
+
+#include <TNamed.h>
+#include <TList.h>
+#include <TH1F.h>
+#include <TH2F.h>
+
+
+class AliOADBCentrality : public TNamed {
+
+ public :
+  AliOADBCentrality();
+  AliOADBCentrality(char* name);
+  virtual ~AliOADBCentrality();
+  Float_t V0MScaleFactor()   const  {return fV0MScaleFactor;}
+  Float_t SPDScaleFactor()   const  {return fSPDScaleFactor;}
+  Float_t TPCScaleFactor()   const  {return fTPCScaleFactor;}
+  Float_t V0MScaleFactorMC() const  {return fV0MScaleFactorMC;}
+
+  Float_t V0MSPDOutlierPar0()      const  {return fV0MSPDOutlierPar0      ;}
+  Float_t V0MSPDOutlierPar1()      const  {return fV0MSPDOutlierPar1      ;}
+  Float_t V0MTPCOutlierPar0()      const  {return fV0MTPCOutlierPar0      ;}
+  Float_t V0MTPCOutlierPar1()      const  {return fV0MTPCOutlierPar1      ;}
+
+  Float_t V0MSPDSigmaOutlierPar0() const  {return fV0MSPDSigmaOutlierPar0 ;}
+  Float_t V0MSPDSigmaOutlierPar1() const  {return fV0MSPDSigmaOutlierPar1 ;}
+  Float_t V0MSPDSigmaOutlierPar2() const  {return fV0MSPDSigmaOutlierPar2 ;}
+  Float_t V0MTPCSigmaOutlierPar0() const  {return fV0MTPCSigmaOutlierPar0 ;}
+  Float_t V0MTPCSigmaOutlierPar1() const  {return fV0MTPCSigmaOutlierPar1 ;}
+  Float_t V0MTPCSigmaOutlierPar2() const  {return fV0MTPCSigmaOutlierPar2 ;}
+
+  Float_t V0MZDCOutlierPar0()      const  {return fV0MZDCOutlierPar0      ;}
+  Float_t V0MZDCOutlierPar1()      const  {return fV0MZDCOutlierPar1      ;}
+  Float_t V0MZDCEcalOutlierPar0()  const  {return fV0MZDCEcalOutlierPar0  ;}
+  Float_t V0MZDCEcalOutlierPar1()  const  {return fV0MZDCEcalOutlierPar1  ;}
+
+  TH1F*   V0hist()         const  {return ((TH1F*) (Hists1D()->FindObject("fHOutMultV0M_percentile")));}
+  TH1F*   TPChist()        const  {return ((TH1F*) (Hists1D()->FindObject("fHOutMultTRK_percentile")));}
+  TH1F*   SPDhist()        const  {return ((TH1F*) (Hists1D()->FindObject("fHOutMultCL1_percentile")));}
+  TH2F*   ZEMvsZDChist()   const  {return ((TH2F*) (Hists2D()->FindObject("fHOutMultZEMvsZDC")));}
+  TList*  Hists1D()        const  {return f1DHistos;}
+  TList*  Hists2D()        const  {return f2DHistos;}
+
+  void    SetScaleFactors(Float_t v0m, Float_t spd, Float_t tpc, Float_t v0mMC)
+  {fV0MScaleFactor = v0m; fSPDScaleFactor = spd; fTPCScaleFactor = tpc; fV0MScaleFactorMC = v0mMC;}
+  
+  void    SetOutlierV0MSPDFactors(Float_t a1, Float_t a2, Float_t a3, Float_t a4, Float_t a5)
+  {fV0MSPDOutlierPar0=a1;fV0MSPDOutlierPar1=a2;fV0MSPDSigmaOutlierPar0=a3;fV0MSPDSigmaOutlierPar1=a4;fV0MSPDSigmaOutlierPar2=a5;}
+  
+  void    SetOutlierV0MTPCFactors(Float_t a1, Float_t a2, Float_t a3, Float_t a4, Float_t a5)
+  {fV0MTPCOutlierPar0=a1;fV0MTPCOutlierPar1=a2;fV0MTPCSigmaOutlierPar0=a3;fV0MTPCSigmaOutlierPar1=a4;fV0MTPCSigmaOutlierPar2=a5;}
+
+  void    SetOutlierV0MZDCFactors(Float_t a1, Float_t a2)
+  {fV0MZDCOutlierPar0=a1;fV0MZDCOutlierPar1=a2;}
+  
+  void    SetOutlierV0MZDCEcalFactors(Float_t a1, Float_t a2)
+  {fV0MZDCEcalOutlierPar0=a1;fV0MZDCEcalOutlierPar1=a2;}
+  
+  void    SetHistReferences(TList* l1, TList* l2)
+  {f1DHistos = l1; f2DHistos = l2;}
+
+ private:
+  AliOADBCentrality(const AliOADBCentrality& cont); 
+  AliOADBCentrality& operator=(const AliOADBCentrality& cont);
+
+ private:
+  Float_t fV0MScaleFactor; // V0  scale factor
+  Float_t fSPDScaleFactor; // SPD scale factor
+  Float_t fTPCScaleFactor; // TPC scale factor
+  Float_t fV0MScaleFactorMC; // V0  scale factor for MC
+
+  Float_t fV0MSPDOutlierPar0;
+  Float_t fV0MSPDOutlierPar1;
+  Float_t fV0MTPCOutlierPar0;
+  Float_t fV0MTPCOutlierPar1;
+
+  Float_t fV0MSPDSigmaOutlierPar0;
+  Float_t fV0MSPDSigmaOutlierPar1;
+  Float_t fV0MSPDSigmaOutlierPar2;
+  Float_t fV0MTPCSigmaOutlierPar0;
+  Float_t fV0MTPCSigmaOutlierPar1;
+  Float_t fV0MTPCSigmaOutlierPar2;
+
+  Float_t fV0MZDCOutlierPar0;
+  Float_t fV0MZDCOutlierPar1;
+  Float_t fV0MZDCEcalOutlierPar0;
+  Float_t fV0MZDCEcalOutlierPar1;
+
+  TList*    f1DHistos; // Reference to list of 1D Centrality histos 
+  TList*    f2DHistos; // Reference to list of 2D Centrality histos
+  ClassDef(AliOADBCentrality, 2);
+};
+
+#endif
index 965fb20..a1ea1d9 100644 (file)
@@ -1,6 +1,7 @@
 #-*- Mode: CMake -*-
 set ( SRCS  
   AliOADBPWG2Spectra.cxx 
+  AliOADBCentrality.cxx 
   AliOADBPhysicsSelection.cxx 
   AliOADBFillingScheme.cxx 
   AliOADBTriggerAnalysis.cxx 
index 5312a54..d6a31fa 100644 (file)
@@ -7,7 +7,7 @@
 #pragma link off all globals;
 #pragma link off all classes;
 #pragma link off all functions;
+#pragma link C++ class AliOADBCentrality+;
 #pragma link C++ class AliOADBPhysicsSelection+;
 #pragma link C++ class AliOADBFillingScheme+;
 #pragma link C++ class AliOADBPWG2Spectra+;