test
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRecPoint.cxx
CommitLineData
d15a28e7 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//_________________________________________________________________________
17// PHOSRecPoint base class deriving from AliRecPoint
18//*-- Author : Gines MARTINEZ SUBATECH
19//////////////////////////////////////////////////////////////////////////////
20
21// --- ROOT system ---
22
23// --- Standard library ---
24
25// --- AliRoot header files ---
26
27#include "AliPHOSGeometry.h"
28#include "AliPHOSDigit.h"
29#include "AliPHOSRecPoint.h"
30
31ClassImp(AliPHOSRecPoint)
32
33
34//____________________________________________________________________________
35AliPHOSRecPoint::AliPHOSRecPoint()
36 : AliRecPoint()
37{
38 fGeom = AliPHOSGeometry::GetInstance() ;
39 fPHOSMod = 0;
40}
41
42//____________________________________________________________________________
43AliPHOSRecPoint::~AliPHOSRecPoint()
44{
45 // dtor
46}
47
48//____________________________________________________________________________
49Int_t AliPHOSRecPoint::GetPHOSMod()
50{
51 if(fPHOSMod > 0) return fPHOSMod ;
52 Int_t relid[4] ;
53
54 AliPHOSDigit * digit ;
55 digit = (AliPHOSDigit *) fDigitsList[0] ;
56 AliPHOSGeometry * PHOSGeom = (AliPHOSGeometry *) fGeom ;
57
58 PHOSGeom->AbsToRelNumbering(digit->GetId(), relid) ;
59 fPHOSMod = relid[0];
60 return fPHOSMod ;
61}