Bug fix. Removed delete statement
[u/mrichter/AliRoot.git] / 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
a00021a7 32 kNDetectors = 16 // number of detectors (last one is GRP!)
7e88424f 33 };
34 enum EventSpecie_t {kDefault = 1,
35 kLowMult = 2,
36 kHighMult = 4,
37 kCosmic = 8,
38 kCalib = 16};
6769d914 39
57acd2d2 40 static Int_t AConvert(EventSpecie_t es) ;
5e232cd6 41 static EventSpecie_t Convert(Int_t ies) ;
42 static EventSpecie_t ConvertIndex(Int_t index) ;
43
7e88424f 44 virtual void Print(Option_t *option="") const;
45 const TObjArray *GetDetRecoParamArray(Int_t iDet) const { return fDetRecoParams[iDet]; }
77ba28ba 46 void SetEventSpecie(const AliRunInfo*runInfo, const AliEventInfo &evInfo,
47 const THashTable*cosmicTriggersList);
7e88424f 48 EventSpecie_t GetEventSpecie() const { return fEventSpecie; }
57acd2d2 49 static const char* GetEventSpecieName(EventSpecie_t es);
50 static const char* GetEventSpecieName(Int_t esIndex);
48f5e52d 51 const char* PrintEventSpecie() const;
7e88424f 52 const AliDetectorRecoParam *GetDetRecoParam(Int_t iDet) const;
53 void AddDetRecoParam(Int_t iDet, AliDetectorRecoParam* param);
54 Bool_t AddDetRecoParamArray(Int_t iDet, TObjArray* parArray);
2972d4eb 55
54e51010 56 AliRecoParam(const AliRecoParam&);
49ad11d0 57 AliRecoParam& operator=(const AliRecoParam&);
54e51010 58
57acd2d2 59
2972d4eb 60private:
6769d914 61
54e51010 62 Int_t fDetRecoParamsIndex[kNSpecies][kNDetectors]; // index to fDetRecoParams arrays
63 TObjArray *fDetRecoParams[kNDetectors]; // array with reconstruction-parameter objects for all detectors
64 EventSpecie_t fEventSpecie; // current event specie
57acd2d2 65 static TString fkgEventSpecieName[] ; // the names of the event species
66 ClassDef(AliRecoParam, 6)
242b332c 67};
68
69
70#endif