Using cluster center (M.Ivanov)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Jul 2005 07:59:07 +0000 (07:59 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Jul 2005 07:59:07 +0000 (07:59 +0000)
TRD/AliTRDclusterizer.cxx
TRD/AliTRDclusterizer.h

index 37b0c7c1e50a4b69228d471c4270e4dfae453a88..ee93b76da0e1e21226bd86fc76809c0c30319ea7 100644 (file)
@@ -262,7 +262,7 @@ Bool_t AliTRDclusterizer::WriteClusters(Int_t det)
 
 //_____________________________________________________________________________
 void AliTRDclusterizer::AddCluster(Double_t *pos, Int_t det, Double_t amp
-                                , Int_t *tracks, Double_t *sig, Int_t iType)
+                                  , Int_t *tracks, Double_t *sig, Int_t iType, Float_t center)
 {
   //
   // Add a cluster for the TRD
@@ -278,7 +278,7 @@ void AliTRDclusterizer::AddCluster(Double_t *pos, Int_t det, Double_t amp
   c->SetSigmaY2(sig[0]);   
   c->SetSigmaZ2(sig[1]);
   c->SetLocalTimeBin(((Int_t) pos[2]));
-
+  c->SetCenter(center);
   switch (iType) {
   case 0:
     c->Set2pad();
index 176c3c803b61a4214442a60404f2d359c550e2a5..9828430bdc1d35498c2b29d0058f03fea26a9874 100644 (file)
@@ -42,7 +42,7 @@ class AliTRDclusterizer : public TNamed {
 
   TObjArray*      RecPoints() {if (!fRecPoints) fRecPoints = new TObjArray(400); return fRecPoints;}
   virtual void    AddCluster(Double_t *pos, Int_t det, Double_t amp, Int_t *tracks
-                          , Double_t *sig, Int_t iType);
+                            , Double_t *sig, Int_t iType, Float_t center = 0);
   void            ResetRecPoints() {if (fRecPoints) fRecPoints->Delete();}