1 #include "AliEventBaseCut.h"
2 //________________________________
3 ///////////////////////////////////////////////////////////
5 // class AliEventBaseCut
10 ///////////////////////////////////////////////////////////
13 ClassImp(AliEventBaseCut)
15 AliEventBaseCut::AliEventBaseCut():
22 /**********************************************************/
24 AliEventBaseCut::AliEventBaseCut(Double_t min, Double_t max, EEventCutProperty prop):
31 /**********************************************************/
33 Bool_t AliEventBaseCut::Rejected(AliAOD* aod) const
35 if ( (GetValue(aod) < fMin) || (GetValue(aod) > fMax) ) return kTRUE;
38 /**********************************************************/
39 /**********************************************************/
40 /**********************************************************/
41 ClassImp(AliPrimVertexXCut)
43 Double_t AliPrimVertexXCut::GetValue(AliAOD* aod) const
45 //returns x coordinate of the primary vertex
46 Double_t x = 0, y = 0, z = 0;
47 if (aod) aod->GetPrimaryVertex(x,y,z);
50 /**********************************************************/
51 /**********************************************************/
52 /**********************************************************/
53 ClassImp(AliPrimVertexYCut)
55 Double_t AliPrimVertexYCut::GetValue(AliAOD* aod) const
57 //returns x coordinate of the primary vertex
58 Double_t x = 0, y = 0, z = 0;
59 if (aod) aod->GetPrimaryVertex(x,y,z);
62 /**********************************************************/
63 /**********************************************************/
64 /**********************************************************/
65 ClassImp(AliPrimVertexZCut)
67 Double_t AliPrimVertexZCut::GetValue(AliAOD* aod) const
69 //returns x coordinate of the primary vertex
70 Double_t x = 0, y = 0, z = 0;
71 if (aod) aod->GetPrimaryVertex(x,y,z);
75 /**********************************************************/
76 /**********************************************************/
77 /**********************************************************/
79 ClassImp(AliNChargedCut)
81 Double_t AliNChargedCut::GetValue(AliAOD* aod) const
83 //returns number of charged particles
86 return aod->GetNumberOfCharged(fEtaMin,fEtaMax);
88 Error("GetValue","Pointer to AOD is NULL");