Changeset 11226 for trunk/FACT++
- Timestamp:
- 06/30/11 23:29:42 (13 years ago)
- Location:
- trunk/FACT++
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r11225 r11226 1027 1027 } __attribute__((__packed__));; 1028 1028 1029 void handleFadEventData(const DimData &d) 1030 { 1031 if (d.size()==0) 1032 return; 1033 1029 DimEventData *fEventData; 1030 1031 void DisplayEventData() 1032 { 1034 1033 #ifdef HAVE_ROOT 1035 const DimEventData &dat = d.ref<DimEventData>();1036 1037 if (d.size()<sizeof(DimEventData))1038 {1039 cout << "Size mismatch in " << d.name << ": Found=" << d.size() << " Expected=" << sizeof(DimEventData) << endl;1040 return;1041 }1042 1043 if (d.size()!=dat.Roi*2+sizeof(DimEventData))1044 {1045 cout << "Size mismatch in " << d.name << ": Found=" << d.size() << " Expected=" << dat.Roi*2+sizeof(DimEventData) << endl;1046 return;1047 }1048 1049 1034 TCanvas *c = fAdcDataCanv->GetCanvas(); 1050 1035 1051 1036 TH1 *h = dynamic_cast<TH1*>(c->FindObject("EventData")); 1052 if (h && h->GetNbinsX()!= dat.Roi)1037 if (h && h->GetNbinsX()!=fEventData->Roi) 1053 1038 { 1054 1039 delete h; … … 1060 1045 c->cd(); 1061 1046 1062 TH1D hist("EventData", "", dat.Roi, -0.5, dat.Roi-0.5);1047 TH1D hist("EventData", "", fEventData->Roi, -0.5, fEventData->Roi-0.5); 1063 1048 hist.SetStats(kFALSE); 1064 1049 //hist->SetBit(TH1::kNoTitle); … … 1074 1059 } 1075 1060 1076 ostringstream str; 1077 str << "ADC Pipeline (start=" << dat.StartPix << ") " << dat.EventNum; 1061 ostringstream str; 1062 str << "Event ID = " << fEventData->EventNum << " Trigger type = " << fEventData->TriggerType << " PC Time=" << fEventData->PCTime << " Board time = " << fEventData->BoardTime; 1063 h->SetTitle(str.str().c_str()); 1064 str.str(""); 1065 str << "ADC Pipeline (start=" << fEventData->StartPix << ")"; 1078 1066 h->SetXTitle(str.str().c_str()); 1079 1067 … … 1082 1070 //hist->SetTitle(str.str().c_str()); 1083 1071 1084 for (int i=0; i<dat.Roi; i++) 1085 h->SetBinContent(i+1, dat.Adc_Data[i]*0.5); 1072 const uint32_t p = fAdcChannel->value()+fAdcBoard->value()*36+fAdcCrate->value()*360; 1073 1074 for (int i=0; i<fEventData->Roi; i++) 1075 h->SetBinContent(i+1, fEventData->Adc_Data[p*fEventData->Roi+i]*0.5); 1076 1077 if (fAdcAutoScale->isChecked()) 1078 { 1079 h->SetMinimum(-1111); 1080 h->SetMaximum(-1111); 1081 } 1082 1083 if (!fAdcAutoScale->isChecked()) 1084 { 1085 if (h->GetMinimum()==-1111) 1086 h->SetMinimum(-1026); 1087 if (h->GetMaximum()==-1111) 1088 h->SetMaximum(1025); 1089 } 1086 1090 1087 1091 c->Modified(); 1088 1092 c->Update(); 1089 1093 #endif 1094 } 1095 1096 void handleFadEventData(const DimData &d) 1097 { 1098 if (d.size()==0) 1099 return; 1100 1101 if (fAdcStop->isChecked()) 1102 return; 1103 1104 const DimEventData &dat = d.ref<DimEventData>(); 1105 1106 if (d.size()<sizeof(DimEventData)) 1107 { 1108 cout << "Size mismatch in " << d.name << ": Found=" << d.size() << " Expected=" << sizeof(DimEventData) << endl; 1109 return; 1110 } 1111 1112 if (d.size()!=sizeof(DimEventData)+dat.Roi*2*1440) 1113 { 1114 cout << "Size mismatch in " << d.name << ": Found=" << d.size() << " Expected=" << dat.Roi*2+sizeof(DimEventData) << endl; 1115 return; 1116 } 1117 1118 delete fEventData; 1119 fEventData = reinterpret_cast<DimEventData*>(new char[d.size()]); 1120 memcpy(fEventData, d.ptr<void>(), d.size()); 1121 1122 DisplayEventData(); 1090 1123 } 1091 1124 … … 2550 2583 fDimFadRefClock ("FAD_CONTROL/REFERENCE_CLOCK", (void*)NULL, 0, this), 2551 2584 fDimFadStatus ("FAD_CONTROL/STATUS", (void*)NULL, 0, this), 2552 fDimFadStatistics ("FAD_CONTROL/STATISTICS", (void*)NULL, 0, this) 2585 fDimFadStatistics ("FAD_CONTROL/STATISTICS", (void*)NULL, 0, this), 2586 //- 2587 fEventData(0) 2553 2588 { 2554 2589 fClockCondFreq->addItem("--- Hz", QVariant(-1)); … … 2751 2786 2752 2787 c = fAdcDataCanv->GetCanvas(); 2753 c->SetBit(TCanvas::kNoContextMenu);2788 //c->SetBit(TCanvas::kNoContextMenu); 2754 2789 c->SetBorderMode(0); 2755 2790 c->SetFrameBorderMode(0); -
trunk/FACT++/gui/MainWindow.h
r11222 r11226 48 48 // Tab Widget 49 49 void on_fTabWidget_tabCloseRequested(int which); 50 virtual void on_fTabWidget_currentChanged(int) { }50 virtual void on_fTabWidget_currentChanged(int) = 0; 51 51 52 52 // Tab: FAD 53 void slot_fFadLED_clicked(); 54 53 55 void on_fFadStartRun_clicked(); 54 56 void on_fFadStopRun_clicked(); … … 73 75 void on_fFadRunNumberCmd_valueChanged(int); 74 76 void on_fFadRoiCmd_valueChanged(int); 77 78 // Tab: Adc 79 virtual void DisplayEventData() = 0; 80 void on_fAdcCrate_valueChanged(int) { DisplayEventData(); } 81 void on_fAdcBoard_valueChanged(int) { DisplayEventData(); } 82 void on_fAdcChannel_valueChanged(int) { DisplayEventData(); } 75 83 76 84 // Tab: FTM … … 115 123 116 124 // Tab: Rates 117 virtual void on_fPixelEnable_stateChanged(int) { }118 virtual void on_fThresholdVal_valueChanged(int) { }119 virtual void on_fThresholdIdx_valueChanged(int) { }120 virtual void on_fThresholdCrate_valueChanged(int) { }121 virtual void on_fThresholdBoard_valueChanged(int) { }122 virtual void on_fThresholdPatch_valueChanged(int) { }123 virtual void on_fPixelIdx_valueChanged(int) { }125 virtual void on_fPixelEnable_stateChanged(int) = 0; 126 virtual void on_fThresholdVal_valueChanged(int) = 0; 127 virtual void on_fThresholdIdx_valueChanged(int) = 0; 128 virtual void on_fThresholdCrate_valueChanged(int) = 0; 129 virtual void on_fThresholdBoard_valueChanged(int) = 0; 130 virtual void on_fThresholdPatch_valueChanged(int) = 0; 131 virtual void on_fPixelIdx_valueChanged(int) = 0; 124 132 125 133 void on_fPixelEnableAll_clicked(); 126 134 void on_fPixelDisableAll_clicked(); 127 135 128 virtual void on_fPixelDisableOthers_clicked() { }129 virtual void on_fThresholdDisableOthers_clicked() { }136 virtual void on_fPixelDisableOthers_clicked() = 0; 137 virtual void on_fThresholdDisableOthers_clicked() = 0; 130 138 131 virtual void on_fRatePatch1_valueChanged(int) { } 132 virtual void on_fRatePatch2_valueChanged(int) { } 133 virtual void on_fRateBoard1_valueChanged(int) { } 134 virtual void on_fRateBoard2_valueChanged(int) { } 135 136 // Tab: FADs 137 void slot_fFadLED_clicked(); 139 virtual void on_fRatePatch1_valueChanged(int) = 0; 140 virtual void on_fRatePatch2_valueChanged(int) = 0; 141 virtual void on_fRateBoard1_valueChanged(int) = 0; 142 virtual void on_fRateBoard2_valueChanged(int) = 0; 138 143 139 144 // Tab: Chat … … 142 147 // Tab: Commands 143 148 /// Needs access to DimNetwork thus it is implemented in the derived class 144 virtual void on_fDimCmdSend_clicked() { }149 virtual void on_fDimCmdSend_clicked() = 0; 145 150 146 151 // Main menu 147 152 // void on_fMenuLogSaveAs_triggered(bool) 148 153 149 virtual void slot_RootEventProcessed(TObject *, unsigned int, TCanvas *) { }150 virtual void slot_RootUpdate() { }154 virtual void slot_RootEventProcessed(TObject *, unsigned int, TCanvas *) = 0; 155 virtual void slot_RootUpdate() = 0; 151 156 152 157 void slot_TimeUpdate(); -
trunk/FACT++/gui/design.ui
r11225 r11226 53 53 </property> 54 54 <property name="currentIndex"> 55 <number> 3</number>55 <number>5</number> 56 56 </property> 57 57 <property name="documentMode"> … … 3117 3117 </property> 3118 3118 </widget> 3119 <widget class="QPushButton" name="fFadStart">3120 <property name="geometry">3121 <rect>3122 <x>530</x>3123 <y>30</y>3124 <width>94</width>3125 <height>24</height>3126 </rect>3127 </property>3128 <property name="text">3129 <string>Start</string>3130 </property>3131 </widget>3132 <widget class="QPushButton" name="fFadStop">3133 <property name="geometry">3134 <rect>3135 <x>530</x>3136 <y>60</y>3137 <width>94</width>3138 <height>24</height>3139 </rect>3140 </property>3141 <property name="text">3142 <string>Stop</string>3143 </property>3144 </widget>3145 <widget class="QPushButton" name="fFadAbort">3146 <property name="geometry">3147 <rect>3148 <x>530</x>3149 <y>90</y>3150 <width>94</width>3151 <height>24</height>3152 </rect>3153 </property>3154 <property name="text">3155 <string>Abort</string>3156 </property>3157 </widget>3158 3119 <widget class="QPushButton" name="fFadResetTriggerId"> 3159 3120 <property name="geometry"> … … 5192 5153 <item row="0" column="0"> 5193 5154 <widget class="QFrame" name="frame"> 5155 <property name="sizePolicy"> 5156 <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> 5157 <horstretch>0</horstretch> 5158 <verstretch>0</verstretch> 5159 </sizepolicy> 5160 </property> 5194 5161 <property name="frameShape"> 5195 5162 <enum>QFrame::StyledPanel</enum> … … 5199 5166 </property> 5200 5167 <layout class="QGridLayout" name="gridLayout_52"> 5168 <property name="margin"> 5169 <number>3</number> 5170 </property> 5201 5171 <item row="0" column="0"> 5202 5172 <widget class="RootWidget" name="fAdcDataCanv" native="true"/> … … 5204 5174 </layout> 5205 5175 </widget> 5176 </item> 5177 <item row="0" column="1"> 5178 <layout class="QVBoxLayout" name="verticalLayout_6"> 5179 <property name="rightMargin"> 5180 <number>0</number> 5181 </property> 5182 <item> 5183 <widget class="QLabel" name="label_148"> 5184 <property name="text"> 5185 <string>Crate</string> 5186 </property> 5187 <property name="alignment"> 5188 <set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set> 5189 </property> 5190 </widget> 5191 </item> 5192 <item> 5193 <widget class="QSpinBox" name="fAdcCrate"/> 5194 </item> 5195 <item> 5196 <widget class="QLabel" name="label_149"> 5197 <property name="text"> 5198 <string>Board</string> 5199 </property> 5200 <property name="alignment"> 5201 <set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set> 5202 </property> 5203 </widget> 5204 </item> 5205 <item> 5206 <widget class="QSpinBox" name="fAdcBoard"/> 5207 </item> 5208 <item> 5209 <widget class="QLabel" name="label_138"> 5210 <property name="text"> 5211 <string>Channel</string> 5212 </property> 5213 <property name="alignment"> 5214 <set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set> 5215 </property> 5216 </widget> 5217 </item> 5218 <item> 5219 <widget class="QSpinBox" name="fAdcChannel"/> 5220 </item> 5221 <item> 5222 <spacer name="verticalSpacer_33"> 5223 <property name="orientation"> 5224 <enum>Qt::Vertical</enum> 5225 </property> 5226 <property name="sizeType"> 5227 <enum>QSizePolicy::Fixed</enum> 5228 </property> 5229 <property name="sizeHint" stdset="0"> 5230 <size> 5231 <width>20</width> 5232 <height>20</height> 5233 </size> 5234 </property> 5235 </spacer> 5236 </item> 5237 <item> 5238 <widget class="QCheckBox" name="fAdcStop"> 5239 <property name="text"> 5240 <string>Stop</string> 5241 </property> 5242 </widget> 5243 </item> 5244 <item> 5245 <widget class="QCheckBox" name="fAdcAutoScale"> 5246 <property name="text"> 5247 <string>AutoScale</string> 5248 </property> 5249 </widget> 5250 </item> 5251 <item> 5252 <spacer name="verticalSpacer_32"> 5253 <property name="orientation"> 5254 <enum>Qt::Vertical</enum> 5255 </property> 5256 <property name="sizeHint" stdset="0"> 5257 <size> 5258 <width>20</width> 5259 <height>40</height> 5260 </size> 5261 </property> 5262 </spacer> 5263 </item> 5264 </layout> 5206 5265 </item> 5207 5266 </layout> … … 7031 7090 <property name="minimumSize"> 7032 7091 <size> 7033 <width>2 30</width>7034 <height>4 31</height>7092 <width>208</width> 7093 <height>494</height> 7035 7094 </size> 7036 7095 </property> … … 7058 7117 <item> 7059 7118 <layout class="QGridLayout" name="gridLayout_11"> 7060 <item row=" 1" column="4">7061 <widget class=" QLabel" name="fStatusDNSLabel">7062 <property name=" text">7063 < string>Offline</string>7119 <item row="2" column="0" colspan="5"> 7120 <widget class="Line" name="line"> 7121 <property name="orientation"> 7122 <enum>Qt::Horizontal</enum> 7064 7123 </property> 7065 7124 </widget> 7066 7125 </item> 7067 <item row="3" column="4"> 7068 <widget class="QLabel" name="fStatusFTMLabel"> 7069 <property name="text"> 7070 <string>Offline</string> 7071 </property> 7072 </widget> 7073 </item> 7074 <item row="3" column="3"> 7075 <widget class="QPushButton" name="fStatusFTMLed"> 7076 <property name="enabled"> 7077 <bool>true</bool> 7078 </property> 7079 <property name="sizePolicy"> 7080 <sizepolicy hsizetype="Fixed" vsizetype="Minimum"> 7081 <horstretch>0</horstretch> 7082 <verstretch>0</verstretch> 7083 </sizepolicy> 7084 </property> 7085 <property name="maximumSize"> 7086 <size> 7087 <width>18</width> 7088 <height>16777215</height> 7089 </size> 7090 </property> 7091 <property name="text"> 7092 <string/> 7093 </property> 7094 <property name="icon"> 7095 <iconset resource="design.qrc"> 7096 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset> 7097 </property> 7098 <property name="iconSize"> 7099 <size> 7100 <width>16</width> 7101 <height>16</height> 7102 </size> 7103 </property> 7104 <property name="checkable"> 7105 <bool>false</bool> 7106 </property> 7107 <property name="flat"> 7108 <bool>true</bool> 7109 </property> 7110 </widget> 7111 </item> 7112 <item row="3" column="1"> 7126 <item row="3" column="0"> 7113 7127 <widget class="QCheckBox" name="fStatusFTMEnable"> 7114 7128 <property name="enabled"> … … 7135 7149 </widget> 7136 7150 </item> 7137 <item row="2" column="0" colspan="6"> 7138 <widget class="Line" name="line"> 7139 <property name="orientation"> 7140 <enum>Qt::Horizontal</enum> 7141 </property> 7142 </widget> 7143 </item> 7144 <item row="3" column="2"> 7151 <item row="3" column="1"> 7145 7152 <widget class="QLabel" name="fStatusFTM"> 7146 7153 <property name="sizePolicy"> … … 7161 7168 </widget> 7162 7169 </item> 7163 <item row="1" column=" 2">7170 <item row="1" column="1"> 7164 7171 <widget class="QLabel" name="fStatusDNS"> 7165 7172 <property name="sizePolicy"> … … 7180 7187 </widget> 7181 7188 </item> 7182 <item row="1" column="5"> 7183 <spacer name="horizontalSpacer_8"> 7184 <property name="orientation"> 7185 <enum>Qt::Horizontal</enum> 7186 </property> 7187 <property name="sizeHint" stdset="0"> 7188 <size> 7189 <width>40</width> 7190 <height>20</height> 7191 </size> 7192 </property> 7193 </spacer> 7194 </item> 7195 <item row="1" column="3"> 7196 <widget class="QPushButton" name="fStatusDNSLed"> 7197 <property name="enabled"> 7198 <bool>true</bool> 7199 </property> 7200 <property name="sizePolicy"> 7201 <sizepolicy hsizetype="Fixed" vsizetype="Minimum"> 7202 <horstretch>0</horstretch> 7203 <verstretch>0</verstretch> 7204 </sizepolicy> 7205 </property> 7206 <property name="maximumSize"> 7207 <size> 7208 <width>18</width> 7209 <height>16777215</height> 7210 </size> 7211 </property> 7212 <property name="text"> 7213 <string/> 7214 </property> 7215 <property name="icon"> 7216 <iconset resource="design.qrc"> 7217 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset> 7218 </property> 7219 <property name="iconSize"> 7220 <size> 7221 <width>16</width> 7222 <height>16</height> 7223 </size> 7224 </property> 7225 <property name="checkable"> 7226 <bool>false</bool> 7227 </property> 7228 <property name="flat"> 7229 <bool>true</bool> 7230 </property> 7231 </widget> 7232 </item> 7233 <item row="4" column="2"> 7189 <item row="4" column="1"> 7234 7190 <widget class="QLabel" name="label_59"> 7235 7191 <property name="sizePolicy"> … … 7247 7203 </widget> 7248 7204 </item> 7249 <item row="5" column="2"> 7205 <item row="5" column="0"> 7206 <widget class="QCheckBox" name="fStatusFADEnable"> 7207 <property name="enabled"> 7208 <bool>false</bool> 7209 </property> 7210 <property name="sizePolicy"> 7211 <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> 7212 <horstretch>0</horstretch> 7213 <verstretch>0</verstretch> 7214 </sizepolicy> 7215 </property> 7216 <property name="maximumSize"> 7217 <size> 7218 <width>20</width> 7219 <height>16777215</height> 7220 </size> 7221 </property> 7222 <property name="text"> 7223 <string/> 7224 </property> 7225 <property name="checked"> 7226 <bool>true</bool> 7227 </property> 7228 </widget> 7229 </item> 7230 <item row="5" column="1"> 7250 7231 <widget class="QLabel" name="fStatusFAD"> 7251 7232 <property name="sizePolicy"> … … 7266 7247 </widget> 7267 7248 </item> 7268 <item row="6" column=" 2">7249 <item row="6" column="1"> 7269 7250 <widget class="QLabel" name="label_124"> 7270 7251 <property name="text"> … … 7276 7257 </widget> 7277 7258 </item> 7278 <item row="7" column=" 2">7259 <item row="7" column="1"> 7279 7260 <widget class="QLabel" name="label_135"> 7280 7261 <property name="text"> … … 7283 7264 </widget> 7284 7265 </item> 7285 <item row="8" column=" 2">7266 <item row="8" column="1"> 7286 7267 <widget class="QLabel" name="label_60"> 7287 7268 <property name="text"> … … 7293 7274 </widget> 7294 7275 </item> 7295 <item row="9" column="2"> 7276 <item row="9" column="0"> 7277 <widget class="QCheckBox" name="fStatusLoggerEnable"> 7278 <property name="enabled"> 7279 <bool>false</bool> 7280 </property> 7281 <property name="sizePolicy"> 7282 <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> 7283 <horstretch>0</horstretch> 7284 <verstretch>0</verstretch> 7285 </sizepolicy> 7286 </property> 7287 <property name="maximumSize"> 7288 <size> 7289 <width>20</width> 7290 <height>16777215</height> 7291 </size> 7292 </property> 7293 <property name="text"> 7294 <string/> 7295 </property> 7296 <property name="checked"> 7297 <bool>true</bool> 7298 </property> 7299 </widget> 7300 </item> 7301 <item row="9" column="1"> 7296 7302 <widget class="QLabel" name="fStatusLogger"> 7297 7303 <property name="sizePolicy"> … … 7312 7318 </widget> 7313 7319 </item> 7314 <item row="10" column=" 2">7320 <item row="10" column="1"> 7315 7321 <widget class="QLabel" name="fStatusChat"> 7316 7322 <property name="sizePolicy"> … … 7331 7337 </widget> 7332 7338 </item> 7333 <item row=" 9" column="1">7334 <widget class="Q CheckBox" name="fStatusLoggerEnable">7339 <item row="1" column="2"> 7340 <widget class="QPushButton" name="fStatusDNSLed"> 7335 7341 <property name="enabled"> 7336 <bool> false</bool>7342 <bool>true</bool> 7337 7343 </property> 7338 7344 <property name="sizePolicy"> 7339 <sizepolicy hsizetype=" Minimum" vsizetype="Minimum">7345 <sizepolicy hsizetype="Fixed" vsizetype="Minimum"> 7340 7346 <horstretch>0</horstretch> 7341 7347 <verstretch>0</verstretch> … … 7344 7350 <property name="maximumSize"> 7345 7351 <size> 7346 <width> 20</width>7352 <width>18</width> 7347 7353 <height>16777215</height> 7348 7354 </size> … … 7351 7357 <string/> 7352 7358 </property> 7353 <property name="checked"> 7359 <property name="icon"> 7360 <iconset resource="design.qrc"> 7361 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset> 7362 </property> 7363 <property name="iconSize"> 7364 <size> 7365 <width>16</width> 7366 <height>16</height> 7367 </size> 7368 </property> 7369 <property name="checkable"> 7370 <bool>false</bool> 7371 </property> 7372 <property name="flat"> 7354 7373 <bool>true</bool> 7355 7374 </property> 7356 7375 </widget> 7357 7376 </item> 7358 <item row="5" column="1"> 7359 <widget class="QCheckBox" name="fStatusFADEnable"> 7377 <item row="1" column="3"> 7378 <widget class="QLabel" name="fStatusDNSLabel"> 7379 <property name="text"> 7380 <string>Offline</string> 7381 </property> 7382 </widget> 7383 </item> 7384 <item row="1" column="4"> 7385 <spacer name="horizontalSpacer_8"> 7386 <property name="orientation"> 7387 <enum>Qt::Horizontal</enum> 7388 </property> 7389 <property name="sizeHint" stdset="0"> 7390 <size> 7391 <width>40</width> 7392 <height>20</height> 7393 </size> 7394 </property> 7395 </spacer> 7396 </item> 7397 <item row="3" column="2"> 7398 <widget class="QPushButton" name="fStatusFTMLed"> 7360 7399 <property name="enabled"> 7361 <bool> false</bool>7400 <bool>true</bool> 7362 7401 </property> 7363 7402 <property name="sizePolicy"> 7364 <sizepolicy hsizetype=" Minimum" vsizetype="Minimum">7403 <sizepolicy hsizetype="Fixed" vsizetype="Minimum"> 7365 7404 <horstretch>0</horstretch> 7366 7405 <verstretch>0</verstretch> … … 7369 7408 <property name="maximumSize"> 7370 7409 <size> 7371 <width> 20</width>7410 <width>18</width> 7372 7411 <height>16777215</height> 7373 7412 </size> … … 7376 7415 <string/> 7377 7416 </property> 7378 <property name="checked"> 7417 <property name="icon"> 7418 <iconset resource="design.qrc"> 7419 <normaloff>:/Resources/icons/gray circle 1.png</normaloff>:/Resources/icons/gray circle 1.png</iconset> 7420 </property> 7421 <property name="iconSize"> 7422 <size> 7423 <width>16</width> 7424 <height>16</height> 7425 </size> 7426 </property> 7427 <property name="checkable"> 7428 <bool>false</bool> 7429 </property> 7430 <property name="flat"> 7379 7431 <bool>true</bool> 7380 7432 </property> 7381 7433 </widget> 7382 7434 </item> 7383 <item row="4" column="3"> 7435 <item row="3" column="3"> 7436 <widget class="QLabel" name="fStatusFTMLabel"> 7437 <property name="text"> 7438 <string>Offline</string> 7439 </property> 7440 </widget> 7441 </item> 7442 <item row="4" column="2"> 7384 7443 <widget class="QPushButton" name="fStatusFTULed"> 7385 7444 <property name="maximumSize"> … … 7401 7460 </widget> 7402 7461 </item> 7403 <item row="5" column=" 3">7462 <item row="5" column="2"> 7404 7463 <widget class="QPushButton" name="fStatusFADLed"> 7405 7464 <property name="enabled"> … … 7439 7498 </widget> 7440 7499 </item> 7441 <item row="6" column=" 3">7500 <item row="6" column="2"> 7442 7501 <widget class="QPushButton" name="fStatusEventBuilderLed"> 7443 7502 <property name="enabled"> … … 7477 7536 </widget> 7478 7537 </item> 7479 <item row="7" column=" 3">7538 <item row="7" column="2"> 7480 7539 <widget class="QPushButton" name="fStatusFSCLed"> 7481 7540 <property name="maximumSize"> … … 7497 7556 </widget> 7498 7557 </item> 7499 <item row="8" column=" 3">7558 <item row="8" column="2"> 7500 7559 <widget class="QPushButton" name="fStatusSchedulerLed"> 7501 7560 <property name="maximumSize"> … … 7517 7576 </widget> 7518 7577 </item> 7519 <item row="9" column="3"> 7578 <item row="7" column="3"> 7579 <widget class="QLabel" name="fStatusFSCLabel"> 7580 <property name="text"> 7581 <string>Offline</string> 7582 </property> 7583 </widget> 7584 </item> 7585 <item row="6" column="3"> 7586 <widget class="QLabel" name="fStatusEventBuilderLabel"> 7587 <property name="text"> 7588 <string>Offline</string> 7589 </property> 7590 </widget> 7591 </item> 7592 <item row="5" column="3"> 7593 <widget class="QLabel" name="fStatusFADLabel"> 7594 <property name="text"> 7595 <string>Offline</string> 7596 </property> 7597 </widget> 7598 </item> 7599 <item row="4" column="3"> 7600 <widget class="QLabel" name="fStatusFTULabel"> 7601 <property name="text"> 7602 <string>Offline</string> 7603 </property> 7604 </widget> 7605 </item> 7606 <item row="9" column="2"> 7520 7607 <widget class="QPushButton" name="fStatusLoggerLed"> 7521 7608 <property name="enabled"> … … 7555 7642 </widget> 7556 7643 </item> 7557 <item row="10" column=" 3">7644 <item row="10" column="2"> 7558 7645 <widget class="QPushButton" name="fStatusChatLed"> 7559 7646 <property name="enabled"> … … 7593 7680 </widget> 7594 7681 </item> 7595 <item row="4" column="4"> 7596 <widget class="QLabel" name="fStatusFTULabel"> 7597 <property name="text"> 7598 <string>Offline</string> 7599 </property> 7600 </widget> 7601 </item> 7602 <item row="5" column="4"> 7603 <widget class="QLabel" name="fStatusFADLabel"> 7604 <property name="text"> 7605 <string>Offline</string> 7606 </property> 7607 </widget> 7608 </item> 7609 <item row="6" column="4"> 7610 <widget class="QLabel" name="fStatusEventBuilderLabel"> 7611 <property name="text"> 7612 <string>Offline</string> 7613 </property> 7614 </widget> 7615 </item> 7616 <item row="7" column="4"> 7617 <widget class="QLabel" name="fStatusFSCLabel"> 7618 <property name="text"> 7619 <string>Offline</string> 7620 </property> 7621 </widget> 7622 </item> 7623 <item row="8" column="4"> 7682 <item row="8" column="3"> 7624 7683 <widget class="QLabel" name="fStatusSchedulerLabel"> 7625 7684 <property name="text"> … … 7628 7687 </widget> 7629 7688 </item> 7630 <item row="9" column=" 4">7689 <item row="9" column="3"> 7631 7690 <widget class="QLabel" name="fStatusLoggerLabel"> 7632 7691 <property name="text"> … … 7635 7694 </widget> 7636 7695 </item> 7637 <item row="10" column=" 4">7696 <item row="10" column="3"> 7638 7697 <widget class="QLabel" name="fStatusChatLabel"> 7639 7698 <property name="text"> … … 7665 7724 </item> 7666 7725 <item> 7726 <widget class="QLabel" name="label_144"> 7727 <property name="text"> 7728 <string>FTM</string> 7729 </property> 7730 </widget> 7731 </item> 7732 <item> 7667 7733 <layout class="QHBoxLayout" name="horizontalLayout_25"> 7668 7734 <property name="topMargin"> … … 7680 7746 <property name="text"> 7681 7747 <string>Stop run</string> 7748 </property> 7749 </widget> 7750 </item> 7751 </layout> 7752 </item> 7753 <item> 7754 <spacer name="verticalSpacer_34"> 7755 <property name="orientation"> 7756 <enum>Qt::Vertical</enum> 7757 </property> 7758 <property name="sizeType"> 7759 <enum>QSizePolicy::Fixed</enum> 7760 </property> 7761 <property name="sizeHint" stdset="0"> 7762 <size> 7763 <width>20</width> 7764 <height>3</height> 7765 </size> 7766 </property> 7767 </spacer> 7768 </item> 7769 <item> 7770 <widget class="QLabel" name="label_150"> 7771 <property name="text"> 7772 <string>FAD</string> 7773 </property> 7774 </widget> 7775 </item> 7776 <item> 7777 <layout class="QHBoxLayout" name="horizontalLayout_26"> 7778 <property name="topMargin"> 7779 <number>0</number> 7780 </property> 7781 <item> 7782 <widget class="QPushButton" name="fFadStart"> 7783 <property name="text"> 7784 <string>Start</string> 7785 </property> 7786 </widget> 7787 </item> 7788 <item> 7789 <widget class="QPushButton" name="fFadStop"> 7790 <property name="text"> 7791 <string>Stop</string> 7792 </property> 7793 </widget> 7794 </item> 7795 <item> 7796 <widget class="QPushButton" name="fFadAbort"> 7797 <property name="text"> 7798 <string>Abort</string> 7682 7799 </property> 7683 7800 </widget> -
trunk/FACT++/src/EventBuilderWrapper.h
r11225 r11226 1236 1236 static DimEventData *data = 0; 1237 1237 1238 const size_t sz = sizeof(DimEventData)+event->Roi*2 ;1238 const size_t sz = sizeof(DimEventData)+event->Roi*2*1440; 1239 1239 1240 1240 if (data && data->Roi != event->Roi) … … 1257 1257 data->StartTM = event->StartTM[0]; 1258 1258 1259 memcpy(data->Adc_Data, event->Adc_Data, event->Roi*2 );1259 memcpy(data->Adc_Data, event->Adc_Data, event->Roi*2*1440); 1260 1260 1261 1261 fDimEventData.setData(data, sz); … … 1542 1542 } 1543 1543 1544 1545 1546 1544 /* 1547 1545 uint16_t fTriggerType; 1548 1546 uint32_t fTriggerId; 1549 1547 uint32_t fEventCounter; 1550 uint32_t fFreqRefClock;1551 1548 uint16_t fAdcClockPhaseShift; 1552 1549 uint16_t fNumTriggersToGenerate;
Note:
See TracChangeset
for help on using the changeset viewer.