]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliDetectorTag.cxx
Initialization of some data members (Alberto)
[u/mrichter/AliRoot.git] / STEER / AliDetectorTag.cxx
CommitLineData
f3a97c86 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/* $Id$ */
17
18//-----------------------------------------------------------------
19// Implementation of the DetectorTag class
20// This is the class to deal with the tags in the detector level
21// Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
22//-----------------------------------------------------------------
23
24#include "AliDetectorTag.h"
25
26ClassImp(AliDetectorTag)
27
719bd672 28//___________________________________________________________________________
29 AliDetectorTag::AliDetectorTag() :
30 TObject(),
31 fITS(kFALSE),
32 fTPC(kFALSE),
33 fTRD(kFALSE),
34 fTOF(kFALSE),
35 fHMPID(kFALSE),
36 fPHOS(kFALSE),
37 fZDC(kFALSE),
38 fMUON(kFALSE),
39 fPMD(kFALSE),
40 fEMCAL(kFALSE),
41 fVZERO(kFALSE),
42 fTZERO(kFALSE)
f3a97c86 43{
e16601cf 44 // Default constructor
f3a97c86 45}
46
719bd672 47//___________________________________________________________________________
48AliDetectorTag::AliDetectorTag(const AliDetectorTag & detTag) : TObject(detTag) {
f3a97c86 49 // DetectorTag copy constructor
719bd672 50 SetITS();
51 SetTPC();
52 SetTRD();
53 SetTOF();
54 SetHMPID();
55 SetPHOS();
56 SetZDC();
57 SetMUON();
58 SetPMD();
59 SetEMCAL();
60 SetVZERO();
61 SetTZERO();
f3a97c86 62}
63
719bd672 64//___________________________________________________________________________
65AliDetectorTag & AliDetectorTag::operator=(const AliDetectorTag &detTag) {
66 //DetectorTag assignment operator
67 if (this != &detTag) {
68 TObject::operator=(detTag);
69
70 SetITS();
71 SetTPC();
72 SetTRD();
73 SetTOF();
74 SetHMPID();
75 SetPHOS();
76 SetZDC();
77 SetMUON();
78 SetPMD();
79 SetEMCAL();
80 SetVZERO();
81 SetTZERO();
82 }
83 return *this;
84}
85
86
87//___________________________________________________________________________
88AliDetectorTag::~AliDetectorTag() {
e16601cf 89 // Destructor
f3a97c86 90}