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 */
6 ///////////////////////////////////////////////////////////////////////////////
8 // Class to set HMPID reconstruction parameters (normal, HTA, UserCut ... //
10 ///////////////////////////////////////////////////////////////////////////////
12 //Email: Levente.Molnar@ba.infn.it
17 class AliHMPIDRecoParam : public TNamed
21 AliHMPIDRecoParam(); //ctor
22 AliHMPIDRecoParam(const AliHMPIDRecoParam &p); //copy ctor
23 AliHMPIDRecoParam& operator=(const AliHMPIDRecoParam &p); // ass. op.
24 virtual ~AliHMPIDRecoParam(); //dtor
26 Bool_t GetRecoMode( ) const { return fRecoMode; }
27 inline Int_t GetUserCut(Int_t iCh ) const;
28 Bool_t GetUserCutMode( ) const { return fUserCutMode; }
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; }
34 static AliHMPIDRecoParam *GetUserModeParam(); // make reco parameters
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
44 ClassDef(AliHMPIDRecoParam, 1)
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)
51 // Set user cuts, ... make it nicer later ...
62 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
63 Int_t AliHMPIDRecoParam::GetUserCut(Int_t iCh)const
66 //Return the UserCut for a given chamber
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