]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCParam.cxx
Remove useless flags...
[u/mrichter/AliRoot.git] / TPC / AliTPCParam.cxx
index 73e33ca22157a2656206f604c635e53368b824c3..4418efb52ce646e78456df18b02300c02e829fd3 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-Revision 1.13.4.1  2002/06/10 15:26:11  hristov
-Merged with v3-08-02
-
-Revision 1.15  2002/05/07 17:24:02  kowal2
-Updated wires positions
-
-Revision 1.14  2002/03/29 06:57:45  kowal2
-Restored backward compatibility to use the hits from Dec. 2000 production.
-
-Revision 1.13  2002/03/18 17:59:13  kowal2
-Chnges in the pad geometry - 3 pad lengths introduced.
-
-Revision 1.12  2002/02/05 09:12:26  hristov
-Small mods for gcc 3.02
-
-Revision 1.11  2000/11/02 07:33:48  kowal2
-Automatic streamer generation.
-
-Revision 1.10  2000/07/10 20:57:39  hristov
-Update of TPC code and macros by M.Kowalski
-
-Revision 1.9  2000/06/30 12:07:50  kowal2
-Updated from the TPC-PreRelease branch
-
-Revision 1.8.4.4  2000/06/26 07:39:42  kowal2
-Changes to obey the coding rules
-
-Revision 1.8.4.3  2000/06/25 08:38:41  kowal2
-Splitted from AliTPCtracking
-  
-Revision 1.8.4.2  2000/06/14 16:48:24  kowal2
-Parameter setting improved. Removed compiler warnings
-
-Revision 1.8.4.1  2000/06/09 07:12:21  kowal2  
-
-Updated defaults
-
-Revision 1.8  2000/04/17 09:37:33  kowal2
-removed obsolete AliTPCDigitsDisplay.C
-
-Revision 1.7.8.2  2000/04/10 08:44:51  kowal2
-
-New transformations added
-Different pad and pad-rows geometries for different sectors
-
-Revision 1.7.8.1  2000/04/10 07:56:53  kowal2
-Not used anymore - removed
-
-Revision 1.7  1999/10/08 13:10:35  fca
-Values in SetDefault are in radiants
-
-Revision 1.6  1999/10/08 06:27:59  fca
-Defaults updated
-
-Revision 1.5  1999/10/05 17:18:27  fca
-Correct GetWire check on even/odd fnWires
-
-Revision 1.4  1999/09/29 09:24:34  fca
-Introduction of the Copyright and cvs Log
-
-*/
+/* $Id$ */
 
 ///////////////////////////////////////////////////////////////////////
 //  Manager and of geomety  classes for set: TPC                     //
@@ -90,7 +28,7 @@ Introduction of the Copyright and cvs Log
 
 //
 
-#include <iostream.h>
+#include <Riostream.h>
 #include <TMath.h>
 #include <TObject.h>
 #include <TRandom.h>
@@ -149,7 +87,7 @@ Int_t  AliTPCParam::Transform0to1(Float_t *xyz, Int_t * index)  const
       if ( (xyz[0]>0) && (xyz[1]<0) ) angle=2*TMath::Pi()+angle;
     }
 
-  sector=Int_t((angle-fInnerAngleShift)/fInnerAngle);      
+  sector=Int_t(TMath::Nint((angle-fInnerAngleShift)/fInnerAngle));      
  
   Float_t cos,sin;
   AdjustCosSin(sector,cos,sin);
@@ -157,7 +95,7 @@ Int_t  AliTPCParam::Transform0to1(Float_t *xyz, Int_t * index)  const
 
   if (x1>fOuterRadiusLow)
     {
-      sector=Int_t((angle-fOuterAngleShift)/fOuterAngle)+fNInnerSector;      
+      sector=Int_t(TMath::Nint((angle-fOuterAngleShift)/fOuterAngle))+fNInnerSector;      
       if (xyz[2]<0)    sector+=(fNOuterSector>>1);            
     }
     else   
@@ -167,7 +105,7 @@ Int_t  AliTPCParam::Transform0to1(Float_t *xyz, Int_t * index)  const
   return sector;
 }
 
