]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Removing obsolete code. Fully replaced by new ITS code and code structure.
authornilsen <nilsen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 12 Jun 2000 23:21:30 +0000 (23:21 +0000)
committernilsen <nilsen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 12 Jun 2000 23:21:30 +0000 (23:21 +0000)
ITS/AliITSdigitSSD.cxx [deleted file]
ITS/AliITSdigitSSD.h [deleted file]
ITS/AliITSmoduleSDD.cxx [deleted file]
ITS/AliITSmoduleSDD.h [deleted file]
ITS/AliITSmoduleSPD.cxx [deleted file]
ITS/AliITSmoduleSPD.h [deleted file]
ITS/AliITSmoduleSSD.cxx [deleted file]
ITS/AliITSmoduleSSD.h [deleted file]

diff --git a/ITS/AliITSdigitSSD.cxx b/ITS/AliITSdigitSSD.cxx
deleted file mode 100644 (file)
index b9a944b..0000000
+++ /dev/null
@@ -1,32 +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.                  *
- **************************************************************************/
-
-/*
-$Log$
-*/
-
-#include "AliITSdigitSSD.h"
-
-ClassImp(AliITSdigitSSD);
-
-AliITSdigitSSD::AliITSdigitSSD 
-    (Int_t *tracks, Int_t *digits, Int_t strNo, Int_t s, Bool_t p)
-    :AliITSdigit(tracks,digits) {
-    fSignal = s;
-    fStripNumber = strNo;
-    fSide = p;
-}
-
diff --git a/ITS/AliITSdigitSSD.h b/ITS/AliITSdigitSSD.h
deleted file mode 100644 (file)
index e814795..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-#ifndef AliITSDIGITSSD_H
-#define AliITSDIGITSSD_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-#include "AliITS.h"
-
-class AliITSdigitSSD: public AliITSdigit {
-
-protected:       
-  Bool_t  fSide;              //true if P side
-  Int_t   fStripNumber;       //Number of Strip
-  Int_t   fSignal;            //Signal on ADC 
-    
-public:
-    
-  AliITSdigitSSD() {};
-  ~AliITSdigitSSD() {};
-  AliITSdigitSSD(Int_t *tracks, Int_t *digits, Int_t strNo, Int_t s, Bool_t p);
-
-  // Methods for accesing signal on strip                              
-  void   SetSignal(Int_t s) {fSignal = s;}           
-  Int_t  GetSignal() const {return fSignal;}                                    
-  
-  // Methods for accesing strip number  
-  Int_t  GetStripNumber() const {return fStripNumber;};
-  void   SetStripNumber(Int_t s) {fStripNumber = s;};
-    
-  // Methods for accesing side of the strip P/N
-  Bool_t IsSideP() const {return fSide;};              //returns true when side P
-  void   SetSideP(Bool_t b) {fSide = b;};        //set side of digit
-       
-  ClassDef(AliITSdigitSSD, 1)
-};
-
-#endif
diff --git a/ITS/AliITSmoduleSDD.cxx b/ITS/AliITSmoduleSDD.cxx
deleted file mode 100644 (file)
index 773738e..0000000
+++ /dev/null
@@ -1,38 +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.                  *
- **************************************************************************/
-
-/*
-$Log$
-Revision 1.2  1999/09/29 09:24:20  fca
-Introduction of the Copyright and cvs Log
-
-*/
-
-
-#include "AliITSmoduleSDD.h"
-
-ClassImp(AliITSmoduleSDD)
-
-//____________________________________________________________________
-//
-//  Constructor and descructor
-//____________________________________________________________________
-//                                     
-
-AliITSmoduleSDD::AliITSmoduleSDD() {};
-
-AliITSmoduleSDD::AliITSmoduleSDD(Int_t ) {};
-
-AliITSmoduleSDD::~AliITSmoduleSDD() {};
diff --git a/ITS/AliITSmoduleSDD.h b/ITS/AliITSmoduleSDD.h
deleted file mode 100644 (file)
index 3d9156d..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-#ifndef ALIITSMODLUESDD_H
-#define ALIITSMODLUESDD_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-#include "AliITS.h"
-#include "AliITSmodule.h"
-
-
-
-//____________________________________________________________________
-//
-//  Class AliITSmoduleSDD
-//  describes one SDD module
-//  The main function of modules is to simulate DIGITS from  
-//  GEANT HITS and produce POINTS from DIGITS
-//                   
-//  ver. 0.0    CERN, 17.09.1999  
-// 
-//___________________________________________________________________
-//
-
-
-
-class AliITSmoduleSDD: public AliITSmodule {
-
-    
-public:       
-    
-    //________________________________________________________________
-    //
-    // Constructors and deconstructor
-    //________________________________________________________________
-    //
-    
-    AliITSmoduleSDD();
-    AliITSmoduleSDD(Int_t index);
-    ~AliITSmoduleSDD();
-  
-    //________________________________________________________________
-    //
-    // Data process methods
-    //________________________________________________________________
-    //
-    
-    void HitToDigit() {};              // Not impemented yet
-    void DigitToPoint() {};            // Not impemented yet
-    void HitToPoint() {};              // Not impemented yet
-    
-       
-  
-protected:
-
-public:
-    ClassDef(AliITSmoduleSDD, 1)
-};
-
-#endif
diff --git a/ITS/AliITSmoduleSPD.cxx b/ITS/AliITSmoduleSPD.cxx
deleted file mode 100644 (file)
index 3cf6b53..0000000
+++ /dev/null
@@ -1,39 +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.                  *
- **************************************************************************/
-
-/*
-$Log$
-Revision 1.2  1999/09/29 09:24:20  fca
-Introduction of the Copyright and cvs Log
-
-*/
-
-
-#include "AliITSmoduleSPD.h"
-
-ClassImp(AliITSmoduleSPD)
-
-//____________________________________________________________________
-//
-//  Constructor and descructor
-//____________________________________________________________________
-//                                     
-
-AliITSmoduleSPD::AliITSmoduleSPD() {};
-
-AliITSmoduleSPD::AliITSmoduleSPD(Int_t ) {};
-
-AliITSmoduleSPD::~AliITSmoduleSPD() {};
-
diff --git a/ITS/AliITSmoduleSPD.h b/ITS/AliITSmoduleSPD.h
deleted file mode 100644 (file)
index 5c34161..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-#ifndef ALIITSMODLUESPD_H
-#define ALIITSMODLUESPD_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-#include "AliITS.h"
-#include "AliITSmodule.h"
-
-
-
-//____________________________________________________________________
-//
-//  Class AliITSmoduleSPD
-//  describes one SPD module
-//  The main function of modules is to simulate DIGITS from  
-//  GEANT HITS and produce POINTS from DIGITS
-//                   
-//  ver. 0.0    CERN, 17.09.1999  
-// 
-//___________________________________________________________________
-//
-
-
-
-class AliITSmoduleSPD: public AliITSmodule {
-
-    
-public:       
-    
-    //________________________________________________________________
-    //
-    // Constructors and deconstructor
-    //________________________________________________________________
-    //
-    
-    AliITSmoduleSPD();
-    AliITSmoduleSPD(Int_t index);
-    ~AliITSmoduleSPD();
-  
-    //________________________________________________________________
-    //
-    // Data process methods
-    //________________________________________________________________
-    //
-    
-    void HitToDigit() {};              // Not impemented yet
-    void DigitToPoint() {};            // Not impemented yet
-    void HitToPoint() {};              // Not impemented yet
-    
-       
-  
-protected:
-
-public:
-    ClassDef(AliITSmoduleSPD, 1)
-};
-
-#endif
diff --git a/ITS/AliITSmoduleSSD.cxx b/ITS/AliITSmoduleSSD.cxx
deleted file mode 100644 (file)
index 51fc09b..0000000
+++ /dev/null
@@ -1,403 +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.                  *
- **************************************************************************/
-
-/*
-$Log$
-Revision 1.3  1999/10/04 15:20:12  fca
-Correct syntax accepted by g++ but not standard for static members, remove minor warnings
-
-Revision 1.2  1999/09/29 09:24:20  fca
-Introduction of the Copyright and cvs Log
-
-*/
-
-
-#include "AliITSmoduleSSD.h"
-
-    //Technical parameters of detector
-const Float_t   AliITSmoduleSSD::kStereo = 0.0175;  //Stereo Angle 17.5 mrad
-const Float_t   AliITSmoduleSSD::kTan = 0.0175;  
-const Int_t     AliITSmoduleSSD::kNStrips = 768;    //Number of strips on each side
-const Float_t   AliITSmoduleSSD::kPitch = 0.095;    //Distance strip - strip (mm)
-const Float_t   AliITSmoduleSSD::kX = 72.96;        //X size (mm)
-const Float_t   AliITSmoduleSSD::kY = 0.3;          //Y size (mm)
-const Float_t   AliITSmoduleSSD::kZ = 40;           //Thickness (mm)
-    
-    // <------------------------------
-  
-    //______________________________________________________________
-    //  
-    // Parameters for simulation
-    //______________________________________________________________
-      
-const Float_t   AliITSmoduleSSD::kSigmaP = 0.003;     //Gaussian sigm
-const Float_t   AliITSmoduleSSD::kSigmaN = 0.002;
-const Int_t     AliITSmoduleSSD::kSteps  = 10;        //Number of steps 
-const Int_t     AliITSmoduleSSD::kTresholdP = 1500;    
-const Int_t     AliITSmoduleSSD::kTresholdN = 2500; 
-   
-
-
-ClassImp(AliITSmoduleSSD)
-
-//____________________________________________________________________
-//
-//  Constructor
-//____________________________________________________________________
-//                                     
-
-
-AliITSmoduleSSD::AliITSmoduleSSD() {
-    
-
-    //Invalid Strips parameters
-    
-    fInvalidP = new TArrayS(0);
-    fInvalidN = new TArrayS(0);
-    
-    fNInvalidP = 0;
-    fNInvalidN = 0;
-    
-    
-    //DCS parameters
-    
-    fGainP = 83;
-    fGainN = 83;   
-    fSNRatioP = 600;
-    fSNRatioP = 500;
-    
-    fCouplingPR = 0.021;
-    fCouplingPL = 0.026;
-    fCouplingNR = 0.013;
-    fCouplingNL = 0.010;
-
-}
-
-AliITSmoduleSSD::AliITSmoduleSSD(Int_t index) {
-                                
-    fIndex = index;    
-    
-    //Invalid Strips parameters
-    
-    fInvalidP = new TArrayS(0);
-    fInvalidN = new TArrayS(0);
-    
-    fNInvalidP = 0;
-    fNInvalidN = 0;
-    
-    
-    //DCS parameters
-    
-    fGainP = 83;
-    fGainN = 83;   
-    fSNRatioP = 600;
-    fSNRatioP = 500;
-    
-    fCouplingPR = 0.021;
-    fCouplingPL = 0.026;
-    fCouplingNR = 0.013;
-    fCouplingNL = 0.010;       
-}
-
-AliITSmoduleSSD::~AliITSmoduleSSD() {
-   
-    if (!fInvalidP) delete fInvalidP;
-    if (!fInvalidN) delete fInvalidN;                          
-}
-
-
-//____________________________________________________________________
-//
-//  Inalid strips menagement
-//____________________________________________________________________
-//                           
-
-
-
-void AliITSmoduleSSD::SetInvalidP(Int_t strip, Bool_t b) {
-    
-    Bool_t already = kFALSE;
-    Int_t i;
-    
-    for (i=0; i<fNInvalidP; i++) {
-        if ((*fInvalidP)[i] == strip) {
-           already = kTRUE;
-           break;
-        }
-    }
-    
-    if (!already && b) {
-       (*fInvalidP)[fNInvalidP++] = strip;
-    } 
-}
-
-void AliITSmoduleSSD::SetInvalidMC(Float_t m, Float_t s) {
-
-    fNInvalid = m;
-    fISigma = s;
-    SetInvalidMC();
-}
-
-void AliITSmoduleSSD::SetInvalidMC() {
-
-    Int_t m = (Int_t)gRandom->Gaus(fNInvalid, fISigma);
-    
-    for(int i=0; i<m; i++) {
-       SetInvalidP((Int_t)(gRandom->Rndm()*kNStrips), kTRUE);
-    }
-    
-}
-
-Bool_t AliITSmoduleSSD::IsValidP(Int_t n) {
-    
-    for(Int_t i=0; i<fNInvalidP; i++) 
-       if ((*fInvalidP)[i] == n) return kFALSE;
-    return kTRUE;    
-}
-
-Bool_t AliITSmoduleSSD::IsValidN(Int_t n) {
-    
-    for(Int_t i=0; i<fNInvalidN; i++) 
-       if ((*fInvalidN)[i] == n) return kFALSE;
-    return kTRUE;    
-}
-
-
-//____________________________________________________________________
-//
-//  Add digit
-//____________________________________________________________________
-// 
-
-/*********************************************************************
-* 
-* AddDigits 
-* sets paramerers: layer, ladder detector
-* scan tracks wich produced this digit
-* creates new SSD DIGTS
-* call ITS to add digit to its Array
-* set index frm ITS in its own array
-*
-* S.Radomski 17.09.1999
-*
-*********************************************************************/
-
-void AliITSmoduleSSD::AddDigit(Int_t strNo, Int_t s, Bool_t p) {
-    Int_t tracks[3];
-    Int_t digits[4];
-    AliITSdigit *t = (AliITSdigit*) (new AliITSdigitSSD(tracks, digits, 
-                                                       strNo, s, p));
-    
-    fIdigits->AddAt(((AliITS *)fITS)->AddDigit(t), fNdigits++);
-}
-
-
-//____________________________________________________________________
-//
-//  Hits to digits
-//____________________________________________________________________
-//                          
-
-
-
-void AliITSmoduleSSD::HitToDigit() {
-
-    Int_t i;                           //for iteration
-    fP = new TArrayI(768);
-    fN = new TArrayI(768); 
-    
-    fPtrack1 = new TArrayI(768);
-    fPtrack2 = new TArrayI(768);
-    fPtrack3 = new TArrayI(768);
-    
-    fNtrack1 = new TArrayI(768);
-    fNtrack2 = new TArrayI(768);
-    fNtrack3 = new TArrayI(768);
-    
-    for(i=0; i<kNStrips; i++) {
-       (*fN)[i] = 0;
-       (*fP)[i] = 0;
-    } // end for i
-     
-    for(i=0; i<fNhitsM; i++) HitToDigit(i);
-
-    ApplyCoupling();    
-    ApplyNoise();
-        
-    for(i=0; i<fNInvalidP; i++) (*fP)[(*fInvalidP)[i]] = -20;
-    for(i=0; i<fNInvalidN; i++) (*fN)[(*fInvalidN)[i]] = -20;
-    
-    for(i=0; i<kNStrips; i++) 
-       if ((*fP)[i]>kTresholdP) AddDigit(i+1, (*fP)[i], kTRUE);
-    
-    for(i=0; i<kNStrips; i++)
-       if ((*fN)[i]>kTresholdN) AddDigit(i+1, (*fN)[i], kFALSE);
-       
-    delete fN;
-    delete fP;
-    
-    delete fPtrack1;
-    delete fPtrack2;
-    delete fPtrack3;
-    
-    delete fPtrack1;
-    delete fPtrack2;
-    delete fPtrack3;
-}
-
-
-
-void AliITSmoduleSSD::HitToDigit(Int_t hitNo) {
-    
-    Int_t stripP, stripN, i;
-    Float_t dsP, dsN;
-    Float_t sP, sN;
-    Float_t EP, EN;
-    AliITShit *hit = (AliITShit*)((*fHitsM)[hitNo]);
-    Float_t dZ = kZ/kSteps*1000, l;
-
-    if(hit->GetIonization()==0.0) return;
-
-    Float_t x =  hit->GetXG();
-    Float_t y =  hit->GetYG();
-
-    Float_t dx = 0.0; //TMath::Tan(hit->fTheta)*kZ/kSteps;
-    Float_t dy = 0.0; //TMath::Tan(hit->fPhi)*kZ/kSteps;
-    l = sqrt(dZ*dZ + dx*dx *1000000);
-    
-    x -= (kSteps/2 -1) * dx;
-    y -= (kSteps/2 -1) * dy;
-    
-    for (i=1; i<kSteps; i++) {
-    
-        stripP = GetStripP(x, y);
-        dsP = Get2StripP(x, y);
-        
-        stripN = GetStripN(x, y);
-        dsN = Get2StripN(x, y);
-        
-        EP = gRandom->Landau(fGainP*l, l*10);
-        EN = gRandom->Landau(fGainN*l, l*10);
-        
-        sP = kSigmaP * sqrt((Float_t) i);
-        sN = kSigmaN * sqrt((Float_t)(kSteps-i));
-
-        sP = (i<3 && dsP>0.3 && dsP<0.7)? 0.02 : sP;
-        sN = (i>7 && dsN>0.3 && dsN<0.7)? 0.02 : sN;         
-
-        sP = (i==3 && dsP>0.4 && dsP<0.6)? 0.015 : sP;
-        sN = (i==7 && dsN>0.4 && dsN<0.6)? 0.015 : sN;        
-        
-        
-        (*fP)[stripP-1]+=(Int_t)(EP*(F(-0.5-dsP,sP)-F(-1.5-dsP,sP)));  
-        (*fP)[stripP]  +=(Int_t)(EP*(F(0.5-dsP,sP)-F(-0.5-dsP,sP)));
-        (*fP)[stripP+1]+=(Int_t)(EP*(F(1.5-dsP,sP)-F(0.5-dsP,sP)));
-        (*fP)[stripP+2]+=(Int_t)(EP*(F(2.5-dsP,sP)-F(1.5-dsP,sP))); 
-        
-        (*fN)[stripN-1]+=(Int_t)(EN*(F(-0.5-dsN,sN)-F(-1.5-dsN,sN)));
-        (*fN)[stripN]  +=(Int_t)(EN*(F(0.5-dsN,sN)-F(-0.5-dsN,sN)));
-        (*fN)[stripN+1]+=(Int_t)(EN*(F(1.5-dsN,sN)-F(0.5-dsN,sN)));
-        (*fN)[stripN+2]+=(Int_t)(EN*(F(2.5-dsN,sN)-F(1.5-dsN,sN))); 
-        
-        x += dx; 
-        y += dy; 
-    }
-}
-
-
-//____________________________________________________________________
-//
-//  Private Methods for Simulation
-//____________________________________________________________________
-//                           
-
-
-
-void AliITSmoduleSSD::ApplyNoise() {
-    
-    for(Int_t i = 0; i<kNStrips; i++) {
-        (*fP)[i] += (Int_t)gRandom->Gaus(0,fSNRatioP);
-        (*fN)[i] += (Int_t)gRandom->Gaus(0,fSNRatioN);
-    }
-}
-
-void AliITSmoduleSSD::ApplyCoupling() {
-    
-    for(Int_t i = 1; i<kNStrips-1; i++) {
-        (*fP)[i] += (Int_t)((*fP)[i-1]*fCouplingPL + (*fP)[i+1]*fCouplingPR);
-        (*fN)[i] += (Int_t)((*fN)[i-1]*fCouplingNL + (*fN)[i+1]*fCouplingNR);
-    }
-}
-
-
-//____________________________________________________________________
-//
-//  Private methods for geometry
-//____________________________________________________________________
-//                           
-
-
-
-Int_t AliITSmoduleSSD::GetStripP(Float_t x, Float_t y) {
-    
-    Float_t  X = x - y*kTan;
-    Int_t strip = (Int_t)(X/kPitch);
-    strip = (strip<0)? -1: strip;
-    strip = (strip>kNStrips)? -1: strip;
-    return strip;
-}
-
-Int_t AliITSmoduleSSD::GetStripN(Float_t x, Float_t y) {
-    
-    Float_t  X = x - kTan*(kY - y);
-    Int_t strip = (Int_t)(X/kPitch);
-    strip = (strip<0)? -1: strip;
-    strip = (strip>kNStrips)? -1: strip;
-    return strip;
-
-}
-
-Float_t AliITSmoduleSSD::Get2StripP(Float_t x, Float_t y) {
-    
-    Int_t n = GetStripP(x,y);
-    return (x - y*kTan) / kPitch - n;
-}
-
-Float_t AliITSmoduleSSD::Get2StripN(Float_t x, Float_t y) {
-    
-    Int_t n = GetStripN(x,y);
-    return (x - kTan*(kY - y)) / kPitch - n;
-}
-
-
-Bool_t AliITSmoduleSSD::GetCrossing (Float_t &P, Float_t &N) {   
-
-    P *= kPitch;
-    N *= kPitch; 
-    
-    P = (kY * kTan + N + P)/2.0;         // x coordinate
-    N = kY - (P-N)/kTan;                 // y coordinate
-    
-    if (N<0 || N>kY) return kFALSE;
-    if (P<0 || P>kX) return kFALSE;
-    return kTRUE;   
-}
-
-//____________________________________________________________________
-
-
-
diff --git a/ITS/AliITSmoduleSSD.h b/ITS/AliITSmoduleSSD.h
deleted file mode 100644 (file)
index 44e888a..0000000
+++ /dev/null
@@ -1,208 +0,0 @@
-#ifndef ALIITSMODLUESSD_H
-#define ALIITSMODLUESSD_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-#include "TObject.h"
-#include "TArrayS.h"
-#include "TClonesArray.h"
-#include "TRandom.h"
-//#include "AliConst.h"
-#include "TMath.h"
-
-#include "AliITSdigitSSD.h"
-#include "AliITS.h"
-#include "AliITSmodule.h"
-
-
-
-//____________________________________________________________________
-//
-//  Class AliITSmoduleSSD
-//  describes one SSD module
-//  The main function of modules is to simulate DIGITS from  
-//  GEANT HITS and produce POINTS from DIGITS
-//
-//  This class keep track of Detector Control System parameters
-//  of one SSD module: invalid (dead) strips, gain, capacitive
-//  coupling.
-//
-//  In this release it make only simulation, and is not completly
-//  tuned - up. Simulation will be improved after tests of SSD 
-//  modules on SPS. Improved simulation and reconstruction will
-//  appear in next releas.
-//  
-//  created by: A.Boucham, W.Peryt, S.Radomski, P.Skowronski
-//  ver. 1.0    CERN, 16.09.1999  
-// 
-//___________________________________________________________________
-//
-
-
-
-class AliITSmoduleSSD: public AliITSmodule {
-
-    
-public:       
-    
-    //________________________________________________________________
-    //
-    // Constructors and deconstructor
-    //________________________________________________________________
-    //
-    
-    AliITSmoduleSSD();
-    AliITSmoduleSSD(Int_t index);
-    ~AliITSmoduleSSD();
-  
-    //________________________________________________________________
-    //
-    // Data process methods
-    //________________________________________________________________
-    //
-    
-    void AddDigit(Int_t, Int_t,  Bool_t);
-    void HitToDigit();           // Process all hits in module
-    void HitToDigit(Int_t);      // Proces one hit
-    void DigitToPoint() {};      // Not impemented yet
-    void HitToPoint() {};        // Not impemented y
-   
-    //________________________________________________________________
-    // 
-    //Invalid strips menagement methods
-    //________________________________________________________________
-    //
-    
-    // Parameters for invalid strips MonteCarlo
-//    void SetInvalidParam(Float_t mean, Float_t sigma);
-//    void GetInvalParam(Float_t &mean, Float_t &sigma); 
-    
-    // Methods for creating invalid strips
-    void SetInvalidMC(Float_t mean, Float_t sigma);
-    void SetInvalidMC();
-    
-    // Testing if strip is valid
-    Bool_t  IsValidN(Int_t strip);      //True if strip work properly
-    Bool_t  IsValidP(Int_t strip);
-//    TArrayI GetInvalidP();              //Array of invalid strips
-//    TArrayI GetInvalidN();
-//    Int_t   GetNInvalidP();             //Number of invalid srtips
-//    Int_t   GrtNInvalidN();
-    
-    // Creating invalid strips
-    void      SetInvalidP(Int_t strip, Bool_t side);   //Set invalid if true 
-//    void      SetInvalidN(Int_t strip, Bool_t side);          
-       
-  
-protected:
-         
-    //________________________________________________________________
-    //
-    //Private methods for geometry
-    //________________________________________________________________
-    //
-    
-    Int_t   GetStripN(Float_t x, Float_t z);    // Nearest strip number P-side
-    Int_t   GetStripP(Float_t x, Float_t z);    // Nearest strip number N-side
-    
-    Float_t Get2StripN(Float_t, Float_t);       // Ditance do the nearest strip P 
-    Float_t Get2StripP(Float_t, Float_t);       // Ditance do the nearest strip N
-     
-    Bool_t  GetCrossing(Float_t&, Float_t&);      //x, y of strips crossing 
-    
-    //________________________________________________________________
-    //
-    //Private methods for simulation  
-    //________________________________________________________________
-    //
-    
-    void ApplyNoise();
-    void ApplyCoupling();
-
-    Float_t   F(Float_t x, Float_t s) {return (TMath::Erf(x*kPitch/s)+1) /2;}              
-    
-    // Proceding part should be in SSDgeo ----->
-    
-    //Technical parameters of detector
-    static const Float_t   kStereo ;// = 0.0175;  //Stereo Angle 17.5 mrad
-    static const Float_t   kTan ;// = 0.0175;  
-    static const Int_t     kNStrips ;// = 768;    //Number of strips on each side
-    static const Float_t   kPitch ;// = 0.095;    //Distance strip - strip (mm)
-    static const Float_t   kX ;// = 72.96;        //X size (mm)
-    static const Float_t   kY ;// = 0.3;          //Y size (mm)
-    static const Float_t   kZ ;// = 40;           //Thickness (mm)
-    
-    // <------------------------------
-  
-    //______________________________________________________________
-    //  
-    // Parameters for simulation
-    //______________________________________________________________
-      
-    static const Float_t   kSigmaP ;// = 0.003;     //Gaussian sigm
-    static const Float_t   kSigmaN ;// = 0.002;
-    static const Int_t     kSteps  ;// = 10;        //Number of steps 
-    static const Int_t     kTresholdP ;// = 1500;    
-    static const Int_t     kTresholdN ;// = 2500; 
-   
-    //________________________________________________________________
-    //      
-    // DCS Parameters
-    //________________________________________________________________
-    //
-    
-    Float_t   fSNRatioP;      //Signal - Noise Ratio P-side
-    Float_t   fSNRatioN;      //Signal - Noise RatioNP-side
-    
-    Float_t   fGainP;         //Charge - ADC conversion parameter P
-    Float_t   fGainN;         //Charge - ADC conversi parameter N
-    
-    Int_t     fNInvalidP;     //Number of invalid strips P
-    TArrayS  *fInvalidP;      //Invalid strips P-side
-    Int_t     fNInvalidN;     //Number of invalid strips N
-    TArrayS  *fInvalidN;      //Invalid strips N-side 
-
-
-    //________________________________________________________________
-    //
-    // Capacitive coupling parameters
-    //________________________________________________________________
-    //
-    
-    Float_t   fCouplingPR;
-    Float_t   fCouplingPL;
-    Float_t   fCouplingNR;
-    Float_t   fCouplingNL;     
-
-    //________________________________________________________________
-    //
-    // Parameters for invalid strips simulatation 
-    //________________________________________________________________
-    
-    Float_t     fNInvalid;             //Meam number of invalid strips 
-    Float_t     fISigma;               //RMS of invalid strips (Gaussian)
-
-    //________________________________________________________________
-    //
-    // temp for simulation
-    //________________________________________________________________
-    //
-    
-    TArrayI *fN;         // for signal
-    TArrayI *fP;        
-    
-    TArrayI *fNtrack1;   // for tracks, signal orgin N-side
-    TArrayI *fNtrack2;
-    TArrayI *fNtrack3;
-       
-    TArrayI *fPtrack1;   // for tracks, signal orgin P-side
-    TArrayI *fPtrack2;
-    TArrayI *fPtrack3;
-
-public:
-    ClassDef(AliITSmoduleSSD, 1)
-};
-
-#endif