ROOT logo
//
// *** Class AliRsnCutValue ***
//
// This cut implementation can be used to cut generically on
// any value which can be computed from AliRsnValue class.
// Since that value is implemented always as a Double_t one,
// then this cut operates only with the Double_t data members
// of the AliRsnCut base class.
// It allows to customize the reference AliRsnValue object by
// means of a getter that returns a pointer to it.
// This cut can apply to any kind of object, but the type of
// target must be one of those for which the chosen value type
// makes sense to be computed
//
// author: Alberto Pulvirenti (alberto.pulvirenti@ct.infn.it)
//

#ifndef ALIRSNCUTVALUE_H
#define ALIRSNCUTVALUE_H

#include "AliRsnCut.h"

class AliRsnValue;

class AliRsnCutValue : public AliRsnCut {
public:

   AliRsnCutValue();
   AliRsnCutValue(const char *name, Double_t min, Double_t max);
   AliRsnCutValue(const AliRsnCutValue &copy);
   AliRsnCutValue &operator=(const AliRsnCutValue &copy);
   virtual ~AliRsnCutValue() { }

   Double_t       GetComputedValue()              {if (fValue) return fValue->GetComputedValue(); return -1E20;}
   AliRsnValue   *GetValueObj()                   {return fValue;}
   void           SetValueObj(AliRsnValue *value) {fValue = value; SetTargetType(value->GetTargetType());}

   virtual Bool_t IsSelected(TObject *object);
   virtual void   Print(const Option_t *option = "") const;

protected:

   AliRsnValue *fValue;   // value object used for cuts

   ClassDef(AliRsnCutValue, 1)
};

#endif
 AliRsnCutValue.h:1
 AliRsnCutValue.h:2
 AliRsnCutValue.h:3
 AliRsnCutValue.h:4
 AliRsnCutValue.h:5
 AliRsnCutValue.h:6
 AliRsnCutValue.h:7
 AliRsnCutValue.h:8
 AliRsnCutValue.h:9
 AliRsnCutValue.h:10
 AliRsnCutValue.h:11
 AliRsnCutValue.h:12
 AliRsnCutValue.h:13
 AliRsnCutValue.h:14
 AliRsnCutValue.h:15
 AliRsnCutValue.h:16
 AliRsnCutValue.h:17
 AliRsnCutValue.h:18
 AliRsnCutValue.h:19
 AliRsnCutValue.h:20
 AliRsnCutValue.h:21
 AliRsnCutValue.h:22
 AliRsnCutValue.h:23
 AliRsnCutValue.h:24
 AliRsnCutValue.h:25
 AliRsnCutValue.h:26
 AliRsnCutValue.h:27
 AliRsnCutValue.h:28
 AliRsnCutValue.h:29
 AliRsnCutValue.h:30
 AliRsnCutValue.h:31
 AliRsnCutValue.h:32
 AliRsnCutValue.h:33
 AliRsnCutValue.h:34
 AliRsnCutValue.h:35
 AliRsnCutValue.h:36
 AliRsnCutValue.h:37
 AliRsnCutValue.h:38
 AliRsnCutValue.h:39
 AliRsnCutValue.h:40
 AliRsnCutValue.h:41
 AliRsnCutValue.h:42
 AliRsnCutValue.h:43
 AliRsnCutValue.h:44
 AliRsnCutValue.h:45
 AliRsnCutValue.h:46
 AliRsnCutValue.h:47
 AliRsnCutValue.h:48