]>
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 | // | |
3a72645a | 23 | |
809a4336 | 24 | #include "AliHFEpidBase.h" |
3a72645a | 25 | #include "AliHFEtools.h" |
809a4336 | 26 | |
27 | ClassImp(AliHFEpidBase) | |
28 | ||
faee3b18 | 29 | //___________________________________________________________________ |
30 | AliHFEpidBase::AliHFEpidBase(): | |
31 | TNamed(), | |
8c1c76e9 | 32 | fkPIDResponse(NULL) |
faee3b18 | 33 | { |
34 | // | |
35 | // Default constructor | |
36 | // | |
37 | } | |
38 | ||
809a4336 | 39 | //___________________________________________________________________ |
40 | AliHFEpidBase::AliHFEpidBase(const Char_t *name): | |
41 | TNamed(name, ""), | |
8c1c76e9 | 42 | fkPIDResponse(NULL) |
809a4336 | 43 | { |
44 | // | |
45 | // Default constructor | |
46 | // | |
47 | } | |
48 | ||
49 | //___________________________________________________________________ | |
50 | AliHFEpidBase::AliHFEpidBase(const AliHFEpidBase &c): | |
8c1c76e9 | 51 | TNamed(c), |
52 | fkPIDResponse(NULL) | |
809a4336 | 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; | |
75d81601 | 70 | } |
809a4336 | 71 | |
72 | //___________________________________________________________________ | |
73 | void AliHFEpidBase::Copy(TObject &ref) const { | |
50685501 | 74 | // |
75 | // Copy function for assignment operator | |
76 | // | |
809a4336 | 77 | AliHFEpidBase &target = dynamic_cast<AliHFEpidBase &>(ref); |
78 | ||
8c1c76e9 | 79 | target.fkPIDResponse = fkPIDResponse; |
809a4336 | 80 | |
81 | TNamed::Copy(ref); | |
82 | } | |
83 | ||
3a72645a | 84 |