]>
Commit | Line | Data |
---|---|---|
d5efea33 | 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 | /// \class AliESDMuonCluster | |
20 | /// | |
21 | /// Class to describe the MUON clusters in the Event Summary Data | |
22 | /// | |
23 | /// \author Philippe Pillot, Subatech | |
24 | //----------------------------------------------------------------------------- | |
25 | ||
26 | #include "AliESDMuonCluster.h" | |
27 | ||
28 | #include "AliLog.h" | |
29 | ||
30 | #include <Riostream.h> | |
31 | ||
32 | /// \cond CLASSIMP | |
33 | ClassImp(AliESDMuonCluster) | |
34 | /// \endcond | |
35 | ||
36 | //_____________________________________________________________________________ | |
37 | AliESDMuonCluster::AliESDMuonCluster() | |
38 | : TObject() | |
39 | { | |
40 | /// default constructor | |
41 | fXYZ[0] = fXYZ[1] = fXYZ[2] = 0.; | |
42 | fErrXY[0] = fErrXY[1] = 0.; | |
43 | } | |
44 | ||
45 | //_____________________________________________________________________________ | |
46 | AliESDMuonCluster::AliESDMuonCluster (const AliESDMuonCluster& cluster) | |
47 | : TObject(cluster) | |
48 | { | |
49 | /// Copy constructor | |
50 | fXYZ[0] = cluster.fXYZ[0]; | |
51 | fXYZ[1] = cluster.fXYZ[1]; | |
52 | fXYZ[2] = cluster.fXYZ[2]; | |
53 | fErrXY[0] = cluster.fErrXY[0]; | |
54 | fErrXY[1] = cluster.fErrXY[1]; | |
55 | } | |
56 | ||
57 | //_____________________________________________________________________________ | |
58 | AliESDMuonCluster& AliESDMuonCluster::operator=(const AliESDMuonCluster& cluster) | |
59 | { | |
60 | /// Equal operator | |
61 | if (this == &cluster) return *this; | |
62 | ||
63 | TObject::operator=(cluster); // don't forget to invoke the base class' assignment operator | |
64 | ||
65 | fXYZ[0] = cluster.fXYZ[0]; | |
66 | fXYZ[1] = cluster.fXYZ[1]; | |
67 | fXYZ[2] = cluster.fXYZ[2]; | |
68 | fErrXY[0] = cluster.fErrXY[0]; | |
69 | fErrXY[1] = cluster.fErrXY[1]; | |
70 | ||
71 | return *this; | |
72 | } | |
73 | ||
74 | //_____________________________________________________________________________ | |
75 | void AliESDMuonCluster::Print(Option_t */*option*/) const | |
76 | { | |
77 | /// print cluster content | |
78 | UInt_t cId = GetUniqueID(); | |
79 | ||
80 | cout<<Form("clusterID=%u (ch=%d, det=%d, index=%d)", | |
81 | cId,GetChamberId(),GetDetElemId(),GetClusterIndex())<<endl; | |
82 | ||
83 | cout<<Form("position=(%5.2f, %5.2f, %5.2f), sigma=(%5.2f, %5.2f, 0.0)", | |
84 | GetX(),GetY(),GetZ(),GetErrX(),GetErrY())<<endl; | |
85 | } | |
86 |