1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 //-----------------------------------------------------------------------------
19 /// \class AliMUONVCluster
21 /// An abstract base class for clusters
23 /// \author Philippe Pillot, Subatech
24 //-----------------------------------------------------------------------------
26 #include "AliMUONVCluster.h"
30 #include <Riostream.h>
33 ClassImp(AliMUONVCluster)
36 const Double_t AliMUONVCluster::fgkDefaultNonBendingReso = 0.144;
37 const Double_t AliMUONVCluster::fgkDefaultBendingReso = 0.01;
39 //_____________________________________________________________________________
40 AliMUONVCluster::AliMUONVCluster()
42 /// default constructor
45 //_____________________________________________________________________________
46 AliMUONVCluster::AliMUONVCluster(Int_t chamberId, Int_t detElemId, Int_t clusterIndex)
50 SetUniqueID(BuildUniqueID(chamberId, detElemId, clusterIndex));
53 //_____________________________________________________________________________
54 AliMUONVCluster::~AliMUONVCluster()
59 //_____________________________________________________________________________
60 void AliMUONVCluster::Print(Option_t *option) const
62 /// print cluster content
63 /// if option=FULL print also all Digit ID
64 UInt_t cId = GetUniqueID();
65 Int_t nDigits = GetNDigits();
67 cout<<Form("clusterID=%u (ch=%d, det=%d, index=%d)",
68 cId,GetChamberId(),GetDetElemId(),GetClusterIndex(cId))<<endl;
70 cout<<Form("position=(%5.2f, %5.2f, %5.2f), sigma=(%5.2f, %5.2f, 0.0), charge=%5.2f, chi2=%5.2f",
71 GetX(),GetY(),GetZ(),GetErrX(),GetErrY(),GetCharge(),GetChi2())<<endl;
73 if (strcmp(option,"FULL") == 0) {
74 cout<<"nDigits="<<nDigits<<" digitID=(";
75 for (Int_t i=0; i<nDigits; i++) cout<<GetDigitId(i)<<", ";