]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGHF/hfe/AliHFEpidBase.cxx
Transition PWG3 --> PWGHF
[u/mrichter/AliRoot.git] / PWGHF / hfe / AliHFEpidBase.cxx
1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 *                                                                        *
4 * Author: The ALICE Off-line Project.                                    *
5 * Contributors are mentioned in the code where appropriate.              *
6 *                                                                        *
7 * Permission to use, copy, modify and distribute this software and its   *
8 * documentation strictly for non-commercial purposes is hereby granted   *
9 * without fee, provided that the above copyright notice appears in all   *
10 * copies and that both the copyright notice and this permission notice   *
11 * appear in the supporting documentation. The authors make no claims     *
12 * about the suitability of this software for any purpose. It is          *
13 * provided "as is" without express or implied warranty.                  *
14 **************************************************************************/
15 //
16 // Abstract PID base class for Detector PID classes 
17 // Supplies detector PID classes with basic informations (i.e. Debug 
18 // Level)
19 //  
20 // Authors: 
21 //   Markus Fasel <M.Fasel@gsi.de> 
22 // 
23
24 #include "AliHFEpidBase.h"
25 #include "AliHFEtools.h"
26
27 ClassImp(AliHFEpidBase)
28
29 //___________________________________________________________________
30 AliHFEpidBase::AliHFEpidBase():
31   TNamed(),
32   fkPIDResponse(NULL)
33 {
34   //
35   // Default constructor
36   //
37 }
38
39 //___________________________________________________________________
40 AliHFEpidBase::AliHFEpidBase(const Char_t *name):
41   TNamed(name, ""),
42   fkPIDResponse(NULL)
43 {
44   //
45   // Default constructor
46   //
47 }
48
49 //___________________________________________________________________
50 AliHFEpidBase::AliHFEpidBase(const AliHFEpidBase &c):
51   TNamed(c),
52   fkPIDResponse(NULL)
53 {
54   //
55   //Copy constructor
56   //
57   c.Copy(*this);
58 }
59
60 //___________________________________________________________________
61 AliHFEpidBase &AliHFEpidBase::operator=(const AliHFEpidBase &ref){
62   //
63   // Assignment operator
64   //
65   if(this != &ref){
66     ref.Copy(*this);
67   }
68
69   return *this;
70 }
71
72 //___________________________________________________________________
73 void AliHFEpidBase::Copy(TObject &ref) const {
74   //
75   // Copy function for assignment operator
76   //
77   AliHFEpidBase &target = dynamic_cast<AliHFEpidBase &>(ref);
78
79   target.fkPIDResponse = fkPIDResponse;
80
81   TNamed::Copy(ref);
82 }
83
84