]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HMPID/AliHMPIDRecoParam.h
correction of trivial typo preventing compilation
[u/mrichter/AliRoot.git] / HMPID / AliHMPIDRecoParam.h
1 #ifndef ALIHMPIDRECOPARAM_H
2 #define ALIHMPIDRECOPARAM_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 ///////////////////////////////////////////////////////////////////////////////
7 //                                                                           //
8 // Class to set HMPID reconstruction parameters (normal, HTA, UserCut ...    //
9 //                                                                           //
10 ///////////////////////////////////////////////////////////////////////////////
11 //
12 //Email: Levente.Molnar@ba.infn.it
13 //
14
15 #include "TNamed.h"
16
17 class AliHMPIDRecoParam : public TNamed
18 {
19  public: 
20   
21   AliHMPIDRecoParam();                                                                  //ctor
22   AliHMPIDRecoParam(const AliHMPIDRecoParam &p);                                            //copy ctor 
23   AliHMPIDRecoParam& operator=(const AliHMPIDRecoParam &p);                                 // ass. op.
24   virtual ~AliHMPIDRecoParam();                                                         //dtor
25   
26   Bool_t   GetRecoMode(            )       const  { return fRecoMode;       }
27   inline  Int_t  GetUserCut(Int_t iCh    ) const;
28   Bool_t   GetUserCutMode(         )       const  { return fUserCutMode;    }
29
30   void    SetRecoMode(Bool_t recoMode)           { fRecoMode=recoMode; }
31   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
32   void    SetUserCutMode(Bool_t userCutMode)      { fUserCutMode=userCutMode;   }
33   
34   static   AliHMPIDRecoParam *GetUserModeParam();        // make reco parameters
35   
36  
37   protected:
38    
39   Bool_t  fRecoMode;                                    //kTRUE = normal tracking reco, kFALSE = HTA
40   Int_t   fUserCut[7];                                 //user cut for the 7 chambers
41   Bool_t  fUserCutMode;                                 //kTRUE =  get user cut from OCDB, kFALSE = get user cut from AliHMPIDRecoParam
42   
43
44       ClassDef(AliHMPIDRecoParam, 1) 
45 };
46
47 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++      
48 void AliHMPIDRecoParam::SetUserCut(Int_t ucCh0,Int_t ucCh1,Int_t ucCh2,Int_t ucCh3,Int_t ucCh4,Int_t ucCh5,Int_t ucCh6)
49
50   //
51   // Set user cuts, ... make it nicer later ...
52   //
53   
54   fUserCut[0]=ucCh0;                 
55   fUserCut[1]=ucCh1;   
56   fUserCut[2]=ucCh2;   
57   fUserCut[3]=ucCh3;   
58   fUserCut[4]=ucCh4;   
59   fUserCut[5]=ucCh5;   
60   fUserCut[6]=ucCh6;     
61 } //SetUserCut()
62 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++      
63 Int_t  AliHMPIDRecoParam::GetUserCut(Int_t iCh)const
64 {
65   //
66   //Return the UserCut for a given chamber
67   //
68   if( iCh < 0 || iCh > 6 ) return 3; // return a basic value actually does nothing , ADD AliError??? 
69   else return fUserCut[iCh];   // return the actual user cut
70   
71 }
72 #endif
73