last preparations before testing the performances of Gauss shape for TRD clusters...
authorabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 15 Apr 2009 14:14:28 +0000 (14:14 +0000)
committerabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 15 Apr 2009 14:14:28 +0000 (14:14 +0000)
TRD/AliTRDReconstructor.cxx
TRD/AliTRDcluster.cxx
TRD/AliTRDtransform.cxx

index 1bc19b48b588a904a7a9ce9fa756d66b0891c7e5..f0b134a50e9f4e30f59fbc650399a79928073d6f 100644 (file)
@@ -288,6 +288,11 @@ void AliTRDReconstructor::SetOption(Option_t *opt)
       PROCESSED = kTRUE;
       break;   
     }
+    // extra rules
+    if(sopt.Contains("gs") && !sopt.Contains("!")){
+      CLRFLG(fSteerParam, kLUT); PROCESSED = kTRUE;
+    }
+
     if(PROCESSED) continue;
 
     if(sopt.Contains("sl")){
index 58bc599f91abeb30b833ff57362424c342df15d1..820b01f8c8ccdc58f95cc3e1e6e4c10d64b5beb8 100644 (file)
@@ -513,7 +513,7 @@ Float_t AliTRDcluster::GetYloc(Double_t y0, Double_t s2, Double_t W, Double_t *c
   if(y1) (*y1)*=W;
   if(y2) (*y2)*=W;
 
-  return y0-fCenter*W;
+  return y0+fCenter*W;
 }
 
 //_____________________________________________________________________________
@@ -545,9 +545,13 @@ Bool_t AliTRDcluster::IsEqual(const TObject *o) const
 //_____________________________________________________________________________
 void AliTRDcluster::Print(Option_t *o) const
 {
-  AliInfo(Form("Det[%3d] LTrC[%+6.2f %+6.2f %+6.2f] Q[%5.1f] Stat[in(%c) use(%c) sh(%c)]", 
+  AliInfo(Form("Det[%3d] LTrC[%+6.2f %+6.2f %+6.2f] Q[%5.1f] FLAG[in(%c) use(%c) sh(%c)] Y[%s]", 
     fDetector, GetX(), GetY(), GetZ(), fQ, 
-    IsInChamber() ? 'y' : 'n', IsUsed() ? 'y' : 'n', IsShared() ? 'y' : 'n'));
+    IsInChamber() ? 'y' : 'n', 
+    IsUsed() ? 'y' : 'n', 
+    IsShared() ? 'y' : 'n',
+    IsRPhiMethod(kGAUS)?"GAUS":(IsRPhiMethod(kLUT)?"LUT":"COG")
+  ));
 
   if(strcmp(o, "a")!=0) return;
   AliInfo(Form("LChC[c(%3d) r(%2d) t(%2d)] t-t0[%2d] Npad[%d] cen[%5.3f] mask[%d]", fPadCol, fPadRow, fPadTime, fLocalTimeBin, fNPads, fCenter, fClusterMasking)); 
index 416da67ba65897e362caee79877dcb6962abc2e6..e0bd25109fb76e7b5d983e8774d66036f19f7e21 100644 (file)
@@ -232,9 +232,9 @@ Bool_t AliTRDtransform::Transform(AliTRDcluster *c)
 
   // pad response width with diffusion corrections
   Double_t s2  = AliTRDcalibDB::Instance()->GetPRFWidth(fDetector, col, row); s2 *= s2; 
-  // Float_t dl, dt;
-  // AliTRDCommonParam::Instance()->GetDiffCoeff(dl, dt, vd);
-  // s2 += dl*dl*x/(1.+2.*exb*exb);
+  Float_t dl, dt;
+  AliTRDCommonParam::Instance()->GetDiffCoeff(dl, dt, vd);
+  s2 += dl*dl*x/(1.+2.*exb*exb);
   s2 -= - 1.5e-1;
 
   // Pad dimensions