]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDfeeParam.h
fatal error in case OCDB entry with alignment objects is not found for one or more...
[u/mrichter/AliRoot.git] / TRD / AliTRDfeeParam.h
index 94ef04a5531d68b3f5e8918a0cc17721ad154b8b..fffadb75db992f221153f95d8b7faac9fabab7a6 100644 (file)
@@ -3,7 +3,7 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
-/* $Id: AliTRDfeeParam.h$ */
+/* $Id$ */
 
 ////////////////////////////////////////////////////////////////////////////
 //                                                                        //
@@ -42,6 +42,7 @@ class AliTRDfeeParam : public TObject
   // Translation from MCM to Pad and vice versa
   virtual Int_t    GetPadRowFromMCM(Int_t irob, Int_t imcm) const;
   virtual Int_t    GetPadColFromADC(Int_t irob, Int_t imcm, Int_t iadc) const;
+  virtual Int_t    GetExtendedPadColFromADC(Int_t irob, Int_t imcm, Int_t iadc) const;
   virtual Int_t    GetMCMfromPad(Int_t irow, Int_t icol) const;
   virtual Int_t    GetROBfromPad(Int_t irow, Int_t icol) const;
   virtual Int_t    GetRobSide(Int_t irob) const;
@@ -80,8 +81,6 @@ class AliTRDfeeParam : public TObject
   static  Int_t    GetLinearFitStart()    {  return fgkPREPLinearFitStart; }
   static  Int_t    GetLinearFitEnd()      {  return fgkPREPLinearFitEnd;  }
 
-
-
   //        Float_t  GetClusThr()           { return fClusThr; };
   //        Float_t  GetPadThr() const { return fPadThr; };
   //        Int_t    GetTailCancelation() const { return fTCOn; };
@@ -90,15 +89,18 @@ class AliTRDfeeParam : public TObject
   //        Int_t    GetFilterType() const { return fFilterType; };
 
   static  Int_t    GetTFtype()            { return fgkTFtype;       }
-  static  Int_t    GetTFnExp()            { return fgkTFnExp;       }
+  //static  Int_t    GetTFnExp()            { return fgkTFnExp;       }
+          Int_t    GetTFnExp()      const { return fTFnExp;         }
           Float_t  GetTFr1()        const { return fTFr1;           }
           Float_t  GetTFr2()        const { return fTFr2;           }
           Float_t  GetTFc1()        const { return fTFc1;           }
           Float_t  GetTFc2()        const { return fTFc2;           }
 
  // for tracklets
-         Bool_t   GetTracklet()         const { return fgkTracklet; } 
+         Bool_t   GetTracklet()         const { return fgTracklet; } 
+  static  void     SetTracklet(Bool_t trackletSim = kTRUE) { fgTracklet = trackletSim; }
           Int_t    GetMaxNrOfTracklets() const { return fgkMaxNrOfTracklets; } 
+         Bool_t    GetMCTrackletOutput() const { return fgkMCTrackletOutput; }
 
   static  Float_t  GetTFattPar()          { return ((Float_t) fgkTFattPar1) / ((Float_t) fgkTFattPar2); }
           Float_t  GetTFf0()        const { return 1.0 + fgkTFon*(-1.0+GetTFattPar()); }   // 1 if TC off
@@ -121,6 +123,9 @@ class AliTRDfeeParam : public TObject
           Bool_t   GetRAWstoreRaw() const                   { return fRAWstoreRaw;       }
           void     SetRAWstoreRaw( Bool_t storeraw )        { fRAWstoreRaw = storeraw;   }
 
+          void     SetXenon();
+          void     SetArgon();
+
  protected:
 
   static AliTRDfeeParam *fgInstance;         // Singleton instance
@@ -163,13 +168,17 @@ class AliTRDfeeParam : public TObject
   static const Int_t    fgkTFtype            = 1;         // TC type (0=analog, 1=digital, 2=MI, 3=close to electronics) (old name fFilterType)
 
   // OLD TF setup (calculated from above)  (valid only for fgkTFsimType = 0 or 1)
-  static const Int_t    fgkTFnExp          = 1;           // Number of exponential for simType 0 and 1
+  //static const Int_t    fgkTFnExp          = 1;           // Number of exponential for simType 0 and 1
+               Int_t    fTFnExp;                            // Number of exponential for simType 0 and 1
 
  // Tracklet  processing on/off 
-  static const Bool_t   fgkTracklet         = kFALSE; // default should be kFALSE
+  static       Bool_t   fgTracklet; // tracklet processing
 
-  // max. nr of tracklet words for one mcm
-  static const Int_t    fgkMaxNrOfTracklets = 4; 
+  static const Int_t    fgkMaxNrOfTracklets = 4;          // Max. nr of tracklet words for one mcm
+
+  // additional tracklet folder structure output, 
+  // containing all necessary Monte Carlo information; maybe this should go somewhere else;
+  static const Bool_t   fgkMCTrackletOutput = kTRUE;      // Default should be kTRUE
 
   // following need Instance because initialized in constructor
                Float_t  fTFr1;                            // Time constant [us] long (old name fR1)
@@ -198,11 +207,8 @@ class AliTRDfeeParam : public TObject
   static const Int_t    fgkMinClusterCharge   = 20;       // Hit detection [in ADC units]
 
   //new
-  //time constants for linear fit
-  static const Int_t    fgkPREPLinearFitStart = 5;
-  static const Int_t    fgkPREPLinearFitEnd   = 20;
-
-
+  static const Int_t    fgkPREPLinearFitStart = 5;        // Time constants for linear fit
+  static const Int_t    fgkPREPLinearFitEnd   = 20;       // Time constants for linear fit
 
   // OLD TRAP processing parameters calculated from above
   //static const Float_t  fClusThr;                       // Cluster threshold
@@ -217,7 +223,7 @@ class AliTRDfeeParam : public TObject
 
   AliTRDfeeParam();
 
-  ClassDef(AliTRDfeeParam,2)                              // The TRD front end electronics parameter
+  ClassDef(AliTRDfeeParam,3)                              // The TRD front end electronics parameter
 
 };
 #endif