1 #ifndef AliMFTSupport_H
2 #define AliMFTSupport_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 //====================================================================================================================================================
9 // Support class for various common operation on MFT objects
11 // Contact author: antonio.uras@cern.ch
13 //====================================================================================================================================================
16 #include "AliAODTrack.h"
17 #include "AliAODDimuon.h"
18 #include "TLorentzVector.h"
19 #include "AliMFTConstants.h"
20 #include "TDatabasePDG.h"
24 //====================================================================================================================================================
26 class AliMFTSupport : public TObject {
30 AliMFTSupport() : TObject() {;}
31 virtual ~AliMFTSupport() {;}
33 static Bool_t ExtrapAODMuonToZ(AliAODTrack *muon, Double_t z, Double_t xy[2]);
34 static Bool_t RefitAODDimuonWithCommonVertex(AliAODDimuon *dimuon, Double_t *vertex, TLorentzVector &kinem);
36 static Bool_t PlaneExists(AliAODTrack *muon, Int_t iPlane) { return muon->GetMFTClusterPattern() & (1<<iPlane); }
38 static Bool_t IsWrongCluster(AliAODTrack *muon, Int_t iPlane) {
39 if (!PlaneExists(muon, iPlane)) return kFALSE;
40 else return !(muon->GetMFTClusterPattern() & (1<<(iPlane+AliMFTConstants::fNMaxPlanes)));
43 ClassDef(AliMFTSupport,1)
47 //====================================================================================================================================================