]>
Commit | Line | Data |
---|---|---|
867ef916 | 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 */ | |
5 | ||
6 | #include <TError.h> | |
7 | ||
d6a72cf9 | 8 | #include "AliRawDataHeader.h" |
867ef916 | 9 | #include "AliRunLoader.h" |
10 | #include "AliCentralTrigger.h" | |
11 | ||
12 | class AliRawDataHeaderSim : public AliRawDataHeader { | |
13 | ||
14 | public: | |
15 | AliRawDataHeaderSim() : AliRawDataHeader() { | |
16 | // Takes the trigger mask and | |
17 | // stores it in the data header | |
33c3c91a | 18 | AliRunLoader *runloader = AliRunLoader::Instance(); |
867ef916 | 19 | if (runloader) { |
31269f94 | 20 | if(!runloader->GetTrigger()) runloader->LoadTrigger(); |
21 | if (AliCentralTrigger *aCTP = runloader->GetTrigger()) { | |
867ef916 | 22 | ULong64_t mask = aCTP->GetClassMask(); |
23 | SetTriggerClass(mask); | |
24 | } | |
25 | else | |
26 | Warning("SetTriggerClass","No trigger can be loaded! Putting empty trigger class into the raw data header !"); | |
27 | } | |
28 | else | |
29 | Error("SetTriggerClass","No run loader is available! Putting empty trigger class into the raw data header !"); | |
30 | } | |
31 | ||
32 | }; | |
33 | ||
34 | #endif |