Container classes for the PHOS reconstruction parameters.
authorpolicheh <policheh@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 16 Feb 2007 14:01:38 +0000 (14:01 +0000)
committerpolicheh <policheh@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 16 Feb 2007 14:01:38 +0000 (14:01 +0000)
PHOS/AliPHOSRecoParam.cxx [new file with mode: 0644]
PHOS/AliPHOSRecoParam.h [new file with mode: 0644]
PHOS/AliPHOSRecoParamCpv.cxx [new file with mode: 0644]
PHOS/AliPHOSRecoParamCpv.h [new file with mode: 0644]
PHOS/AliPHOSRecoParamEmc.cxx [new file with mode: 0644]
PHOS/AliPHOSRecoParamEmc.h [new file with mode: 0644]

diff --git a/PHOS/AliPHOSRecoParam.cxx b/PHOS/AliPHOSRecoParam.cxx
new file mode 100644 (file)
index 0000000..a35ba14
--- /dev/null
@@ -0,0 +1,56 @@
+/**************************************************************************
+ * 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;
+}
+
diff --git a/PHOS/AliPHOSRecoParam.h b/PHOS/AliPHOSRecoParam.h
new file mode 100644 (file)
index 0000000..fd49760
--- /dev/null
@@ -0,0 +1,43 @@
+#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
diff --git a/PHOS/AliPHOSRecoParamCpv.cxx b/PHOS/AliPHOSRecoParamCpv.cxx
new file mode 100644 (file)
index 0000000..71aa583
--- /dev/null
@@ -0,0 +1,47 @@
+/**************************************************************************
+ * 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;
+}
diff --git a/PHOS/AliPHOSRecoParamCpv.h b/PHOS/AliPHOSRecoParamCpv.h
new file mode 100644 (file)
index 0000000..01a6ecb
--- /dev/null
@@ -0,0 +1,26 @@
+#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
diff --git a/PHOS/AliPHOSRecoParamEmc.cxx b/PHOS/AliPHOSRecoParamEmc.cxx
new file mode 100644 (file)
index 0000000..d26b4ef
--- /dev/null
@@ -0,0 +1,47 @@
+/**************************************************************************
+ * 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;
+}
diff --git a/PHOS/AliPHOSRecoParamEmc.h b/PHOS/AliPHOSRecoParamEmc.h
new file mode 100644 (file)
index 0000000..fa76461
--- /dev/null
@@ -0,0 +1,26 @@
+#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