//header file
#include "AliLog.h"
#include "AliTRDCalibPadStatus.h"
-#include "AliTRDrawStreamTB.h"
+#include "AliTRDrawStreamBase.h"
#include "AliTRDgeometry.h"
#include "AliTRDCommonParam.h"
#include "./Cal/AliTRDCalROC.h"
return 0;
}
//_____________________________________________________________________
-Int_t AliTRDCalibPadStatus::ProcessEvent(AliTRDrawStreamTB *rawStream, Bool_t nocheck)
+Int_t AliTRDCalibPadStatus::ProcessEvent(AliTRDrawStreamBase *rawStream, Bool_t nocheck)
{
//
// Event Processing loop - AliTRDRawStreamCosmic
// Event processing loop - AliRawReader
//
-
- AliTRDrawStreamTB rawStream(rawReader);
-
+ Int_t result;
+
rawReader->Select("TRD");
+
+ AliTRDrawStreamBase *pstream = AliTRDrawStreamBase::GetRawStream(rawReader);
+
+ result = ProcessEvent(pstream, nocheck);
+
+ delete pstream;
- return ProcessEvent(&rawStream, nocheck);
+ return result;
}
//_________________________________________________________________________
class AliTRDCalPad;
class AliTRDCalROC;
class AliTRDCalPadStatus;
-class AliTRDrawStreamTB;
+class AliTRDrawStreamBase;
class AliTRDgeometry;
struct eventHeaderStruct;
AliTRDCalibPadStatus& operator = (const AliTRDCalibPadStatus &source);
- Int_t ProcessEvent(AliTRDrawStreamTB *rawStream, Bool_t nocheck = kFALSE);
+ Int_t ProcessEvent(AliTRDrawStreamBase *rawStream, Bool_t nocheck = kFALSE);
Int_t ProcessEvent(AliRawReader *rawReader, Bool_t nocheck = kFALSE);
Int_t ProcessEvent(eventHeaderStruct *event, Bool_t nocheck = kFALSE);
#include "AliRawReader.h"
#include "AliRawReaderDate.h"
#include "AliTRDrawStreamTB.h"
+#include "AliTRDrawStreamBase.h"
#include "AliCDBManager.h"
//
// AliRoot TRD calib classes
rawReader->Select("TRD");
AliTRDrawStreamTB *trdRawStream = new AliTRDrawStreamTB((AliRawReader *)rawReader);
//trdRawStream->Init();
- if(!calipad.ProcessEvent(trdRawStream,(Bool_t)nevents_total)) passpadstatus = kFALSE;
+ if(!calipad.ProcessEvent((AliTRDrawStreamBase *)trdRawStream,(Bool_t)nevents_total)) passpadstatus = kFALSE;
nevents++;
delete trdRawStream;
delete rawReader;