ALIROOT-5433 Transition to CDHv3 in HLT
[u/mrichter/AliRoot.git] / HLT / rec / AliHLTMiscImplementation.h
CommitLineData
2b545cdd 1//-*- Mode: C++ -*-
2// $Id$
3
4#ifndef ALIHLTMISCIMPLEMENTATION_H
74c1905c 5#define ALIHLTMISCIMPLEMENTATION_H
abb64a61 6//* This file is property of and copyright by the *
2b545cdd 7//* ALICE Experiment at CERN, All rights reserved. *
abb64a61 8//* See cxx source for full Copyright notice *
2b545cdd 9
10/// @file AliHLTMiscImplementation.h
11/// @author Matthias Richter
12/// @date 2009-07-07
13/// @brief Implementation of various glue functions implemented in dynamically
14/// loaded libraries
15
16#include "AliHLTMisc.h"
abb64a61 17/**
18 * @class AliHLTMiscImplementation
19 * Implementation of various glue functions provided by AliHLTMisc.
20 */
2b545cdd 21class AliHLTMiscImplementation : public AliHLTMisc
22{
23 public:
24 AliHLTMiscImplementation();
25 ~AliHLTMiscImplementation();
26
27 int InitCDB(const char* cdbpath);
28
29 int SetCDBRunNo(int runNo);
74c1905c 30 int GetCDBRunNo() const;
2b545cdd 31
5df320bf 32 AliCDBEntry* LoadOCDBEntry(const char* path, int runNo=-1) const;
2b545cdd 33
74c1905c 34 TObject* ExtractObject(AliCDBEntry* entry) const;
35 int CheckOCDBEntries(const TMap* const pMap) const;
cc484ed9 36
37 int InitMagneticField() const;
38
16e6f752 39 AliHLTTriggerMask_t GetTriggerMask(AliRawReader* rawReader) const;
73305a93 40
2572a09f 41 AliHLTUInt32_t GetTimeStamp(AliRawReader* rawReader) const;
42 AliHLTUInt32_t GetEventType(AliRawReader* rawReader) const;
de254f89 43 const char* GetBeamTypeFromGRP() const;
2572a09f 44
a5e775ec 45 Double_t GetBz();
46 Double_t GetBz(const Double_t *r);
47 void GetBxByBz(const Double_t r[3], Double_t b[3]);
48
95ea76b5 49 const TClass* IsAliESDHLTDecision() const;
50 int Copy(const AliHLTGlobalTriggerDecision* pDecision, TObject* pESDHLTDecision) const;
51
79c426cf 52 int InitStreamerInfos(const char* ocdbEntry) const;
53 int InitStreamerInfos(TObjArray* pSchemas) const;
abb64a61 54 int MergeStreamerInfo(TObjArray* tgt, const TObjArray* src, int iVerbosity=0) const;
79c426cf 55
ee15809c 56 void SetAliESDtrackOnlineModeFlag(bool mode) const;
57 bool GetAliESDtrackOnlineModeFlag() const;
58
2b545cdd 59 private:
60
61 ClassDef(AliHLTMiscImplementation, 0)
62};
63
64#endif //ALIHLTMISCIMPLEMENTATION_H