Changeset 11301
- Timestamp:
- 07/08/11 16:01:25 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ftmctrl.cc
r11297 r11301 319 319 { 320 320 // This check is only done at startup 321 FTM::StaticData data = fBuffer;321 FTM::StaticData data(fBuffer); 322 322 if (!CheckConsistency(data)) 323 323 { … … 672 672 return false; 673 673 674 FTM::StaticData data = fStaticData;674 FTM::StaticData data(fStaticData); 675 675 676 676 if (patch<0) … … 709 709 return false; 710 710 711 FTM::StaticData data = fStaticData;711 FTM::StaticData data(fStaticData); 712 712 713 713 bool ident = true; … … 736 736 return false; 737 737 738 FTM::StaticData data = fStaticData;738 FTM::StaticData data(fStaticData); 739 739 740 740 if (board<0) … … 765 765 return false; 766 766 767 FTM::StaticData data = fStaticData;767 FTM::StaticData data(fStaticData); 768 768 769 769 data.ToggleFTU(board); … … 783 783 return true; 784 784 785 FTM::StaticData data = fStaticData;785 FTM::StaticData data(fStaticData); 786 786 787 787 dest = reinterpret_cast<uint16_t*>(&data) + (dest - reinterpret_cast<uint16_t*>(&fStaticData)); … … 823 823 // return; 824 824 825 FTM::StaticData data = fStaticData;825 FTM::StaticData data(fStaticData); 826 826 data.Enable(type, enable); 827 827 CmdSendStatDat(data); … … 835 835 return false; 836 836 837 FTM::StaticData data = fStaticData;837 FTM::StaticData data(fStaticData); 838 838 839 839 data.Enable(FTM::StaticData::kPedestal, d[0]>0); … … 861 861 return true; 862 862 863 FTM::StaticData data = fStaticData;863 FTM::StaticData data(fStaticData); 864 864 865 865 data.fMultiplicityPhysics = n; … … 878 878 return true; 879 879 880 FTM::StaticData data = fStaticData;880 FTM::StaticData data(fStaticData); 881 881 882 882 data.fWindowPhysics = win; … … 895 895 return true; 896 896 897 FTM::StaticData data = fStaticData;897 FTM::StaticData data(fStaticData); 898 898 899 899 data.fMultiplicityCalib = n; … … 912 912 return true; 913 913 914 FTM::StaticData data = fStaticData;914 FTM::StaticData data(fStaticData); 915 915 916 916 data.fWindowCalib = win; … … 923 923 bool SetClockRegister(const uint64_t reg[]) 924 924 { 925 FTM::StaticData data = fStaticData;925 FTM::StaticData data(fStaticData); 926 926 927 927 for (int i=0; i<8; i++) … … 943 943 return false; 944 944 945 FTM::StaticData data = fStaticData;945 FTM::StaticData data(fStaticData); 946 946 947 947 if (idx==-1) … … 961 961 return false; 962 962 963 FTM::StaticData data = fStaticData;963 FTM::StaticData data(fStaticData); 964 964 965 965 for (int i=0; i<=FTM::StaticData::kMaxPixelIdx; i++) … … 976 976 return false; 977 977 978 FTM::StaticData data = fStaticData;978 FTM::StaticData data(fStaticData); 979 979 980 980 for (int i=0; i<=FTM::StaticData::kMaxPixelIdx; i++) … … 991 991 return false; 992 992 993 FTM::StaticData data = fStaticData;993 FTM::StaticData data(fStaticData); 994 994 995 995 data.EnablePixel(idx, !fStaticData.Enabled(idx));
Note:
See TracChangeset
for help on using the changeset viewer.