Changeset 12291 for trunk/FACT++/src/ratescan.cc
- Timestamp:
- 10/27/11 01:21:59 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ratescan.cc
r12268 r12291 77 77 uint64_t fTriggersPatch[160]; 78 78 79 uint64_t fOnTimeStart; 79 float fElapsedTime; 80 float fOnTime; 80 81 81 82 float fResolution; … … 137 138 if (curr==&fRates) 138 139 { 139 if ( curr->getSize()!=sizeof(FTM::DimTriggerRates))140 if (!CheckEventSize(curr->getSize(), "infoHandler[DimTriggerRates]", sizeof(FTM::DimTriggerRates))) 140 141 return; 141 142 … … 155 156 memset(fTriggersPatch, 0, 160*sizeof(uint64_t)); 156 157 157 fOnTimeStart = sdata.fOnTimeCounter; 158 fOnTime = 0; 159 fElapsedTime = 0; 158 160 return; 159 161 } … … 170 172 if (fReference==kPatch) 171 173 reference = fTriggersPatch[fReferenceIdx]; 174 175 fOnTime += sdata.fOnTime; 176 fElapsedTime += sdata.fElapsedTime; 177 178 reference *= fElapsedTime*10; 179 180 cout << fElapsedTime << " " << fOnTime << endl; 172 181 173 182 if ((reference==0 || sqrt(reference)>fResolution*reference) && fSeconds<fSecondsMax) … … 190 199 for (int i=0; i<160; i++) 191 200 sout2 << float(fTriggersPatch[i])/fSeconds << " "; 192 sout3 << fSeconds << " "; 193 sout3 << float(sdata.fOnTimeCounter-fOnTimeStart)/fSeconds/1000000; 194 195 Info(sout1.str()+sout3.str()); 201 sout3 << fElapsedTime << " " << fOnTime; 202 203 Info(sout1.str()); 196 204 197 205
Note:
See TracChangeset
for help on using the changeset viewer.