]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG3/hfe/AliHFEpidBase.cxx
Minor fix for software triggers.
[u/mrichter/AliRoot.git] / PWG3 / 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 #include "AliESDpid.h"
24 #include "AliHFEpidBase.h"
25
26 ClassImp(AliHFEpidBase)
27
28 //___________________________________________________________________
29 AliHFEpidBase::AliHFEpidBase():
30   TNamed(),
31   fESDpid(NULL),
32   fDebugLevel(0)
33 {
34   //
35   // Default constructor
36   //
37 }
38
39 //___________________________________________________________________
40 AliHFEpidBase::AliHFEpidBase(const Char_t *name):
41   TNamed(name, ""),
42   fESDpid(NULL),
43   fDebugLevel(0)
44 {
45   //
46   // Default constructor
47   //
48 }
49
50 //___________________________________________________________________
51 AliHFEpidBase::AliHFEpidBase(const AliHFEpidBase &c):
52   TNamed(),
53   fESDpid(NULL),
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;
72 }
73
74 //___________________________________________________________________
75 void AliHFEpidBase::Copy(TObject &ref) const {
76   //
77   // Copy function for assignment operator
78   //
79   AliHFEpidBase &target = dynamic_cast<AliHFEpidBase &>(ref);
80
81   target.fESDpid = fESDpid;
82   target.fDebugLevel = fDebugLevel;
83
84   TNamed::Copy(ref);
85 }
86