2 // This cut definition works on mini-pairs for the 'mini' subpackage.
3 // Since cuts on mini-pairs can usually be just kinematic selections
4 // or kinematic comparisons between 4-momenta of daughters, they are all
5 // implemented in this class, by the use of an enumeration which allows
6 // the user to choose between all possibilities.
11 #include "AliRsnMiniPair.h"
12 #include "AliRsnCutMiniPair.h"
14 ClassImp(AliRsnCutMiniPair)
16 //__________________________________________________________________________________________________
17 AliRsnCutMiniPair::AliRsnCutMiniPair(const char *name, EType type) :
18 AliRsnCut(name, AliRsnTarget::kMother),
26 //__________________________________________________________________________________________________
27 Bool_t AliRsnCutMiniPair::IsSelected(TObject *obj)
33 AliRsnMiniPair *pair = dynamic_cast<AliRsnMiniPair *>(obj);
35 AliError("This cut applies only to mini-pairs");
41 fCutValueD = pair->Y(0);
43 case kRapidityRangeMC:
44 fCutValueD = pair->Y(1);
46 case kMomentumComparison:
47 AliWarning("TODO: implement this");
50 AliWarning("Undefined enum value");