Changeset 11510 for trunk/FACT++/src/fad.cc
- Timestamp:
- 07/21/11 12:04:01 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fad.cc
r11493 r11510 143 143 144 144 evtbuf.insert(evtbuf.end(), buf.begin(), buf.end()); 145 evtbuf.insert(evtbuf.end(), fChHeader[i].fRegionOfInterest, 0x42+i+ 11.*rand()/RAND_MAX-5+fHeader.fDac[1]/32);145 evtbuf.insert(evtbuf.end(), fChHeader[i].fRegionOfInterest, 0x42+i+fHeader.fDac[1]/32); 146 146 147 147 if (triggerid>0) … … 150 150 double rndm = 500.*rand()/RAND_MAX+500; 151 151 for (int ii=0; ii<fChHeader[i].fRegionOfInterest; ii++) 152 *(evtbuf.end()-fChHeader[i].fRegionOfInterest+ii) = rndm*exp(-0.5*(ii-p)*(ii-p)/25); // sigma=10 152 *(evtbuf.end()-fChHeader[i].fRegionOfInterest+ii) += 153 rndm*exp(-0.5*(ii-p)*(ii-p)/25); // sigma=10 153 154 } 155 156 for (int ii=0; ii<fChHeader[i].fRegionOfInterest; ii++) 157 { 158 *(evtbuf.end()-fChHeader[i].fRegionOfInterest+ii) += 159 6.*rand()/RAND_MAX + 5*exp(-ii/10); // sigma=10 160 161 *(evtbuf.end()-fChHeader[i].fRegionOfInterest+(ii+fChHeader[i].fStartCell)%fChHeader[i].fRegionOfInterest) += 162 15*sin(2*3.1415*ii/512); // sigma=10 163 } 164 154 165 155 166 fHeader.fPackageLength += sizeof(ChannelHeader)/2;
Note:
See TracChangeset
for help on using the changeset viewer.