]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDrecPoint.cxx
Removing warnings
[u/mrichter/AliRoot.git] / TRD / AliTRDrecPoint.cxx
index 0eee224fe9675faa9a183c298d28ab60e4cd682c..8183394f5ded328faebe5dc4800b1afe57247d9c 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-Revision 1.7  2001/12/05 15:04:34  hristov
-Changes related to the corrections of AliRecPoint
-
-Revision 1.6  2001/02/14 18:22:26  cblume
-Change in the geometry of the padplane
-
-Revision 1.5  2000/11/14 14:40:27  cblume
-Correction for the Sun compiler (kTRUE and kFALSE)
-
-Revision 1.4  2000/11/01 14:53:21  cblume
-Merge with TRD-develop
-
-Revision 1.1.4.2  2000/10/04 16:34:58  cblume
-Replace include files by forward declarations
-
-Revision 1.1.4.1  2000/09/22 14:50:39  cblume
-Adapted to tracking code
-
-Revision 1.3  2000/06/09 11:10:07  cblume
-Compiler warnings and coding conventions, next round
-
-Revision 1.2  2000/06/08 18:32:58  cblume
-Make code compliant to coding conventions
-
-Revision 1.1  2000/02/28 19:02:07  cblume
-Add new TRD classes
-
-*/
+/* $Id$ */
 
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
@@ -125,7 +96,7 @@ void AliTRDrecPoint::AddDigit(Int_t digit)
   // Increase the size of the list if necessary
   if (fMulDigit >= fMaxDigit) { 
     fMaxDigit *= 2;
-    int *tempo = new (int[fMaxDigit])
+    int *tempo = new int[fMaxDigit]
     Int_t index; 
     for (index = 0; index < fMulDigit; index++)
       tempo[index] = fDigitsList[index]; 
@@ -138,7 +109,7 @@ void AliTRDrecPoint::AddDigit(Int_t digit)
 }
 
 //_____________________________________________________________________________
-void AliTRDrecPoint::SetLocalPosition(TVector3 &pos)
+void AliTRDrecPoint::SetLocalPosition(TVector3 & /*pos*/)
 {
   //
   // Sets the position of the point in the local coordinate system
@@ -146,25 +117,25 @@ void AliTRDrecPoint::SetLocalPosition(TVector3 &pos)
   // system.
   //
 
-  const Float_t kSq12 = 3.464101615;
+  //const Float_t kSq12 = 3.464101615;
 
   // Set the position
-  fLocPos = pos;
+  //fLocPos = pos;
 
   // Set the error matrix
   // row:  pad-size / sqrt(12)
   // col:  not defined yet
   // time: bin-size / sqrt(12)
-  Int_t plane   = ((AliTRDgeometry *) fGeom)->GetPlane(fDetector);
-  Int_t chamber = ((AliTRDgeometry *) fGeom)->GetChamber(fDetector);
-  Int_t sector  = ((AliTRDgeometry *) fGeom)->GetSector(fDetector);
-  fLocPosM->operator()(0,0) = ((AliTRDgeometry *) fGeom)->GetRowPadSize(plane
-                                                                       ,chamber
-                                                                       ,sector) 
-                            / kSq12;
-  fLocPosM->operator()(1,1) = 0.0;
-  fLocPosM->operator()(2,2) = ((AliTRDgeometry *) fGeom)->GetTimeBinSize() 
-                            / kSq12;
+  //Int_t plane   = ((AliTRDgeometry *) fGeom)->GetPlane(fDetector);
+  //Int_t chamber = ((AliTRDgeometry *) fGeom)->GetChamber(fDetector);
+  //Int_t sector  = ((AliTRDgeometry *) fGeom)->GetSector(fDetector);
+  //fLocPosM->operator()(0,0) = ((AliTRDgeometry *) fGeom)->GetRowPadSize(plane
+  //                                                                     ,chamber
+  //                                                                     ,sector) 
+  //                          / kSq12;
+  //fLocPosM->operator()(1,1) = 0.0;
+  //fLocPosM->operator()(2,2) = ((AliTRDgeometry *) fGeom)->GetTimeBinSize() 
+  //                          / kSq12;
 
   //  printf("rec. point: row = %f, col = %f, time = %f \n",
   //           fLocPos[0],fLocPos[1],fLocPos[2]); 
@@ -172,41 +143,41 @@ void AliTRDrecPoint::SetLocalPosition(TVector3 &pos)
 }
 
 //_____________________________________________________________________________
