]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDclusterizerV1.cxx
Save the volume ID of alignable volume in AliTRDcluster
[u/mrichter/AliRoot.git] / TRD / AliTRDclusterizerV1.cxx
index cd29bea6daf6c874abb4ddb7415da7387cf28bd6..e1bcf39295812cdb6047f2bcc21a7ef859e36288 100644 (file)
@@ -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