#if !defined HGLOBALCONDITION_H
#define HGLOBALCONDITION_H
#include "TFormula.h"
#include "hcontour.h"
class HNameIdx : public TObject {
public:
Int_t fLCIndex;
Text_t fLCName[100];
Int_t fLCTrueIdx;
public:
HNameIdx() : TObject() {}
virtual ~HNameIdx() {}
void setLCName(const Char_t* name) { if(name) sprintf(fLCName,"%s",name); }
Bool_t isEqual(HNameIdx *anidx);
public:
ClassDef(HNameIdx,1)
};
class HExpString;
class HContour;
class HUserParameter;
class HGlobalCondition : public TNamed {
protected:
TList *fLCList;
Int_t fNumber;
TFormula *fExpression;
HContour *fContour;
HExpString *fExpString;
Int_t fContDS[2];
Text_t fDS1Name[100];
Text_t fDS2Name[100];
TList *fContParam;
Bool_t kEvalResult;
Int_t fMaxParIdx;
Bool_t kConsistent;
protected:
Bool_t setLCList();
public:
HGlobalCondition();
virtual ~HGlobalCondition();
void setExpString(HExpString *p) { fExpString = p; }
HExpString* getExpString() const { return fExpString; }
TFormula* getExpression() const { return fExpression; }
Bool_t setExpression();
void setContour(HContour* p) { fContour = p; }
HContour* getContour() const { return fContour; }
TList* getContList() const { return fContParam; }
Bool_t setContList(HUserParameter *p1, HUserParameter *p2);
Bool_t isTrue() const { return kEvalResult; }
Bool_t checkConsistency(Bool_t kMsg = kFALSE);
Bool_t isConsistent() const { return kConsistent; }
Bool_t isExpression() { return ((fExpression) ? kTRUE : kFALSE); }
TList* getLCList() const { return fLCList; }
void evaluate();
void calcMaxParIdx();
void setDSName(const Char_t* name, Int_t pos);
Int_t getDSIdx(Int_t pos) {
return ((pos==1 || pos==2) ? fContDS[pos-1] : -1);
}
public:
ClassDef(HGlobalCondition,1)
};
#endif
Last change: Sat May 22 12:56:55 2010
Last generated: 2010-05-22 12:56
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.