- // Write the real data header
- UInt_t currentFilePosition=outfile->Tellp();
- outfile->Seekp(dataHeaderPosition);
- header.fSize=currentFilePosition-dataHeaderPosition;
- header.SetAttribute(0); // valid data
- header.SetTriggerClass(l2class);
- outfile->WriteBuffer((char*)(&header),sizeof(header));
+ // The last 5 words with trigger inputs
+ word = 0;
+ word |= 0 << 15; // BlockID = 0 in case of CTP readout
+ word |= (UInt_t)((l0input >> 12) & 0xFFF);
+ AliDebug(1,Form("CTP word9 = 0x%x",word));
+ outfile->WriteBuffer((char*)(&word),sizeof(UInt_t));
+ word = 0;
+ word |= 0 << 15; // BlockID = 0 in case of CTP readout
+ word |= (UInt_t)((l0input >> 0) & 0xFFF);
+ AliDebug(1,Form("CTP word10 = 0x%x",word));
+ outfile->WriteBuffer((char*)(&word),sizeof(UInt_t));
+ word = 0;
+ word |= 0 << 15; // BlockID = 0 in case of CTP readout
+ word |= (UInt_t)((l1input >> 12) & 0xFFF);
+ AliDebug(1,Form("CTP word11 = 0x%x",word));
+ outfile->WriteBuffer((char*)(&word),sizeof(UInt_t));
+ word = 0;
+ word |= 0 << 15; // BlockID = 0 in case of CTP readout
+ word |= (UInt_t)((l1input >> 0) & 0xFFF);
+ AliDebug(1,Form("CTP word12 = 0x%x",word));
+ outfile->WriteBuffer((char*)(&word),sizeof(UInt_t));
+ word = 0;
+ word |= 0 << 15; // BlockID = 0 in case of CTP readout
+ word |= (UInt_t)((l2input >> 0) & 0xFFF);
+ AliDebug(1,Form("CTP word13 = 0x%x",word));
+ outfile->WriteBuffer((char*)(&word),sizeof(UInt_t));
+