X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PWG2%2FRESONANCES%2FAliRsnValue.h;h=02ad7eb7a27f57029e875edf807663d17e1e1038;hb=7356f978a65318cc9eab8a167a14a0c9885746e4;hp=535733e651ef6908a8524d6c683fbc4f5ff65901;hpb=84c9e12ad6b5f50a6d4f8bdf85d12c1885a8de6d;p=u%2Fmrichter%2FAliRoot.git diff --git a/PWG2/RESONANCES/AliRsnValue.h b/PWG2/RESONANCES/AliRsnValue.h index 535733e651e..02ad7eb7a27 100644 --- a/PWG2/RESONANCES/AliRsnValue.h +++ b/PWG2/RESONANCES/AliRsnValue.h @@ -1,20 +1,15 @@ -// -// Class AliRsnValue -// -// This class implements all the computations which could be useful -// during the analysis, both for cuts and for output histograms. -// -// It inherits from the AliRsnTarget base class since it can operate -// on tracks, pairs and events, and the kind of expected object to -// be processed depends on the kind of requested computation. -// -// Since this class is used to produce the outputs, it contains the -// facilities to define a binning in an output histogram. -// - #ifndef ALIRSNVALUE_H #define ALIRSNVALUE_H +/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * + * See cxx source for full Copyright notice */ + +//////////////////////////////////////////////////////////////////////////////// +// +// Collection of all values which can be computed within the package +// +//////////////////////////////////////////////////////////////////////////////// + #include "TArrayD.h" #include "AliRsnTarget.h" @@ -59,6 +54,7 @@ public: kEventLeadingPt, // transverse momentum of the event leading particle kEventMult, // multiplicity computed as the number of tracks + kEventMultMC, // multiplicity from MC kEventMultESDCuts, // multiplicity computed as the number of track passing an ESD quality cut (need this cut defined) kEventVz, // Z position of event primary vertex kValueTypes // --- last value (used to have a meaningless enum value) --------------- @@ -78,16 +74,15 @@ public: const char* GetValueTypeName() const; TObject* GetSupportObject() {return fSupportObject;} void SetSupportObject(TObject *obj) {fSupportObject = obj;} - void SetValueType(EValueType type) {fValueType = type;} - void AssignTarget(); + void SetValueType(EValueType type) {fValueType = type; fTargetType = TargetType(type);} void SetBins(Int_t n, Double_t min, Double_t max); void SetBins(Int_t n, Double_t *array); void SetBins(Double_t min, Double_t max, Double_t step); - void Set(EValueType type, Int_t n, Double_t min, Double_t max) {fValueType = type; AssignTarget(); SetBins(n, min, max);} - void Set(EValueType type, Int_t n, Double_t *array) {fValueType = type; AssignTarget(); SetBins(n, array);} - void Set(EValueType type, Double_t min, Double_t max, Double_t step) {fValueType = type; AssignTarget(); SetBins(min, max, step);} + void Set(EValueType type, Int_t n, Double_t min, Double_t max) {SetValueType(type); SetBins(n, min, max);} + void Set(EValueType type, Int_t n, Double_t *array) {SetValueType(type); SetBins(n, array);} + void Set(EValueType type, Double_t min, Double_t max, Double_t step) {SetValueType(type); SetBins(min, max, step);} virtual Bool_t Eval(TObject *object, Bool_t useMC = kFALSE); virtual void Print(Option_t *option = "") const;