Updates in order to enable the '2D' PID for the TRD developed by Daniel Lohner.
[u/mrichter/AliRoot.git] / STEER / STEERBase / AliTRDPIDParams.cxx
index f0be60afbf07c3c2aceda90762d30757bf907d76..950ac424f532508e16de0ceb325fd83a53e4f366 100644 (file)
@@ -49,6 +49,30 @@ AliTRDPIDParams::AliTRDPIDParams(const char *name) :
   fEntries = new TSortedList;
 }
 
+//____________________________________________________________
+AliTRDPIDParams::AliTRDPIDParams(const AliTRDPIDParams &ref):
+TNamed(ref),
+fEntries(NULL)
+{
+    //
+    // Copy constructor
+    //
+
+    fEntries=(TSortedList*)ref.fEntries->Clone();
+}
+
+//____________________________________________________________
+AliTRDPIDParams::AliTRDPIDParams(const AliTRDPIDParams &ref):
+TNamed(ref),
+fEntries(NULL)
+{
+    //
+    // Copy constructor
+    //
+
+    fEntries=(TSortedList*)ref.fEntries->Clone();
+}
+
 //____________________________________________________________
 AliTRDPIDParams::~AliTRDPIDParams(){
   //
@@ -155,6 +179,8 @@ AliTRDPIDParams::AliTRDPIDThresholds &AliTRDPIDParams::AliTRDPIDThresholds::oper
   //
   // Assignment operator
   //
+  if(&ref == this) return *this;
+
   TObject::operator=(ref);
 
   fNTracklets = ref.fNTracklets;