]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/ana/IMT/AliHLTPHOSModuleZCoordinate.cxx
setting keyword substitution
[u/mrichter/AliRoot.git] / HLT / PHOS / ana / IMT / AliHLTPHOSModuleZCoordinate.cxx
1 // $Id$
2
3 /**************************************************************************
4  * This file is property of and copyright by the Experimental Nuclear     *
5  * Physics Group, Dep. of Physics                                         *
6  * University of Oslo, Norway, 2007                                       *
7  *                                                                        *
8  * Author: Per Thomas Hille <perthi@fys.uio.no> for the ALICE HLT Project.*
9  * Contributors are mentioned in the code where appropriate.              *
10  * Please report bugs to perthi@fys.uio.no                                *
11  *                                                                        *
12  * Permission to use, copy, modify and distribute this software and its   *
13  * documentation strictly for non-commercial purposes is hereby granted   *
14  * without fee, provided that the above copyright notice appears in all   *
15  * copies and that both the copyright notice and this permission notice   *
16  * appear in the supporting documentation. The authors make no claims     *
17  * about the suitability of this software for any purpose. It is          *
18  * provided "as is" without express or implied warranty.                  *
19  **************************************************************************/
20 #include "AliHLTPHOSModuleZCoordinate.h"
21 #include "AliHLTPHOSConstants.h"
22 #include "Rtypes.h"
23 #include <iostream>
24
25 //  const unsigned int N_ZROWS_MOD      =  56;                    /**<Number of rows per module*/       
26 //  const unsigned int N_XCOLUMNS_MOD   =  64;  
27
28 using namespace PhosHLTConst;
29 using namespace std;
30
31
32 AliHLTPHOSModuleZCoordinate::AliHLTPHOSModuleZCoordinate(int z) : fZ(0)
33 {
34   SetZ(z);
35 }
36
37
38 AliHLTPHOSModuleZCoordinate::AliHLTPHOSModuleZCoordinate() : fZ(0)
39 {
40   //never to be called
41 }
42
43 AliHLTPHOSModuleZCoordinate::~AliHLTPHOSModuleZCoordinate()
44 {
45
46 }
47
48 void
49 AliHLTPHOSModuleZCoordinate::SetZ(int z)
50 {
51   if( (z >= 0)  && (z < N_ZROWS_MOD) )
52     {
53       fZ = z;
54     }
55   else
56     {
57       cout << "ERROR, x value out of range" << endl;
58       cout << "Attemt to set z to " << z <<endl;
59       cout << "Allowd arne is " << 0 << " to " << N_ZROWS_MOD <<endl;
60     }
61
62 }
63
64 int
65 AliHLTPHOSModuleZCoordinate::GetZ()
66 {
67   return fZ;
68 }