]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG3/hfe/AliHFEpidBase.cxx
new macro to handle setting of default event species for reco params
[u/mrichter/AliRoot.git] / PWG3 / hfe / AliHFEpidBase.cxx
CommitLineData
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//
809a4336 23#include "AliHFEpidBase.h"
24
25ClassImp(AliHFEpidBase)
26
27//___________________________________________________________________
28AliHFEpidBase::AliHFEpidBase(const Char_t *name):
29 TNamed(name, ""),
809a4336 30 fDebugLevel(0)
31{
32 //
33 // Default constructor
34 //
35}
36
37//___________________________________________________________________
38AliHFEpidBase::AliHFEpidBase(const AliHFEpidBase &c):
39 TNamed(),
809a4336 40 fDebugLevel(0)
41{
42 //
43 //Copy constructor
44 //
45 c.Copy(*this);
46}
47
48//___________________________________________________________________
49AliHFEpidBase &AliHFEpidBase::operator=(const AliHFEpidBase &ref){
50 //
51 // Assignment operator
52 //
53 if(this != &ref){
54 ref.Copy(*this);
55 }
56
57 return *this;
75d81601 58}
809a4336 59
60//___________________________________________________________________
61void AliHFEpidBase::Copy(TObject &ref) const {
50685501 62 //
63 // Copy function for assignment operator
64 //
809a4336 65 AliHFEpidBase &target = dynamic_cast<AliHFEpidBase &>(ref);
66
809a4336 67 target.fDebugLevel = fDebugLevel;
68
69 TNamed::Copy(ref);
70}
71