1 #ifndef ALIRAWDATAHEADERSIM_H
2 #define ALIRAWDATAHEADERSIM_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 #include "AliRawDataHeader.h"
9 #include "AliRunLoader.h"
10 #include "AliCentralTrigger.h"
12 class AliRawDataHeaderSim : public AliRawDataHeader {
15 AliRawDataHeaderSim() : AliRawDataHeader() {
16 // Takes the trigger mask and
17 // stores it in the data header
18 AliRunLoader *runloader = AliRunLoader::Instance();
20 if(!runloader->GetTrigger()) runloader->LoadTrigger();
21 if (AliCentralTrigger *aCTP = runloader->GetTrigger()) {
22 ULong64_t mask = aCTP->GetClassMask();
23 SetTriggerClass(mask);
26 Warning("SetTriggerClass","No trigger can be loaded! Putting empty trigger class into the raw data header !");
29 Error("SetTriggerClass","No run loader is available! Putting empty trigger class into the raw data header !");