- if(cell%2 == 0)
- // Information about previous 10 interaction
- // Not available in the simulation...
- // Even cell number -- skip 5 words
- { for(Int_t i = 0; i < 5; i++)
- { data = 0;
- f->WriteBuffer((char*)&data,sizeof(data)); }
- data = ADC | 0x400;
- f->WriteBuffer((char*)&data,sizeof(data)); }
- else
- // Information about previous 10 interaction
- // Odd cell number -- skip 4 words and shift ADC by 16 bits
- { for(Int_t i = 0; i < 4; i++)
- { data = 0;
- f->WriteBuffer((char*)&data,sizeof(data)); }
- data |= (ADC & 0x3ff) << 16;
- f->WriteBuffer((char*)&data,sizeof(data)); }
+ data |= ((adc[2*i] & 0x3ff) << 16);
+ data |= ((integrator & 0x1) << 26);
+
+ f->WriteBuffer((char*)&data,sizeof(data));
+ }
+ }