-Bool_t  AliTPCParam::Transform(Float_t *xyz, Int_t *index, Int_t* oindex)
+Bool_t  AliTPCParam::Transform(Float_t */*xyz*/, Int_t *index, Int_t* /*oindex*/)
 {
   //transformation from input coodination system to output coordination system
   switch (index[0]){
@@ -240,7 +178,7 @@ void  AliTPCParam::SetSectorAngles(Float_t innerangle, Float_t innershift, Float
 {
   //
   // set opening angles  
-  const static  Float_t  kDegtoRad = 0.01745329251994;
+  static const  Float_t  kDegtoRad = 0.01745329251994;
   fInnerAngle = innerangle;       //opening angle of Inner sector
   fInnerAngleShift = innershift;  //shift of first inner sector center to the 0
   fOuterAngle = outerangle;       //opening angle of outer sector
@@ -276,7 +214,7 @@ Float_t  AliTPCParam::GetOuterAngleShift() const
 } 
 
 
-Int_t AliTPCParam::GetIndex(Int_t sector, Int_t row)
+Int_t AliTPCParam::GetIndex(Int_t sector, Int_t row) const
 {
   //
   //give index of the given sector and pad row 
@@ -315,91 +253,91 @@ void AliTPCParam::SetDefault()
   //
   //sector default parameters
   //
-  const static  Float_t kInnerRadiusLow = 82.97;
-  const static  Float_t kInnerRadiusUp  = 133.17;
-  const static  Float_t kOuterRadiusLow = 133.58;
-  const static  Float_t kOuterRadiusUp  = 247.78;
-  const static  Float_t kInnerAngle = 20; // 20 degrees
-  const static  Float_t kInnerAngleShift = 10;
-  const static  Float_t kOuterAngle = 20; //  20 degrees
-  const static  Float_t kOuterAngleShift = 10;
-  const static  Float_t kInnerFrameSpace = 1.5;
-  const static  Float_t kOuterFrameSpace = 1.5;
-  const static  Float_t kInnerWireMount = 1.370825926;
-  const static  Float_t kOuterWireMount = 1.370825926;
-  const static  Float_t kZLength =250.;
-  const static  Int_t   kGeometryType = 0; //straight rows 
-  const static Int_t kNRowLow = 63;
-  const static Int_t kNRowUp1 = 64;
-  const static Int_t kNRowUp2 = 32;
-  const static Int_t  kNRowUp = 96;
+  static const  Float_t kInnerRadiusLow = 82.97;
+  static const  Float_t kInnerRadiusUp  = 133.17;
+  static const  Float_t kOuterRadiusLow = 133.58;
+  static const  Float_t kOuterRadiusUp  = 247.78;
+  static const  Float_t kInnerAngle = 20; // 20 degrees
+  static const  Float_t kInnerAngleShift = 10;
+  static const  Float_t kOuterAngle = 20; //  20 degrees
+  static const  Float_t kOuterAngleShift = 10;
+  static const  Float_t kInnerFrameSpace = 1.5;
+  static const  Float_t kOuterFrameSpace = 1.5;
+  static const  Float_t kInnerWireMount = 1.370825926;
+  static const  Float_t kOuterWireMount = 1.370825926;
+  static const  Float_t kZLength =250.;
+  static const  Int_t   kGeometryType = 0; //straight rows 
+  static const Int_t kNRowLow = 63;
+  static const Int_t kNRowUp1 = 64;
+  static const Int_t kNRowUp2 = 32;
+  static const Int_t  kNRowUp = 96;
   //
   //wires default parameters
   //
-  const static Int_t    kNInnerWiresPerPad = 3;
-  const static Int_t    kInnerDummyWire = 2;
-  const static Float_t  kInnerWWPitch = 0.25;
-  const static Float_t  kRInnerFirstWire = 84.445;
-  const static Float_t  kRInnerLastWire = 132.445;
-  const static Float_t  kInnerOffWire = 0.5;
-  const static Int_t    kNOuter1WiresPerPad = 4;
-  const static Int_t    kNOuter2WiresPerPad = 6;
-  const static Float_t  kOuterWWPitch = 0.25;  
-  const static Float_t  kROuterFirstWire = 134.305;
-  const static Float_t  kROuterLastWire = 247.055;
-  const static Int_t    kOuterDummyWire = 2;
-  const static Float_t  kOuterOffWire = 0.5;
+  static const Int_t    kNInnerWiresPerPad = 3;
+  static const Int_t    kInnerDummyWire = 2;
+  static const Float_t  kInnerWWPitch = 0.25;
+  static const Float_t  kRInnerFirstWire = 84.445;
+  static const Float_t  kRInnerLastWire = 132.445;
+  static const Float_t  kInnerOffWire = 0.5;
+  static const Int_t    kNOuter1WiresPerPad = 4;
+  static const Int_t    kNOuter2WiresPerPad = 6;
+  static const Float_t  kOuterWWPitch = 0.25;  
+  static const Float_t  kROuterFirstWire = 134.305;
+  static const Float_t  kROuterLastWire = 247.055;
+  static const Int_t    kOuterDummyWire = 2;
+  static const Float_t  kOuterOffWire = 0.5;
   //
   //pad default parameters
   // 
-  const static Float_t  kInnerPadPitchLength = 0.75;
-  const static Float_t  kInnerPadPitchWidth = 0.40;
-  const static Float_t  kInnerPadLength = 0.75;
-  const static Float_t  kInnerPadWidth = 0.40;
-  const static Float_t  kOuter1PadPitchLength = 1.0;
-  const static Float_t  kOuterPadPitchWidth = 0.6;
-  const static Float_t  kOuter1PadLength = 1.0;
-  const static Float_t  kOuterPadWidth = 0.6;
-  const static Float_t  kOuter2PadPitchLength = 1.5;
-  const static Float_t  kOuter2PadLength = 1.5;
-
-  const static Bool_t   kBMWPCReadout = kTRUE; //MWPC readout - another possibility GEM 
-  const static Int_t    kNCrossRows = 1; //number of rows to cross-talk
+  static const Float_t  kInnerPadPitchLength = 0.75;
+  static const Float_t  kInnerPadPitchWidth = 0.40;
+  static const Float_t  kInnerPadLength = 0.75;
+  static const Float_t  kInnerPadWidth = 0.40;
+  static const Float_t  kOuter1PadPitchLength = 1.0;
+  static const Float_t  kOuterPadPitchWidth = 0.6;
+  static const Float_t  kOuter1PadLength = 1.0;
+  static const Float_t  kOuterPadWidth = 0.6;
+  static const Float_t  kOuter2PadPitchLength = 1.5;
+  static const Float_t  kOuter2PadLength = 1.5;
+
+  static const Bool_t   kBMWPCReadout = kTRUE; //MWPC readout - another possibility GEM 
+  static const Int_t    kNCrossRows = 1; //number of rows to cross-talk
   
   //
   //gas default parameters
   //
-  const static  Float_t  kDiffT = 2.2e-2; 
-  const static  Float_t  kDiffL = 2.2e-2;
-  const static  Float_t  kGasGain = 2.e4;
-  const static  Float_t  kDriftV  =2.83e6;
-  const static  Float_t  kOmegaTau = 0.145;
-  const static  Float_t  kAttCoef = 250.;
-  const static  Float_t  kOxyCont = 5.e-6;
+  static const  Float_t  kDiffT = 2.2e-2; 
+  static const  Float_t  kDiffL = 2.2e-2;
+  static const  Float_t  kGasGain = 2.e4;
+  static const  Float_t  kDriftV  =2.83e6;
+  static const  Float_t  kOmegaTau = 0.145;
+  static const  Float_t  kAttCoef = 250.;
+  static const  Float_t  kOxyCont = 5.e-6;
   //
   //electronic default parameters
   //
-  const static  Float_t  kPadCoupling=0.5;
-  const static  Int_t    kZeroSup=2;
-  const static  Float_t  kNoise = 1000;                            
-  const static  Float_t  kChipGain = 12;
-  const static  Float_t  kChipNorm = 0.4;
-  const static  Float_t  kTSample = 2.e-7; 
-  const static  Float_t  kTFWHM   = 1.9e-7;  //fwhm of charge distribution
-  const static  Int_t    kMaxTBin =445;  
-  const static  Int_t    kADCSat  =1024;  
-  const static  Float_t  kADCDynRange =2000.;  
+  static const  Float_t  kPadCoupling=0.5;
+  static const  Int_t    kZeroSup=2;
+  static const  Float_t  kNoise = 1000;                            
+  static const  Float_t  kChipGain = 12;
+  static const  Float_t  kChipNorm = 0.4;
+  static const  Float_t  kTSample = 2.e-7; 
+  static const  Float_t  kTFWHM   = 1.9e-7;  //fwhm of charge distribution
+  static const  Int_t    kMaxTBin =445;  
+  static const  Int_t    kADCSat  =1024;  
+  static const  Float_t  kADCDynRange =2000.;  
   //
   //
   //
-  const static  Float_t kBField =0.2; 
-  const static  Float_t kNPrimLoss =10.9;
-  const static  Float_t kNTotalLoss =39.9;
+  static const  Float_t kBField =0.2; 
+  static const  Float_t kNPrimLoss =10.9;
+  static const  Float_t kNTotalLoss =39.9;
   // 
   //response constants
   //
-  const static Int_t     kNResponseMax=100;
-  const static Float_t   kResponseThreshold=0.01;     
+  static const Int_t     kNResponseMax=100;
+  static const Float_t   kResponseThreshold=0.01;     
   fbStatus = kFALSE;
   //
   //set sector parameters