return fRawData;
}
-//______________________________________________________________________________
-void AliRawEquipment::Reset()
-{
- // Reset the equipment in case it needs to be re-used (avoiding costly
- // new/delete cycle). We reset the size marker for the AliRawData
- // object.
-
- if (fEqpHdr) fEqpHdr->Reset();
- GetRawData()->SetSize(0);
- fRawDataRef = NULL;
-}
-
//______________________________________________________________________________
AliRawEquipment::~AliRawEquipment()
{
}
//______________________________________________________________________________
-void AliRawEquipment::SetRawDataRef(AliRawDataArray *array)
+void AliRawEquipment::Streamer(TBuffer &R__b)
{
- // Set the TRef to the raw-data container
- // before writing it to the branch
- if (fRawData) {
- fRawDataRef = fRawData;
- array->Add(fRawData);
- fRawData = NULL;
- return;
- }
- else {
- Error("SetRawDataRef", "Raw-data payload does not exist! Can not set a reference to it!");
- fRawDataRef = NULL;
- return;
- }
+ // Stream an object of class AliRawEquipment.
+
+ UInt_t R__s, R__c;
+ if (R__b.IsReading()) {
+ Version_t R__v = R__b.ReadVersion(&R__s, &R__c); if (R__v) { }
+ TObject::Streamer(R__b);
+ R__b >> fEqpHdr;
+ R__b >> fRawData;
+ fRawDataRef.Streamer(R__b);
+ R__b.CheckByteCount(R__s, R__c, AliRawEquipment::IsA());
+ } else {
+ R__c = R__b.WriteVersion(AliRawEquipment::IsA(), kTRUE);
+ TObject::Streamer(R__b);
+ R__b << fEqpHdr;
+ R__b << fRawData;
+ fRawDataRef.Streamer(R__b);
+ R__b.SetByteCount(R__c, kTRUE);
+ }
}