// ==============================================================================================
// These are job options to read raw data without resetting ETS and filtering background events.
// ==============================================================================================
ApplicationMgr.ExtSvc += { "RawDataCnvSvc"};
EventPersistencySvc.CnvServices  += { "RawDataCnvSvc" };
ApplicationMgr.ExtSvc += {"RawDataInputSvc"};
ApplicationMgr.ExtSvc += { "RawDataSelector/EventSelector"};
ApplicationMgr.EvtSel = "EventSelector";
EventSelector.InputSvc = "RawDataInputSvc";
RawDataInputSvc.Config4Revise = "$RAWDATACNVROOT/share/Config4Revise.json";
Builder.RawDataCnvConfFile = "$RAWDATACNVROOT/share/RawDataCnvConf.conf";
MucBuilder.Fec2IdMap = "$RAWDATACNVROOT/share/MucFec2Id.map";
#include "$CGEMINFOLUSVCROOT/share/jobOption_CgemInfoLuSvc.txt"

OfflineEventLoopMgr.ShowProgressInterval = 1;
OfflineEventLoopMgr.ProgressLevel = 7;

ApplicationMgr.TopAlg += { "ExportTestRawDataAlg" };

// Output Data
ApplicationMgr.HistogramPersistency = "ROOT";
NTupleSvc.Output = { "FILE1 DATAFILE='../../../tests/data/ref_raw_data.root' OPT='NEW' TYP='ROOT'" };

// Input data file
RawDataInputSvc.InputFiles = { "../../../tests/data/test_raw_data.raw" };

// Number of events to be processed (default is 10)
ApplicationMgr.EvtMax = -1;

// Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
MessageSvc.OutputLevel = 5;