-void AliTRDrecPoint::SetTrackingYZ(Float_t sigmaY, Float_t sigmaZ)
+void AliTRDrecPoint::SetTrackingYZ(Float_t /*sigmaY*/, Float_t /*sigmaZ*/)
 {
  //
  // Sets the position of the point in the local coordinate system
  // of tracking sector
  //
 
- Int_t plane = ((AliTRDgeometry *) fGeom)->GetPlane(fDetector);
- Int_t chamber = ((AliTRDgeometry *) fGeom)->GetChamber(fDetector);
- Int_t sector = ((AliTRDgeometry *) fGeom)->GetSector(fDetector);
 //Int_t plane = ((AliTRDgeometry *) fGeom)->GetPlane(fDetector);
 //Int_t chamber = ((AliTRDgeometry *) fGeom)->GetChamber(fDetector);
 //Int_t sector = ((AliTRDgeometry *) fGeom)->GetSector(fDetector);
 
 
  // Set the position
 
-  Float_t   padRow    = fLocPos[0];             // Pad Row position
-  Float_t   padCol    = fLocPos[1];             // Pad Column position
+  //Float_t   padRow    = fLocPos[0];             // Pad Row position
+  //Float_t   padCol    = fLocPos[1];             // Pad Column position
 
-  Float_t   col0 = ((AliTRDgeometry *) fGeom)->GetCol0(plane);
-  Float_t   row0 = ((AliTRDgeometry *) fGeom)->GetRow0(plane,chamber,sector);
+  //Float_t   col0 = ((AliTRDgeometry *) fGeom)->GetCol0(plane);
+  //Float_t   row0 = ((AliTRDgeometry *) fGeom)->GetRow0(plane,chamber,sector);
 
   //  Float_t   offset = 0.5 * ((AliTRDgeometry *) fGeom)->GetChamberWidth(plane);
 
-  fY = - (col0 + padCol * ((AliTRDgeometry *) fGeom)->GetColPadSize(plane));
-  fZ =    row0 + padRow * ((AliTRDgeometry *) fGeom)->GetRowPadSize(plane
-                                                                   ,chamber
-                                                                   ,sector);
+  //fY = - (col0 + padCol * ((AliTRDgeometry *) fGeom)->GetColPadSize(plane));
+  //fZ =    row0 + padRow * ((AliTRDgeometry *) fGeom)->GetRowPadSize(plane
+  //                                                                   ,chamber
+  //                                                                 ,sector);
 
   //  fSigmaY = sigmaY * sigmaY;
   //  fSigmaZ = sigmaZ * sigmaZ;
 
-  fSigmaY2 = 0.05 * 0.05;
+//fSigmaY2 = 0.05 * 0.05;
 
-  fSigmaZ2 = ((AliTRDgeometry *) fGeom)->GetRowPadSize(plane,chamber,sector)
-           * ((AliTRDgeometry *) fGeom)->GetRowPadSize(plane,chamber,sector) 
-           / 12.;
+//fSigmaZ2 = ((AliTRDgeometry *) fGeom)->GetRowPadSize(plane,chamber,sector)
+//         * ((AliTRDgeometry *) fGeom)->GetRowPadSize(plane,chamber,sector) 
+//         / 12.;
 
 }                                    
 
@@ -277,3 +248,10 @@ void AliTRDrecPoint::AddTrackIndex(Int_t *track)
   return;
 
 }                    
+
+
+
+
+
+
+