17 #include "Riostream.h"
21 #include "TDataMember.h"
22 #include "TDataType.h"
38 fbNeedInitialisation(kTRUE)
46 fbNeedInitialisation(kTRUE)
91 GO4TRACE((12,
"TGo4DynamicEntry::SetConVarName(UInt_t, char*)",__LINE__, __FILE__));
103 GO4TRACE((12,
"TGo4DynamicEntry::SetConEventName(UInt_t, char*)",__LINE__, __FILE__));
138 if ((event==0) || (member==0) || !member->IsBasic())
return;
140 fxHistType[ix] = member->GetDataType()->GetType();
148 if ((event==0) || (member==0) || !member->IsBasic())
return;
150 fxCondType[ix] = member->GetDataType()->GetType();
155 if (ptr==0)
return 0.;
157 case kUInt_t:
return *((UInt_t*)ptr);
158 case kInt_t:
return *((Int_t*)ptr);
159 case kULong_t:
return *((ULong_t*)ptr);
160 case kLong_t:
return *((Long_t*)ptr);
161 case kULong64_t:
return *((ULong64_t*)ptr);
162 case kLong64_t:
return *((Long64_t*)ptr);
163 case kUShort_t:
return *((UShort_t*)ptr);
164 case kShort_t:
return *((Short_t*)ptr);
165 case kUChar_t:
return *((UChar_t*)ptr);
166 case kChar_t:
return *((Char_t*)ptr);
167 #if ROOT_VERSION_CODE >= ROOT_VERSION(4,3,2)
168 case kBool_t:
return *((Bool_t*)ptr);
170 case kFloat_t:
return *((Float_t*)ptr);
171 case kDouble_t:
return *((Double_t*)ptr);
172 case kDouble32_t:
return *((Double32_t*)ptr);
193 for(j=0;j<dimension; ++j)
225 for(Int_t j=0; j<dimension; ++j)
232 if(evvalid[0] && evvalid[1]) {
234 if(his2!=0) his2->Fill(dat[0],dat[1]);
238 if(evvalid[0] && evvalid[1] && evvalid[2]) {
240 if(his3!=0) his3->Fill(dat[0],dat[1],dat[2]);
245 "Dynamic Histogram Entry %s Process error: Wrong histogram dimension %d !!!",
246 GetName(), dimension);
268 TROOT::IndentLevel();
269 std::cout <<
"-Dynamic Histogram Entry " << GetName()<<
" :"<<std::endl;
270 TROOT::IncreaseDirLevel();
271 TROOT::IndentLevel();
274 else std::cout <<
"\t-- Disabled --" << std::endl;
276 TROOT::IndentLevel();
279 TROOT::IndentLevel();
281 <<
"\t ConVar(" << i <<
"): " <<
GetConVarName(i) << std::endl;
283 TROOT::IndentLevel();
286 TROOT::IndentLevel();
290 TROOT::DecreaseDirLevel();
291 TROOT::IndentLevel();
292 std::cout <<
"-End "<<GetName()<<
"-----------" << std::endl;
Double_t GetPtrValue(Int_t type, void *ptr)
static const char * Get_fgcNOCONDITION()
static const char * fgcNOEVENT
void * fxCondPtr[__MAXCONDIM__]
virtual void Print(Option_t *="") const
static const char * fgcNODATA
Int_t fxCondType[__MAXCONDIM__]
TString fxConVarName[__MAXCONDIM__]
Bool_t TestConditionNew()
void SetConEventName(Int_t ix, const char *name)
const char * GetConVarName(Int_t ix) const
Bool_t fbNeedInitialisation
static const char * fgcNOCONDITION
void InitCondPointer(Int_t ix, TObject *event, TDataMember *member, Long_t offset)
virtual void RecursiveRemove(TObject *obj)
TObject * fxConEvents[__MAXCONDIM__]
virtual ~TGo4HistogramEntry()
const char * GetHistVarName(Int_t ix) const
void SetHisEventName(Int_t ix, const char *name)
Bool_t IsEnabledProcessing() const
void * fxHistPtr[__MAXHISDIM__]
const char * GetHistogramName() const
Int_t fxHistType[__MAXHISDIM__]
TString fxHisVarName[__MAXHISDIM__]
static const char * Get_fgcNODATA()
TString fxConEventName[__MAXCONDIM__]
const char * GetConditionName() const
TObject * fxHisEvents[__MAXHISDIM__]
void SetConVarName(Int_t ix, const char *name)
void InitHistPointer(Int_t ix, TObject *event, TDataMember *member, Long_t offset)
const char * GetConEventName(Int_t ix) const
const char * GetHistEventName(Int_t ix) const
void ProcessNew(Bool_t *evvalid)
TString fxHisEventName[__MAXHISDIM__]
static const char * Get_fgcNOEVENT()
TGo4Condition * fxCondition
void SetHisVarName(Int_t ix, const char *name)