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 //Checks if value is in the range,
36 // returns true if it is in the range, false otherwise
37 Double_t v = GetValue(aod);
38 // Info("Rejected","Value %f Min %f Max %f",v,fMin,fMax);
39 if ( ( v < fMin) || ( v > fMax) ) return kTRUE;
42 /**********************************************************/
43 /**********************************************************/
44 /**********************************************************/
45 ClassImp(AliPrimVertexXCut)
47 Double_t AliPrimVertexXCut::GetValue(AliAOD* aod) const
49 //returns x coordinate of the primary vertex
50 Double_t x = 0, y = 0, z = 0;
51 if (aod) aod->GetPrimaryVertex(x,y,z);
54 /**********************************************************/
55 /**********************************************************/
56 /**********************************************************/
57 ClassImp(AliPrimVertexYCut)
59 Double_t AliPrimVertexYCut::GetValue(AliAOD* aod) const
61 //returns x coordinate of the primary vertex
62 Double_t x = 0, y = 0, z = 0;
63 if (aod) aod->GetPrimaryVertex(x,y,z);
66 /**********************************************************/
67 /**********************************************************/
68 /**********************************************************/
69 ClassImp(AliPrimVertexZCut)
71 Double_t AliPrimVertexZCut::GetValue(AliAOD* aod) const
73 //returns x coordinate of the primary vertex
74 Double_t x = 0, y = 0, z = 0;
75 if (aod) aod->GetPrimaryVertex(x,y,z);
79 /**********************************************************/
80 /**********************************************************/
81 /**********************************************************/
83 ClassImp(AliNChargedCut)
85 Double_t AliNChargedCut::GetValue(AliAOD* aod) const
87 //returns number of charged particles
90 return aod->GetNumberOfCharged(fEtaMin,fEtaMax);
92 Error("GetValue","Pointer to AOD is NULL");