]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/STEER/AliRecoParam.h
Some warning going to error and viceversa:
[u/mrichter/AliRoot.git] / STEER / STEER / AliRecoParam.h
CommitLineData
242b332c 1#ifndef ALIRECOPARAM_H
2#define ALIRECOPARAM_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6///////////////////////////////////////////////////////////////////////////////
7// //
7e88424f 8// Steering Class for reconstruction parameters //
6769d914 9// Revision: cvetan.cheshkov@cern.ch 12/06/2008 //
7e88424f 10// Its structure has been revised and it is interfaced to AliRunInfo and //
11// AliEventInfo. //
242b332c 12// //
13///////////////////////////////////////////////////////////////////////////////
14
15
7e88424f 16#include "TObject.h"
17
242b332c 18class AliDetectorRecoParam;
7e88424f 19class AliRunInfo;
6769d914 20class AliEventInfo;
77ba28ba 21class THashTable;
242b332c 22
7e88424f 23class AliRecoParam : public TObject
242b332c 24{
6769d914 25
242b332c 26 public:
27 AliRecoParam();
28 virtual ~AliRecoParam();
242b332c 29 //
7e88424f 30 enum {
31 kNSpecies = 5, // number of event species
820b4d9e 32// #ifdef MFT_UPGRADE
33// kNDetectors = 17 // number of detectors (last one is MFT!)
34// #else
35// kNDetectors = 16 // number of detectors (last one is GRP!)
36// #endif
37 kNDetectors = 17 // number of detectors (last one is MFT!) // AU
7e88424f 38 };
39 enum EventSpecie_t {kDefault = 1,
40 kLowMult = 2,
41 kHighMult = 4,
42 kCosmic = 8,
43 kCalib = 16};
6769d914 44
57acd2d2 45 static Int_t AConvert(EventSpecie_t es) ;
5e232cd6 46 static EventSpecie_t Convert(Int_t ies) ;
47 static EventSpecie_t ConvertIndex(Int_t index) ;
48
7e88424f 49 virtual void Print(Option_t *option="") const;
50 const TObjArray *GetDetRecoParamArray(Int_t iDet) const { return fDetRecoParams[iDet]; }
77ba28ba 51 void SetEventSpecie(const AliRunInfo*runInfo, const AliEventInfo &evInfo,
52 const THashTable*cosmicTriggersList);
7e88424f 53 EventSpecie_t GetEventSpecie() const { return fEventSpecie; }
57acd2d2 54 static const char* GetEventSpecieName(EventSpecie_t es);
55 static const char* GetEventSpecieName(Int_t esIndex);
48f5e52d 56 const char* PrintEventSpecie() const;
7e88424f 57 const AliDetectorRecoParam *GetDetRecoParam(Int_t iDet) const;
58 void AddDetRecoParam(Int_t iDet, AliDetectorRecoParam* param);
59 Bool_t AddDetRecoParamArray(Int_t iDet, TObjArray* parArray);
2972d4eb 60
54e51010 61 AliRecoParam(const AliRecoParam&);
49ad11d0 62 AliRecoParam& operator=(const AliRecoParam&);
54e51010 63
57acd2d2 64
2972d4eb 65private:
6769d914 66
54e51010 67 Int_t fDetRecoParamsIndex[kNSpecies][kNDetectors]; // index to fDetRecoParams arrays
68 TObjArray *fDetRecoParams[kNDetectors]; // array with reconstruction-parameter objects for all detectors
69 EventSpecie_t fEventSpecie; // current event specie
57acd2d2 70 static TString fkgEventSpecieName[] ; // the names of the event species
71 ClassDef(AliRecoParam, 6)
242b332c 72};
73
74
75#endif