#include "AliRun.h" // ALIRUN_H
#include "AliStack.h" // ALISTACK_H
#include "AliRawReaderFile.h" // ALIRAWREADERFILE_H
+#include "AliRawReaderRoot.h" // ALIRAWREADERROOT_H
+#include "AliRawReaderDate.h" // ALIRAWREADERDATE_H
#include "AliFMD.h" // ALIFMD_H
#include "AliFMDHit.h" // ALIFMDHIT_H
#include "AliFMDDigit.h" // ALIFMDDigit_H
fHeader(0),
fGeoManager(0),
fTreeMask(0),
+ fRawFile(""),
fIsInit(kFALSE),
fEventCount(0)
{
fHeader(0),
fGeoManager(0),
fTreeMask(0),
+ fRawFile(""),
fIsInit(kFALSE),
fEventCount(0)
{
if (TESTBIT(fTreeMask, kRaw)) {
AliInfo("Getting FMD raw data digits");
fArrayA = new TClonesArray("AliFMDDigit");
- fReader = new AliRawReaderFile(-1);
+ if (!fRawFile.IsNull() && fRawFile.EndsWith(".root"))
+ fReader = new AliRawReaderRoot(fRawFile.Data());
+ else if (!fRawFile.IsNull() && fRawFile.EndsWith(".raw"))
+ fReader = new AliRawReaderDate(fRawFile.Data());
+ else
+ fReader = new AliRawReaderFile(-1);
+
}
// Optionally, get the geometry
@param max Maximum of axis.
@return An array with the bin boundaries. */
static TArrayF MakeLogScale(Int_t n, Double_t min, Double_t max);
+
+ /** Set the raw data input
+ @param file File name - if empty, assume simulated raw. */
+ void SetRawFile(const char* file) { if (file) fRawFile = file; }
+
protected:
/** Copy ctor
@param o Object to copy from */
AliHeader* fHeader; // Header
TGeoManager* fGeoManager; // Geometry manager
Int_t fTreeMask; // Which tree's to load
+ TString fRawFile; // Raw input file
Bool_t fIsInit; // Have we been initialized
Int_t fEventCount; // Event counter
ClassDef(AliFMDInput,0) //Hits for detector FMD