From: cblume Date: Thu, 17 May 2007 10:12:46 +0000 (+0000) Subject: Save the volume ID of alignable volume in AliTRDcluster X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=d74f970b242bdd0d9852d230b45f5b036aa322ff;p=u%2Fmrichter%2FAliRoot.git Save the volume ID of alignable volume in AliTRDcluster --- diff --git a/TRD/AliTRDclusterizer.cxx b/TRD/AliTRDclusterizer.cxx index ac95778fec7..fcc53cf9c46 100644 --- a/TRD/AliTRDclusterizer.cxx +++ b/TRD/AliTRDclusterizer.cxx @@ -274,6 +274,7 @@ AliTRDcluster* AliTRDclusterizer::AddCluster(Double_t *pos, Int_t timebin , Int_t det, Double_t amp , Int_t *tracks, Double_t *sig , Int_t iType, Int_t col + , UShort_t volid , Float_t center) { // @@ -292,6 +293,7 @@ AliTRDcluster* AliTRDclusterizer::AddCluster(Double_t *pos, Int_t timebin c->SetLocalTimeBin(timebin); c->SetCenter(center); c->SetPad(col); + c->SetVolumeId(volid); if (tracks) { c->AddTrackIndex(tracks); diff --git a/TRD/AliTRDclusterizer.h b/TRD/AliTRDclusterizer.h index c2689f63b62..955dc5144a4 100644 --- a/TRD/AliTRDclusterizer.h +++ b/TRD/AliTRDclusterizer.h @@ -45,7 +45,8 @@ class AliTRDclusterizer : public TNamed { virtual AliTRDcluster *AddCluster(Double_t *pos, Int_t timebin, Int_t det , Double_t amp, Int_t *tracks , Double_t *sig, Int_t iType - , Int_t col, Float_t center = 0); + , Int_t col, UShort_t volid + , Float_t center = 0); protected: diff --git a/TRD/AliTRDclusterizerV1.cxx b/TRD/AliTRDclusterizerV1.cxx index cd29bea6daf..e1bcf392958 100644 --- a/TRD/AliTRDclusterizerV1.cxx +++ b/TRD/AliTRDclusterizerV1.cxx @@ -31,6 +31,7 @@ #include "AliLoader.h" #include "AliRawReader.h" #include "AliLog.h" +#include "AliAlignObj.h" #include "AliTRDclusterizerV1.h" #include "AliTRDgeometry.h" @@ -268,7 +269,10 @@ Bool_t AliTRDclusterizerV1::MakeClusters() for (iplan = planBeg; iplan < planEnd; iplan++) { for (isect = sectBeg; isect < sectEnd; isect++) { - Int_t idet = geo->GetDetector(iplan,icham,isect); + Int_t idet = geo->GetDetector(iplan,icham,isect); + Int_t ilayer = AliGeomManager::kTRD1 + iplan; + Int_t imodule = icham + chamEnd * isect; + UShort_t volid = AliGeomManager::LayerToVolUID(ilayer,imodule); // Get the digits digitsIn = fDigitsManager->GetDigits(idet); @@ -517,6 +521,7 @@ Bool_t AliTRDclusterizerV1::MakeClusters() ,clusterSig ,iType ,col + ,volid ,clusterPads[1]); // Store the amplitudes of the pads in the cluster for later analysis