]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/RESONANCES/AliRsnValue.h
Added event cut set for MC
[u/mrichter/AliRoot.git] / PWGLF / RESONANCES / AliRsnValue.h
CommitLineData
b9bbd271 1#ifndef ALIRSNVALUE_H
2#define ALIRSNVALUE_H
3
7356f978 4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
61f275d1 6
7356f978 7////////////////////////////////////////////////////////////////////////////////
8//
9// Collection of all values which can be computed within the package
10//
11////////////////////////////////////////////////////////////////////////////////
12
2dab9030 13#include "TArrayD.h"
c865cb1d 14
32992791 15#include "AliRsnTarget.h"
b9bbd271 16
2a1c7696 17class AliRsnValue : public AliRsnTarget {
18public:
19
f34f960b 20 AliRsnValue(const char *name = "", AliRsnTarget::ETargetType type = AliRsnTarget::kTargetTypes);
61f275d1 21 AliRsnValue(const AliRsnValue &copy);
22 AliRsnValue &operator=(const AliRsnValue &copy);
c865cb1d 23 virtual ~AliRsnValue() { }
2a1c7696 24
61f275d1 25 TArrayD &GetArray() {return fBinArray;}
26 const Double_t *GetArrayValues() const {return fBinArray.GetArray();}
c865cb1d 27 Double_t GetComputedValue() const {return fComputedValue;}
2a1c7696 28
f34f960b 29 void SetUseMCInfo(Bool_t yn = kTRUE) {fUseMCInfo = yn;}
c865cb1d 30 void SetBins(Int_t n, Double_t min, Double_t max);
31 void SetBins(Int_t n, Double_t *array);
32 void SetBins(Double_t min, Double_t max, Double_t step);
2a1c7696 33
f34f960b 34 virtual Bool_t Eval(TObject *object);
c865cb1d 35 virtual void Print(Option_t *option = "") const;
2a1c7696 36
37protected:
b9bbd271 38
f34f960b 39 Bool_t fUseMCInfo; // flag to choose MC info when choice is possible
c865cb1d 40 Double_t fComputedValue; // computed value
41 TArrayD fBinArray; // array of bins (when used for a histogram axis)
b9bbd271 42
f34f960b 43 ClassDef(AliRsnValue, 3) // AliRsnValue base class
b9bbd271 44};
45
46#endif