32 #include <TClonesArray.h> 33 #include <Riostream.h> 52 fXYZ[0] = fXYZ[1] = fXYZ[2] = 0.;
53 fErrXY[0] = fErrXY[1] = 0.;
59 fCharge(cluster.fCharge),
62 fNPads(cluster.fNPads),
64 fLabel(cluster.fLabel)
74 fPads =
new TClonesArray(
"AliESDMuonPad",cluster.
fPads->GetEntriesFast());
89 if (
this == &cluster)
return *
this;
91 TObject::operator=(cluster);
105 fPads =
new TClonesArray(
"AliESDMuonPad",cluster.
fPads->GetEntriesFast());
125 if(
this==&obj)
return;
144 if (opt && opt[0] ==
'C') {
167 if (nPads <= 0 || !padsId) {
174 if (!
fPadsId)
fPadsId =
new TArrayI(nPads, reinterpret_cast<const Int_t*>(padsId));
175 else fPadsId->Set(nPads, reinterpret_cast<const Int_t*>(padsId));
185 for (Int_t i = 0; i <
fPads->GetEntriesFast(); i++) {
199 UInt_t cId = GetUniqueID();
201 cout<<Form(
"clusterID=%u (ch=%d, det=%d, index=%d)",
204 cout<<Form(
" position=(%5.2f, %5.2f, %5.2f), sigma=(%5.2f, %5.2f, 0.0)",
210 cout<<
" pad infos:"<<endl;
211 for (Int_t iPad=0; iPad<
GetNPads(); iPad++) cout<<
" "<<
GetPadId(iPad)<<endl;
Class to describe the MUON pads in the Event Summary Data.
Double32_t fCharge
cluster charge
TClonesArray * fPads
Array of pads attached to the cluster – deprecated.
Double32_t fErrXY[2]
transverse position errors
void SetPadsId(Int_t nPads, const UInt_t *padsId)
virtual ~AliESDMuonCluster()
Int_t fNPads
number of pads attached to the cluster
Double_t GetY() const
Return Y-position (cm)
Double32_t fChi2
cluster chi2
UInt_t GetPadId(Int_t i) const
Return the Id of pad i.
Double_t GetChi2() const
Return the chi2 value.
TArrayI * fPadsId
array of Ids of pads attached to the cluster
Int_t GetChamberId() const
Return chamber id (0..), part of the uniqueID.
Bool_t PadsStored() const
Return kTrue if the pads'Id are stored.
Class to describe the MUON clusters in the Event Summary Data.
Int_t GetClusterIndex() const
Return the index of this cluster (0..), part of the uniqueID.
Double32_t fXYZ[3]
cluster position
virtual void Clear(Option_t *opt="")
Double_t GetZ() const
Return Z-position (cm)
Int_t GetNPads() const
Return the number of pads associated to this cluster.
Double_t GetCharge() const
Return the total charge.
Double_t GetErrX() const
Return X-resolution (cm)
void Print(Option_t *="") const
Int_t GetLabel() const
Return the corresponding MC track number.
void MovePadsToESD(AliESDEvent &esd)
Int_t GetDetElemId() const
Return detection element id, part of the uniqueID.
void AddPadId(UInt_t padId)
AliESDMuonPad * NewMuonPad()
Double_t GetX() const
Return X-position (cm)
Double_t GetErrY() const
Return Y-resolution (cm)
Int_t fLabel
point to the corresponding MC track
AliESDMuonCluster & operator=(const AliESDMuonCluster &cluster)
virtual void Copy(TObject &obj) const
const UInt_t * GetPadsId() const
Return the array of pads'Id.