Changeset 17376 for trunk/FACT++/src
- Timestamp:
- 11/25/13 19:50:58 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/smartfact.cc
r17369 r17376 1617 1617 return GetCurrentState(); 1618 1618 1619 //const float *avg = d.Ptr<float>();1620 //const float *rms = d.Ptr<float>(1440*sizeof(float));1621 1619 const float *dat = d.Ptr<float>(1440*sizeof(float)*2); 1622 //const float *pos = d.Ptr<float>(1440*sizeof(float)*3); 1623 1624 vector<float> max(320, -2);1620 1621 /* 1622 vector<float> max(320, 0); 1625 1623 for (int i=0; i<1440; i++) 1626 1624 { … … 1630 1628 const int idx = (fPixelMap.hw(i).hw()/9)*2+fPixelMap.hw(i).group(); 1631 1629 const double v = dat[i]/1000; 1632 if (v>max[idx]) 1633 max[idx]=v; 1634 } 1630 //if (v>max[idx]) 1631 // max[idx]=v; 1632 1633 max[idx] += v/4; 1634 } */ 1635 1636 vector<float> max(1440); 1637 for (int i=0; i<1440; i++) 1638 max[i] = dat[i%9==8 ? i-2 : i]/1000; 1635 1639 1636 1640 const uint32_t trig = d.GetQoS() & FAD::EventHeader::kLPext; 1637 1641 1642 const float min = fFadControlDrsRuns[0]==0 ? -1 : 0; 1643 1638 1644 float scale = 2; 1639 float min = fFadControlDrsRuns[0]==0 ? -1 : 0;1640 1641 1645 if (trig&FAD::EventHeader::kLPext) 1642 1646 scale = 1;
Note:
See TracChangeset
for help on using the changeset viewer.