#include "AliMUONPedestalEventGenerator.h"
+#include "AliCodeTimer.h"
+#include "AliDAQ.h"
#include "AliHeader.h"
#include "AliLog.h"
#include "AliMUONCalibrationData.h"
-#include "AliMUONVDigitStore.h"
#include "AliMUONRawWriter.h"
-#include "AliCodeTimer.h"
#include "AliMUONVCalibParam.h"
#include "AliMUONVDigit.h"
+#include "AliMUONVDigitStore.h"
#include "AliMUONVStore.h"
#include "AliMpCathodType.h"
#include "AliMpConstants.h"
#include "AliMpDEStore.h"
#include "AliMpDetElement.h"
-#include "AliMpIntPair.h"
#include "AliMpPlaneType.h"
+#include "AliRawDataHeaderSim.h"
#include "AliRunLoader.h"
#include <TClonesArray.h>
#include <TMath.h>
#include <TRandom.h>
#include <TStopwatch.h>
#include <TSystem.h>
-#include "AliDAQ.h"
-///
+//-----------------------------------------------------------------------------
/// \class AliMUONPedestalEventGenerator
///
/// Generate simulated pedestal events for MUON TRK, to be able to e.g. test
/// + raw (date files, one per LDC), depending of ctor and MakeDDL() method.
///
/// \author L. Aphecetche
-///
+//-----------------------------------------------------------------------------
/// \cond CLASSIMP
ClassImp(AliMUONPedestalEventGenerator)
AliCodeTimerAuto("")
- if (!fRawWriter) fRawWriter = new AliMUONRawWriter;
+ if (!fRawWriter)
+ {
+ AliRawDataHeaderSim header;
+ fRawWriter = new AliMUONRawWriter;
+ fRawWriter->SetHeader(header);
+ }
// Generate RAW data from the digits
// Be carefull to create&change to the correct directory first...
{
// This is a poor's man way of knowing if that channel really exists.
// Better and safer way (but much slower too) would be to check pad existence
- // using AliMpVSegmentation::PadByLocation(AliMpIntPair(manuId,manuChannel))
+ // using AliMpVSegmentation::PadByLocation(manuId,manuChannel)
continue;
}
else if ( mean < 1 || mean > 4095 )
AliMUONPedestalEventGenerator::LoadRun(const char* mode)
{
/// Get access to AliRunLoader object
- while (AliRunLoader::GetRunLoader())
+ while (AliRunLoader::Instance())
{
- AliDebug(1,Form("Deleting AliRunLoader %p",AliRunLoader::GetRunLoader()));
- delete AliRunLoader::GetRunLoader();
+ AliDebug(1,Form("Deleting AliRunLoader %p",AliRunLoader::Instance()));
+ delete AliRunLoader::Instance();
}
AliRunLoader* runLoader =