Changeset 11148
- Timestamp:
- 06/23/11 18:59:21 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ftmctrl.cc
r11129 r11148 988 988 DimDescribedService fDimCounter; 989 989 990 template<class T>991 void Update(DimDescribedService &svc, const T &data) const992 {993 //cout << "Update: " << svc.getName() << " (" << sizeof(T) << ")" << endl;994 svc.setData(const_cast<T*>(&data), sizeof(T));995 svc.updateService();996 }997 998 990 void UpdateFirstHeader() 999 991 { … … 1001 993 1002 994 const FTM::DimPassport data(fHeader); 1003 Update(fDimPassport,data);995 fDimPassport.Update(data); 1004 996 } 1005 997 … … 1012 1004 1013 1005 const FTM::DimTriggerCounter data(fHeader); 1014 Update(fDimTriggerCounter,data);1006 fDimTriggerCounter.Update(data); 1015 1007 } 1016 1008 … … 1020 1012 1021 1013 const FTM::DimFtuList data(fHeader, fFtuList); 1022 Update(fDimFtuList,data);1014 fDimFtuList.Update(data); 1023 1015 } 1024 1016 … … 1028 1020 1029 1021 const FTM::DimStaticData data(fHeader, fStaticData); 1030 Update(fDimStaticData,data);1022 fDimStaticData.Update(data); 1031 1023 } 1032 1024 … … 1036 1028 1037 1029 const FTM::DimDynamicData data(fHeader, fDynamicData); 1038 Update(fDimDynamicData,data);1030 fDimDynamicData.Update(data); 1039 1031 } 1040 1032 … … 1044 1036 1045 1037 const FTM::DimError data(fHeader, fError); 1046 Update(fDimError,data);1038 fDimError.Update(data); 1047 1039 } 1048 1040 … … 1061 1053 }; 1062 1054 1063 Update(fDimCounter,counter);1055 fDimCounter.Update(counter); 1064 1056 } 1065 1057
Note:
See TracChangeset
for help on using the changeset viewer.