Fixes for bug #52499: Field polarities inconsistiency
[u/mrichter/AliRoot.git] / STEER / AliGRPManager.h
CommitLineData
10c2f85a 1#ifndef ALIGRPMANAGER_H
2#define ALIGRPMANAGER_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6////////////////////////////////////////////////////////////////////////////
7// //
8// AliGRPManager class //
9// The class can be used in order to access and read the Global Run //
10// Parameters entry from OCDB. //
11// It has a methods to set the magnetic field instanton and return //
12// the run and event info objects. //
13// //
14// cvetan.cheshkov@cern.ch 15/06/2009 //
15////////////////////////////////////////////////////////////////////////////
16
17#include <TObject.h>
18
19class AliRunInfo;
20class AliGRPObject;
21
22class AliGRPManager: public TObject {
23public:
24 AliGRPManager();
25 virtual ~AliGRPManager();
26
27 const AliGRPObject* GetGRPData() const { return fGRPData; }
28
29 Bool_t ReadGRPEntry();
30 Bool_t SetMagField();
31
32 AliRunInfo* GetRunInfo();
33
34private:
35 Bool_t SetFieldMap(Float_t l3Current=30000., Float_t diCurrent=6000.,
99c7d495 36 Float_t l3Pol=-1., Float_t dipPol=-1.,
37 Int_t convention=0, Bool_t uniform = kFALSE,
38 Float_t benergy=7000., const Char_t* btype="pp",
10c2f85a 39 const Char_t* path="$(ALICE_ROOT)/data/maps/mfchebKGI_sym.root");
99c7d495 40
10c2f85a 41 AliGRPObject* fGRPData; // Data from the GRP/GRP/Data CDB folder
42
43 AliGRPManager(const AliGRPManager& man);
44 AliGRPManager& operator = (const AliGRPManager& man);
45
46 ClassDef(AliGRPManager, 0) // class for accessing GRP
47};
48
49#endif