Coverity fix
[u/mrichter/AliRoot.git] / MFT / AliMFTCluster.cxx
CommitLineData
820b4d9e 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//
18// Class for the description of the clusters of the ALICE Muon Forward Tracker
19//
20// Contact author: antonio.uras@cern.ch
21//
22//====================================================================================================================================================
23
24#include "TObject.h"
25#include "AliMUONRawCluster.h"
26#include "AliMUONVCluster.h"
27#include "AliMFTCluster.h"
28
29ClassImp(AliMFTCluster)
30
31//====================================================================================================================================================
32
33AliMFTCluster::AliMFTCluster():
34 TObject(),
35 fX(0),
36 fY(0),
37 fZ(0),
38 fErrX(0),
39 fErrY(0),
40 fErrZ(0),
41 fNElectrons(0),
42 fNMCTracks(0),
43 fPlane(0),
44 fSize(0),
45 fTrackChi2(0),
46 fLocalChi2(0)
47{
48
49 // default constructor
50
51 for (Int_t iTrack=0; iTrack<fNMaxMCTracks; iTrack++) fMCLabel[iTrack] = -1;
52
53}
54
55//====================================================================================================================================================
56
57AliMUONRawCluster* AliMFTCluster::CreateMUONCluster() {
58
59 AliMUONRawCluster *cluster = new AliMUONRawCluster();
60
61 cluster->SetXYZ(GetX(), GetY(), GetZ());
62 cluster->SetErrXY(GetErrX(),GetErrY());
63 cluster->SetDetElemId(100); // to get the cluster compatible with the AliMUONTrack::AddTrackParamAtCluster(...) method
64
65 return cluster;
66
67}
68
69//====================================================================================================================================================