]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Time delay fixed
authormasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 29 Jun 2007 10:05:38 +0000 (10:05 +0000)
committermasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 29 Jun 2007 10:05:38 +0000 (10:05 +0000)
ITS/AliITSClusterFinderV2SDD.cxx
ITS/AliITSClusterFinderV2SDD.h

index 14286f2a9e7260cfc6d54ffea7bd2cb17aa72ac2..27ab937fcad107f957a8e1a6d93e6f61554c149c 100644 (file)
@@ -12,6 +12,9 @@
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
+
+/* $Id$*/
+
 ////////////////////////////////////////////////////////////////////////////
 //            Implementation of the ITS clusterer V2 class                //
 //                                                                        //
@@ -37,15 +40,14 @@ ClassImp(AliITSClusterFinderV2SDD)
 AliITSClusterFinderV2SDD::AliITSClusterFinderV2SDD(AliITSDetTypeRec* dettyp):AliITSClusterFinderV2(dettyp),
 fNySDD(256),
 fNzSDD(256),
-fYpitchSDD(0.01825),
 fZpitchSDD(0.02940),
 fHwSDD(3.5085),
 fHlSDD(3.7632),
-fYoffSDD(0.0425){
+fTimeOffsetSDD(0.){
 
   //Default constructor
 
-
+  SetTimeOffset();
 }
  
 
@@ -187,49 +189,21 @@ FindClustersSDD(AliBin* bins[2], Int_t nMaxBin, Int_t nzBins,
             }   
           }
         
-        /* 
-           Float_t s2 = c.GetSigmaY2()/c.GetQ() - c.GetY()*c.GetY();
-           Float_t w=par->GetPadPitchWidth(sec);
-           c.SetSigmaY2(s2);
-           if (s2 != 0.) {
-           c.SetSigmaY2(c.GetSigmaY2()*0.108);
-           if (sec<par->GetNInnerSector()) c.SetSigmaY2(c.GetSigmaY2()*2.07);
-           }    
-           s2 = c.GetSigmaZ2()/c.GetQ() - c.GetZ()*c.GetZ();
-           w=par->GetZWidth();
-           c.SetSigmaZ2(s2);
-           
-           if (s2 != 0.) {
-           c.SetSigmaZ2(c.GetSigmaZ2()*0.169);
-           if (sec<par->GetNInnerSector()) c.SetSigmaZ2(c.GetSigmaZ2()*1.77);
-           }
-        */
+
 
          Float_t y=c.GetY(),z=c.GetZ(), q=c.GetQ();
          y/=q; z/=q;
-        //
-        //Float_t s2 = c.GetSigmaY2()/c.GetQ() - y*y;
-        // c.SetSigmaY2(s2);
-        //s2 = c.GetSigmaZ2()/c.GetQ() - z*z;
-         //c.SetSigmaZ2(s2);
-        //
+
 
         Float_t yyyy = y;
-         //y=(y-0.5)*fYpitchSDD;
-         //y-=fHwSDD;
-         //y-=fYoffSDD;  //delay ?
-         //if (s) y=-y;
 
          z=(z-0.5)*fZpitchSDD;
          z-=fHlSDD;
         Float_t zdet = z;
-        //      y=-(-y+fYshift[fModule]);
-        // z=  -z+fZshift[fModule];
-        //      c.SetY(y);
-        //  c.SetZ(z);
         Float_t timebin = GetSeg()->Dpx(0);
-        Float_t xdet = cal->GetDriftPath((yyyy-0.5)*timebin,0);
-        xdet=xdet/10000.-fHwSDD-fYoffSDD;
+        Float_t driftTime = (yyyy-0.5)*timebin - fTimeOffsetSDD;
+        Float_t xdet = cal->GetDriftPath(driftTime,0);
+        xdet=xdet/10000.-fHwSDD;
         if (s) xdet=-xdet;
         
         CorrectPosition(zdet,xdet);
index 86249a5592e206eb991d080d571677430e4495eb..e1d0620c903c75518a0c3c0ff62cc03b1424fab2 100644 (file)
@@ -24,6 +24,8 @@ public:
   virtual ~AliITSClusterFinderV2SDD(){;}
   virtual void FindRawClusters(Int_t mod);
   virtual void RawdataToClusters(AliRawReader* rawReader,TClonesArray** clusters);
+  Float_t GetTimeOffset()const {return fTimeOffsetSDD;}
+  void SetTimeOffset(Float_t to = 55.07){fTimeOffsetSDD = to;}
  protected:
 
   void FindClustersSDD(TClonesArray *digits);
@@ -40,13 +42,12 @@ public:
 
   Int_t fNySDD;           //number of "pixels" in Y
   Int_t fNzSDD;           //number of "pixels" in Z
-  Float_t fYpitchSDD;     //"pixel size" in Y (drift direction)
   Float_t fZpitchSDD;     //"pixel sizes" in Z
   Float_t fHwSDD;         //half width of the SDD detector
   Float_t fHlSDD;         //half length of the SDD detector
-  Float_t fYoffSDD;       //some delay in the drift channel   
+  Float_t fTimeOffsetSDD;    //delay in the drift channel   
 
-  ClassDef(AliITSClusterFinderV2SDD,1)  // ITS cluster finder V2 for SDD
+  ClassDef(AliITSClusterFinderV2SDD,2)  // ITS cluster finder V2 for SDD
 };
 
 #endif