]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Save the volume ID of alignable volume in AliTRDcluster
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 17 May 2007 10:12:46 +0000 (10:12 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 17 May 2007 10:12:46 +0000 (10:12 +0000)
TRD/AliTRDclusterizer.cxx
TRD/AliTRDclusterizer.h
TRD/AliTRDclusterizerV1.cxx

index ac95778fec74c26507b87ad766a973b9000f8875..fcc53cf9c466c4f7b4c63b16b0e5d2ca8a41e962 100644 (file)
@@ -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);
index c2689f63b62e9a2b25f98ffe585f27366d19cad9..955dc5144a42592e407b2a3135141e9ad05c24aa 100644 (file)
@@ -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:
 
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