Remove AliTRDclusterMI, AliTRDclusterCorrection, AliTRDmcTrack
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 27 Feb 2008 09:16:39 +0000 (09:16 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 27 Feb 2008 09:16:39 +0000 (09:16 +0000)
TRD/AliTRDclusterCorrection.cxx [deleted file]
TRD/AliTRDclusterCorrection.h [deleted file]
TRD/AliTRDclusterMI.cxx [deleted file]
TRD/AliTRDclusterMI.h [deleted file]
TRD/AliTRDmcTrack.cxx [deleted file]
TRD/AliTRDmcTrack.h [deleted file]

diff --git a/TRD/AliTRDclusterCorrection.cxx b/TRD/AliTRDclusterCorrection.cxx
deleted file mode 100644 (file)
index fe36838..0000000
+++ /dev/null
@@ -1,128 +0,0 @@
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                        *
- * Author: The ALICE Off-line Project.                                    *
- * Contributors are mentioned in the code where appropriate.              *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-///////////////////////////////////////////////////////////////////////////////
-//                                                                           //
-//  TRD clusterCorrection                                                    //
-//  Author:                                                                  //
-//    Marian Ivanov (marian.ivanov@cern.ch)                                  //
-//                                                                           //
-/////////////////////////////////////////////////////////////////////////////// 
-
-#include "AliTRDclusterCorrection.h"
-#include "TFile.h"
-
-ClassImp(AliTRDclusterCorrection)
-
-//_____________________________________________________________________________
-AliTRDclusterCorrection::AliTRDclusterCorrection()
-  :TObject()
-  ,fOffsetAngle(0)
-{
-  //
-  // Default constructor for AliTRDclusterCorrection
-  //
-
-  for (Int_t iplane = 0; iplane <  6; iplane++) {
-    for (Int_t itime  = 0; itime  < 30; itime++) {
-      for (Int_t iangle = 0; iangle < 20; iangle++) {  
-       fCorrections[iplane][itime][iangle][0] = 0.0;
-       fCorrections[iplane][itime][iangle][1] = 0.0;
-      }
-    }
-  }
-
-}
-
-//_____________________________________________________________________________
-AliTRDclusterCorrection::~AliTRDclusterCorrection()
-{
-  //
-  // Destructor
-  //
-
-}
-
-//_____________________________________________________________________________
-void AliTRDclusterCorrection::SetCorrection(Int_t plane,Int_t timebin, Float_t angle
-                                         , Float_t value, Float_t sigma)
-{
-  //
-  // Set the correction factors
-  //
-
-  Int_t iangle = Int_t((angle - fOffsetAngle + 1.0) * 10.0 + 0.5);
-  if (iangle <   0) return;
-  if (iangle >= 20) return;
-  fCorrections[plane][timebin][iangle][0] = value;
-  fCorrections[plane][timebin][iangle][1] = sigma;
-
-}
-
-//_____________________________________________________________________________
-Float_t AliTRDclusterCorrection::GetCorrection(Int_t plane, Int_t timebin, Float_t angle) const
-{
-  //
-  // Get the correction factors
-  //
-
-  Int_t iangle = Int_t((angle - fOffsetAngle + 1.0) * 10.0 + 0.5);
-  if (iangle <   0) return 0.0;
-  if (iangle >= 20) return 0.0;
-
-  return fCorrections[plane][timebin][iangle][0];
-
-}
-
-//_____________________________________________________________________________
-Float_t AliTRDclusterCorrection::GetSigma(Int_t plane, Int_t timebin, Float_t angle) const
-{
-  //
-  // Returns the sigma
-  //
-
-  Int_t iangle = Int_t((angle - fOffsetAngle + 1.0) * 10.0 + 0.5);
-  if (iangle <   0) return 1.0;
-  if (iangle >= 20) return 1.0;
-
-  return fCorrections[plane][timebin][iangle][1];
-
-}
-
-//_____________________________________________________________________________
-AliTRDclusterCorrection *AliTRDclusterCorrection::GetCorrection()
-{
-  //
-  // Return an instance of AliTRDclusterCorrection and sets the global
-  // pointer gAliTRDclusterCorrection (Is this needed somewhere ????)
-  //
-
-  AliTRDclusterCorrection *clusterCorrection = 0x0;
-
-  TFile *fileIn = new TFile("$ALICE_ROOT/TRD/TRDcorrection.root");
-  if (!fileIn){
-    clusterCorrection = new AliTRDclusterCorrection();
-    return clusterCorrection;
-  }
-
-  clusterCorrection = (AliTRDclusterCorrection *) 
-                      fileIn->Get("TRDcorrection");
-  if (clusterCorrection == 0) {  
-    clusterCorrection = new AliTRDclusterCorrection();
-  }
-
-  return clusterCorrection;
-  
-}
diff --git a/TRD/AliTRDclusterCorrection.h b/TRD/AliTRDclusterCorrection.h
deleted file mode 100644 (file)
index 64401b9..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-#ifndef ALITRDCLUSTERCORRECTION_H
-#define ALITRDCLUSTERCORRECTION_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-#include "TObject.h"
-
-////////////////////////////////////////////////////////////////////////////
-//                                                                        //
-//  Used for correcting the cluster positions in some way or the other    //
-//                                                                        //
-////////////////////////////////////////////////////////////////////////////
-
-class AliTRDclusterCorrection : public TObject {
-
- public:  
-
-  AliTRDclusterCorrection();
-  virtual ~AliTRDclusterCorrection();
-
-          Float_t  GetCorrection(Int_t plane, Int_t timebin, Float_t angle) const;
-          Float_t  GetOffsetAngle() const            { return fOffsetAngle;  }
-          Float_t  GetAngle(Int_t i) const           { return (i - 10.0) / 10.0 + fOffsetAngle; }
-          Float_t  GetSigma(Int_t plane, Int_t timebin, Float_t angle) const;
-
-          void     SetCorrection(Int_t plane,Int_t timebin, Float_t angle, Float_t value,Float_t sigma);
-          void     SetOffsetAngle(Float_t angle)     { fOffsetAngle = angle; }
-
-  static  AliTRDclusterCorrection *GetCorrection();
-
- protected:
-
-          Float_t  fCorrections[6][30][20][2];   //  Correction values
-          Float_t  fOffsetAngle;                 //  Offset angle
-                                
-  ClassDef(AliTRDclusterCorrection,1)            //  ClusterCorrection for the TRD
-};
-
-#endif
diff --git a/TRD/AliTRDclusterMI.cxx b/TRD/AliTRDclusterMI.cxx
deleted file mode 100644 (file)
index 0340691..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                        *
- * Author: The ALICE Off-line Project.                                    *
- * Contributors are mentioned in the code where appropriate.              *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-
-/* $Id$ */
-
-///////////////////////////////////////////////////////////////////////////////
-//                                                                           //
-//  TRD cluster, alternative version                                         //
-//                                                                           //
-/////////////////////////////////////////////////////////////////////////////// 
-
-#include "AliTRDclusterMI.h"
-
-ClassImp(AliTRDclusterMI)
-
-//___________________________________________________________________________
-AliTRDclusterMI::AliTRDclusterMI() 
-  :AliTRDcluster() 
-  ,fRmsY(0)
-  ,fNPadsMI(0)
-  ,fRelPos(0)
-{ 
-  //
-  // Default constructor
-  //
-
-}
-
-//___________________________________________________________________________
-AliTRDclusterMI::AliTRDclusterMI(const AliTRDcluster &c)
-  :AliTRDcluster(c)
-  ,fRmsY(0)
-  ,fNPadsMI(0)
-  ,fRelPos(0)
-{
-  //
-  // Copy constructor
-  //
-
-}
diff --git a/TRD/AliTRDclusterMI.h b/TRD/AliTRDclusterMI.h
deleted file mode 100644 (file)
index 936fa9b..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-#ifndef ALITRDCLUSTERMI_H
-#define ALITRDCLUSTERMI_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-///////////////////////////////////////////////////////////////////////////////
-//                                                                           //
-//  TRD cluster, alternative version                                         //
-//                                                                           //
-///////////////////////////////////////////////////////////////////////////////
-
-#include "AliTRDcluster.h"  
-#include "TMath.h"  
-
-class AliTRDclusterMI : public AliTRDcluster {
-
- public:
-
-  AliTRDclusterMI();
-  AliTRDclusterMI(const AliTRDcluster &c);
-
-          void     SetRmsY(Float_t rmsy)          { fRmsY    = rmsy;                   }
-          void     SetNPads(Int_t npads)          { fNPadsMI = npads;                  }
-          void     SetRelPos(Float_t pos)         { fRelPos  = TMath::Nint(pos*128.0); }
-
-          Float_t  GetRmsY() const                { return fRmsY;                      }
-          Char_t   GetNPads() const               { return fNPadsMI;                   }
-          Float_t  GetRelPos() const              { return float(fRelPos)/128.0;       }
-
- protected:
-
-          Float_t  fRmsY;                         // RMS in y direction ????
-          Char_t   fNPadsMI;                      // Number of pads ????
-          Char_t   fRelPos;                      // Relative position ????
-
-  ClassDef(AliTRDclusterMI,2)                     // ClusterMI for the TRD
-};
-
-#endif
diff --git a/TRD/AliTRDmcTrack.cxx b/TRD/AliTRDmcTrack.cxx
deleted file mode 100644 (file)
index 2c9cd02..0000000
+++ /dev/null
@@ -1,172 +0,0 @@
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                        *
- * Author: The ALICE Off-line Project.                                    *
- * Contributors are mentioned in the code where appropriate.              *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-
-/* $Id$ */
-
-////////////////////////////////////////////////////////////////////////////
-//                                                                        //
-//  TRD MC track                                                          //
-//  Used for efficiency estimates and matching of reconstructed tracks    //
-//  to MC particles                                                       //                    
-//                                                                        //
-////////////////////////////////////////////////////////////////////////////
-
-#include "AliTRDmcTrack.h"
-#include "AliTRDgeometry.h"
-
-ClassImp(AliTRDmcTrack)
-
-//_____________________________________________________________________________
-AliTRDmcTrack::AliTRDmcTrack() 
-  :TObject()
-  ,fLab(-1)
-  ,fSeedLab(-1)
-  ,fPrimary(kFALSE)
-  ,fMass(0)
-  ,fCharge(0)
-  ,fPDG(0)
-  ,fN(0) 
-{ 
-  //
-  // Default constructor 
-  //
-
-  for (Int_t ltb = 0; ltb < kMAXTB; ltb++) {
-    for (Int_t plane = 0; plane < 6; plane++) {
-      fIndex[ltb][plane][0] = -1;
-      fIndex[ltb][plane][1] = -1;
-    }
-  }
-
-  for (Int_t i = 0; i < 6; i++) {
-    for (Int_t j = 0; j < 3; j++) { 
-      fPin[i][j]    = 0.0; 
-      fPout[i][j]   = 0.0;
-      fXYZin[i][j]  = 0.0; 
-      fXYZout[i][j] = 0.0;
-    }
-  }
-
-}
-
-//_____________________________________________________________________________
-AliTRDmcTrack::AliTRDmcTrack(Int_t label, Int_t seedLabel, Bool_t primary
-                          , Float_t mass, Int_t charge, Int_t pdg) 
-  :TObject()
-  ,fLab(label)
-  ,fSeedLab(seedLabel)
-  ,fPrimary(primary)
-  ,fMass(mass)
-  ,fCharge(charge)
-  ,fPDG(pdg)
-  ,fN(0) 
-{ 
-  //
-  // Main constructor 
-  //
-  
-  for (Int_t ltb = 0; ltb < kMAXTB; ltb++) {
-    for (Int_t plane = 0; plane < 6; plane++) {
-      fIndex[ltb][plane][0] = -1;
-      fIndex[ltb][plane][1] = -1;
-    }
-  }
-  
-  for (Int_t i = 0; i < 6; i++) {
-    for (Int_t j = 0; j < 3; j++) { 
-      fPin[i][j]    = 0.0; 
-      fPout[i][j]   = 0.0;
-      fXYZin[i][j]  = 0.0; 
-      fXYZout[i][j] = 0.0;
-    }
-  }
-
-}
-
-//_____________________________________________________________________________
-void AliTRDmcTrack::GetPxPyPzXYZ(Double_t& px, Double_t& py, Double_t& pz
-                              , Double_t&  x, Double_t&  y, Double_t&  z 
-                              , Int_t opt) const 
-{
-  //
-  // Returns track momentum components and coordinates at the entrance 
-  // (opt >= 0), or exit (opt < 0) of TRD. 
-  //
-
-  Int_t i = 0;
-
-  if (opt >= 0) {
-
-    for (i = 0; i < AliTRDgeometry::Nplan(); i++) {
-      if ((fPin[i][0]*fPin[i][0]
-         + fPin[i][1]*fPin[i][1]
-         + fPin[i][2]*fPin[i][2]) > 0.0005) {
-        break;
-      }
-    }
-
-    px = fPin[i][0];   
-    py = fPin[i][1];
-    pz = fPin[i][2];
-    x  = fXYZin[i][0];   
-    y  = fXYZin[i][1];
-    z  = fXYZin[i][2];
-
-  }
-  else {
-
-    for (i = AliTRDgeometry::Nplan() - 1; i >= 0; i--) {
-      if ((fPout[i][0]*fPout[i][0]
-         + fPout[i][1]*fPout[i][1]
-         + fPout[i][2]*fPout[i][2]) > 0.0005) {
-        break;
-      }
-    }
-
-    px = fPout[i][0];
-    py = fPout[i][1];
-    pz = fPout[i][2];
-    x  = fXYZout[i][0];
-    y  = fXYZout[i][1];
-    z  = fXYZout[i][2];
-
-  }
-
-  return;
-}
-
-//_____________________________________________________________________________
-void AliTRDmcTrack::GetPlanePxPyPz(Double_t& px, Double_t& py, Double_t& pz
-                                 , Int_t plane, Int_t opt) const 
-{
-  //
-  // Returns momentum components at the entrance (opt >= 0), or
-  // exit (opt < 0) of TRD plane <plane>. 
-  //
-
-  if (opt >= 0) {
-    px = fPin[plane][0];
-    py = fPin[plane][1];
-    pz = fPin[plane][2];
-  }
-  else {
-    px = fPout[plane][0];
-    py = fPout[plane][1];
-    pz = fPout[plane][2];
-  }
-
-  return;
-
-}
diff --git a/TRD/AliTRDmcTrack.h b/TRD/AliTRDmcTrack.h
deleted file mode 100644 (file)
index 619b9b4..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-#ifndef ALITRDMCTRACK_H
-#define ALITRDMCTRACK_H  
-
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */ 
-
-/* $Id$ */
-
-////////////////////////////////////////////////////////////////////////////
-//                                                                        //
-//  TRD MC track                                                          //
-//  Used for efficiency estimates and matching of reconstructed tracks    //
-//  to MC particles                                                       //                    
-//                                                                        //
-////////////////////////////////////////////////////////////////////////////
-
-#include <TObject.h> 
-
-class AliTRDgeometry;
-
-class AliTRDmcTrack : public TObject {
-
- public:
-
-  enum { kMAXTB = 30 };
-
-  AliTRDmcTrack();
-  AliTRDmcTrack(Int_t label, Int_t seedLabel, Bool_t primary
-              , Float_t mass, Int_t charge, Int_t pdg); 
-
-          void     SetSeedLabel(Int_t l)                    { fSeedLab           = l;    }
-          void     SetNumberOfClusters(Int_t n)             { fN                 = n;    }
-          void     SetPin(Int_t plane, Double_t px, Double_t py, Double_t pz)
-                                                            { fPin[plane][0]      = px; 
-                                                              fPin[plane][1]      = py; 
-                                                              fPin[plane][2]      = pz;  }
-          void     SetPout(Int_t plane, Double_t px, Double_t py, Double_t pz)
-                                                            { fPout[plane][0]     = px; 
-                                                              fPout[plane][1]     = py; 
-                                                              fPout[plane][2]     = pz;  }
-          void     SetXYZin(Int_t plane, Double_t x, Double_t y, Double_t z)
-                                                            { fXYZin[plane][0]    = x; 
-                                                              fXYZin[plane][1]    = y; 
-                                                              fXYZin[plane][2]    = z;   }
-          void     SetXYZout(Int_t plane, Double_t x, Double_t y, Double_t z)
-                                                            { fXYZout[plane][0]   = x; 
-                                                              fXYZout[plane][1]   = y; 
-                                                              fXYZout[plane][2]   = z;   }
-
-          Int_t    GetTrackIndex() const                    { return fLab;               }
-          Int_t    GetSeedLabel() const                     { return fSeedLab;           }
-          Float_t  GetMass() const                          { return fMass;              }
-          Int_t    GetCharge() const                        { return fCharge;            }
-          Int_t    GetPdgCode() const                       { return fPDG;               }
-          Int_t    GetNumberOfClusters() const              { return fN;                 }
-          Int_t    GetClusterIndex(Int_t ltb, Int_t p, Int_t n) const 
-                                                            { return fIndex[ltb][p][n];  }
-          void     GetPxPyPzXYZ(Double_t &px, Double_t &py, Double_t &pz
-                              , Double_t &x,  Double_t &y,  Double_t &z
-                             , Int_t opt = 0) const;
-          void     GetPlanePxPyPz(Double_t &px, Double_t &py, Double_t &pz
-                               , Int_t plane, Int_t opt = 0) const;
-          void     GetXYZin(Int_t plane, Double_t &x, Double_t &y, Double_t &z) const 
-                                                            { x = fXYZin[plane][0]; 
-                                                              y = fXYZin[plane][1]; 
-                                                              z = fXYZin[plane][2]; 
-                                                              return;                    }
-          void     GetXYZout(Int_t plane, Double_t &x, Double_t &y, Double_t &z) const
-                                                            { x = fXYZout[plane][0]; 
-                                                              y = fXYZout[plane][1]; 
-                                                              z = fXYZout[plane][2]; 
-                                                              return;                    }
-
-          Bool_t   IsPrimary() const                        { return fPrimary;           }
-          void     Update(Int_t ltb, Int_t p, Int_t n, Int_t index) 
-                                                            { fIndex[ltb][p][n] = index; }
-
- protected:
-
-          Int_t    fLab;                  //  Track index  
-          Int_t    fSeedLab;              //  Seed track index  
-          Bool_t   fPrimary;              //  TRUE if it's a primary particle
-          Float_t  fMass;                 //  Mass of the MC track
-          Int_t    fCharge;               //  Charge of the MC track
-          Int_t    fPDG;                  //  PDG code of the MC track
-
-          Int_t    fN;                    //  Number of TRD clusters associated with the track
-          Int_t    fIndex[kMAXTB][6][2];  //  Indices of these clusters  
-                          
-          Double_t fPin[6][3];            //  Px,Py,Pz at the entrance of each TRD plane   
-          Double_t fPout[6][3];           //  Px,Py,Pz at the exit of each TRD plane
-
-          Double_t fXYZin[6][3];          //  X,Y,Z at the entrance of the TRD  
-          Double_t fXYZout[6][3];         //  X,Y,Z at the exit of the TRD    
-
-  ClassDef(AliTRDmcTrack,2)               //  TRD MC track
-
-};                   
-#endif