]>
Commit | Line | Data |
---|---|---|
809a4336 | 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 | **************************************************************************/ | |
50685501 | 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 | // | |
faee3b18 | 23 | #include "AliESDpid.h" |
809a4336 | 24 | #include "AliHFEpidBase.h" |
25 | ||
26 | ClassImp(AliHFEpidBase) | |
27 | ||
faee3b18 | 28 | //___________________________________________________________________ |
29 | AliHFEpidBase::AliHFEpidBase(): | |
30 | TNamed(), | |
31 | fESDpid(NULL), | |
32 | fDebugLevel(0) | |
33 | { | |
34 | // | |
35 | // Default constructor | |
36 | // | |
37 | } | |
38 | ||
809a4336 | 39 | //___________________________________________________________________ |
40 | AliHFEpidBase::AliHFEpidBase(const Char_t *name): | |
41 | TNamed(name, ""), | |
faee3b18 | 42 | fESDpid(NULL), |
809a4336 | 43 | fDebugLevel(0) |
44 | { | |
45 | // | |
46 | // Default constructor | |
47 | // | |
48 | } | |
49 | ||
50 | //___________________________________________________________________ | |
51 | AliHFEpidBase::AliHFEpidBase(const AliHFEpidBase &c): | |
52 | TNamed(), | |
faee3b18 | 53 | fESDpid(NULL), |
809a4336 | 54 | fDebugLevel(0) |
55 | { | |
56 | // | |
57 | //Copy constructor | |
58 | // | |
59 | c.Copy(*this); | |
60 | } | |
61 | ||
62 | //___________________________________________________________________ | |
63 | AliHFEpidBase &AliHFEpidBase::operator=(const AliHFEpidBase &ref){ | |
64 | // | |
65 | // Assignment operator | |
66 | // | |
67 | if(this != &ref){ | |
68 | ref.Copy(*this); | |
69 | } | |
70 | ||
71 | return *this; | |
75d81601 | 72 | } |
809a4336 | 73 | |
74 | //___________________________________________________________________ | |
75 | void AliHFEpidBase::Copy(TObject &ref) const { | |
50685501 | 76 | // |
77 | // Copy function for assignment operator | |
78 | // | |
809a4336 | 79 | AliHFEpidBase &target = dynamic_cast<AliHFEpidBase &>(ref); |
80 | ||
faee3b18 | 81 | target.fESDpid = fESDpid; |
809a4336 | 82 | target.fDebugLevel = fDebugLevel; |
83 | ||
84 | TNamed::Copy(ref); | |
85 | } | |
86 |