--- /dev/null
+/**************************************************************************
+ * Copyright(c) 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$ */
+
+// Base class for the PHOS reconstruction parameters.
+// Do not use in the reconstruction; use derivative classes instead.
+// Author: Boris Polichtchouk.
+
+// --- AliRoot header files ---
+#include "AliPHOSRecoParam.h"
+
+ClassImp(AliPHOSRecoParam)
+
+//-----------------------------------------------------------------------------
+AliPHOSRecoParam::AliPHOSRecoParam() : TNamed(),
+ fClusteringThreshold(9999),fLocMaxCut(9999),fMinE(9999),fW0(9999)
+{
+ //Default constructor.
+}
+
+//-----------------------------------------------------------------------------
+AliPHOSRecoParam::AliPHOSRecoParam(const AliPHOSRecoParam& recoParam):
+ TNamed(recoParam),fClusteringThreshold(recoParam.fClusteringThreshold),
+ fLocMaxCut(recoParam.fLocMaxCut),fMinE(recoParam.fMinE),fW0(recoParam.fW0)
+{
+ //Copy constructor.
+}
+
+//-----------------------------------------------------------------------------
+AliPHOSRecoParam& AliPHOSRecoParam::operator = (const AliPHOSRecoParam& recoParam)
+{
+ //Assignment operator.
+
+ if(this != &recoParam) {
+ fClusteringThreshold = recoParam.fClusteringThreshold;
+ fLocMaxCut = recoParam.fLocMaxCut;
+ fMinE = recoParam.fMinE;
+ fW0 = recoParam.fW0;
+ }
+
+ return *this;
+}
+
--- /dev/null
+#ifndef ALIPHOSRECOPARAM_H
+#define ALIPHOSRECOPARAM_H
+/* Copyright(c) 2007, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
+
+/* $Id$ */
+
+// Base class for the PHOS reconstruction parameters.
+// Do not use in the reconstruction; use derivative classes instead.
+
+#include "TNamed.h"
+
+
+class AliPHOSRecoParam : public TNamed {
+
+public:
+
+ AliPHOSRecoParam();
+ AliPHOSRecoParam(const AliPHOSRecoParam& recoParam);
+ AliPHOSRecoParam& operator = (const AliPHOSRecoParam& recoParam);
+ virtual ~AliPHOSRecoParam() {}
+
+ Float_t GetClusteringThreshold() const { return fClusteringThreshold; }
+ Float_t GetLocalMaxCut() const { return fLocMaxCut;}
+ Float_t GetMinE() const { return fMinE; }
+ Float_t GetLogWeight() const { return fW0; }
+
+ void SetClusteringThreshold(Float_t cluth) { fClusteringThreshold=cluth; }
+ void SetLocalMaxCut(Float_t cut) { fLocMaxCut=cut;}
+ void SetMinE(Float_t minE) { fMinE=minE; }
+ void SetLogWeight(Float_t w) { fW0=w; }
+
+protected:
+
+ Float_t fClusteringThreshold;
+ Float_t fLocMaxCut;
+ Float_t fMinE;
+ Float_t fW0;
+
+ ClassDef(AliPHOSRecoParam,1)
+};
+
+#endif
--- /dev/null
+/**************************************************************************
+ * Copyright(c) 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$ */
+
+// This class contains the PHOS CPV reconstruction parameters.
+// To get default parameters from any place of your code, use:
+// AliPHOSRecoParam* defPar = AliPHOSRecoParamCpv::GetCpvDefaultParameters();
+// Float_t cluth = defPar->GetClusteringThreshold();
+// ...
+
+// --- AliRoot header files ---
+#include "AliPHOSRecoParamCpv.h"
+
+ClassImp(AliPHOSRecoParamCpv)
+
+//-----------------------------------------------------------------------------
+AliPHOSRecoParamCpv::AliPHOSRecoParamCpv() : AliPHOSRecoParam()
+{
+ //Default constructor.
+
+ SetClusteringThreshold(0.0);
+ SetLocalMaxCut(0.03);
+ SetMinE(0.0);
+ SetLogWeight(4.0);
+}
+
+//-----------------------------------------------------------------------------
+AliPHOSRecoParam* AliPHOSRecoParamCpv::GetCpvDefaultParameters()
+{
+ //Default parameters for the reconstruction in CPV.
+
+ AliPHOSRecoParam* params = new AliPHOSRecoParamCpv();
+ return params;
+}
--- /dev/null
+#ifndef ALIPHOSRECOPARAMCPV_H
+#define ALIPHOSRECOPARAMCPV_H
+/* Copyright(c) 2007, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
+
+/* $Id$ */
+
+// This class contains the PHOS CPV reconstruction parameters.
+// See cxx source for use case.
+
+#include "AliPHOSRecoParam.h"
+
+
+class AliPHOSRecoParamCpv : public AliPHOSRecoParam {
+
+public:
+
+ AliPHOSRecoParamCpv();
+ virtual ~AliPHOSRecoParamCpv() {}
+
+ static AliPHOSRecoParam* GetCpvDefaultParameters();
+
+ ClassDef(AliPHOSRecoParamCpv,1)
+};
+
+#endif
--- /dev/null
+/**************************************************************************
+ * Copyright(c) 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$ */
+
+// This class contains the PHOS EMC reconstruction parameters.
+// To get default parameters from any place of your code, use:
+// AliPHOSRecoParam* defPar = AliPHOSRecoParamEmc::GetEmcDefaultParameters();
+// Float_t cluth = defPar->GetClusteringThreshold();
+// ...
+
+// --- AliRoot header files ---
+#include "AliPHOSRecoParamEmc.h"
+
+ClassImp(AliPHOSRecoParamEmc)
+
+//-----------------------------------------------------------------------------
+AliPHOSRecoParamEmc::AliPHOSRecoParamEmc() : AliPHOSRecoParam()
+{
+ //Default constructor.
+
+ SetClusteringThreshold(0.2);
+ SetLocalMaxCut(0.03);
+ SetMinE(0.01);
+ SetLogWeight(4.5);
+}
+
+//-----------------------------------------------------------------------------
+AliPHOSRecoParam* AliPHOSRecoParamEmc::GetEmcDefaultParameters()
+{
+ //Default parameters for the reconstruction in EMC.
+
+ AliPHOSRecoParam* params = new AliPHOSRecoParamEmc();
+ return params;
+}
--- /dev/null
+#ifndef ALIPHOSRECOPARAMEMC_H
+#define ALIPHOSRECOPARAMEMC_H
+/* Copyright(c) 2007, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
+
+/* $Id$ */
+
+// This class contains the PHOS EMC reconstruction parameters.
+// See cxx source for use case.
+
+#include "AliPHOSRecoParam.h"
+
+
+class AliPHOSRecoParamEmc : public AliPHOSRecoParam {
+
+public:
+
+ AliPHOSRecoParamEmc();
+ virtual ~AliPHOSRecoParamEmc() {}
+
+ static AliPHOSRecoParam* GetEmcDefaultParameters();
+
+ ClassDef(AliPHOSRecoParamEmc,1)
+};
+
+#endif