]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFGeometry.cxx
Moving AliDSCValue, AliDCSSensor And AliDCSSensorArray from CDB to STEER to avoud...
[u/mrichter/AliRoot.git] / TOF / AliTOFGeometry.cxx
index a4057899176bc9aa920d30eb175d146a368a4f3f..f176104bb82aaab75f1d5dcab1fcc02a267918ff 100644 (file)
 
 /*
 $Log$
+Revision 1.17.1  2006/12/15 
+         Added method DetToStripRF(...) to get
+         a pad corner coordinates in its strip reference frame
+         (A.De Caro, M.Di Stefano)
+Revision 1.17  2006/08/22 13:30:02  arcelli
+removal of effective c++ warnings (C.Zampolli)
+
+Revision 1.16  2006/04/20 22:30:50  hristov
+Coding conventions (Annalisa)
+
+Revision 1.15  2006/04/16 22:29:05  hristov
+Coding conventions (Annalisa)
+
 Revision 1.14  2006/04/05 08:35:38  hristov
 Coding conventions (S.Arcelli, C.Zampolli)
 
@@ -77,16 +90,12 @@ Revision 0.02  2003/12/10 S.Arcelli:
 Revision 0.01  2003/12/04 S.Arcelli
 */
 
-#include <stdlib.h>
-#include <Riostream.h>
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
 //  TOF Geometry class                                                       //
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
-#include "AliLog.h"
-#include "AliConst.h"
 #include "AliTOFGeometry.h"
 
 ClassImp(AliTOFGeometry)
@@ -101,25 +110,25 @@ const Float_t AliTOFGeometry::fgkStripLength = 122.;// Strip Length (rho X phi d
 const Float_t AliTOFGeometry::fgkSigmaForTail1= 2.; //Sig1 for simulation of TDC tails 
 const Float_t AliTOFGeometry::fgkSigmaForTail2= 0.5;//Sig2 for simulation of TDC tails
 
-const Float_t AliTOFGeometry::fgkTdcBin = 24.4;     // time-window for the TDC bins [ps]
+const Float_t AliTOFGeometry::fgkTdcBin = 24.4;     // time-of-flight bin width [ps]
+const Float_t AliTOFGeometry::fgkToTBin = 48.8;     // time-over-threshold  bin width [ps]
 
 //_____________________________________________________________________________
-AliTOFGeometry::AliTOFGeometry()
+AliTOFGeometry::AliTOFGeometry():
+  fNStripC(19),  // number of strips in C type module 
+  fZlenA(106.0),  // length (cm) of the A module
+  fZlenB(141.0),  // length (cm) of the B module
+  fZlenC(177.5),  // length (cm) of the C module
+  fMaxhZtof(371.5),  // Max half z-size of TOF (cm)
+  fRmin(370.), // Inner radius of the TOF (cm)
+  fRmax(399.), // Outer radius of the TOF (cm)
+  fxTOF(371.), // Inner radius of the TOF for Reconstruction (cm)
+  fHoles(0),   // Flag for Holes
+  fPhiSec(20.) // sector Phi width (deg)
 {
   //
   // AliTOFGeometry default constructor
   //
-
-  fNStripC     = 19;  // number of strips in C type module 
-  fZlenA    = 106.0;  // length (cm) of the A module
-  fZlenB    = 141.0;  // length (cm) of the B module
-  fZlenC    = 177.5;  // length (cm) of the C module
-  fMaxhZtof = 371.5;  // Max half z-size of TOF (cm)
-
-  fxTOF     = 371.; // Inner radius of the TOF for Reconstruction (cm)
-  fRmin     = 370.; // Inner radius of the TOF (cm)
-  fRmax     = 399.; // Outer radius of the TOF (cm)
-
   Init();
 
 }
@@ -221,3 +230,28 @@ void AliTOFGeometry::GetDetID( Float_t *pos, Int_t *det) const
   
 }
 //_____________________________________________________________________________
+
+void AliTOFGeometry::DetToStripRF(Int_t nPadX, Int_t nPadZ, Float_t &x,  Float_t &z) const
+{
+  //
+  // Returns the local coordinates (x, z) in strip reference frame
+  // for the bottom corner of the pad number (nPadX, nPadZ)
+  //
+  /*
+  const Float_t xCenterStrip = kNpadX * fgkXPad / 2.;
+  const Float_t zCenterStrip = kNpadZ * fgkZPad / 2.;
+
+  const Float_t xCenterPad = nPadX*fgkXPad + fgkXPad / 2.;
+  const Float_t zCenterPad = nPadZ*fgkZPad + fgkZPad / 2.;
+
+  x = xCenterPad - xCenterStrip;
+  z = zCenterPad - zCenterStrip;
+  */
+
+
+  x = (nPadX - kNpadX*0.5) * fgkXPad;
+  z = (nPadZ - kNpadZ*0.5) * fgkZPad;
+
+
+}
+//_____________________________________________________________________________