]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliDetectorTag.cxx
patch for GCC < 4.3
[u/mrichter/AliRoot.git] / STEER / AliDetectorTag.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 /* $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 "TMath.h"
25
26 #include "AliDetectorTag.h"
27 #include "AliLog.h"
28 #include "TObjString.h"
29
30 ClassImp(AliDetectorTag)
31
32 //___________________________________________________________________________
33 AliDetectorTag::AliDetectorTag() :
34   TObject(),
35   fMaskDAQ(0),
36   fMaskReco(0)
37 {
38   // Default constructor
39 }
40
41 //___________________________________________________________________________
42 AliDetectorTag::AliDetectorTag(const AliDetectorTag & detTag) :
43   TObject(detTag),
44   fMaskDAQ(detTag.fMaskDAQ),
45   fMaskReco(detTag.fMaskReco)
46  {
47   // DetectorTag copy constructor
48 }
49
50 //___________________________________________________________________________
51 AliDetectorTag & AliDetectorTag::operator=(const AliDetectorTag &detTag) {
52   //DetectorTag assignment operator
53   if (this != &detTag) {
54     TObject::operator=(detTag);
55     
56     fMaskDAQ = detTag.fMaskDAQ;   
57     fMaskReco = detTag.fMaskReco;   
58   }
59   return *this;
60 }
61
62 //___________________________________________________________________________
63 AliDetectorTag::~AliDetectorTag() {
64   // Destructor
65 }
66
67
68 //___________________________________________________________________________
69 // void AliDetectorTag::SetDetectorConfiguration() {
70 //   //sets the detector configuration
71 //   if(fDetectors[0] == 1) {
72 //     SetITSSPD(); fDetectorArray->Add(new TObjString("SPD"));}
73 //   if(fDetectors[1] == 1) {
74 //     SetITSSDD(); fDetectorArray->Add(new TObjString("SDD"));}
75 //   if(fDetectors[2] == 1) {
76 //     SetITSSSD(); fDetectorArray->Add(new TObjString("SSD"));}
77 //   if(fDetectors[3] == 1) {
78 //     SetTPC(); fDetectorArray->Add(new TObjString("TPC"));}
79 //   if(fDetectors[4] == 1) {
80 //     SetTRD(); fDetectorArray->Add(new TObjString("TRD"));}
81 //   if(fDetectors[5] == 1) {
82 //     SetTOF(); fDetectorArray->Add(new TObjString("TOF"));}
83 //   if(fDetectors[6] == 1) {
84 //     SetHMPID();fDetectorArray->Add(new TObjString("HMPID"));}
85 //   if(fDetectors[7] == 1) {
86 //     SetPHOS(); fDetectorArray->Add(new TObjString("PHOS"));}
87 //   if(fDetectors[9] == 1) {
88 //     SetPMD(); fDetectorArray->Add(new TObjString("PMD"));}
89 //   if(fDetectors[10] == 1) {
90 //     SetMUON(); fDetectorArray->Add(new TObjString("MUON"));}
91 //   if(fDetectors[12] == 1) {
92 //     SetFMD(); fDetectorArray->Add(new TObjString("FMD"));}
93 //   if(fDetectors[13] == 1) {
94 //     SetTZERO(); fDetectorArray->Add(new TObjString("T0"));}
95 //   if(fDetectors[14] == 1) {
96 //     SetVZERO(); fDetectorArray->Add(new TObjString("VZERO"));}
97 //   if(fDetectors[15] == 1) {
98 //     SetZDC(); fDetectorArray->Add(new TObjString("ZDC"));}
99 //   if(fDetectors[18] == 1) {
100 //     SetEMCAL(); fDetectorArray->Add(new TObjString("EMCAL"));}
101 // }
102
103 //___________________________________________________________________________
104 void AliDetectorTag::PrintDetectorMask() {
105   //prints the detector mask
106   AliInfo( Form( "ITS-SPD: %d", GetITSSPD()) );
107   AliInfo( Form( "ITS-SDD: %d", GetITSSDD()) );
108   AliInfo( Form( "ITS-SSD: %d", GetITSSSD()) );
109   AliInfo( Form( "TPC: %d", GetTPC()) );
110   AliInfo( Form( "TRD: %d", GetTRD()) );
111   AliInfo( Form( "TOF: %d", GetTOF()) );
112   AliInfo( Form( "HMPID: %d", GetHMPID()) );
113   AliInfo( Form( "PHOS: %d", GetPHOS()) );
114   AliInfo( Form( "PMD: %d", GetPMD()) );
115   AliInfo( Form( "MUON: %d", GetMUON()) );
116   AliInfo( Form( "FMD: %d", GetFMD()) );
117   AliInfo( Form( "TZERO: %d", GetTZERO()) );
118   AliInfo( Form( "VZERO: %d", GetVZERO()) );
119   AliInfo( Form( "ZDC: %d", GetZDC()) );
120   AliInfo( Form( "EMCAL: %d", GetEMCAL()) );
121 }