Use AliTRDrawStreamBase::GetRawStream()
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 12 Mar 2008 13:03:10 +0000 (13:03 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 12 Mar 2008 13:03:10 +0000 (13:03 +0000)
TRD/AliTRDQADataMakerRec.cxx

index c07b8e08d25ed712d2f835ab88d52f39341513cb..eedcff18b22a3e0675a1a2cf65dc6a12da506588 100644 (file)
@@ -657,10 +657,9 @@ void AliTRDQADataMakerRec::MakeRaws(AliRawReader* rawReader)
   const Int_t kMCM = 16;
   //  const Int_t kADC = 22;
 
-  AliTRDrawStreamTB *raw = new AliTRDrawStreamTB(rawReader);
-
-  raw->SetRawVersion(3);
-  raw->Init();
+  //AliTRDrawStreamBase::SetRawStreamVersion("TB");
+  AliTRDrawStreamBase *raw = AliTRDrawStreamBase::GetRawStream(rawReader);
+  AliInfo(Form("Stream version: %s", raw->IsA()->GetName()));
 
   while (raw->Next()) {