Added methods for finding a given module in the DDL map (F. Prino)
[u/mrichter/AliRoot.git] / STEER / AliRawDataHeaderSim.h
CommitLineData
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
12class AliRawDataHeaderSim : public AliRawDataHeader {
13
14public:
15 AliRawDataHeaderSim() : AliRawDataHeader() {
16 // Takes the trigger mask and
17 // stores it in the data header
18 AliRunLoader *runloader = AliRunLoader::GetRunLoader();
19 if (runloader) {
20 if (!runloader->LoadTrigger()) {
21 AliCentralTrigger *aCTP = runloader->GetTrigger();
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