]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HMPID/AliHMPIDRecoParam.h
remove print
[u/mrichter/AliRoot.git] / HMPID / AliHMPIDRecoParam.h
index 2026601ddf77a3149216f0d365f093091194dc64..5fb84c7f1590f7a00e2cdce44af440397fe4c889 100644 (file)
@@ -8,66 +8,47 @@
 // Class to set HMPID reconstruction parameters (normal, HTA, UserCut ...    //
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
-//
-//Email: Levente.Molnar@ba.infn.it
-//
 
-#include "TNamed.h"
+#include "AliDetectorRecoParam.h"
 
-class AliHMPIDRecoParam : public TNamed
+class AliHMPIDRecoParam : public AliDetectorRecoParam
 {
  public: 
   
   AliHMPIDRecoParam();                                                                  //ctor
-  AliHMPIDRecoParam(const AliHMPIDRecoParam &p);                                            //copy ctor 
-  AliHMPIDRecoParam& operator=(const AliHMPIDRecoParam &p);                                 // ass. op.
+  AliHMPIDRecoParam(const AliHMPIDRecoParam &p);                                        //copy ctor 
+  AliHMPIDRecoParam& operator=(const AliHMPIDRecoParam &p);                             // ass. op.
   virtual ~AliHMPIDRecoParam();                                                         //dtor
-  
-  Bool_t   GetRecoMode(            )       const  { return fRecoMode;       }
-  inline  Int_t  GetUserCut(Int_t iCh    ) const;
-  Bool_t   GetUserCutMode(         )       const  { return fUserCutMode;    }
 
-  void    SetRecoMode(Bool_t recoMode)           { fRecoMode=recoMode; }
-  inline  void    SetUserCut(Int_t ucCh0,Int_t ucCh1,Int_t ucCh2,Int_t ucCh3,Int_t ucCh4,Int_t ucCh5,Int_t ucCh6);////set user cut
-  void    SetUserCutMode(Bool_t userCutMode)      { fUserCutMode=userCutMode;   }
   
-  static   AliHMPIDRecoParam *GetUserModeParam();        // make reco parameters
+  static AliHMPIDRecoParam *GetLowFluxParam();                                          // reco params for low flux env.
+  static AliHMPIDRecoParam *GetHighFluxParam();                                         // reco params for high flux env. 
+  static AliHMPIDRecoParam *GetCosmicParam();                                           // reco params for cosmic  
+    
+  Bool_t   GetHmpRecoMode(            )        const            { return fHmpRecoMode;          }                  //kTRUE = normal tracking reco, kFALSE = HTA     
+  void     SetHmpRecoMode(Bool_t recoMode)                       { fHmpRecoMode=recoMode;        }                 //kTRUE = normal tracking reco, kFALSE = HTA   
+  Int_t    GetHmpUserCut(Int_t iCh)            const             { return fHmpUserCut[iCh];      }                 //user cut for the 7 chambers
+  void     SetHmpUserCut(Int_t iChamb,Int_t ucCh)     { fHmpUserCut[iChamb]=ucCh; Printf("fUserCut[%d]=%d",iChamb,ucCh);    }       //set user cut (DAQ Sigma) for a given chamber
+  Bool_t   IsFixedDistCut()                    const             { return fHmpFixedDistCut;      }                  //if kTRUE the track matching  distance is a fix number, if kFALSE the distance depends on momentum
+  void     SetIsFixedDistCut(Bool_t isFix)                       { fHmpFixedDistCut=isFix;       }                  //Change from fix distance cut to parameterized
+  Double_t GetHmpTrackMatchingDist()           const             { return fHmpTrackMatchingDist; }                  //Get distance between the MIP cluster
+  void     SetHmpTrackMatchingDist(Double_t dist)                { fHmpTrackMatchingDist=dist;   }                  //Set distance between the MIP cluster
+  Double_t GetHmpTrackMatchingDistParam(Int_t par) const         {return fHmpTrackMatchingDistParas[par];}          //Prevision to get  momentum dependen track matching parameters
+  void     SetHmpTrackMatchingDistParam(Int_t par, Double_t val) {fHmpTrackMatchingDistParas[par]=val;}             //Prevision to set  momentum dependen track matching parameters
+
+  virtual void PrintParameters() const;
   
  
   protected:
    
-  Bool_t  fRecoMode;                                    //kTRUE = normal tracking reco, kFALSE = HTA
-  Int_t   fUserCut[7];                                 //user cut for the 7 chambers
-  Bool_t  fUserCutMode;                                 //kTRUE =  get user cut from OCDB, kFALSE = get user cut from AliHMPIDRecoParam
+  Bool_t   fHmpRecoMode;                                    //kTRUE = normal tracking reco, kFALSE = HTA
+  Int_t    fHmpUserCut[7];                                  //user cut for the 7 chambers
+  Bool_t   fHmpFixedDistCut;                                //if kTRUE the track matching  distance is a fix number, if kFALSE the distance depends on momentum
+  Double_t fHmpTrackMatchingDist;                           //distance between the MIP cluster
+  Double_t fHmpTrackMatchingDistParas[5];                   //Prevision for momentum dependen track matching
   
 
-      ClassDef(AliHMPIDRecoParam, 1
+  ClassDef(AliHMPIDRecoParam, 3
 };
-
-//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++      
-void AliHMPIDRecoParam::SetUserCut(Int_t ucCh0,Int_t ucCh1,Int_t ucCh2,Int_t ucCh3,Int_t ucCh4,Int_t ucCh5,Int_t ucCh6)
-{ 
-  //
-  // Set user cuts, ... make it nicer later ...
-  //
-  
-  fUserCut[0]=ucCh0;                 
-  fUserCut[1]=ucCh1;   
-  fUserCut[2]=ucCh2;   
-  fUserCut[3]=ucCh3;   
-  fUserCut[4]=ucCh4;   
-  fUserCut[5]=ucCh5;   
-  fUserCut[6]=ucCh6;     
-} //SetUserCut()
-//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++      
-Int_t  AliHMPIDRecoParam::GetUserCut(Int_t iCh)const
-{
-  //
-  //Return the UserCut for a given chamber
-  //
-  if( iCh < 0 || iCh > 6 ) return 3; // return a basic value actually does nothing , ADD AliError??? 
-  else return fUserCut[iCh];   // return the actual user cut
-  
-}
 #endif