]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONVCluster.cxx
Adding the option to to turn on/off the parametrized tailing effect
[u/mrichter/AliRoot.git] / MUON / AliMUONVCluster.cxx
CommitLineData
2060b217 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 AliMUONVCluster
20///
21/// An abstract base class for clusters
22///
23/// \author Philippe Pillot, Subatech
24//-----------------------------------------------------------------------------
25
26#include "AliMUONVCluster.h"
27
3448ba98 28#include "AliESDMuonCluster.h"
2060b217 29#include "AliLog.h"
30
31#include <Riostream.h>
32
33/// \cond CLASSIMP
34ClassImp(AliMUONVCluster)
35/// \endcond
36
2060b217 37//_____________________________________________________________________________
38AliMUONVCluster::AliMUONVCluster()
39{
40 /// default constructor
41}
42
43//_____________________________________________________________________________
44AliMUONVCluster::AliMUONVCluster(Int_t chamberId, Int_t detElemId, Int_t clusterIndex)
45 : TObject()
46{
47 /// constructor
48 SetUniqueID(BuildUniqueID(chamberId, detElemId, clusterIndex));
49}
50
3448ba98 51//_____________________________________________________________________________
52AliMUONVCluster::AliMUONVCluster(const AliESDMuonCluster& cluster)
53: TObject()
54{
55 /// constructor
56 SetUniqueID(cluster.GetUniqueID());
57}
58
2060b217 59//_____________________________________________________________________________
60AliMUONVCluster::~AliMUONVCluster()
61{
62 /// destructor
63}
64
65//_____________________________________________________________________________
66void AliMUONVCluster::Print(Option_t *option) const
67{
68 /// print cluster content
69 /// if option=FULL print also all Digit ID
70 UInt_t cId = GetUniqueID();
71 Int_t nDigits = GetNDigits();
72
73 cout<<Form("clusterID=%u (ch=%d, det=%d, index=%d)",
74 cId,GetChamberId(),GetDetElemId(),GetClusterIndex(cId))<<endl;
75
76 cout<<Form("position=(%5.2f, %5.2f, %5.2f), sigma=(%5.2f, %5.2f, 0.0), charge=%5.2f, chi2=%5.2f",
77 GetX(),GetY(),GetZ(),GetErrX(),GetErrY(),GetCharge(),GetChi2())<<endl;
78
79 if (strcmp(option,"FULL") == 0) {
80 cout<<"nDigits="<<nDigits<<" digitID=(";
81 for (Int_t i=0; i<nDigits; i++) cout<<GetDigitId(i)<<", ";
82 cout<<")"<<endl;
83 }
84
85}